|
@@ -209,28 +209,9 @@ public class PmsProductServiceImpl implements PmsProductService {
|
|
|
@Override
|
|
|
public List<PmsProduct> list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum) {
|
|
|
PageHelper.startPage(pageNum, pageSize);
|
|
|
- PmsProductExample productExample = new PmsProductExample();
|
|
|
- PmsProductExample.Criteria criteria = productExample.createCriteria();
|
|
|
- criteria.andDeleteStatusEqualTo(0);
|
|
|
- if (productQueryParam.getPublishStatus() != null) {
|
|
|
- criteria.andPublishStatusEqualTo(productQueryParam.getPublishStatus());
|
|
|
- }
|
|
|
- if (productQueryParam.getVerifyStatus() != null) {
|
|
|
- criteria.andVerifyStatusEqualTo(productQueryParam.getVerifyStatus());
|
|
|
- }
|
|
|
- if (!StringUtils.isEmpty(productQueryParam.getKeyword())) {
|
|
|
- criteria.andNameLike("%" + productQueryParam.getKeyword() + "%");
|
|
|
- }
|
|
|
- if (!StringUtils.isEmpty(productQueryParam.getProductSn())) {
|
|
|
- criteria.andProductSnEqualTo(productQueryParam.getProductSn());
|
|
|
- }
|
|
|
- if (productQueryParam.getBrandId() != null) {
|
|
|
- criteria.andBrandIdEqualTo(productQueryParam.getBrandId());
|
|
|
- }
|
|
|
- if (productQueryParam.getProductCategoryId() != null) {
|
|
|
- criteria.andProductCategoryIdEqualTo(productQueryParam.getProductCategoryId());
|
|
|
- }
|
|
|
- return productMapper.selectByExample(productExample);
|
|
|
+
|
|
|
+ return productDao.list(productQueryParam);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|