|
|
|
@ -1532,15 +1532,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<PartInformationEntity> searchPartList(String site,String partNo, String partDesc) { |
|
|
|
LambdaQueryWrapper<PartInformationEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(PartInformationEntity::getSite,site).eq(PartInformationEntity::getActive,"Y"); |
|
|
|
if (StringUtils.hasText(partNo)){ |
|
|
|
wrapper.like(PartInformationEntity::getPartNo,partNo.trim()); |
|
|
|
} |
|
|
|
if (StringUtils.hasText(partDesc)){ |
|
|
|
wrapper.like(PartInformationEntity::getPartDesc,partDesc.trim()); |
|
|
|
} |
|
|
|
return list(wrapper); |
|
|
|
return baseMapper.queryPartByPartNo(site,partNo,partDesc); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|