Commit 5c8d1552 by 罗承锋

修改智能平台同步状态更新

parent 43ae62aa
......@@ -84,8 +84,8 @@ public class OrderTask {
orderHistory.setStatus("智能平台状态获取");
// 未获取到需要的状态不做更新
if ("待配送".equals(json.get("orderStatus")) || "物流配送中".equals(json.get("orderStatus"))
|| "配送成功".equals(json.get("orderStatus")) || "归档".equals(json.get("orderStatus"))) {
if ("待配送".equals(json.get("stateName")) || "物流配送中".equals(json.get("stateName"))
|| "配送成功".equals(json.get("stateName")) || "归档".equals(json.get("stateName"))) {
orderHistory.setStatus("审核通过,等待配送");
orderHistoryMapper.insert(orderHistory);
......
......@@ -88,9 +88,16 @@ public class RhZhiNenTask {
log.info("智能平台定时器下单启动");
try{
// 更新融合时间小于当前时间的未下单订单 更新为待受理
int updateNum = orderMapper.updateNosendAndRhTimeLtNowOrder();
log.info("更新待受理订单数:" + updateNum);
// 获取当天日期
Calendar now = Calendar.getInstance();
now.set(Calendar.HOUR_OF_DAY, 0);
now.set(Calendar.MINUTE, 0);
now.set(Calendar.SECOND, 0);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
int updateNum = orderMapper.updateNosendAndRhTimeLtNowOrder(sdf.format(now.getTime()));
log.info("更新待受理订单数:" + updateNum);
Calendar calendar = Calendar.getInstance();
// 查询未下单并且融合时间为今天的订单
Wrapper<Order> wrapper = new EntityWrapper<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment