修改bug

This commit is contained in:
912114781@qq.com 2021-04-16 21:27:03 +08:00
parent 478078622b
commit cde00923ad
2 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ public class SurveyDirectoryManagerImpl extends BaseServiceImpl<SurveyDirectory,
if(entity!=null){
Integer surveyState = entity.getSurveyState();
if(surveyState!=null && !"".equals(surveyState)){
if(surveyState!=null){
criterions.add(Restrictions.eq("surveyState", surveyState));
}
String surveyName = entity.getSurveyName();

View File

@ -55,7 +55,7 @@ public class UserManagerImpl extends BaseServiceImpl<User, String> implements Us
List<Criterion> criterions=new ArrayList<Criterion>();
Integer status = entity.getStatus();
String loginName = entity.getLoginName();
if(status!=null && !"".equals(status)){
if(status!=null){
criterions.add(Restrictions.eq("status", status));
}
if(loginName!=null && !"".equals(loginName)){