|
|
@@ -14,6 +14,7 @@ import com.jzg.commons.entity.quote.vo.aggregated.*;
|
|
|
import com.jzg.commons.entity.vo.AdjustAllRefundVo;
|
|
|
import com.jzg.quotation.commons.constant.SpElMapping;
|
|
|
import com.jzg.quotation.commons.utils.SpElFieldExtractor;
|
|
|
+import com.jzg.quotation.summary.aop.aspect.OrderOperationLog;
|
|
|
import com.jzg.quotation.summary.constants.QuoteNumberConstant;
|
|
|
import com.jzg.quotation.summary.service.InsOrderAdjustService;
|
|
|
import com.jzg.quotation.summary.service.InsOrdersCarInfoService;
|
|
|
@@ -64,6 +65,7 @@ public class OrderOperationLogAspect {
|
|
|
// 获取方法信息和参数
|
|
|
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
|
|
Object[] args = joinPoint.getArgs();
|
|
|
+ logger.info("订单相关的参数:args=[{}]", JSONUtil.toJsonStr(args));
|
|
|
String[] paramNames = signature.getParameterNames();
|
|
|
// 设置 SpEL 上下文
|
|
|
EvaluationContext context = new StandardEvaluationContext();
|
|
|
@@ -152,10 +154,56 @@ public class OrderOperationLogAspect {
|
|
|
HttpResult<String> res = (HttpResult)result;
|
|
|
this.dealApproveOrders(res.getData(),res,log);
|
|
|
break;
|
|
|
+ // 费用调整
|
|
|
+ case 15:
|
|
|
+ logger.info("费用调整log.orderSpEl()=[{}]",log.orderSpEl());
|
|
|
+ result = joinPoint.proceed();
|
|
|
+ String orderNo01 = "001";
|
|
|
+ this.saveCostInfo(orderNo01,result,log);
|
|
|
+ break;
|
|
|
+ // 批量修改比例
|
|
|
+ case 16:
|
|
|
+ logger.info("批量修改比例.log.orderSpEl()=[{}]",log.orderSpEl());
|
|
|
+ result = joinPoint.proceed();
|
|
|
+ String orderNo02 = "002";
|
|
|
+ this.batchModify(orderNo02,result,log);
|
|
|
+ break;
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量修改比例
|
|
|
+ *
|
|
|
+ * @author lipf
|
|
|
+ * @date 2026/7/8 15:29
|
|
|
+ */
|
|
|
+ private void batchModify(String orderNo, Object result, OrderOperationLog log) {
|
|
|
+ InsOrdersTrack track = new InsOrdersTrack();
|
|
|
+ track.setModule("应收订单");
|
|
|
+ track.setSubModule("");
|
|
|
+ track.setOptType(16);
|
|
|
+ track.setOrderNo(orderNo);
|
|
|
+ track.setResult(JSONUtil.toJsonStr(result));
|
|
|
+ traceService.save(track);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 保存费用信息
|
|
|
+ * @author lipf
|
|
|
+ * @date 2026/7/8 15:28
|
|
|
+ */
|
|
|
+ private void saveCostInfo(String orderNo, Object result, OrderOperationLog log) {
|
|
|
+ InsOrdersTrack track = new InsOrdersTrack();
|
|
|
+ track.setModule("订单审核");
|
|
|
+ track.setSubModule("我的审核");
|
|
|
+ track.setOptType(15);
|
|
|
+ track.setOrderNo(orderNo);
|
|
|
+ track.setResult(JSONUtil.toJsonStr(result));
|
|
|
+ traceService.save(track);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 订单审核(通过/驳回)
|
|
|
*
|