Merge pull request #32 from hiparker/development

Development
pull/33/head
Parker 2 years ago committed by GitHub
commit ee341b113c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -166,11 +166,9 @@ public class SysOrgRestController extends BaseRestController<SysOrg, SysOrgModel
wrapper.eq(FieldUtil.humpToUnderline(MyBatisConstants.FIELD_PARENT_ID), parentId); wrapper.eq(FieldUtil.humpToUnderline(MyBatisConstants.FIELD_PARENT_ID), parentId);
// 如果传入ID 则不包含自身 // 如果传入ID 则不包含自身
if(StringUtils.isNotEmpty(id)){ wrapper.notIn(StringUtils.isNotEmpty(id),
wrapper.notIn(
FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), id); FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), id);
}
// 获得组织 // 获得组织
List<SysOrg> dataList = IService.findList(wrapper); List<SysOrg> dataList = IService.findList(wrapper);
@ -188,12 +186,11 @@ public class SysOrgRestController extends BaseRestController<SysOrg, SysOrgModel
QueryWrapper<SysOrg> wrapperByEmpty = queryBuilder.build(); QueryWrapper<SysOrg> wrapperByEmpty = queryBuilder.build();
wrapperByEmpty.in(FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), genOrgIdSet); wrapperByEmpty.in(!genOrgIdSet.isEmpty(),
FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), genOrgIdSet);
// 如果传入ID 则不包含自身 // 如果传入ID 则不包含自身
if(StringUtils.isNotEmpty(id)){ wrapperByEmpty.notIn(StringUtils.isNotEmpty(id),
wrapperByEmpty.notIn(FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), id); FieldUtil.humpToUnderline(MyBatisConstants.FIELD_ID), id);
}
// 获得组织 // 获得组织
dataList = IService.findList(wrapperByEmpty); dataList = IService.findList(wrapperByEmpty);
} }

Loading…
Cancel
Save