| | |
| | | import cn.hutool.core.util.StrUtil; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/service/impl/WarehouseStationServiceImpl.class */ |
| | | public class WarehouseStationServiceImpl extends BaseServiceImpl<WarehouseStationMapper, WarehouseStation> implements IWarehouseStationService { |
| | | private final WarehouseGridMapper warehouseGridMapper; |
| | | private final WarehouseAreaMapper warehouseAreaMapper; |
| | |
| | | this.codeGeneratorService = codeGeneratorService; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IWarehouseStationService |
| | | |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public Boolean deleteByIds(List<Long> ids) { |
| | | |
| | |
| | | return Boolean.valueOf(removeByIds(ids)); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IWarehouseStationService |
| | | |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public BladeFile importStation(MultipartFile multipartFile) { |
| | | if (Objects.isNull(multipartFile)) { |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IWarehouseStationService |
| | | |
| | | public BladeFile exportStation(WarehouseExportVO warehouseExportVo, HttpServletResponse response) { |
| | | if (CommonGroupConstant.WARE_ROOT.equals(warehouseExportVo.getAreaId())) { |
| | | warehouseExportVo.setAreaId(null); |
| | |
| | | return Boolean.FALSE; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IWarehouseStationService |
| | | |
| | | public IPage<WarehouseStation> listPage(Query query, String keyWord, Long areaId) { |
| | | IPage<WarehouseStation> page = Condition.getPage(query); |
| | | if (CommonGroupConstant.WARE_ROOT.equals(areaId)) { |
| | |
| | | return page.setRecords(this.warehouseStationMapper.listPage(page, keyWord, areaId)); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IWarehouseStationService |
| | | |
| | | public WarehouseStation insert(WarehouseStationVO warehouseStationVO) { |
| | | warehouseStationVO.setWarehouseCode(StrUtil.isEmpty(warehouseStationVO.getWarehouseCode()) ? warehouseStationCodeGenerator(warehouseStationVO) : warehouseStationVO.getWarehouseCode()); |
| | | verifyCodeAndName(warehouseStationVO); |
| | |
| | | return warehouseStation; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IWarehouseStationService |
| | | |
| | | public WarehouseStation modifyById(WarehouseStationVO warehouseStationVO) { |
| | | verifyCodeAndName(warehouseStationVO); |
| | | WarehouseStation warehouseStation = WarehouseStationConvert.INSTANCE.convert(warehouseStationVO); |
| | |
| | | return warehouseStation; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IWarehouseStationService |
| | | |
| | | public List<WarehouseStationVO> getWarehouseStationList(Set<Long> ids) { |
| | | return ((WarehouseStationMapper) this.baseMapper).getWarehouseStationList(ids); |
| | | } |