Commit 83c92da8 by chenxi

Merge branch 'develop'

2 parents 6b8d2f0b 1d7843c8
......@@ -330,4 +330,13 @@ public class WorkOrderController {
workOrderService.reLinkVehicle(reLinkVehicleBo);
return R.ok();
}
@ApiOperation(value = "重推工单信息到包活干系统")
@SysLog(module = MODULE, value = "重推工单信息到包活干系统", action = OperateType.QUERY)
@GetMapping("/repushToBhg")
@ApiResponses(@ApiResponse(code = 200, message = "success", response = R.class))
public R repushToBhg(@RequestParam("id") Long id) {
workOrderService.repushToBhg(id);
return R.ok();
}
}
......@@ -777,4 +777,12 @@ public class WorkOrderService extends AbstractCommonService {
}
return workOrderVehicleMapper.selectOneByOrderId(workOrderId);
}
public void repushToBhg(Long id) {
R auditR = workOrderClient.repushToBhg(id);
log.info("repushToBhg id:{} resp:{}", id, JSON.toJSONString(auditR));
if (!auditR.isSuccess()) {
throw new AdminException(auditR.getCode(), auditR.getMessage());
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!