| | |
| | | QueryWrapper<LocItem> locItemQueryWrapper = new QueryWrapper<>(); |
| | | if (null != map.get("matnr") && !Cools.isEmpty(map.get("matnr"))){ |
| | | locItemQueryWrapper.eq("matnr_code", map.get("matnr")); |
| | | }else if(null != map.get("maktx") && !Cools.isEmpty(map.get("maktx"))){ |
| | | locItemQueryWrapper.eq("maktx", map.get("maktx")); |
| | | }else { |
| | | return R.error("物料编码为空"); |
| | | } |
| | |
| | | } |
| | | param.setType(Constants.TASK_TYPE_OUT_STOCK); |
| | | |
| | | try { |
| | | locItemService.generateTask(TaskResouceType.TASK_RESOUCE_STOCK_TYPE.val, param, getLoginUserId()); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | // try { |
| | | // locItemService.generateTask(TaskResouceType.TASK_RESOUCE_STOCK_TYPE.val, param, getLoginUserId()); |
| | | // } catch (Exception e) { |
| | | // throw new RuntimeException(e); |
| | | // } |
| | | |
| | | return R.ok("任务生成成功"); |
| | | return R.ok(param); |
| | | } |
| | | |
| | | |