Commit bdbeffd5 by huangjinxin

fix:创单指定工程师通知bean

1 parent cc7ef880
......@@ -266,7 +266,7 @@ public class OrderCreateServiceImpl implements OrderCreateService {
@Override
@Transactional
public Result<?> createOrder(OrderDTO.OrderCreateRequest req) {
log.info("[createOrder] req: {}", JSONObject.toJSONString(req));
log.info("[createOrder] orderId:{}, req: {}", req.getOrderId(), JSONObject.toJSONString(req));
OrderInfoEntity entity = new OrderInfoEntity();
String orderId = req.getOrderId();
if (StringUtils.isEmpty(orderId)) {
......@@ -428,8 +428,17 @@ public class OrderCreateServiceImpl implements OrderCreateService {
commonService.addOrderEvent(orderId, "", req.getSource(), "API", OrderEventEnum.createOrder.getEvent(), String.format(OrderEventEnum.createOrder.getMsg(), req.getSource(), "BEAN", req.getOrderId()), "");
if (req.getIsAppointEngineer() == 1) {
//回调改约
Boolean boo = orderInfoService.rescheduled(entity, entity, false, "", "PEA");
log.info("[createOrder] orderId:{}, 指定工程师通知bean结果: {}", entity.getOrderId(), boo);
if (!boo) {
throw new BusinessException("服务工单变更结果通知BEAN失败");
}
commonService.addOrderEvent(orderId, "", req.getSource(), "PEA", OrderEventEnum.reassignment.getEvent(), String.format(OrderEventEnum.reassignment.getMsg(), engineerName + "-" + byTeamId.getTeamName()), "");
orderInfoDao.save(entity);
}
log.info("[createOrder] orderId:{}, 结束", req.getOrderId());
return Result.success(null);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!