【编码修改为模糊查询】
This commit is contained in:
parent
54241ee9a1
commit
76066aa2dd
@ -63,7 +63,7 @@ public class ProjectServiceImpl implements ProjectService {
|
||||
ProjectExample projectExample = new ProjectExample();
|
||||
ProjectExample.Criteria criteria = projectExample.createCriteria().andStatusEqualTo(EFFECT_PROJECT_STATUS);
|
||||
if (!StringUtils.isEmpty(queryVO.getCode())) {
|
||||
criteria.andCodeEqualTo(queryVO.getCode());
|
||||
criteria.andCodeLike(String.format("%%%s%%", queryVO.getCode()));
|
||||
}
|
||||
if (!StringUtils.isEmpty(queryVO.getName())) {
|
||||
criteria.andNameLike(String.format("%%%s%%", queryVO.getName()));
|
||||
|
Loading…
Reference in New Issue
Block a user