提交代码

master
胡锐 1 year ago
parent 9236a1b324
commit 97e40810dc
  1. 2
      schedule/src/main/java/com/hfkj/schedule/TradeOrderSchedule.java
  2. 4
      service/src/main/java/com/hfkj/service/impl/BsTradeOrderServiceImpl.java

@ -60,7 +60,7 @@ public class TradeOrderSchedule {
createTime.add(Calendar.MINUTE, -10); createTime.add(Calendar.MINUTE, -10);
Map<String,Object> param = new HashMap<>(); Map<String,Object> param = new HashMap<>();
param.put("createTimeS", createTime.getTimeInMillis()); param.put("createTimeE", createTime.getTimeInMillis());
param.put("status", TradeOrderStatusEnum.status1.getNumber()); param.put("status", TradeOrderStatusEnum.status1.getNumber());
param.put("createType", TradeOrderCreateTypeEnum.type1.getCode()); param.put("createType", TradeOrderCreateTypeEnum.type1.getCode());
List<BsTradeOrder> orderList = tradeOrderService.getTradeOrderList(param); List<BsTradeOrder> orderList = tradeOrderService.getTradeOrderList(param);

@ -582,6 +582,10 @@ public class BsTradeOrderServiceImpl implements BsTradeOrderService {
criteria.andCreateTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "createTimeS"))); criteria.andCreateTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "createTimeS")));
} }
if (MapUtils.getLong(param, "createTimeE") != null) {
criteria.andCreateTimeLessThanOrEqualTo(new Date(MapUtils.getLong(param, "createTimeE")));
}
if (MapUtils.getLong(param, "payTimeS") != null) { if (MapUtils.getLong(param, "payTimeS") != null) {
criteria.andPayTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "payTimeS"))); criteria.andPayTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "payTimeS")));
} }

Loading…
Cancel
Save