Commit 0ab673c9 authored by zhangyingbin's avatar zhangyingbin

修改根据当前登录人所在单位获取人员列表接口

parent 7719bd09
...@@ -102,7 +102,7 @@ public class ProjectController extends BaseController { ...@@ -102,7 +102,7 @@ public class ProjectController extends BaseController {
private static final AtomicInteger atomicNum = new AtomicInteger(); private static final AtomicInteger atomicNum = new AtomicInteger();
private static final Integer INIT_CODE_NUM = 0; private static final Integer INIT_CODE_NUM = 0;
public String getCode(){ public String getCode(){
String date = new SimpleDateFormat("MMdd").format(new Date()); String date = new SimpleDateFormat("yyyy").format(new Date());
String code = "XM"+date+"-"; String code = "XM"+date+"-";
String format=""; String format="";
LambdaQueryWrapper<Project> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<Project> wrapper = new LambdaQueryWrapper<>();
...@@ -240,12 +240,23 @@ public class ProjectController extends BaseController { ...@@ -240,12 +240,23 @@ 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 = "/getDepPerson")
public ResponseModel<List<OrgUsr>> getCharge(String insDepId){ public ResponseModel<List<OrgUsr>> getDepPerson(String insDepId){
return ResponseHelper.buildResponse(orgServiceImpl.getVerInfo(insDepId)); return ResponseHelper.buildResponse(orgServiceImpl.getVerInfo(insDepId));
} }
/** /**
* 查询当前登录单位下的人员列表
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(httpMethod = "GET", value = "查询下拉选择框的值", notes = "查询下拉选择框的值")
@GetMapping(value = "/getCharge")
public ResponseModel<List<OrgUsr>> getCharge(){
return ResponseHelper.buildResponse(orgServiceImpl.getCharge());
}
/**
* 查询当前登陆人所在单位下的所以项目列表 * 查询当前登陆人所在单位下的所以项目列表
* @return * @return
*/ */
......
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