|
|
|
@ -154,6 +154,40 @@ public class CarsLoadController {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
@PostMapping("/editNodeInfo") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "查询编辑配载计划详情", notes = "传入loadCarsDTO") |
|
|
|
|
public R editNodeInfo(@RequestBody LoadCarsDTO loadCarsDTO) { |
|
|
|
|
String method = "############editNodeInfo: "; |
|
|
|
|
log.info(method+"请求参数{}",loadCarsDTO); |
|
|
|
|
Long loadId = loadCarsDTO.getLoadId(); |
|
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
|
|
//当前登录人选择的仓库
|
|
|
|
|
// BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
|
|
|
|
|
// if(Objects.isNull(myCurrentWarehouse)){
|
|
|
|
|
// log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse);
|
|
|
|
|
// return R.fail(400,"多仓权限无法操作,请选择仓库");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if(Objects.isNull(loadId)){ |
|
|
|
|
log.warn(method+"配载id为空 loadId={}",loadId); |
|
|
|
|
return R.fail(400,"配载id为空"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return carsLoadService.selectEditDetailByLoadIdNoXz(loadId); |
|
|
|
|
}catch (CustomerException e){ |
|
|
|
|
log.error(e.message,e); |
|
|
|
|
return R.fail(e.code,e.message); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.error(method+"系统异常",e); |
|
|
|
|
return R.fail(500,"系统异常"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
@PostMapping("/updateCarsLoadBasicData") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
@ -1219,12 +1253,12 @@ public class CarsLoadController {
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
|
|
//当前登录人选择的仓库
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
|
log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); |
|
|
|
|
return R.fail(400,"多仓权限无法操作,请选择仓库"); |
|
|
|
|
} |
|
|
|
|
loadCarsDTO.setWarehouseId(myCurrentWarehouse.getId()); |
|
|
|
|
// BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse();
|
|
|
|
|
// if(Objects.isNull(myCurrentWarehouse)){
|
|
|
|
|
// log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse);
|
|
|
|
|
// return R.fail(400,"多仓权限无法操作,请选择仓库");
|
|
|
|
|
// }
|
|
|
|
|
// loadCarsDTO.setWarehouseId(myCurrentWarehouse.getId());
|
|
|
|
|
|
|
|
|
|
if(Objects.isNull(loadId)){ |
|
|
|
|
log.warn(method+"配载计划id为空 loadId={}",loadId); |
|
|
|
|