Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop
| | |
| | | "sys_host", |
| | | "sys_user_role", |
| | | "sys_role_menu", |
| | | "sys_menu" |
| | | "sys_menu", |
| | | "man_loc_type_rela" |
| | | ).contains(tableName); |
| | | } |
| | | }; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (!this.saveBatch(list)) { |
| | | throw new CoolException("库位初始化失败!!"); |
| | | } |
| | | List<LocTypeRela> locTypeRelas = new ArrayList<>(); |
| | | for (Long typeId : param.getTypeIds()) { |
| | | for (Loc loc : list) { |
| | | LocTypeRela typeRela = new LocTypeRela(); |
| | | typeRela.setLocId(loc.getId()).setTypeId(typeId); |
| | | locTypeRelas.add(typeRela); |
| | | } |
| | | } |
| | | if (!locTypeRelaService.saveBatch(locTypeRelas)) { |
| | | throw new CoolException("库位类型关联失败!!"); |
| | | } |
| | | return R.ok("初始化成功!!"); |
| | | } |
| | | |