| | |
| | | boolean update = this.update(new LambdaUpdateWrapper<Loc>() |
| | | .in(Loc::getId, locs.getId()) |
| | | .eq(Loc::getStatus, 1) |
| | | .set(!Objects.isNull(loc.getAreaId()), Loc::getAreaId, loc.getAreaId()) |
| | | .set(!Objects.isNull(loc.getWarehouseId()), Loc::getWarehouseId, loc.getWarehouseId()) |
| | | .set(!Objects.isNull(loc.getUseStatus()), Loc::getUseStatus, loc.getUseStatus()) |
| | | .set(!Objects.isNull(loc.getType()), Loc::getType, loc.getType()) |
| | | .set(!Objects.isNull(loc.getLength()), Loc::getLength, loc.getLength()) |
| | |
| | | .setCol(b) |
| | | .setLev(l) |
| | | .setAreaId(param.getAreaId()) |
| | | .setWarehouseId(warehouseAreas.getWareId()) |
| | | .setWarehouseId(warehouseAreas.getWarehouseId()) |
| | | .setType(param.getType()); |
| | | |
| | | list.add(loc); |
| | |
| | | relas.add(typeRela); |
| | | }); |
| | | if (!locTypeRelaService.saveOrUpdateBatch(relas)) { |
| | | throw new CoolException("库位关联关系保存成功!!"); |
| | | throw new CoolException("库位关联关系保存失败!!"); |
| | | } |
| | | return true; |
| | | } |
| | |
| | | relas.add(typeRela); |
| | | }); |
| | | if (!locTypeRelaService.saveOrUpdateBatch(relas)) { |
| | | throw new CoolException("库位关联关系保存成功!!"); |
| | | throw new CoolException("库位关联关系保存失败!!"); |
| | | } |
| | | return false; |
| | | return true; |
| | | } |
| | | } |