|  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ApiService apiService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/test") | 
|---|
|  |  |  | public R test() { | 
|---|
|  |  |  | return R.ok(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 生成入库订单 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | if (Cools.isEmpty(param.getOrderType())) { | 
|---|
|  |  |  | return R.error("单据类型[orderType]不能为空"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (Cools.isEmpty(param.getOrderDetails())) { | 
|---|
|  |  |  | return R.error("单据明细[orderDetails]不能为空"); | 
|---|
|  |  |  | if (Cools.isEmpty(param.getMats())) { | 
|---|
|  |  |  | return R.error("物料[mats]不能为空"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | param.setHostId(hostKey.getHostId()); | 
|---|
|  |  |  | apiService.generateOrderPakIn(param); | 
|---|
|  |  |  | 
|---|
|  |  |  | if (Cools.isEmpty(param.getOrderType())) { | 
|---|
|  |  |  | return R.error("单据类型[orderType]不能为空"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (Cools.isEmpty(param.getOrderDetails())) { | 
|---|
|  |  |  | return R.error("单据明细[orderDetails]不能为空"); | 
|---|
|  |  |  | if (Cools.isEmpty(param.getMats())) { | 
|---|
|  |  |  | return R.error("物料[mats]不能为空"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | param.setHostId(hostKey.getHostId()); | 
|---|
|  |  |  | apiService.generateOrderPakOut(param); | 
|---|