| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.common.openapi.entity.HostKey; |
| | | import com.zy.asrs.common.openapi.entity.param.GenerateOrderPakInParam; |
| | | import com.zy.asrs.common.openapi.service.ApiService; |
| | | import com.zy.asrs.common.openapi.service.HostKeyService; |
| | | import com.zy.asrs.common.web.BaseController; |
| | | import com.zy.asrs.common.wms.entity.DocType; |
| | |
| | | private HostKeyService hostKeyService; |
| | | @Autowired |
| | | private DocTypeService docTypeService; |
| | | @Autowired |
| | | private ApiService apiService; |
| | | |
| | | @PostMapping("/generateOrderPakIn") |
| | | public synchronized R generateOrderPakIn(@RequestHeader(required = false) String appkey, |
| | | @RequestBody GenerateOrderPakInParam param) { |
| | | auth(appkey, param, true); |
| | | HostKey hostKey = auth(appkey, param, true); |
| | | if (Cools.isEmpty(param)) { |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | |
| | | if (Cools.isEmpty(param.getOrderDetails())) { |
| | | return R.error("单据明细[orderDetails]不能为空"); |
| | | } |
| | | // openService.pakinOrderCreate(param); |
| | | param.setHostId(hostKey.getHostId()); |
| | | apiService.generateOrderPakIn(param); |
| | | return R.ok(); |
| | | } |
| | | |