xhxu 5 лет назад
Родитель
Сommit
6bed6f084a
1 измененных файлов: 8 добавлений и 8 удалений
  1. +8
    -8
      mallinkService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml

+ 8
- 8
mallinkService/src/main/resources/mapper/WxCUserBasicInfoMapper.xml Просмотреть файл

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


Загрузка…
Отмена
Сохранить