Commit 8dc9932d authored by wanglong's avatar wanglong

部门管理 新增、修改、查看 人员下拉框获取单位下所有人员

parent bf1bf8d2
...@@ -253,7 +253,7 @@ public class ProjectController extends BaseController { ...@@ -253,7 +253,7 @@ public class ProjectController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(httpMethod = "GET", value = "查询下拉选择框的值", notes = "查询下拉选择框的值") @ApiOperation(httpMethod = "GET", value = "查询下拉选择框的值", notes = "查询下拉选择框的值")
@GetMapping(value = "/getCharge") @GetMapping(value = "/getCharge")
public ResponseModel<List<OrgUsr>> getCharge(){ public ResponseModel<List<List<OrgUsr>>> getCharge(){
return ResponseHelper.buildResponse(orgServiceImpl.getCharge()); return ResponseHelper.buildResponse(orgServiceImpl.getCharge());
} }
......
...@@ -376,11 +376,19 @@ public class OrgServiceImpl { ...@@ -376,11 +376,19 @@ public class OrgServiceImpl {
* @return * @return
*/ */
@BusinessIdentify @BusinessIdentify
public List<OrgUsr> getCharge(){ public List<List<OrgUsr>> getCharge() {
List<List<OrgUsr>> orgUsrs = new ArrayList<>();
LambdaQueryWrapper<OrgUsr> personWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<OrgUsr> personWrapper = new LambdaQueryWrapper<>();
personWrapper.eq(OrgUsr::getParentId,String.valueOf(getReginParams().getBusinessInfo().getCompanySequenceNbr())) //获取单位下人员
.eq(OrgUsr :: getBizOrgType,OrgEnum.普通人员.getKey()); personWrapper.eq(OrgUsr::getParentId, String.valueOf(getReginParams().getBusinessInfo().getCompanySequenceNbr()))
return orgUsrServiceImpl.list(personWrapper); .eq(OrgUsr::getBizOrgType, OrgEnum.普通人员.getKey());
orgUsrs.add(orgUsrServiceImpl.list(personWrapper));
//获取单位下的部门人员
LambdaQueryWrapper<OrgUsr> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.eq(OrgUsr::getParentId, String.valueOf(getReginParams().getBusinessInfo().getCompanySequenceNbr())).eq(OrgUsr::getBizOrgType, "DEPARTMENT");
orgUsrs.add(orgUsrServiceImpl.list(lambdaQueryWrapper));
return orgUsrs;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment