|
|
@@ -15,6 +15,7 @@ import com.jzg.commons.entity.quote.vo.QuoteVo;
|
|
|
import com.jzg.commons.entity.quote.vo.aggregated.*;
|
|
|
import com.jzg.commons.entity.vo.AdjustAllRefundVo;
|
|
|
import com.jzg.commons.entity.vo.PtlAgreementCostRatioVo;
|
|
|
+import com.jzg.commons.entity.vo.QuestionOrder;
|
|
|
import com.jzg.quotation.commons.constant.SpElMapping;
|
|
|
import com.jzg.quotation.commons.utils.SpElFieldExtractor;
|
|
|
import com.jzg.quotation.summary.aop.aspect.OrderOperationLog;
|
|
|
@@ -171,10 +172,47 @@ public class OrderOperationLogAspect {
|
|
|
result = joinPoint.proceed();
|
|
|
this.batchModify(result,log, batchModifyVo);
|
|
|
break;
|
|
|
+ // 设为疑问订单
|
|
|
+ case 17:
|
|
|
+ logger.info("设置为疑问订单.log.orderSpEl()=[{}]",log.orderSpEl());
|
|
|
+ QuestionOrder questionOrder = parser.parseExpression(log.orderSpEl()).getValue(context, QuestionOrder.class);
|
|
|
+ result = joinPoint.proceed();
|
|
|
+ this.updateToQuestionOrder(result,log, questionOrder);
|
|
|
+ break;
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 设置为疑问订单
|
|
|
+ *
|
|
|
+ * @author lipf
|
|
|
+ * @date 2026/7/16 16:35
|
|
|
+ */
|
|
|
+ private void updateToQuestionOrder(Object result, OrderOperationLog log, QuestionOrder questionOrder) {
|
|
|
+ logger.info("设置为疑问订单。questionOrder=[{}]", JSONUtil.toJsonStr(questionOrder));
|
|
|
+ InsOrdersTrack track = new InsOrdersTrack();
|
|
|
+ track.setModule(log.module());
|
|
|
+ track.setSubModule(log.subModule());
|
|
|
+ track.setOptType(log.optType().getCode());
|
|
|
+ track.setOptContent(log.description());
|
|
|
+ track.setChangeAfter(JSONUtil.toJsonStr(questionOrder));
|
|
|
+ track.setResult(JSONUtil.toJsonStr(result));
|
|
|
+ InsOrders insOrders = orderService.getById(questionOrder.getOrderNo());
|
|
|
+ if(insOrders != null){
|
|
|
+ InsOrdersCarInfo carInfo = carInfoService.getByOrderId(insOrders.getId());
|
|
|
+ track.setLicenseNo(carInfo.getLicenseNo());
|
|
|
+ track.setCompanyId(insOrders.getCompanyId());
|
|
|
+ // track.setResult(result.getMsg());
|
|
|
+ }else{
|
|
|
+ track.setResult("要设置位疑问订单的订单不存在");
|
|
|
+ }
|
|
|
+ track.setStatus(1);
|
|
|
+ track.setOrderNo(questionOrder.getOrderNo());
|
|
|
+ traceService.save(track);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 批量修改比例
|
|
|
*
|