修改话费查询bug

dev-discount
袁野 2 years ago
parent b54c4e2678
commit 7ed5736e25
  1. 4
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java

@ -165,7 +165,8 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
DateUtil.format(MapUtils.getString(map, "createTimeS"), "yyyy-MM-dd HH:mm:ss"),
DateUtil.format(MapUtils.getString(map, "createTimeE"), "yyyy-MM-dd HH:mm:ss"));
}
if (MapUtils.getBoolean(map , "whetherTimeOut")) {
if (MapUtils.getBoolean(map , "whetherTimeOut") != null && MapUtils.getBoolean(map , "whetherTimeOut")) {
// 获取当前时间
Date date= new Date();
Calendar calendar = new GregorianCalendar();
@ -175,7 +176,6 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
// 这个时间就是日期往后推一天的结果
date = calendar.getTime();
criteria.andCreateTimedLessThan(date);
}

Loading…
Cancel
Save