|
|
@@ -90,15 +90,12 @@ public class OrgInfoController {
|
|
90
|
90
|
@ApiImplicitParam(name = "orgName", value = "组织机构名", paramType = "query"),
|
|
91
|
91
|
@ApiImplicitParam(name = "parentId", value = "上级组织机构编号", paramType = "query")
|
|
92
|
92
|
})
|
|
93
|
|
- public PageInfo<OrgInfo> getOrgInfo(Integer pageNum, Integer pageSize, Integer parentId, String orgName,Integer orgId) {
|
|
|
93
|
+ public PageInfo<OrgInfo> getOrgInfo(Integer pageNum, Integer pageSize, Integer parentId, String orgName) {
|
|
94
|
94
|
OrgInfoExample example = new OrgInfoExample();
|
|
95
|
95
|
Criteria criteria = example.createCriteria();
|
|
96
|
96
|
if (parentId != null) {
|
|
97
|
97
|
criteria.andParentIdEqualTo(parentId);
|
|
98
|
98
|
}
|
|
99
|
|
- if( "" != orgId+"" && orgId != null){
|
|
100
|
|
- criteria.andOrgIdEqualTo(orgId);
|
|
101
|
|
- }
|
|
102
|
99
|
if (StringUtils.isNotBlank(orgName)) {
|
|
103
|
100
|
criteria.andOrgNameLike("%" + orgName + "%");
|
|
104
|
101
|
}
|