Просмотр исходного кода

qiandao sql

release_toaliyun_real
xhxu 5 лет назад
Родитель
Сommit
c8380ff905
3 измененных файлов: 6 добавлений и 3 удалений
  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 Просмотреть файл

@@ -130,7 +130,9 @@ public class WxCUserBasicSignServiceImpl implements WxCUserBasicSignService {
calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.MINUTE, 0);
calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.SECOND, 0);
Date today = calendar.getTime();//今天零点 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();//明天零点 Date tomorrow =calendar.getTime();//明天零点


record.setStartDate(today); record.setStartDate(today);


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

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


<if test=" null != startDate and null != endDate "> <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>
<if test=" null != sendMsg "> <if test=" null != sendMsg ">


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

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


<if test=" null != ids "> <if test=" null != ids ">


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