|
@@ -226,4 +226,25 @@ public class BackgroundProcessingController extends BaseRESTfulController {
|
|
|
}
|
|
|
return success(1);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "强制修改运输订单状态接口")
|
|
|
+ @PostMapping("modifyOrderStatus")
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public RESTfulResult modifyOrderStatus(@RequestBody(required = false) Map<String,Object> map) throws Exception{
|
|
|
+ if (map.get("orderNumber") != null && map.get("orderStatus") != null && map.get("toOrderStatus") != null) {
|
|
|
+ Map<String,Object> oMap = null;
|
|
|
+ try {
|
|
|
+ oMap = backgroundProcessingMapper.getOrderInfoByOrderStatus(map);
|
|
|
+ } catch (Exception e) {
|
|
|
+ return failed("修改失败:订单编号不唯一");
|
|
|
+ }
|
|
|
+ if(oMap == null || oMap.get("orderId") == null){
|
|
|
+ return failed("修改失败:未找到运输订单!");
|
|
|
+ }
|
|
|
+ oMap.put("toOrderStatus", map.get("toOrderStatus"));
|
|
|
+ oMap.put("remark","修改运输订单状态为" + map.get("toOrderStatus") + ";原订单状态为" + map.get("orderStatus"));
|
|
|
+ backgroundProcessingMapper.modifyOrderStatus(oMap);
|
|
|
+ }
|
|
|
+ return success(1);
|
|
|
+ }
|
|
|
}
|