Commit 1d7843c8 by 谢海旭

新增重推工单信息到包活干系统接口

1 parent 6913e50a
...@@ -330,4 +330,13 @@ public class WorkOrderController { ...@@ -330,4 +330,13 @@ public class WorkOrderController {
workOrderService.reLinkVehicle(reLinkVehicleBo); workOrderService.reLinkVehicle(reLinkVehicleBo);
return R.ok(); 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 { ...@@ -777,4 +777,12 @@ public class WorkOrderService extends AbstractCommonService {
} }
return workOrderVehicleMapper.selectOneByOrderId(workOrderId); 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!