| | |
| | | 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 lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/out/stock/") |
| | | public class OutStockController { |
| | | public class OutStockController extends BaseController { |
| | | |
| | | @Autowired |
| | | private WcsApiService wcsApiService; |
| | |
| | | if (StringUtil.isNullOrEmpty(callbackParam.getTaskCode())) { |
| | | return R.error("任务编码不能为空!!"); |
| | | } |
| | | wcsApiService.receiveTaskStatus(callbackParam, "outStock"); |
| | | wcsApiService.receiveTaskStatus(callbackParam, "outStock", getHostId()); |
| | | } else { |
| | | return R.error("上报事件类型不能为空!!"); |
| | | } |
| | |
| | | return R.error("输送线节点编码不能为空!!"); |
| | | } |
| | | |
| | | return wcsApiService.containerArrivedNotify(arrivedParam, "outStock"); |
| | | return wcsApiService.containerArrivedNotify(arrivedParam, "outStock", getHostId()); |
| | | |
| | | } |
| | | |