| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.basic.dto.ProductDto; |
| | | import com.ruoyi.basic.dto.ProductModelAnticlockwiseDto; |
| | | import com.ruoyi.basic.dto.ProductModelDto; |
| | | import com.ruoyi.basic.mapper.ProductMapper; |
| | | import com.ruoyi.basic.mapper.ProductModelMapper; |
| | |
| | | queryWrapper.eq(ProductModel::getProductId, productDto.getId()); |
| | | queryWrapper.eq(productDto.getCreateUser() != null, ProductModel::getCreateUser, productDto.getCreateUser()); |
| | | queryWrapper.eq(productDto.getDeptId() != null, ProductModel::getDeptId, productDto.getDeptId()); |
| | | queryWrapper.in(productDto.getDeptIds() != null && productDto.getDeptIds().length > 0, ProductModel::getDeptId, Arrays.asList(productDto.getDeptIds())); |
| | | if (ObjectUtils.isNotEmpty(productDto.getDeptIds())) { |
| | | queryWrapper.in( ProductModel::getDeptId, Arrays.asList(productDto.getDeptIds())); |
| | | } |
| | | return productModelMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | |
| | | throw new ServiceException("导入失败"); |
| | | } |
| | | } |
| | | |
| | | public Boolean checkProductModelExist(ProductModelAnticlockwiseDto productModelDto, String uuid) { |
| | | |
| | | |
| | | return true; |
| | | } |
| | | } |