Commit 6307da3b authored by 王果's avatar 王果

增加根据公司id获取人员接口

parent 835a9013
......@@ -39,4 +39,10 @@ public interface PrivilegeFeginService {
FeignClientResult mobileVerifyCode(@RequestBody VerifyCodeAuthModel model) throws InnerInvokException;
@RequestMapping(value = "/privilege/v1/agencyuser/list/company/{companyId}", method = RequestMethod.GET)
FeignClientResult<AgencyUserModel> getCompanyUser(@PathVariable(value = "companyId")Long companyId);
}
......@@ -192,5 +192,15 @@ public class CommonController extends BaseController {
Object result = commonService.invokeBusinessProcess(submitType, map, reginParams);
return ResponseHelper.buildResponse(result);
}
/**
* 根据公司id获取公司下人员
*
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/getCompanyUser")
@ApiOperation(httpMethod = "POST", value = "根据公司id获取公司下人员", notes = "根据公司id获取公司下人员")
public ResponseModel<Object> getCompanyUser(@RequestParam(value = "companyId") Long companyId) {
Object result = commonService.getCompanyUser(companyId);
return ResponseHelper.buildResponse(result);
}
}
......@@ -43,4 +43,6 @@ public interface ICommonService {
List<Map<String, Object>> superviseBusinessCategory(String type);
Object invokeBusinessProcess(String submitType, Map<String, Object> obj, ReginParams reginParams);
Object getCompanyUser(Long companyId);
}
......@@ -1031,4 +1031,12 @@ public class CommonServiceImpl implements ICommonService {
});
return workflowResultDtoList;
}
public List<LinkedHashMap> getCompanyUser(Long companyId) {
FeignClientResult result = privilegeFeginService.getCompanyUser(companyId);
List<LinkedHashMap> list = (List<LinkedHashMap>) result.getResult();
for (LinkedHashMap linkedHashMap : list) {
linkedHashMap.put("sequenceNbr", linkedHashMap.get("regionCode"));
}
return list;
}
}
\ No newline at end of file
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