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

[砍价券][修改]:砍价券过期修改

release_toaliyun_real
Stormeye Wu 7 лет назад
Родитель
Сommit
e1a837b6e9
2 измененных файлов: 7 добавлений и 7 удалений
  1. +2
    -2
      mallinkSchedule/src/main/java/com/iformall/schedule/OrderExpiringSchedule.java
  2. +5
    -5
      mallinkService/src/main/resources/mapper/WxOrderMapper.xml

+ 2
- 2
mallinkSchedule/src/main/java/com/iformall/schedule/OrderExpiringSchedule.java Просмотреть файл

@@ -31,8 +31,8 @@ public class OrderExpiringSchedule {
WxOrderService wxOrderService;


@Scheduled(cron = "0 */5 * * * *?") // 每5分钟检查一次
//@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次
//@Scheduled(cron = "0 */5 * * * *?") // 每5分钟检查一次
@Scheduled(cron = "*/10 * * * * ?") // 测试10秒中一次
public void orderExpireSchedule() {

Map dateMap = new HashMap();


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

@@ -135,10 +135,10 @@
AND type = #{type,jdbcType=TINYINT}
</if>
<if test="startDate != null">
AND `create_date` &gt; #{startDate,jdbcType=TIMESTAMP}
AND unix_timestamp(`create_date`) &gt; unix_timestamp(#{startDate,jdbcType=TIMESTAMP})
</if>
<if test="endDate != null">
AND `create_date` &lt; #{endDate,jdbcType=TIMESTAMP}
AND unix_timestamp(`create_date`) &lt; unix_timestamp(#{endDate,jdbcType=TIMESTAMP})
</if>
</select>

@@ -146,15 +146,15 @@
select
<include refid="allColumns"/>
from wx_order
where order_status = 7 and press_end_date is not null
where press_end_date is not null and (order_status = 6 or order_status = 7)
<if test="type != null">
AND type = #{type,jdbcType=TINYINT}
</if>
<if test="startDate != null">
AND `create_date` &gt; #{startDate,jdbcType=TIMESTAMP}
AND unix_timestamp(`create_date`) &gt; unix_timestamp(#{startDate,jdbcType=TIMESTAMP})
</if>
<if test="endDate != null">
AND `press_end_date` &lt; #{endDate,jdbcType=TIMESTAMP}
AND unix_timestamp(`press_end_date`) &lt; unix_timestamp(#{endDate,jdbcType=TIMESTAMP})
</if>
</select>



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