commit
This commit is contained in:
+8
-6
@@ -7,6 +7,8 @@ import lombok.EqualsAndHashCode;
|
||||
import org.nutz.dao.Cnd;
|
||||
import org.nutz.dao.util.cri.SqlExpressionGroup;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @version 1.0
|
||||
* @Author zzr
|
||||
@@ -22,11 +24,11 @@ public class MemberApplyPageForm extends PageForm {
|
||||
|
||||
private String unitId;
|
||||
|
||||
private String userState;
|
||||
private List<String> userStates;
|
||||
|
||||
private String personType;
|
||||
private List<String> personTypes;
|
||||
|
||||
private String preparedBy;
|
||||
private List<String> preparedBys;
|
||||
|
||||
public static void buildSearch(Cnd cnd, MemberApplyPageForm pageForm) {
|
||||
if (cnd == null) {
|
||||
@@ -40,8 +42,8 @@ public class MemberApplyPageForm extends PageForm {
|
||||
}
|
||||
cnd.andEX("info.unionId","=",pageForm.getUnionId());
|
||||
cnd.andEX("info.unitId","=",pageForm.getUnitId());
|
||||
cnd.andEX("info.userState","=",pageForm.getUserState());
|
||||
cnd.andEX("info.personType","=",pageForm.getPersonType());
|
||||
cnd.andEX("info.preparedBy","=",pageForm.getPreparedBy());
|
||||
cnd.andEX("info.userState","in",pageForm.getUserStates());
|
||||
cnd.andEX("info.personType","in",pageForm.getPersonTypes());
|
||||
cnd.andEX("info.preparedBy","in",pageForm.getPreparedBys());
|
||||
}
|
||||
}
|
||||
|
||||
+8
-6
@@ -8,6 +8,8 @@ import lombok.EqualsAndHashCode;
|
||||
import org.nutz.dao.Cnd;
|
||||
import org.nutz.dao.util.cri.SqlExpressionGroup;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @version 1.0
|
||||
* @Author zzr
|
||||
@@ -29,15 +31,15 @@ public class MemberChangePageForm extends PageForm {
|
||||
|
||||
// 在职状态
|
||||
@ApiModelProperty("在职状态")
|
||||
private String userState;
|
||||
private List<String> userStates;
|
||||
|
||||
// 在职状态
|
||||
@ApiModelProperty("编制类型")
|
||||
private String preparedBy;
|
||||
private List<String> preparedBys;
|
||||
|
||||
// 人员类型
|
||||
@ApiModelProperty("人员类型")
|
||||
private String personType;
|
||||
private List<String> personTypes;
|
||||
|
||||
|
||||
public void buildSearch(Cnd cnd, String prefix){
|
||||
@@ -54,8 +56,8 @@ public class MemberChangePageForm extends PageForm {
|
||||
|
||||
cnd.andEX(prefix + "unionId", "=", this.getUnionId());
|
||||
cnd.andEX(prefix + "unitId", "=", this.getUnitId());
|
||||
cnd.andEX(prefix + "userState", "=", this.getUserState());
|
||||
cnd.andEX(prefix + "preparedBy", "=", this.getPreparedBy());
|
||||
cnd.andEX(prefix + "personType", "=", this.getPersonType());
|
||||
cnd.andEX(prefix + "userState", "in", this.getUserStates());
|
||||
cnd.andEX(prefix + "preparedBy", "in", this.getPreparedBys());
|
||||
cnd.andEX(prefix + "personType", "in", this.getPersonTypes());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user