| | |
| | | private WrkMastLogService wrkMastLogService; |
| | | @Resource |
| | | private WrkDetlLogService wrkDetlLogService; |
| | | @Autowired |
| | | private BasAreasService basAreasService; |
| | | |
| | | @RequestMapping(value = "/locMast/init/pwd") |
| | | public R locMastInitPwd(@RequestParam(required = false) String pwd) { |
| | |
| | | @RequestParam Map<String, Object> param) { |
| | | excludeTrash(param); |
| | | EntityWrapper<LocMast> wrapper = new EntityWrapper<>(); |
| | | wrapper.eq("frozen", 0) |
| | | .eq("deleted", 0); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | |
| | | if (Cools.isEmpty(basWhsType)) { |
| | | return R.error("库型不存在!!!"); |
| | | } |
| | | |
| | | if (Objects.isNull(param.getAreaId())) { |
| | | throw new CoolException("库区ID不能为空!!!"); |
| | | } |
| | | BasAreas basAreas = basAreasService.selectById(param.getAreaId()); |
| | | if (Cools.isEmpty(basAreas)) { |
| | | return R.error("库区不存在!!!"); |
| | | } |
| | | |
| | | for (int r = param.getStartRow(); r <= param.getEndRow(); r++) { |
| | | for (int b = param.getStartBay(); b <= param.getEndBay(); b++) { |
| | | for (int l = param.getStartLev(); l <= param.getEndLev(); l++) { |
| | |
| | | locMast.setAppeUser(getUserId()); |
| | | locMast.setAppeTime(now); |
| | | locMast.setModiUser(getUserId()); |
| | | locMast.setAreaId(basAreas.getId()); |
| | | locMast.setAreaName(basAreas.getName()); |
| | | locMast.setModiTime(now); |
| | | locMast.setWhsType(basWhsType.getId()); |
| | | list.add(locMast); |