| | |
| | | import com.zy.asrs.wms.apis.wcs.entity.request.RfidSingalRequest; |
| | | import com.zy.asrs.wms.apis.wcs.entity.request.TasksStatusCallbackParam; |
| | | import com.zy.asrs.wms.apis.wcs.services.WcsApiService; |
| | | import com.zy.asrs.wms.asrs.entity.param.BindPlatformParam; |
| | | import com.zy.asrs.wms.asrs.service.PlatformService; |
| | | import com.zy.asrs.wms.system.controller.BaseController; |
| | | import io.netty.util.internal.StringUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | |
| | | @Autowired |
| | | private WcsApiService wcsApiService; |
| | | |
| | | @Autowired |
| | | private PlatformService platformService; |
| | | |
| | | |
| | | /** |
| | | * 出库任务-接收回调状态接口 |
| | |
| | | if (Objects.isNull(request.get("taskNo"))) { |
| | | throw new CoolException("任务号不能为空!!"); |
| | | } |
| | | if (Objects.isNull(request.get("orderNO"))){ |
| | | if (Objects.isNull(request.get("orderNo"))){ |
| | | throw new CoolException("当前任务订单号不能为空!!"); |
| | | } |
| | | |
| | |
| | | /** |
| | | * 信号回传接口,回传电子标签状态变化内容给上游系统。 |
| | | * 当人为操作(比如拍灯,更改数字,放箱等)导致电子标签的状态和信号等发生变化、或设备本身发生异常时,ESS接收到信号后,通过该接口将信号回传给上游系统。 |
| | | * |
| | | * RFID回调接口 |
| | | * |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping("/") |
| | | public R rfidCallback(@RequestBody RfidSingalRequest request) { |
| | | if (Objects.isNull(request)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取所有集货区 |
| | | * @return |
| | | */ |
| | | @GetMapping("/all/platforms") |
| | | public R getPlatforms() { |
| | | return wcsApiService.getPlatforms(); |
| | | } |
| | | |
| | | // /** |
| | | // * 绑定订单与集货区关系 |
| | | // * @param platform |
| | | // * @return |
| | | // */ |
| | | // @PostMapping("/bind/shipping/platform") |
| | | // public R bindShippingAndPlatform(@RequestBody BindPlatformParam platform) { |
| | | // return platformService.bindShippingPlatform(platform); |
| | | // } |
| | | // |
| | | |
| | | |
| | | } |