|
|
@@ -1,6 +1,7 @@
|
|
|
package com.jzg.organization.aop;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.json.JSONConfig;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.jzg.commons.core.page.HttpResult;
|
|
|
import com.jzg.commons.entity.finance.vo.BatchModifyVo;
|
|
|
@@ -8,7 +9,6 @@ import com.jzg.commons.entity.orders.po.InsOrders;
|
|
|
import com.jzg.commons.entity.orders.po.InsOrdersCarInfo;
|
|
|
import com.jzg.commons.entity.orders.po.InsOrdersTrack;
|
|
|
import com.jzg.commons.entity.quote.vo.aggregated.QuoteEchoVo;
|
|
|
-import com.jzg.commons.entity.vo.PtlAgreementCostRatioVo;
|
|
|
import com.jzg.commons.entity.vo.QuestionOrder;
|
|
|
import com.jzg.commons.util.JsonDiffUtil;
|
|
|
import com.jzg.commons.util.OrderComponts;
|
|
|
@@ -146,6 +146,8 @@ public class OrderOperationLogAspect {
|
|
|
logger.info("批量修改没有传入订单号");
|
|
|
return;
|
|
|
}
|
|
|
+ // 创建 JSONConfig 并设置日期格式, 会把LocalDate 和LocalDateTime 都转换为 包含时分秒的格式(后续有了更好的办法再优化)
|
|
|
+ JSONConfig jsonConfig = JSONConfig.create().setDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
for (String orderNo : orderNos) {
|
|
|
InsOrdersTrack track = new InsOrdersTrack();
|
|
|
track.setModule(log.module());
|
|
|
@@ -154,8 +156,7 @@ public class OrderOperationLogAspect {
|
|
|
track.setOptContent(log.description());
|
|
|
QuoteEchoVo detailVoOld = oldOrders.get(orderNo);
|
|
|
QuoteEchoVo detailVoNew = newOrders.get(orderNo);
|
|
|
- Map<String, List<String>> diffMap = JsonDiffUtil.compareJson(JSONUtil.toJsonStr(detailVoOld), JSONUtil.toJsonStr(detailVoNew), new HashSet<>());
|
|
|
-
|
|
|
+ Map<String, List<String>> diffMap = JsonDiffUtil.compareJson(JSONUtil.toJsonStr(detailVoOld,jsonConfig), JSONUtil.toJsonStr(detailVoNew,jsonConfig), new HashSet<>());
|
|
|
if(CollUtil.isNotEmpty(diffMap)){
|
|
|
List<String> oldItems = new ArrayList<>();
|
|
|
List<String> newItems = new ArrayList<>();
|