Commit c2aa31ea by 穆龙飞

modify:增加接口

parent e79e4552
Pipeline #47508 passed with stages
in 1 minute 54 seconds
...@@ -8,6 +8,7 @@ package com.netease.mail.yanxuan.change.web.controller; ...@@ -8,6 +8,7 @@ package com.netease.mail.yanxuan.change.web.controller;
import javax.validation.Valid; import javax.validation.Valid;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.logging.log4j.util.Strings; import org.apache.logging.log4j.util.Strings;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert; import org.springframework.util.Assert;
...@@ -254,7 +255,21 @@ public class ChangeFlowController { ...@@ -254,7 +255,21 @@ public class ChangeFlowController {
* @return * @return
*/ */
@PostMapping("/queryCommanderInfo") @PostMapping("/queryCommanderInfo")
public AjaxResult<List<CommanderResponse>> queryCommanderInfo(@RequestBody QueryCommanderEmailReq req) { public AjaxResult<CommanderResponse> queryCommanderInfo(@RequestBody QueryCommanderEmailReq req) {
List<CommanderResponse> commanderResponseList = interiorChangeConfigService.queryCommanderEmail(req);
if (CollectionUtils.isEmpty(commanderResponseList)) {
return AjaxResult.success();
}
return AjaxResult.success(commanderResponseList.get(0));
}
/**
* 查询负责人信息
* @param req
* @return
*/
@PostMapping("/queryCommanderInfoV2")
public AjaxResult<List<CommanderResponse>> queryCommanderInfoV2(@RequestBody QueryCommanderEmailReq req) {
return AjaxResult.success(interiorChangeConfigService.queryCommanderEmail(req)); return AjaxResult.success(interiorChangeConfigService.queryCommanderEmail(req));
} }
} }
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