|
@@ -89,7 +89,6 @@ public class SystemController {
|
|
public void SendEmail(@RequestBody String str) {
|
|
public void SendEmail(@RequestBody String str) {
|
|
rabbitTemplate.convertAndSend(MailConstants.MAIL_EXCHANGE_NAME, MailConstants.MAIL_ROUTING_KEY_NAME, str, new CorrelationData("1"));
|
|
rabbitTemplate.convertAndSend(MailConstants.MAIL_EXCHANGE_NAME, MailConstants.MAIL_ROUTING_KEY_NAME, str, new CorrelationData("1"));
|
|
}
|
|
}
|
|
-
|
|
|
|
@GetMapping("/getAllDepartment")
|
|
@GetMapping("/getAllDepartment")
|
|
@Operation(summary = "获取所有部门")
|
|
@Operation(summary = "获取所有部门")
|
|
public String getAllDepartment() {
|
|
public String getAllDepartment() {
|
|
@@ -129,4 +128,11 @@ public class SystemController {
|
|
public List<Map<String,Object>> getDeparts(@RequestBody List<Integer> departIds) {
|
|
public List<Map<String,Object>> getDeparts(@RequestBody List<Integer> departIds) {
|
|
return systemService.getDeparts(departIds);
|
|
return systemService.getDeparts(departIds);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @GetMapping("/getDutyDeparts")
|
|
|
|
+ @Operation(summary = "根据人员Id获得负责部门Id")
|
|
|
|
+ public List<Integer> getDutyDeparts(Integer personId) {
|
|
|
|
+ return systemService.getDutyDeparts(personId);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|