Browse Source

qiandao sql

release_toaliyun_real
xhxu 5 years ago
parent
commit
c8380ff905
3 changed files with 6 additions and 3 deletions
  1. +3
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicSignServiceImpl.java
  2. +2
    -1
      mallinkService/src/main/resources/mapper/WxActivityMapper.xml
  3. +1
    -1
      mallinkService/src/main/resources/mapper/WxCUserBasicSignMapper.xml

+ 3
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicSignServiceImpl.java View File

@@ -130,7 +130,9 @@ public class WxCUserBasicSignServiceImpl implements WxCUserBasicSignService {
calendar.set(Calendar.MINUTE, 0);
calendar.set(Calendar.SECOND, 0);
Date today = calendar.getTime();//今天零点
calendar.set(DAY_OF_MONTH,calendar.get(DAY_OF_MONTH) +1);
calendar.set(Calendar.HOUR_OF_DAY, 23);
calendar.set(Calendar.MINUTE, 59);
calendar.set(Calendar.SECOND, 59);
Date tomorrow =calendar.getTime();//明天零点

record.setStartDate(today);


+ 2
- 1
mallinkService/src/main/resources/mapper/WxActivityMapper.xml View File

@@ -94,7 +94,8 @@
<!-- </if>-->

<if test=" null != startDate and null != endDate ">
and `activity_start_time` &gt;= #{startDate} and `activity_end_time` &lt; #{endDate}
and ((`activity_start_time` &gt;= #{startDate} and `activity_start_time` &lt;= #{endDate})
or (`activity_end_time` &gt;= #{startDate} and `activity_end_time` &lt;= #{endDate}))
</if>
<if test=" null != sendMsg ">


+ 1
- 1
mallinkService/src/main/resources/mapper/WxCUserBasicSignMapper.xml View File

@@ -54,7 +54,7 @@
and `signin_date` &gt;= #{startDate}
</if>
<if test=" null != endDate">
and `signin_date` &lt; #{endDate}
and `signin_date` &lt;= #{endDate}
</if>

<if test=" null != ids ">


Loading…
Cancel
Save