| | |
| | | import com.zy.asrs.wms.apis.wcs.entity.request.ContainerArrivedParam;
|
| | | import com.zy.asrs.wms.apis.wcs.entity.request.TasksStatusCallbackParam;
|
| | | import com.zy.asrs.wms.apis.wcs.services.WcsApiService;
|
| | | import com.zy.asrs.wms.system.controller.BaseController;
|
| | | import io.netty.util.internal.StringUtil;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.web.bind.annotation.PostMapping;
|
| | |
| | |
|
| | | @RequestMapping("/in/stock/")
|
| | | @RestController
|
| | | public class InStockController {
|
| | | public class InStockController extends BaseController {
|
| | |
|
| | | @Autowired
|
| | | private WcsApiService wcsApiService;
|
| | |
| | | return R.error("输送线节点编码不能为空!!");
|
| | | }
|
| | |
|
| | | return wcsApiService.containerArrivedNotify(arrivedParam, "inStock");
|
| | | String str = arrivedParam.getContainerCode().trim();
|
| | | // CUT库条码T开头,截取后10位
|
| | | if (str.charAt(0) == 'T') {
|
| | | arrivedParam.setContainerCode(str.substring(str.length() - 10));
|
| | | }
|
| | | return wcsApiService.containerArrivedNotify(arrivedParam, "inStock", getHostId());
|
| | |
|
| | | }
|
| | |
|
| | |
| | | if (StringUtil.isNullOrEmpty(callbackParam.getTaskCode())) {
|
| | | return R.error("任务编码不能为空!!");
|
| | | }
|
| | | wcsApiService.receiveTaskStatus(callbackParam, "inStock");
|
| | | wcsApiService.receiveTaskStatus(callbackParam, "inStock", getHostId());
|
| | | } else {
|
| | | return R.error("上报事件类型不能为空!!");
|
| | | }
|