|
@ -287,4 +287,42 @@ public class ServiceNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
return "上传失败";
|
|
|
}
|
|
|
|
|
|
|
|
|
@PostMapping(value = BaseRequestMapping.BaseDevice.updateShipmentLogPic)
|
|
|
@ApiOperation(value = "更新出货单信息-出货图片")
|
|
|
public String updateShipmentLogPic(
|
|
|
@ApiParam(name = "shipmentLogId", value = "出货单id", required = true)
|
|
|
@RequestParam(value = "shipmentLogId", required = true) String shipmentLogId,
|
|
|
@ApiParam(name = "picPath", value = "图片路径", required = true)
|
|
|
@RequestParam(value = "picPath") String picPath) throws Exception {
|
|
|
if (StringUtils.isEmpty(shipmentLogId) || StringUtils.isEmpty(picPath)){
|
|
|
return "参数缺失";
|
|
|
}
|
|
|
if (!deviceService.updateShipmentLogPic(shipmentLogId, picPath)) {
|
|
|
return "更新失败";
|
|
|
}
|
|
|
return "更新成功";
|
|
|
}
|
|
|
|
|
|
|
|
|
@PostMapping(value = BaseRequestMapping.BaseDevice.updateDeviceCargoState)
|
|
|
@ApiOperation(value = "更新设备货道状态")
|
|
|
public String updateDeviceCargoState(
|
|
|
@ApiParam(name = "equNum", value = "设备编号", required = true)
|
|
|
@RequestParam(value = "equNum", required = true) String equNum,
|
|
|
@ApiParam(name = "layerNo", value = "层", required = true)
|
|
|
@RequestParam(value = "layerNo") String layerNo,
|
|
|
@ApiParam(name = "wayerNo", value = "列", required = true)
|
|
|
@RequestParam(value = "wayerNo") String wayerNo,
|
|
|
@ApiParam(name = "state", value = "目标货道状态", required = true)
|
|
|
@RequestParam(value = "state") String state) throws Exception {
|
|
|
if (StringUtils.isEmpty(equNum) || StringUtils.isEmpty(layerNo) || StringUtils.isEmpty(wayerNo) || StringUtils.isEmpty(state)){
|
|
|
return "参数缺失";
|
|
|
}
|
|
|
if (!deviceService.updateDeviceCargoState(equNum, layerNo, wayerNo, state)) {
|
|
|
return "更新失败";
|
|
|
}
|
|
|
return "更新成功";
|
|
|
}
|
|
|
|
|
|
}
|