商品映射新增商品货号查询
This commit is contained in:
parent
45a4166b0b
commit
41b339e825
@ -116,9 +116,13 @@ public class ProductMappingServiceImpl extends BaseServiceImpl<ProductMappingMap
|
||||
public CommonResult findPageProductMapping(ProductMapping productMapping,Integer pageNum,Integer pageSize) {
|
||||
QueryWrapper<ProductMapping> queryWrapper = new QueryWrapper<>();
|
||||
if(StringUtils.isNotEmpty(productMapping.getProductName())){
|
||||
queryWrapper.eq("product_name",productMapping.getProductName());
|
||||
queryWrapper.like("product_name",productMapping.getProductName());
|
||||
// queryWrapper.and(mapping ->mapping.like("product_name", productMapping.getProductName()));
|
||||
}
|
||||
if(StringUtils.isNotEmpty(productMapping.getProductNumber())){
|
||||
queryWrapper.eq("product_number",productMapping.getProductNumber());
|
||||
// queryWrapper.and(mapping ->mapping.like("product_name", productMapping.getProductName()));
|
||||
}
|
||||
if(ObjectUtil.isNotEmpty(productMapping.getStoreId())){
|
||||
queryWrapper.and(m->m.eq("store_id",productMapping.getStoreId()).or().eq("store_id",0));
|
||||
// queryWrapper.and(mapping ->mapping.like("product_name", productMapping.getProductName()));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user