【编码修改为模糊查询】

This commit is contained in:
weizhihong 2022-10-13 17:22:13 +08:00
parent 54241ee9a1
commit 76066aa2dd

View File

@ -63,7 +63,7 @@ public class ProjectServiceImpl implements ProjectService {
ProjectExample projectExample = new ProjectExample(); ProjectExample projectExample = new ProjectExample();
ProjectExample.Criteria criteria = projectExample.createCriteria().andStatusEqualTo(EFFECT_PROJECT_STATUS); ProjectExample.Criteria criteria = projectExample.createCriteria().andStatusEqualTo(EFFECT_PROJECT_STATUS);
if (!StringUtils.isEmpty(queryVO.getCode())) { if (!StringUtils.isEmpty(queryVO.getCode())) {
criteria.andCodeEqualTo(queryVO.getCode()); criteria.andCodeLike(String.format("%%%s%%", queryVO.getCode()));
} }
if (!StringUtils.isEmpty(queryVO.getName())) { if (!StringUtils.isEmpty(queryVO.getName())) {
criteria.andNameLike(String.format("%%%s%%", queryVO.getName())); criteria.andNameLike(String.format("%%%s%%", queryVO.getName()));