|
@@ -239,4 +239,19 @@ public class ZEngineeringIndustryServiceImpl implements IZEngineeringIndustrySer
|
|
|
return zEngineeringIndustryVo;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public TableDataInfo<ZEngineeringIndustryVo> queryNameByType(ZEngineeringIndustryBo bo, PageQuery pageQuery) {
|
|
|
+ LambdaQueryWrapper<ZEngineeringIndustry> lqw = buildListByType(bo);
|
|
|
+ Page<ZEngineeringIndustryVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
|
|
+ return TableDataInfo.build(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ private LambdaQueryWrapper<ZEngineeringIndustry> buildListByType(ZEngineeringIndustryBo bo) {
|
|
|
+ LambdaQueryWrapper<ZEngineeringIndustry> lqw = Wrappers.lambdaQuery();
|
|
|
+ lqw.eq(StringUtils.isNotBlank(bo.getEnginType()), ZEngineeringIndustry::getEnginType, bo.getEnginType());
|
|
|
+ lqw.eq(StringUtils.isNotBlank(bo.getType()), ZEngineeringIndustry::getType, bo.getType());
|
|
|
+ return lqw;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|