日期格式问题
This commit is contained in:
@@ -2,6 +2,7 @@ package com.czg.service.order.service.impl;
|
|||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
import cn.hutool.core.date.LocalDateTimeUtil;
|
||||||
import cn.hutool.core.thread.ThreadUtil;
|
import cn.hutool.core.thread.ThreadUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
@@ -280,7 +281,7 @@ public class PrintMachineLogServiceImpl extends ServiceImpl<PrintMachineLogMappe
|
|||||||
JSONObject jsonObject = new JSONObject();
|
JSONObject jsonObject = new JSONObject();
|
||||||
jsonObject.put("id", config.getId());
|
jsonObject.put("id", config.getId());
|
||||||
jsonObject.put("name", config.getName());
|
jsonObject.put("name", config.getName());
|
||||||
jsonObject.put("time", LocalDateTime.now());
|
jsonObject.put("time", LocalDateTimeUtil.formatNormal(LocalDateTime.now()));
|
||||||
orderInfo.upPrintStatus(jsonObject, isPrintSuccess);
|
orderInfo.upPrintStatus(jsonObject, isPrintSuccess);
|
||||||
orderInfoService.update(orderInfo, query().eq(OrderInfo::getId, orderId));
|
orderInfoService.update(orderInfo, query().eq(OrderInfo::getId, orderId));
|
||||||
return orderInfo;
|
return orderInfo;
|
||||||
@@ -305,7 +306,7 @@ public class PrintMachineLogServiceImpl extends ServiceImpl<PrintMachineLogMappe
|
|||||||
if (entity.getFailFlag() == 0) {
|
if (entity.getFailFlag() == 0) {
|
||||||
entity.setRespMsg("0_离线(设备上线后自动补打)");
|
entity.setRespMsg("0_离线(设备上线后自动补打)");
|
||||||
} else {
|
} else {
|
||||||
entity.setRespMsg(StrUtil.concat(true, "打印失败,", "_", entity.getRespMsg()));
|
entity.setRespMsg(entity.getRespMsg());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user