|
|
|
@@ -14,6 +14,9 @@ |
|
|
|
<result property="cusId" column="cus_id" jdbcType="BIGINT"/> |
|
|
|
<result property="cusName" column="cus_name" jdbcType="VARCHAR"/> |
|
|
|
<result property="cusAddress" column="cus_address" jdbcType="VARCHAR"/> |
|
|
|
<result property="cusMerchantId" column="cus_merchant_id" jdbcType="BIGINT"/> |
|
|
|
<result property="cusLegionId" column="cus_legion_id" jdbcType="BIGINT"/> |
|
|
|
<result property="cusUnionId" column="cus_union_id" jdbcType="BIGINT"/> |
|
|
|
<result property="merchantId" column="merchant_id" jdbcType="BIGINT"/> |
|
|
|
<result property="legionId" column="legion_id" jdbcType="BIGINT"/> |
|
|
|
<result property="unionId" column="union_id" jdbcType="BIGINT"/> |
|
|
|
@@ -31,6 +34,7 @@ |
|
|
|
id,tenant_id,parent_tenant_id, |
|
|
|
activity_id,order_no,order_money, |
|
|
|
cus_id,cus_name,cus_address, |
|
|
|
cus_merchant_id,cus_legion_id,cus_union_id, |
|
|
|
merchant_id,legion_id,union_id, |
|
|
|
order_type,create_by,create_date, |
|
|
|
update_date,audit_remark,audit_status, |
|
|
|
@@ -233,11 +237,11 @@ |
|
|
|
<if test=" null != activityId "> |
|
|
|
and `activity_id` = #{activityId} |
|
|
|
</if> |
|
|
|
<if test=" null != legionId "> |
|
|
|
and `legion_id` = #{legionId} |
|
|
|
<if test=" null != cusLegionId "> |
|
|
|
and `cus_legion_id` = #{cusLegionId} |
|
|
|
</if> |
|
|
|
<if test=" null != merchantId "> |
|
|
|
and `merchant_id` = #{merchantId} |
|
|
|
<if test=" null != cusMerchantId "> |
|
|
|
and `cus_merchant_id` = #{cusMerchantId} |
|
|
|
</if> |
|
|
|
<if test=" null != auditStatus "> |
|
|
|
and `audit_status` = #{auditStatus} |
|
|
|
@@ -247,7 +251,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="merchantStatistics" parameterType="com.iformall.domain.po.WxLegionActivityOrder" resultType="com.iformall.domain.vo.LegionActivityOrderTypeStatistics"> |
|
|
|
SELECT merchant_id as 'merchantId', |
|
|
|
SELECT cus_merchant_id as 'cusMerchantId', |
|
|
|
order_type as 'orderType', |
|
|
|
count(1) as 'count' |
|
|
|
FROM wx_legion_activity_order |
|
|
|
@@ -261,11 +265,11 @@ |
|
|
|
<if test=" null != activityId "> |
|
|
|
and `activity_id` = #{activityId} |
|
|
|
</if> |
|
|
|
<if test=" null != legionId "> |
|
|
|
and `legion_id` = #{legionId} |
|
|
|
<if test=" null != cusLegionId "> |
|
|
|
and `cus_legion_id` = #{cusLegionId} |
|
|
|
</if> |
|
|
|
<if test=" null != merchantId "> |
|
|
|
and `merchant_id` = #{merchantId} |
|
|
|
<if test=" null != cusMerchantId "> |
|
|
|
and `cus_merchant_id` = #{cusMerchantId} |
|
|
|
</if> |
|
|
|
<if test=" null != auditStatus "> |
|
|
|
and `audit_status` = #{auditStatus} |
|
|
|
|