Browse Source

导出

release_toaliyun_real
xhxu 5 years ago
parent
commit
6bed6f084a
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      mallinkService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml

+ 8
- 8
mallinkService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml View File

@@ -825,20 +825,20 @@
,(select ifnull(sum(credit.credit_num),0) amount from wx_credit_history credit ,(select ifnull(sum(credit.credit_num),0) amount from wx_credit_history credit
where credit.`tenant_id` = #{tenantInfo.tenantId} where credit.`tenant_id` = #{tenantInfo.tenantId}
and credit.credit_num > 0 and credit.c_user_id = cu.id and credit.credit_num > 0 and credit.c_user_id = cu.id
<if test=" null != startTime ">
and credit.create_date &gt;= #{startTime}
<if test=" null != basicInfo.creditStartTime ">
and credit.create_date &gt;= #{basicInfo.creditStartTime}
</if> </if>
<if test=" null != endTime">
and credit.create_date &lt; #{endTime}
<if test=" null != basicInfo.creditEndTime">
and credit.create_date &lt; #{basicInfo.creditEndTime}
</if>) as addCredit, </if>) as addCredit,
(select ifnull(sum(credit.credit_num),0) amount from wx_credit_history credit (select ifnull(sum(credit.credit_num),0) amount from wx_credit_history credit
where credit.`tenant_id` = #{tenantInfo.tenantId} where credit.`tenant_id` = #{tenantInfo.tenantId}
and credit.credit_num &lt; 0 and credit.c_user_id = cu.id and credit.credit_num &lt; 0 and credit.c_user_id = cu.id
<if test=" null != startTime ">
and credit.create_date &gt;= #{startTime}
<if test=" null != basicInfo.creditStartTime ">
and credit.create_date &gt;= #{basicInfo.creditStartTime}
</if> </if>
<if test=" null != endTime">
and credit.create_date &lt; #{endTime}
<if test=" null != basicInfo.creditEndTime">
and credit.create_date &lt; #{basicInfo.creditEndTime}
</if>) as lesCredit </if>) as lesCredit
from wx_c_user_basic_info cu from wx_c_user_basic_info cu
left join wx_c_user_tags cut on cut.`id` = cu.`tag_id` left join wx_c_user_tags cut on cut.`id` = cu.`tag_id`


Loading…
Cancel
Save