Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c2d7011506 |
@@ -1,7 +1,5 @@
|
||||
|
||||
package org.nl.wms.ext.acs.rest;
|
||||
|
||||
|
||||
import cn.dev33.satoken.annotation.SaIgnore;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.Api;
|
||||
@@ -10,6 +8,7 @@ import org.apache.commons.lang3.StringUtils;
|
||||
import org.nl.common.anno.Log;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.common.utils.api.ResultCode;
|
||||
import org.nl.modules.common.exception.BadRequestException;
|
||||
import org.nl.modules.common.exception.BizCoreException;
|
||||
import org.nl.wms.ext.acs.service.AcsToWmsService;
|
||||
import org.nl.wms.product_manage.sch.tasks.TaskScheduleService;
|
||||
@@ -53,7 +52,7 @@ public class AcsToWmsController {
|
||||
public ResponseEntity<Object> receiveTaskIdToCacheLine(@RequestBody JSONObject whereJson) {
|
||||
//参数校验
|
||||
if(StringUtils.isBlank(whereJson.getString("task_code")) || StringUtils.isBlank(whereJson.getString("position_code"))) {
|
||||
throw new BizCoreException(ResultCode.VALIDATE_FAILED);
|
||||
throw new BadRequestException("任务id或点位编码缺失!");
|
||||
}
|
||||
return new ResponseEntity<>(acsToWmsService.receiveTaskIdToCacheLine(whereJson), HttpStatus.OK);
|
||||
}
|
||||
@@ -90,8 +89,6 @@ public class AcsToWmsController {
|
||||
return new ResponseEntity<>(acsToWmsService.feedDeviceStatusType(param), HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@PostMapping("/feedDeviceQty")
|
||||
@ApiOperation("向wms反馈设备实时数量")
|
||||
@SaIgnore
|
||||
@@ -118,7 +115,6 @@ public class AcsToWmsController {
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/feedOrderRealQty")
|
||||
@Log("向wms反实施数量")
|
||||
@ApiOperation("向wms反订单实施数量")
|
||||
@@ -128,7 +124,6 @@ public class AcsToWmsController {
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/taskPublish")
|
||||
@Log("taskPublish")
|
||||
@ApiOperation("taskPublish")
|
||||
|
||||
Reference in New Issue
Block a user