From 7a8827c634b53bb1cb861ebc1fd4ac6d1ae6cb5a Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 26 五月 2026 15:22:10 +0800
Subject: [PATCH] 人力资源和协同办公增加操作日志
---
src/main/java/com/ruoyi/approve/controller/KnowledgeBaseController.java | 7 +
src/main/java/com/ruoyi/collaborativeApproval/controller/NoticeTypeController.java | 5 +
src/main/java/com/ruoyi/staff/controller/StaffContractController.java | 3
src/main/java/com/ruoyi/staff/controller/StaffLeaveController.java | 7 +
src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementFileController.java | 5 +
src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java | 7 +
src/main/java/com/ruoyi/approve/controller/HolidaySettingsController.java | 18 ++++
src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java | 5 +
src/main/java/com/ruoyi/approve/controller/ApproveProcessController.java | 15 +++
src/main/java/com/ruoyi/collaborativeApproval/controller/MeetingController.java | 20 +++++
src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementController.java | 13 +++
src/main/java/com/ruoyi/collaborativeApproval/controller/SealApplicationManagementController.java | 6 +
src/main/java/com/ruoyi/staff/controller/HolidayApplicationController.java | 6 +
src/main/java/com/ruoyi/staff/controller/AnalyticsController.java | 5 +
src/main/java/com/ruoyi/staff/controller/PersonalAttendanceLocationConfigController.java | 5 +
src/main/java/com/ruoyi/collaborativeApproval/controller/StaffContactsPersonalController.java | 5 +
src/main/java/com/ruoyi/staff/controller/StaffOnJobController.java | 9 ++
src/main/java/com/ruoyi/approve/controller/RpaProcessAutomationController.java | 7 +
src/main/java/com/ruoyi/collaborativeApproval/controller/DutyPlanController.java | 8 ++
src/main/java/com/ruoyi/staff/controller/SchemeApplicableStaffController.java | 1
src/main/java/com/ruoyi/staff/controller/BankController.java | 3
src/main/java/com/ruoyi/approve/controller/NotificationManagementController.java | 8 ++
src/main/java/com/ruoyi/staff/controller/StaffSalaryMainController.java | 2
src/main/java/com/ruoyi/approve/controller/ApproveNodeController.java | 5 +
src/main/java/com/ruoyi/staff/controller/PersonalAttendanceRecordsController.java | 6 +
25 files changed, 179 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/ruoyi/approve/controller/ApproveNodeController.java b/src/main/java/com/ruoyi/approve/controller/ApproveNodeController.java
index 5cda3a3..08b2386 100644
--- a/src/main/java/com/ruoyi/approve/controller/ApproveNodeController.java
+++ b/src/main/java/com/ruoyi/approve/controller/ApproveNodeController.java
@@ -2,6 +2,8 @@
import com.ruoyi.approve.pojo.ApproveNode;
import com.ruoyi.approve.service.IApproveNodeService;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -25,6 +27,7 @@
*/
@GetMapping("/details/{id}")
@ApiOperation(value = "娴佺▼鐘舵�佽鎯�")
+ @Log(title = "娴佺▼鐘舵�佽鎯�", businessType = BusinessType.OTHER)
public AjaxResult details(@PathVariable String id) {
return AjaxResult.success(approveNodeService.details(id));
}
@@ -37,6 +40,7 @@
@PostMapping("/updateApproveNode")
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "瀹℃壒鑺傜偣")
+ @Log(title = "瀹℃壒鑺傜偣", businessType = BusinessType.OTHER)
public AjaxResult updateApproveNode(@RequestBody ApproveNode approveNode) throws IOException {
approveNodeService.updateApproveNode(approveNode);
return AjaxResult.success();
@@ -48,6 +52,7 @@
* @return
*/
@PostMapping("/init")
+ @Log(title = "鍒濆鍖栧鎵硅妭鐐�", businessType = BusinessType.OTHER)
public AjaxResult init(String id) {
approveNodeService.initApproveNodes("",id,1L);
return AjaxResult.success();
diff --git a/src/main/java/com/ruoyi/approve/controller/ApproveProcessController.java b/src/main/java/com/ruoyi/approve/controller/ApproveProcessController.java
index 7554ff4..0da4ebf 100644
--- a/src/main/java/com/ruoyi/approve/controller/ApproveProcessController.java
+++ b/src/main/java/com/ruoyi/approve/controller/ApproveProcessController.java
@@ -9,6 +9,8 @@
import com.ruoyi.approve.vo.ApproveProcessVO;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.security.LoginUser;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysDept;
@@ -42,6 +44,7 @@
* @return
*/
@GetMapping("/getDept")
+ @Log(title = "鑾峰彇閮ㄩ棬鍒楄〃", businessType = BusinessType.OTHER)
public AjaxResult getDept() {
Long userId = SecurityUtils.getUserId();
LoginUser user = SecurityUtils.getLoginUser();
@@ -59,6 +62,7 @@
@PostMapping("/add")
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "娣诲姞瀹℃壒")
+ @Log(title = "娣诲姞瀹℃壒", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody ApproveProcessVO approveProcessVO) throws Exception {
if (approveProcessVO == null) {
return AjaxResult.warn("鍙傛暟涓嶈兘涓虹┖");
@@ -75,6 +79,7 @@
*/
@GetMapping("/get")
@ApiOperation(value = "瀹℃壒璇︽儏")
+ @Log(title = "瀹℃壒璇︽儏", businessType = BusinessType.OTHER)
public AjaxResult get(ApproveGetAndUpdateVo approveGetAndUpdateVo){
if (approveGetAndUpdateVo.getId() == null || approveGetAndUpdateVo.getId().isEmpty()) {
return AjaxResult.warn("鍙傛暟涓嶈兘涓虹┖");
@@ -90,6 +95,7 @@
@PostMapping("/update")
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "鏇存柊瀹℃壒")
+ @Log(title = "鏇存柊瀹℃壒", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody ApproveGetAndUpdateVo approveGetAndUpdateVo) throws IOException {
if (approveGetAndUpdateVo == null) {
return AjaxResult.warn("鍙傛暟涓嶈兘涓虹┖");
@@ -103,6 +109,7 @@
*/
@GetMapping("/list")
@ApiOperation(value = "鑾峰彇瀹℃壒鍒楄〃")
+ @Log(title = "鑾峰彇瀹℃壒鍒楄〃", businessType = BusinessType.OTHER)
public AjaxResult list(Page page, ApproveProcess approveProcess) {
return AjaxResult.success(approveProcessService.listAll(page, approveProcess));
}
@@ -114,6 +121,7 @@
*/
@DeleteMapping("/deleteIds")
@ApiOperation(value = "鍒犻櫎瀹℃壒")
+ @Log(title = "鍒犻櫎瀹℃壒", businessType = BusinessType.DELETE)
@Transactional(rollbackFor = Exception.class)
public AjaxResult deleteIds(@RequestBody List<Long> ids) {
if (ids == null || ids.size() == 0) {
@@ -125,6 +133,7 @@
@ApiOperation(value = "鍏嚭绠$悊瀵煎嚭")
@PostMapping("/exportOne")
+ @Log(title = "鍏嚭绠$悊瀵煎嚭", businessType = BusinessType.EXPORT)
public void exportOne(HttpServletResponse response) {
List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>()
.eq(ApproveProcess::getApproveDelete, 0)
@@ -135,6 +144,7 @@
@ApiOperation(value = "璇峰亣绠$悊瀵煎嚭")
@PostMapping("/exportTwo")
+ @Log(title = "璇峰亣绠$悊瀵煎嚭", businessType = BusinessType.EXPORT)
public void exportTwo(HttpServletResponse response) {
List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>()
.eq(ApproveProcess::getApproveDelete, 0)
@@ -145,6 +155,7 @@
@ApiOperation(value = "鍑哄樊绠$悊瀵煎嚭")
@PostMapping("/exportThree")
+ @Log(title = "鍑哄樊绠$悊瀵煎嚭", businessType = BusinessType.EXPORT)
public void exportThree(HttpServletResponse response) {
List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>()
.eq(ApproveProcess::getApproveDelete, 0)
@@ -155,6 +166,7 @@
@ApiOperation(value = "鎶ラ攢绠$悊瀵煎嚭")
@PostMapping("/exportFour")
+ @Log(title = "鎶ラ攢绠$悊瀵煎嚭", businessType = BusinessType.EXPORT)
public void exportFour(HttpServletResponse response) {
List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>()
.eq(ApproveProcess::getApproveDelete, 0)
@@ -165,6 +177,7 @@
@ApiOperation(value = "閲囪喘鐢宠瀵煎嚭")
@PostMapping("/exportFive")
+ @Log(title = "閲囪喘鐢宠瀵煎嚭", businessType = BusinessType.EXPORT)
public void exportFive(HttpServletResponse response) {
List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>()
.eq(ApproveProcess::getApproveDelete, 0)
@@ -175,6 +188,7 @@
@ApiOperation(value = "鍗忓悓瀹℃壒瀵煎嚭")
@PostMapping("/exportZero")
+ @Log(title = "鍗忓悓瀹℃壒瀵煎嚭", businessType = BusinessType.EXPORT)
public void exportZero(HttpServletResponse response) {
List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>()
.eq(ApproveProcess::getApproveDelete, 0)
@@ -185,6 +199,7 @@
@ApiOperation(value = "鍗遍櫓浣滀笟瀹℃壒瀵煎嚭")
@PostMapping("/exportEight")
+ @Log(title = "鍗遍櫓浣滀笟瀹℃壒瀵煎嚭", businessType = BusinessType.EXPORT)
public void exportEight(HttpServletResponse response) {
List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>()
.eq(ApproveProcess::getApproveDelete, 0)
diff --git a/src/main/java/com/ruoyi/approve/controller/HolidaySettingsController.java b/src/main/java/com/ruoyi/approve/controller/HolidaySettingsController.java
index 2ecf29f..a23361c 100644
--- a/src/main/java/com/ruoyi/approve/controller/HolidaySettingsController.java
+++ b/src/main/java/com/ruoyi/approve/controller/HolidaySettingsController.java
@@ -7,6 +7,8 @@
import com.ruoyi.approve.mapper.WorkingHoursSettingMapper;
import com.ruoyi.approve.pojo.*;
import com.ruoyi.approve.service.HolidaySettingsService;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
@@ -32,6 +34,7 @@
* @return
*/
@GetMapping("/getList")
+ @Log(title = "鑾峰彇鍋囨湡璁剧疆鍒楄〃", businessType = BusinessType.OTHER)
public AjaxResult getList(@RequestParam(defaultValue = "1") long current,
@RequestParam(defaultValue = "50") long size, HolidaySettings holidaySettings) {
Page page = new Page(current, size);
@@ -42,6 +45,7 @@
* @return
*/
@PostMapping("/add")
+ @Log(title = "娣诲亣鏈熻缃�", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody HolidaySettings holidaySettings){
return AjaxResult.success(holidaySettingsService.save(holidaySettings));
}
@@ -50,6 +54,7 @@
* @return
*/
@PostMapping("/update")
+ @Log(title = "鏇存柊鍋囨湡璁剧疆", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody HolidaySettings holidaySettings){
return AjaxResult.success(holidaySettingsService.updateById(holidaySettings));
}
@@ -58,6 +63,7 @@
* @return
*/
@DeleteMapping("/delete")
+ @Log(title = "鍒犻櫎鍋囨湡璁剧疆", businessType = BusinessType.DELETE)
public AjaxResult delete(@RequestBody List<Long> ids){
if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
return AjaxResult.success(holidaySettingsService.removeByIds(ids));
@@ -67,6 +73,7 @@
* @return
*/
@GetMapping("/getAnnualLeaveSettingList")
+ @Log(title = "鑾峰彇骞村亣瑙勫垯鍒楄〃", businessType = BusinessType.OTHER)
public AjaxResult getAnnualLeaveSettingList(@RequestParam(defaultValue = "1") long current,
@RequestParam(defaultValue = "50") long size, AnnualLeaveSetting annualLeaveSetting) {
Page page = new Page(current, size);
@@ -77,6 +84,7 @@
* @return
*/
@PostMapping("/addAnnualLeaveSetting")
+ @Log(title = "娣诲勾鍋囪鍒�", businessType = BusinessType.INSERT)
public AjaxResult addAnnualLeaveSetting(@RequestBody AnnualLeaveSetting annualLeaveSetting){
return AjaxResult.success(annualLeaveSettingMapper.insert(annualLeaveSetting));
}
@@ -85,6 +93,7 @@
* @return
*/
@PostMapping("/updateAnnualLeaveSetting")
+ @Log(title = "鏇存柊骞村亣瑙勫垯", businessType = BusinessType.UPDATE)
public AjaxResult updateAnnualLeaveSetting(@RequestBody AnnualLeaveSetting annualLeaveSetting){
return AjaxResult.success(annualLeaveSettingMapper.updateById(annualLeaveSetting));
}
@@ -93,6 +102,7 @@
* @return
*/
@DeleteMapping("/deleteAnnualLeaveSetting")
+ @Log(title = "鍒犻櫎骞村亣瑙勫垯", businessType = BusinessType.DELETE)
public AjaxResult deleteAnnualLeaveSetting(@RequestBody List<Long> ids){
if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
return AjaxResult.success(annualLeaveSettingMapper.deleteBatchIds(ids));
@@ -103,6 +113,7 @@
* @return
*/
@GetMapping("/getOvertimeSettingList")
+ @Log(title = "鑾峰彇鍔犵彮瑙勫垯鍒楄〃", businessType = BusinessType.OTHER)
public AjaxResult getOvertimeSettingList(@RequestParam(defaultValue = "1") long current,
@RequestParam(defaultValue = "50") long size, OvertimeSetting overtimeSetting) {
Page page = new Page(current, size);
@@ -113,6 +124,7 @@
* @return
*/
@PostMapping("/addOvertimeSetting")
+ @Log(title = "娣诲姞鐝鍒�", businessType = BusinessType.INSERT)
public AjaxResult addOvertimeSetting(@RequestBody OvertimeSetting overtimeSetting){
return AjaxResult.success(overtimeSettingMapper.insert(overtimeSetting));
}
@@ -121,6 +133,7 @@
* @return
*/
@PostMapping("/updateOvertimeSetting")
+ @Log(title = "鏇存柊鍔犵彮瑙勫垯", businessType = BusinessType.UPDATE)
public AjaxResult updateOvertimeSetting(@RequestBody OvertimeSetting overtimeSetting){
return AjaxResult.success(overtimeSettingMapper.updateById(overtimeSetting));
}
@@ -129,6 +142,7 @@
* @return
*/
@DeleteMapping("/deleteOvertimeSetting")
+ @Log(title = "鍒犻櫎鍔犵彮瑙勫垯", businessType = BusinessType.DELETE)
public AjaxResult deleteOvertimeSetting(@RequestBody List<Long> ids){
if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
return AjaxResult.success(overtimeSettingMapper.deleteBatchIds(ids));
@@ -138,6 +152,7 @@
* @return
*/
@GetMapping("/getWorkingHoursSettingList")
+ @Log(title = "鑾峰彇涓婄彮鏃堕棿璁剧疆-鐝埗瑙勫垯鍒楄〃", businessType = BusinessType.OTHER)
public AjaxResult getWorkingHoursSettingList(@RequestParam(defaultValue = "1") long current,
@RequestParam(defaultValue = "50") long size, WorkingHoursSetting workingHoursSetting) {
Page page = new Page(current, size);
@@ -148,6 +163,7 @@
* @return
*/
@PostMapping("/addWorkingHoursSetting")
+ @Log(title = "娣荤彮鍒惰鍒�", businessType = BusinessType.INSERT)
public AjaxResult addWorkingHoursSetting(@RequestBody WorkingHoursSetting workingHoursSetting){
return AjaxResult.success(workingHoursSettingMapper.insert(workingHoursSetting));
}
@@ -156,6 +172,7 @@
* @return
*/
@PostMapping("/updateWorkingHoursSetting")
+ @Log(title = "鏇存柊鐝埗瑙勫垯", businessType = BusinessType.UPDATE)
public AjaxResult updateWorkingHoursSetting(@RequestBody WorkingHoursSetting workingHoursSetting){
return AjaxResult.success(workingHoursSettingMapper.updateById(workingHoursSetting));
}
@@ -164,6 +181,7 @@
* @return
*/
@DeleteMapping("/deleteWorkingHoursSetting")
+ @Log(title = "鍒犻櫎鐝埗瑙勫垯", businessType = BusinessType.DELETE)
public AjaxResult deleteWorkingHoursSetting(@RequestBody List<Long> ids){
if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
return AjaxResult.success(workingHoursSettingMapper.deleteBatchIds(ids));
diff --git a/src/main/java/com/ruoyi/approve/controller/KnowledgeBaseController.java b/src/main/java/com/ruoyi/approve/controller/KnowledgeBaseController.java
index b6ede4a..8c17f95 100644
--- a/src/main/java/com/ruoyi/approve/controller/KnowledgeBaseController.java
+++ b/src/main/java/com/ruoyi/approve/controller/KnowledgeBaseController.java
@@ -7,6 +7,8 @@
import com.ruoyi.approve.pojo.RpaProcessAutomation;
import com.ruoyi.approve.service.KnowledgeBaseService;
import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -30,6 +32,7 @@
* @return
*/
@GetMapping("/getList")
+ @Log(title = "鑾峰彇鐭ヨ瘑搴撶鐞嗗垪琛�", businessType = BusinessType.OTHER)
public AjaxResult getList(@RequestParam(defaultValue = "1") long current,
@RequestParam(defaultValue = "10") long size, KnowledgeBase knowledgeBase) {
Page page = new Page(current, size);
@@ -40,6 +43,7 @@
* @return
*/
@PostMapping("/add")
+ @Log(title = "鏂板鐭ヨ瘑搴撶鐞�", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody KnowledgeBase knowledgeBase){
return AjaxResult.success(knowledgeBaseService.save(knowledgeBase));
}
@@ -48,6 +52,7 @@
* @return
*/
@PostMapping("/update")
+ @Log(title = "淇敼鐭ヨ瘑搴撶鐞�", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody KnowledgeBase knowledgeBase){
return AjaxResult.success(knowledgeBaseService.updateById(knowledgeBase));
}
@@ -56,6 +61,7 @@
* @return
*/
@DeleteMapping("/delete")
+ @Log(title = "鍒犻櫎鐭ヨ瘑搴撶鐞�", businessType = BusinessType.DELETE)
public AjaxResult delete(@RequestBody List<Long> ids){
if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
return AjaxResult.success(knowledgeBaseService.removeByIds(ids));
@@ -63,6 +69,7 @@
@ApiOperation(value = "鐭ヨ瘑搴撶鐞嗗鍑�")
@PostMapping("/export")
+ @Log(title = "鐭ヨ瘑搴撶鐞嗗鍑�", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response) {
List<KnowledgeBase> accountExpenses = knowledgeBaseService.list();
ExcelUtil<KnowledgeBase> util = new ExcelUtil<KnowledgeBase>(KnowledgeBase.class);
diff --git a/src/main/java/com/ruoyi/approve/controller/NotificationManagementController.java b/src/main/java/com/ruoyi/approve/controller/NotificationManagementController.java
index e3ac566..be806ec 100644
--- a/src/main/java/com/ruoyi/approve/controller/NotificationManagementController.java
+++ b/src/main/java/com/ruoyi/approve/controller/NotificationManagementController.java
@@ -8,6 +8,8 @@
import com.ruoyi.approve.pojo.NotificationManagement;
import com.ruoyi.approve.pojo.OnlineMeeting;
import com.ruoyi.approve.service.NotificationManagementService;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
@@ -30,6 +32,7 @@
* @return
*/
@GetMapping("/getList")
+ @Log(title = "鑾峰彇閫氱煡绠$悊鍒楄〃", businessType = BusinessType.OTHER)
public AjaxResult getList(@RequestParam(defaultValue = "1") long current,
@RequestParam(defaultValue = "50") long size, NotificationManagement notificationManagement) {
Page page = new Page(current, size);
@@ -40,6 +43,7 @@
* @return
*/
@PostMapping("/add")
+ @Log(title = "鏂板閫氱煡绠$悊", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody NotificationManagement notificationManagement){
return AjaxResult.success(notificationManagementService.save(notificationManagement));
}
@@ -48,6 +52,7 @@
* @return
*/
@PostMapping("/update")
+ @Log(title = "淇敼閫氱煡绠$悊", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody NotificationManagement notificationManagement){
return AjaxResult.success(notificationManagementService.updateById(notificationManagement));
}
@@ -56,6 +61,7 @@
* @return
*/
@DeleteMapping("/delete")
+ @Log(title = "鍒犻櫎閫氱煡绠$悊", businessType = BusinessType.DELETE)
public AjaxResult delete(@RequestBody List<Long> ids){
if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
return AjaxResult.success(notificationManagementService.removeByIds(ids));
@@ -66,6 +72,7 @@
* @return
*/
@PostMapping("/addOnlineMeeting")
+ @Log(title = "鏂板浼氳", businessType = BusinessType.INSERT)
public AjaxResult addOnlineMeeting(@RequestBody OnlineMeeting onlineMeeting){
return AjaxResult.success(onlineMeetingMapper.insert(onlineMeeting));
}
@@ -74,6 +81,7 @@
*
*/
@PostMapping("/addFileSharing")
+ @Log(title = "鏂板鏂囦欢鍏变韩", businessType = BusinessType.INSERT)
public AjaxResult addFileSharing(@RequestBody FileSharing fileSharing){
return AjaxResult.success(fileSharingMapper.insert(fileSharing));
}
diff --git a/src/main/java/com/ruoyi/approve/controller/RpaProcessAutomationController.java b/src/main/java/com/ruoyi/approve/controller/RpaProcessAutomationController.java
index e8c35f9..2a75490 100644
--- a/src/main/java/com/ruoyi/approve/controller/RpaProcessAutomationController.java
+++ b/src/main/java/com/ruoyi/approve/controller/RpaProcessAutomationController.java
@@ -8,6 +8,8 @@
import com.ruoyi.approve.service.RpaProcessAutomationService;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.security.LoginUser;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.SysDept;
@@ -32,6 +34,7 @@
* @return
*/
@GetMapping("/getList")
+ @Log(title = "鑾峰彇RPA娴佺▼鑷姩鍖栧垪琛�", businessType = BusinessType.OTHER)
public AjaxResult getList(@RequestParam(defaultValue = "1") long current,
@RequestParam(defaultValue = "100") long size, RpaProcessAutomation rpaProcessAutomation) {
Page page = new Page(current, size);
@@ -42,6 +45,7 @@
* @return
*/
@PostMapping("/add")
+ @Log(title = "娣诲姞RPA娴佺▼鑷姩鍖�", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody RpaProcessAutomation rpaProcessAutomation){
return AjaxResult.success(rpaProcessAutomationService.save(rpaProcessAutomation));
}
@@ -50,6 +54,7 @@
* @return
*/
@PostMapping("/update")
+ @Log(title = "鏇存柊RPA娴佺▼鑷姩鍖�", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody RpaProcessAutomation rpaProcessAutomation){
return AjaxResult.success(rpaProcessAutomationService.updateById(rpaProcessAutomation));
}
@@ -58,6 +63,7 @@
* @return
*/
@DeleteMapping("/delete")
+ @Log(title = "鍒犻櫎RPA娴佺▼鑷姩鍖�", businessType = BusinessType.DELETE)
public AjaxResult delete(@RequestBody List<Long> ids){
if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
return AjaxResult.success(rpaProcessAutomationService.removeByIds(ids));
@@ -65,6 +71,7 @@
@ApiOperation(value = "RPA娴佺▼鑷姩鍖栧鍑�")
@PostMapping("/export")
+ @Log(title = "瀵煎嚭RPA娴佺▼鑷姩鍖�", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response) {
List<RpaProcessAutomation> accountExpenses = rpaProcessAutomationService.list();
ExcelUtil<RpaProcessAutomation> util = new ExcelUtil<RpaProcessAutomation>(RpaProcessAutomation.class);
diff --git a/src/main/java/com/ruoyi/collaborativeApproval/controller/DutyPlanController.java b/src/main/java/com/ruoyi/collaborativeApproval/controller/DutyPlanController.java
index 9ad69ee..dc8f734 100644
--- a/src/main/java/com/ruoyi/collaborativeApproval/controller/DutyPlanController.java
+++ b/src/main/java/com/ruoyi/collaborativeApproval/controller/DutyPlanController.java
@@ -7,6 +7,8 @@
import com.ruoyi.collaborativeApproval.pojo.RulesRegulationsManagement;
import com.ruoyi.collaborativeApproval.service.DutyPlanService;
import com.ruoyi.common.utils.excel.ExcelUtils;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
@@ -26,29 +28,34 @@
@GetMapping("/getList")
@ApiOperation("鍒嗛〉鏌ヨ")
+ @Log(title = "鍒嗛〉鏌ヨ宀椾綅璁″垝", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, DutyPlanDTO dutyPlanDTO){
return AjaxResult.success(dutyPlanService.listPage(page, dutyPlanDTO));
}
@GetMapping("/getNum")
@ApiOperation("鑾峰彇绛夌骇鏁版嵁")
+ @Log(title = "鑾峰彇宀椾綅璁″垝绛夌骇鏁版嵁", businessType = BusinessType.OTHER)
public AjaxResult getNum(){
return AjaxResult.success(dutyPlanService.getNum());
}
@PostMapping("/add")
@ApiOperation("鏂板")
+ @Log(title = "鏂板宀椾綅璁″垝", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody DutyPlan dutyPlan){
return AjaxResult.success(dutyPlanService.save(dutyPlan));
}
@PostMapping("/update")
@ApiOperation("淇敼")
+ @Log(title = "淇敼宀椾綅璁″垝", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody DutyPlan dutyPlan){
return AjaxResult.success(dutyPlanService.updateById(dutyPlan));
}
@DeleteMapping("/delete")
@ApiOperation("鍒犻櫎")
+ @Log(title = "鍒犻櫎宀椾綅璁″垝", businessType = BusinessType.DELETE)
public AjaxResult delete(@RequestBody List<Long> ids){
if (CollectionUtils.isEmpty(ids)) {
throw new RuntimeException("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
@@ -57,6 +64,7 @@
}
@PostMapping("/export")
@ApiOperation("瀵煎嚭")
+ @Log(title = "瀵煎嚭宀椾綅璁″垝", businessType = BusinessType.EXPORT)
public void exportData(HttpServletResponse response, DutyPlanDTO dutyPlanDTO){
dutyPlanService.exportData(response, dutyPlanDTO);
}
diff --git a/src/main/java/com/ruoyi/collaborativeApproval/controller/MeetingController.java b/src/main/java/com/ruoyi/collaborativeApproval/controller/MeetingController.java
index 956c8bc..e31a4c8 100644
--- a/src/main/java/com/ruoyi/collaborativeApproval/controller/MeetingController.java
+++ b/src/main/java/com/ruoyi/collaborativeApproval/controller/MeetingController.java
@@ -13,6 +13,8 @@
import com.ruoyi.collaborativeApproval.vo.SearchMeetingRoomVo;
import com.ruoyi.collaborativeApproval.vo.SearchMeetingUseVo;
import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -37,56 +39,66 @@
private final MeetingService meetingService;
@PostMapping("/roomList")
+ @Log(title = "鑾峰彇浼氳瀹ゅ垪琛�", businessType = BusinessType.OTHER)
public R getMeetingRoomList(@RequestBody SearchMeetingRoomVo vo) {
return R.ok(meetingService.getMeetingRoomList(vo));
}
@PostMapping("/saveRoom")
+ @Log(title = "淇濆瓨浼氳瀹�", businessType = BusinessType.INSERT)
public R saveRoom(@RequestBody MeetingRoom meetingRoom) {
meetingService.saveMeetRoom(meetingRoom);
return R.ok();
}
@GetMapping("/room/{id}")
+ @Log(title = "鑾峰彇浼氳瀹よ鎯�", businessType = BusinessType.OTHER)
public R getRoomById(@PathVariable Long id) {
return R.ok(meetingService.findMeetRoomById(id));
}
@DeleteMapping("/delRoom/{id}")
+ @Log(title = "鍒犻櫎浼氳瀹�", businessType = BusinessType.DELETE)
public R deleteRoom(@PathVariable Long id) {
meetingService.deleteMeetingRoom(id);
return R.ok();
}
@GetMapping("/roomEnum")
+ @Log(title = "鑾峰彇浼氳瀹ゆ灇涓�", businessType = BusinessType.OTHER)
public R getRoomEnum() {
return R.ok(meetingService.getRoomEnum());
}
@PostMapping("/draftList")
+ @Log(title = "鑾峰彇浼氳绋垮垪琛�", businessType = BusinessType.OTHER)
public R getMeetingDraftList(@RequestBody SearchMeetingDraftVo vo) {
return R.ok(meetingService.getMeetingDraftList(vo));
}
@PostMapping("/saveDraft")
+ @Log(title = "淇濆瓨浼氳绋�", businessType = BusinessType.INSERT)
public R saveMeetingDraft(@RequestBody MeetDraft meetDraft) {
meetingService.saveMeetDraft(meetDraft);
return R.ok();
}
@DeleteMapping("/delDraft/{id}")
+ @Log(title = "鍒犻櫎浼氳绋�", businessType = BusinessType.DELETE)
public R deleteMeetingDraft(@PathVariable Long id) {
meetingService.deleteMeetingDraft(id);
return R.ok();
}
@PostMapping("/saveMeetingApplication")
+ @Log(title = "淇濆瓨浼氳瀹℃壒", businessType = BusinessType.INSERT)
public R saveMeetApplication(@RequestBody MeetApplication meetApplication) {
return meetingService.saveMeetApplication(meetApplication);
}
@PostMapping("/applicationList")
+ @Log(title = "鑾峰彇浼氳瀹℃壒鍒楄〃", businessType = BusinessType.OTHER)
public R getMeetingApplicationList(@RequestBody SearchMeetingApplicationVo vo) {
return R.ok(meetingService.getMeetingApplicationList(vo));
}
@@ -94,40 +106,47 @@
@PostMapping("/meetingUseList")
+ @Log(title = "鑾峰彇浼氳鍒楄〃", businessType = BusinessType.OTHER)
public R meetingUseList(@RequestBody SearchMeetingUseVo vo) {
return R.ok(meetingService.meetingUseList(vo));
}
@PostMapping("/meetingPublishList")
+ @Log(title = "鑾峰彇浼氳鍙戝竷鍒楄〃", businessType = BusinessType.OTHER)
public R meetingPublishList(@RequestBody SearchMeetingApplicationVo vo) {
return R.ok(meetingService.getMeetingPublishList(vo));
}
@GetMapping("/getMeetingMinutesByMeetingId/{id}")
+ @Log(title = "鑾峰彇浼氳绾", businessType = BusinessType.OTHER)
public R getMeetingMinutes(@PathVariable Long id) {
return R.ok(meetingService.getMeetingMinutesById(id));
}
@PostMapping("/saveMeetingMinutes")
+ @Log(title = "淇濆瓨浼氳绾", businessType = BusinessType.INSERT)
public R saveMeetingMinutes(@RequestBody MeetingMinutes meetingMinutes) {
meetingService.saveMeetingMinutes(meetingMinutes);
return R.ok();
}
@GetMapping("/getMeetSummary")
+ @Log(title = "鑾峰彇浼氳鐪嬫澘", businessType = BusinessType.OTHER)
public R getMeetSummary() {
return R.ok(meetingService.getMeetSummary());
}
@GetMapping("/getMeetSummaryItems")
+ @Log(title = "鑾峰彇浼氳鐪嬫澘璇︽儏", businessType = BusinessType.OTHER)
public R getMeetSummaryItems() {
return R.ok(meetingService.getMeetSummaryItems());
}
@ApiOperation(value = "浼氳瀹よ缃鍑�")
@PostMapping("/export")
+ @Log(title = "瀵煎嚭浼氳瀹よ缃�", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response) {
List<MeetingRoom> accountExpenses = meetingService.list();
ExcelUtil<MeetingRoom> util = new ExcelUtil<MeetingRoom>(MeetingRoom.class);
@@ -138,6 +157,7 @@
@ApiOperation(value = "浼氳鑽夌瀵煎嚭")
@PostMapping("/exportOne")
+ @Log(title = "瀵煎嚭浼氳鑽夌", businessType = BusinessType.EXPORT)
public void exportOne(HttpServletResponse response) {
List<MeetDraft> accountExpenses = meetDraftMapper.selectList(new LambdaQueryWrapper<MeetDraft>());
ExcelUtil<MeetDraft> util = new ExcelUtil<MeetDraft>(MeetDraft.class);
diff --git a/src/main/java/com/ruoyi/collaborativeApproval/controller/NoticeTypeController.java b/src/main/java/com/ruoyi/collaborativeApproval/controller/NoticeTypeController.java
index 53ae816..474eff7 100644
--- a/src/main/java/com/ruoyi/collaborativeApproval/controller/NoticeTypeController.java
+++ b/src/main/java/com/ruoyi/collaborativeApproval/controller/NoticeTypeController.java
@@ -5,6 +5,8 @@
import com.ruoyi.basic.pojo.SupplierManage;
import com.ruoyi.collaborativeApproval.pojo.NoticeType;
import com.ruoyi.collaborativeApproval.service.NoticeTypeService;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
@@ -33,6 +35,7 @@
* @return
*/
@PostMapping("/add")
+ @Log(title = "鏂板閫氱煡鍏憡鐨勫叕鍛婄被鍨�", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody NoticeType noticeType) {
return AjaxResult.success(noticeTypeService.saveOrUpdate(noticeType));
}
@@ -43,6 +46,7 @@
* @return
*/
@DeleteMapping("/del")
+ @Log(title = "鍒犻櫎閫氱煡鍏憡鐨勫叕鍛婄被鍨�", businessType = BusinessType.DELETE)
public AjaxResult delNoticeType(@RequestBody List<Integer> ids) {
if(CollectionUtils.isEmpty(ids)){
return AjaxResult.error("璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�");
@@ -55,6 +59,7 @@
* @return
*/
@GetMapping("/list")
+ @Log(title = "鏌ヨ閫氱煡鍏憡鐨勫叕鍛婄被鍨�", businessType = BusinessType.OTHER)
public AjaxResult noticeTypeList() {
return AjaxResult.success(noticeTypeService.list());
}
diff --git a/src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementController.java b/src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementController.java
index cf4c2fe..1887cb5 100644
--- a/src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementController.java
+++ b/src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementController.java
@@ -8,6 +8,8 @@
import com.ruoyi.collaborativeApproval.pojo.SealApplicationManagement;
import com.ruoyi.collaborativeApproval.service.RulesRegulationsManagementService;
import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -31,12 +33,14 @@
@GetMapping("/getList")
@ApiOperation("鍒嗛〉鏌ヨ")
+ @Log(title = "鍒嗛〉鏌ヨ瑙勭珷鍒跺害绠$悊", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, RulesRegulationsManagement rulesRegulationsManagement){
return AjaxResult.success(rulesRegulationsManagementService.listPage(page, rulesRegulationsManagement));
}
@PostMapping("/add")
@ApiOperation("鏂板")
+ @Log(title = "鏂板瑙勭珷鍒跺害绠$悊", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody RulesRegulationsManagement rulesRegulationsManagement){
rulesRegulationsManagementService.save(rulesRegulationsManagement);
return AjaxResult.success(rulesRegulationsManagement.getId());
@@ -44,12 +48,14 @@
@PostMapping("/update")
@ApiOperation("淇敼")
+ @Log(title = "淇敼瑙勭珷鍒跺害绠$悊", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody RulesRegulationsManagement rulesRegulationsManagement){
return AjaxResult.success(rulesRegulationsManagementService.updateById(rulesRegulationsManagement));
}
@DeleteMapping("/delete")
@ApiOperation("鍒犻櫎")
+ @Log(title = "鍒犻櫎瑙勭珷鍒跺害绠$悊", businessType = BusinessType.DELETE)
public AjaxResult delete(@PathVariable("ids") List<Long> ids){
if (CollectionUtils.isEmpty(ids)) {
throw new RuntimeException("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
@@ -59,28 +65,33 @@
//瑙勫垯鏌ョ湅鏃舵柊澧為槄璇荤姸鎬�
@PostMapping("/addReadingStatus")
@ApiOperation("鏂板闃呰鐘舵��")
+ @Log(title = "鏂板瑙勭珷鍒跺害绠$悊闃呰鐘舵��", businessType = BusinessType.INSERT)
public AjaxResult addReadingStatus(@RequestBody ReadingStatus readingStatus){
return AjaxResult.success(readingStatusMapper.insert(readingStatus));
}
@PostMapping("/updateReadingStatus")
@ApiOperation("淇敼闃呰鐘舵��")
+ @Log(title = "淇敼瑙勭珷鍒跺害绠$悊闃呰鐘舵��", businessType = BusinessType.UPDATE)
public AjaxResult updateReadingStatus(@RequestBody ReadingStatus readingStatus){
return AjaxResult.success(readingStatusMapper.updateById(readingStatus));
}
@GetMapping("/getReadingStatusList")
@ApiOperation("鍒嗛〉鏌ヨ闃呰鐘舵��")
+ @Log(title = "鍒嗛〉鏌ヨ瑙勭珷鍒跺害绠$悊闃呰鐘舵��", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, ReadingStatus readingStatus){
return AjaxResult.success(readingStatusMapper.selectPage(page,new QueryWrapper<ReadingStatus>(readingStatus)));
}
@GetMapping("/getReadingStatusByRuleId/{ruleId}")
@ApiOperation("鏍规嵁鍒跺害id鏌ヨ闃呰鐘舵��")
+ @Log(title = "鏍规嵁瑙勭珷鍒跺害绠$悊id鏌ヨ闃呰鐘舵��", businessType = BusinessType.OTHER)
public AjaxResult getReadingStatusByRuleId(@PathVariable Long ruleId){
return AjaxResult.success(readingStatusMapper.selectList(new QueryWrapper<ReadingStatus>().eq("rule_id", ruleId)));
}
@ApiOperation(value = "瑙勭珷鍒跺害绠$悊瀵煎嚭")
@PostMapping("/export")
- public void export(HttpServletResponse response) {
+ @Log(title = "瑙勭珷鍒跺害绠$悊瀵煎嚭", businessType = BusinessType.EXPORT)
+ public void export(HttpServletResponse response) {
List<RulesRegulationsManagement> accountExpenses = rulesRegulationsManagementService.list();
ExcelUtil<RulesRegulationsManagement> util = new ExcelUtil<RulesRegulationsManagement>(RulesRegulationsManagement.class);
util.exportExcel(response, accountExpenses, "瑙勭珷鍒跺害绠$悊瀵煎嚭");
diff --git a/src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementFileController.java b/src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementFileController.java
index 8f9ced9..6ea8519 100644
--- a/src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementFileController.java
+++ b/src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementFileController.java
@@ -3,6 +3,8 @@
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.collaborativeApproval.pojo.RulesRegulationsManagementFile;
import com.ruoyi.collaborativeApproval.service.RulesRegulationsManagementFileService;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.quality.pojo.QualityInspectFile;
import com.ruoyi.quality.service.IQualityInspectFileService;
@@ -34,6 +36,7 @@
* @return
*/
@PostMapping("/add")
+ @Log(title = "鏂板瑙勭珷鍒跺害绠$悊闄勪欢", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody RulesRegulationsManagementFile rulesRegulationsManagementFile) {
return AjaxResult.success(rulesRegulationsManagementFileService.save(rulesRegulationsManagementFile));
}
@@ -44,6 +47,7 @@
* @return
*/
@DeleteMapping("/del")
+ @Log(title = "鍒犻櫎瑙勭珷鍒跺害绠$悊闄勪欢", businessType = BusinessType.DELETE)
public AjaxResult delQualityUnqualified(@RequestBody List<Integer> ids) {
if(CollectionUtils.isEmpty(ids)){
return AjaxResult.error("璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�");
@@ -59,6 +63,7 @@
* @return
*/
@GetMapping("/listPage")
+ @Log(title = "鍒嗛〉鏌ヨ瑙勭珷鍒跺害绠$悊闄勪欢", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, RulesRegulationsManagementFile rulesRegulationsManagementFile) {
return AjaxResult.success(rulesRegulationsManagementFileService.listPage(page, rulesRegulationsManagementFile));
}
diff --git a/src/main/java/com/ruoyi/collaborativeApproval/controller/SealApplicationManagementController.java b/src/main/java/com/ruoyi/collaborativeApproval/controller/SealApplicationManagementController.java
index bcfc20d..aa95e82 100644
--- a/src/main/java/com/ruoyi/collaborativeApproval/controller/SealApplicationManagementController.java
+++ b/src/main/java/com/ruoyi/collaborativeApproval/controller/SealApplicationManagementController.java
@@ -6,6 +6,7 @@
import com.ruoyi.collaborativeApproval.service.SealApplicationManagementService;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.service.ISysNoticeService;
@@ -33,12 +34,14 @@
@GetMapping("/getList")
@ApiOperation("鍒嗛〉鏌ヨ")
+ @Log(title = "鍒嗛〉鏌ヨ鐢ㄥ嵃鐢宠绠$悊", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, SealApplicationManagement sealApplicationManagement){
return AjaxResult.success(sealApplicationManagementService.listPage(page,sealApplicationManagement));
}
@PostMapping("/add")
@ApiOperation("鏂板")
+ @Log(title = "鏂板鐢ㄥ嵃鐢宠绠$悊", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody SealApplicationManagement sealApplicationManagement){
sealApplicationManagementService.save(sealApplicationManagement);
//娑堟伅閫氱煡
@@ -52,12 +55,14 @@
@PostMapping("/update")
@ApiOperation("淇敼")
+ @Log(title = "淇敼鐢ㄥ嵃鐢宠绠$悊", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody SealApplicationManagement sealApplicationManagement){
return AjaxResult.success(sealApplicationManagementService.updateById(sealApplicationManagement));
}
@DeleteMapping("/delete")
@ApiOperation("鍒犻櫎")
+ @Log(title = "鍒犻櫎鐢ㄥ嵃鐢宠绠$悊", businessType = BusinessType.DELETE)
public AjaxResult delete(@PathVariable("ids") List<Long> ids){
if (CollectionUtils.isEmpty(ids)) {
throw new RuntimeException("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
@@ -67,6 +72,7 @@
@ApiOperation(value = "鐢ㄥ嵃鐢宠绠$悊瀵煎嚭")
@PostMapping("/export")
+ @Log(title = "瀵煎嚭鐢ㄥ嵃鐢宠绠$悊", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response) {
List<SealApplicationManagement> accountExpenses = sealApplicationManagementService.list();
ExcelUtil<SealApplicationManagement> util = new ExcelUtil<SealApplicationManagement>(SealApplicationManagement.class);
diff --git a/src/main/java/com/ruoyi/collaborativeApproval/controller/StaffContactsPersonalController.java b/src/main/java/com/ruoyi/collaborativeApproval/controller/StaffContactsPersonalController.java
index f189872..356411c 100644
--- a/src/main/java/com/ruoyi/collaborativeApproval/controller/StaffContactsPersonalController.java
+++ b/src/main/java/com/ruoyi/collaborativeApproval/controller/StaffContactsPersonalController.java
@@ -4,6 +4,8 @@
import com.ruoyi.collaborativeApproval.dto.StaffContactsPersonalDTO;
import com.ruoyi.collaborativeApproval.pojo.StaffContactsPersonal;
import com.ruoyi.collaborativeApproval.service.StaffContactsPersonalService;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
@@ -21,18 +23,21 @@
private StaffContactsPersonalService staffContactsPersonalService;
@GetMapping("/getList")
@ApiOperation("鍒嗛〉鏌ヨ")
+ @Log(title = "鍒嗛〉鏌ヨ鍛樺伐鑱旂郴浜�", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, StaffContactsPersonalDTO staffContactsPersonalDTO ){
return AjaxResult.success(staffContactsPersonalService.listPage(page, staffContactsPersonalDTO));
}
@PostMapping("/add")
@ApiOperation("鏂板")
+ @Log(title = "鏂板鍛樺伐鑱旂郴浜�", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody StaffContactsPersonal staffContactsPersonal){
return AjaxResult.success(staffContactsPersonalService.save(staffContactsPersonal));
}
@DeleteMapping("/delete/{id}")
@ApiOperation("鍒犻櫎")
+ @Log(title = "鍒犻櫎鍛樺伐鑱旂郴浜�", businessType = BusinessType.DELETE)
public AjaxResult delete(@PathVariable("id") Long id){
// if (CollectionUtils.isEmpty(id)) {
// throw new RuntimeException("璇蜂紶鍏ヨ鍒犻櫎鐨処D");
diff --git a/src/main/java/com/ruoyi/staff/controller/AnalyticsController.java b/src/main/java/com/ruoyi/staff/controller/AnalyticsController.java
index cfa802c..8a867c3 100644
--- a/src/main/java/com/ruoyi/staff/controller/AnalyticsController.java
+++ b/src/main/java/com/ruoyi/staff/controller/AnalyticsController.java
@@ -1,5 +1,7 @@
package com.ruoyi.staff.controller;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.staff.service.AnalyticsService;
import org.springframework.web.bind.annotation.GetMapping;
@@ -16,16 +18,19 @@
private AnalyticsService analyticsService;
@GetMapping("/reason")
+ @Log(title = "鍛樺伐绂昏亴鍘熷洜鍒嗘瀽", businessType = BusinessType.OTHER)
public AjaxResult staffLeaveReasonAnalytics() {
return AjaxResult.success(analyticsService.staffLeaveReasonAnalytics());
}
@GetMapping("/monthly_turnover_rate")
+ @Log(title = "鍛樺伐绂昏亴鐜囧垎鏋�", businessType = BusinessType.OTHER)
public AjaxResult getMonthlyTurnoverRateFor12Months() {
return AjaxResult.success(analyticsService.getMonthlyTurnoverRateFor12Months());
}
@GetMapping("/total_statistic")
+ @Log(title = "鍛樺伐鎬荤粺璁�", businessType = BusinessType.OTHER)
public AjaxResult getTotalStatistic() {
return AjaxResult.success(analyticsService.getTotalStatistic());
}
diff --git a/src/main/java/com/ruoyi/staff/controller/BankController.java b/src/main/java/com/ruoyi/staff/controller/BankController.java
index 5d3a9fc..f6ada0a 100644
--- a/src/main/java/com/ruoyi/staff/controller/BankController.java
+++ b/src/main/java/com/ruoyi/staff/controller/BankController.java
@@ -30,7 +30,8 @@
private BankService bankService;
@GetMapping("/list")
- public AjaxResult list() {
+ @Log(title = "閾惰绠$悊琛�", businessType = BusinessType.OTHER)
+ public AjaxResult list() {
return AjaxResult.success(bankService.list());
}
diff --git a/src/main/java/com/ruoyi/staff/controller/HolidayApplicationController.java b/src/main/java/com/ruoyi/staff/controller/HolidayApplicationController.java
index 66f1710..cd2fb09 100644
--- a/src/main/java/com/ruoyi/staff/controller/HolidayApplicationController.java
+++ b/src/main/java/com/ruoyi/staff/controller/HolidayApplicationController.java
@@ -1,6 +1,8 @@
package com.ruoyi.staff.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.staff.pojo.HolidayApplication;
import com.ruoyi.staff.service.HolidayApplicationService;
@@ -16,6 +18,7 @@
* 璇峰亣鐢宠鍒嗛〉鏌ヨ
*/
@GetMapping("/listPage")
+ @Log(title = "璇峰亣鐢宠鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, HolidayApplication holidayApplication){
return AjaxResult.success(holidayApplicationService.listPage(page, holidayApplication));
}
@@ -23,6 +26,7 @@
* 鏂板璇峰亣鐢宠
*/
@PostMapping("/add")
+ @Log(title = "鏂板璇峰亣鐢宠", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody HolidayApplication holidayApplication){
return AjaxResult.success(holidayApplicationService.save(holidayApplication));
}
@@ -30,6 +34,7 @@
* 淇敼璇峰亣鐢宠
*/
@PostMapping("/update")
+ @Log(title = "淇敼璇峰亣鐢宠", businessType = BusinessType.UPDATE)
public AjaxResult update(@RequestBody HolidayApplication holidayApplication){
return AjaxResult.success(holidayApplicationService.updateById(holidayApplication));
}
@@ -37,6 +42,7 @@
* 鍒犻櫎璇峰亣鐢宠
*/
@DeleteMapping("/delete/{id}")
+ @Log(title = "鍒犻櫎璇峰亣鐢宠", businessType = BusinessType.DELETE)
public AjaxResult delete(@PathVariable("id") Long id){
return AjaxResult.success(holidayApplicationService.removeById(id));
}
diff --git a/src/main/java/com/ruoyi/staff/controller/PersonalAttendanceLocationConfigController.java b/src/main/java/com/ruoyi/staff/controller/PersonalAttendanceLocationConfigController.java
index 5eabe99..3a48ede 100644
--- a/src/main/java/com/ruoyi/staff/controller/PersonalAttendanceLocationConfigController.java
+++ b/src/main/java/com/ruoyi/staff/controller/PersonalAttendanceLocationConfigController.java
@@ -1,6 +1,8 @@
package com.ruoyi.staff.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.domain.R;
import com.ruoyi.staff.dto.PersonalAttendanceRecordsDto;
@@ -33,12 +35,14 @@
@ApiOperation("鏂板/淇敼浜哄憳鎵撳崱瑙勫垯閰嶇疆")
@PostMapping("/add")
+ @Log(title = "鏂板/淇敼浜哄憳鎵撳崱瑙勫垯閰嶇疆", businessType = BusinessType.INSERT)
public R add(@RequestBody PersonalAttendanceLocationConfig personalAttendanceLocationConfig){
return R.ok(personalAttendanceLocationConfigService.saveOrUpdate(personalAttendanceLocationConfig));
}
@ApiOperation("鍒嗛〉鏌ヨ浜哄憳鎵撳崱瑙勫垯閰嶇疆")
@GetMapping("/listPage")
+ @Log(title = "鍒嗛〉鏌ヨ浜哄憳鎵撳崱瑙勫垯閰嶇疆", businessType = BusinessType.OTHER)
public R listPage(Page page){
return R.ok(personalAttendanceLocationConfigService.page(page));
}
@@ -46,6 +50,7 @@
@ApiOperation("鍒犻櫎浜哄憳鎵撳崱瑙勫垯閰嶇疆")
@DeleteMapping("/del")
+ @Log(title = "鍒犻櫎浜哄憳鎵撳崱瑙勫垯閰嶇疆", businessType = BusinessType.DELETE)
public R del(@RequestBody List<Integer> ids) {
return R.ok(personalAttendanceLocationConfigService.removeBatchByIds(ids));
}
diff --git a/src/main/java/com/ruoyi/staff/controller/PersonalAttendanceRecordsController.java b/src/main/java/com/ruoyi/staff/controller/PersonalAttendanceRecordsController.java
index d6a8ce3..1e9e472 100644
--- a/src/main/java/com/ruoyi/staff/controller/PersonalAttendanceRecordsController.java
+++ b/src/main/java/com/ruoyi/staff/controller/PersonalAttendanceRecordsController.java
@@ -1,6 +1,8 @@
package com.ruoyi.staff.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.staff.dto.PersonalAttendanceRecordsDto;
import com.ruoyi.staff.pojo.PersonalAttendanceRecords;
@@ -29,24 +31,28 @@
@ApiOperation("鏂板鎵撳崱绛惧埌")
@PostMapping("")
+ @Log(title = "鏂板鎵撳崱绛惧埌", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody PersonalAttendanceRecordsDto personalAttendanceRecordsDto){
return AjaxResult.success(personalAttendanceRecordsService.add(personalAttendanceRecordsDto));
}
@ApiOperation("鍒嗛〉鏌ヨ鎵撳崱绛惧埌")
@GetMapping("/listPage")
+ @Log(title = "鍒嗛〉鏌ヨ鎵撳崱绛惧埌", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, PersonalAttendanceRecordsDto personalAttendanceRecordsDto){
return AjaxResult.success(personalAttendanceRecordsService.listPage(page, personalAttendanceRecordsDto));
}
@ApiOperation("鑾峰彇褰撳墠浜虹殑鑰冨嫟鐩稿叧鏁版嵁")
@GetMapping("/today")
+ @Log(title = "鑾峰彇褰撳墠浜虹殑鑰冨嫟鐩稿叧鏁版嵁", businessType = BusinessType.OTHER)
public AjaxResult todayInfo(PersonalAttendanceRecordsDto personalAttendanceRecordsDto){
return AjaxResult.success(personalAttendanceRecordsService.todayInfo(personalAttendanceRecordsDto));
}
@ApiOperation("瀵煎嚭鎵撳崱绛惧埌")
@PostMapping("/export")
+ @Log(title = "瀵煎嚭鎵撳崱绛惧埌", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, PersonalAttendanceRecordsDto personalAttendanceRecordsDto) {
personalAttendanceRecordsService.export(response, personalAttendanceRecordsDto);
}
diff --git a/src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java b/src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java
index 85ff013..c0a49d9 100644
--- a/src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java
+++ b/src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java
@@ -4,6 +4,8 @@
import com.alibaba.excel.write.style.HorizontalCellStyleStrategy;
import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.R;
import com.ruoyi.staff.dto.PerformanceShiftAddDto;
import com.ruoyi.staff.pojo.PersonalAttendanceLocationConfig;
@@ -41,24 +43,28 @@
@ApiOperation("浜哄憳鎺掔彮")
@PostMapping("/add")
+ @Log(title = "浜哄憳鎺掔彮", businessType = BusinessType.INSERT)
public R add(@RequestBody PerformanceShiftAddDto performanceShiftAddDto){
return R.ok(personalShiftService.performanceShiftAdd(performanceShiftAddDto));
}
@ApiOperation(value = "鏈堜唤鍒嗛〉鏌ヨ")
@GetMapping("page")
+ @Log(title = "鏈堜唤鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
public R performanceShiftPage(Integer size, Integer current, String time, String userName, Integer sysDeptId) {
return R.ok(personalShiftService.performanceShiftPage(new Page<>(current, size), time, userName, sysDeptId));
}
@ApiOperation(value = "骞翠唤鍒嗛〉鏌ヨ")
@GetMapping("pageYear")
+ @Log(title = "骞翠唤鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
public R performanceShiftPageYear(Integer size, Integer current, String time, String userName, Integer sysDeptId) {
return R.ok(personalShiftService.performanceShiftPageYear(new Page<>(current, size), time, userName, sysDeptId));
}
@ApiOperation(value = "鐝鐘舵�佷慨鏀�")
@PostMapping("update")
+ @Log(title = "鐝鐘舵�佷慨鏀�", businessType = BusinessType.UPDATE)
public R performanceShiftUpdate(@RequestBody PersonalShift personalShift) {
personalShiftService.performanceShiftUpdate(personalShift);
return R.ok();
@@ -66,6 +72,7 @@
@ApiOperation(value = "瀵煎嚭")
@GetMapping("export")
+ @Log(title = "瀵煎嚭", businessType = BusinessType.EXPORT)
public void exportToExcel(@NotNull(message = "鏃堕棿涓嶈兘涓虹┖锛�") String time, String userName, Integer sysDeptId, Boolean isMonth, HttpServletResponse response) throws Exception {
Map<Object, Object> data;
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
diff --git a/src/main/java/com/ruoyi/staff/controller/SchemeApplicableStaffController.java b/src/main/java/com/ruoyi/staff/controller/SchemeApplicableStaffController.java
index 39f1ef0..44234d2 100644
--- a/src/main/java/com/ruoyi/staff/controller/SchemeApplicableStaffController.java
+++ b/src/main/java/com/ruoyi/staff/controller/SchemeApplicableStaffController.java
@@ -36,6 +36,7 @@
@GetMapping("/listPage")
@ApiOperation(value = "鍒嗛〉鏌ヨ")
+ @Log(title = "绀句繚鏂规閫傜敤浜哄憳琛ㄥ垎椤垫煡璇�", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, SchemeApplicableStaff schemeApplicableStaff) {
return schemeApplicableStaffService.listPage(page,schemeApplicableStaff);
}
diff --git a/src/main/java/com/ruoyi/staff/controller/StaffContractController.java b/src/main/java/com/ruoyi/staff/controller/StaffContractController.java
index af4c90c..9984714 100644
--- a/src/main/java/com/ruoyi/staff/controller/StaffContractController.java
+++ b/src/main/java/com/ruoyi/staff/controller/StaffContractController.java
@@ -1,6 +1,8 @@
package com.ruoyi.staff.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.staff.pojo.StaffContract;
import com.ruoyi.staff.service.StaffContractService;
@@ -28,6 +30,7 @@
* @return
*/
@GetMapping("/listPage")
+ @Log(title = "鍛樺伐鍚堝悓鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
public AjaxResult staffContractListPage(Page page, StaffContract staffContract) {
return AjaxResult.success(staffContractService.staffContractListPage(page, staffContract));
}
diff --git a/src/main/java/com/ruoyi/staff/controller/StaffLeaveController.java b/src/main/java/com/ruoyi/staff/controller/StaffLeaveController.java
index c018008..ad2a065 100644
--- a/src/main/java/com/ruoyi/staff/controller/StaffLeaveController.java
+++ b/src/main/java/com/ruoyi/staff/controller/StaffLeaveController.java
@@ -1,6 +1,8 @@
package com.ruoyi.staff.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.staff.dto.StaffLeaveDto;
import com.ruoyi.staff.service.StaffLeaveService;
@@ -28,6 +30,7 @@
* @return
*/
@GetMapping("/listPage")
+ @Log(title = "鍛樺伐绂昏亴鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
public AjaxResult staffLeaveListPage(Page page, StaffLeaveDto staffLeaveDto) {
return AjaxResult.success(staffLeaveService.staffLeaveListPage(page, staffLeaveDto));
}
@@ -38,6 +41,7 @@
* @return
*/
@PostMapping("")
+ @Log(title = "鏂板绂昏亴", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody StaffLeaveDto staffLeaveDto) {
return AjaxResult.success(staffLeaveService.add(staffLeaveDto));
}
@@ -49,6 +53,7 @@
* @return
*/
@PutMapping("/{id}")
+ @Log(title = "鏇存柊绂昏亴淇℃伅", businessType = BusinessType.UPDATE)
public AjaxResult update(@PathVariable("id") Long id, @RequestBody StaffLeaveDto staffLeaveDto) {
return AjaxResult.success(staffLeaveService.update(id, staffLeaveDto));
}
@@ -59,6 +64,7 @@
* @return
*/
@DeleteMapping("/del")
+ @Log(title = "鍒犻櫎绂昏亴", businessType = BusinessType.DELETE)
public AjaxResult del(@RequestBody List<Integer> ids) {
if(CollectionUtils.isEmpty(ids)){
return AjaxResult.error("璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�");
@@ -71,6 +77,7 @@
* @param staffLeaveDto
*/
@PostMapping("/export")
+ @Log(title = "绂昏亴瀵煎嚭", businessType = BusinessType.EXPORT)
public void export(HttpServletResponse response, StaffLeaveDto staffLeaveDto) {
staffLeaveService.export(response, staffLeaveDto);
}
diff --git a/src/main/java/com/ruoyi/staff/controller/StaffOnJobController.java b/src/main/java/com/ruoyi/staff/controller/StaffOnJobController.java
index 8e3d6b6..8646a2a 100644
--- a/src/main/java/com/ruoyi/staff/controller/StaffOnJobController.java
+++ b/src/main/java/com/ruoyi/staff/controller/StaffOnJobController.java
@@ -38,6 +38,7 @@
* @return
*/
@GetMapping("/listPage")
+ @Log(title = "鍦ㄨ亴鍛樺伐鍙拌处鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
public AjaxResult staffOnJobListPage(Page page, StaffOnJob staffOnJob) {
return AjaxResult.success(staffOnJobService.staffOnJobListPage(page, staffOnJob));
}
@@ -47,6 +48,7 @@
* @return
*/
@GetMapping("/list")
+ @Log(title = "鍦ㄨ亴鍛樺伐涓嬫媺(鏂板绂昏亴鐢�)", businessType = BusinessType.OTHER)
public AjaxResult staffOnJobList(StaffOnJob staffOnJob) {
return AjaxResult.success(staffOnJobService.staffOnJobList(staffOnJob));
}
@@ -57,6 +59,7 @@
* @return
*/
@PostMapping("")
+ @Log(title = "鏂板鍏ヨ亴", businessType = BusinessType.INSERT)
public AjaxResult add(@RequestBody StaffOnJobDto staffOnJob) {
return AjaxResult.success(staffOnJobService.add(staffOnJob));
}
@@ -67,6 +70,7 @@
* @return
*/
@PutMapping("/{id}")
+ @Log(title = "鏇存柊鍏ヨ亴淇℃伅", businessType = BusinessType.UPDATE)
public AjaxResult update(@PathVariable("id") Long id, @RequestBody StaffOnJobDto staffOnJobDto) {
return AjaxResult.success(staffOnJobService.update(id, staffOnJobDto));
}
@@ -77,6 +81,7 @@
* @return
*/
@DeleteMapping("/del")
+ @Log(title = "鍒犻櫎鍏ヨ亴", businessType = BusinessType.DELETE)
public AjaxResult delStaffOnJobs(@RequestBody List<Integer> ids) {
if(CollectionUtils.isEmpty(ids)){
return AjaxResult.error("璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�");
@@ -90,6 +95,7 @@
* @return
*/
@GetMapping("/{id}")
+ @Log(title = "鍦ㄨ亴鍛樺伐璇︽儏", businessType = BusinessType.OTHER)
public AjaxResult staffOnJobDetail(@PathVariable("id") Long id) {
return AjaxResult.success(staffOnJobService.staffOnJobDetail(id));
}
@@ -101,6 +107,7 @@
* @return
*/
@PostMapping("/renewContract/{id}")
+ @Log(title = "缁鍚堝悓", businessType = BusinessType.UPDATE)
public AjaxResult renewContract(@PathVariable("id") Long id, @RequestBody StaffContract staffContract) {
return AjaxResult.success(staffOnJobService.renewContract(id, staffContract));
}
@@ -124,6 +131,7 @@
* @param staffOnJob
*/
@PostMapping("/export")
+ @Log(title = "鍦ㄨ亴鍛樺伐瀵煎嚭", businessType = BusinessType.EXPORT)
public void staffOnJobExport(HttpServletResponse response,StaffOnJob staffOnJob) {
staffOnJobService.staffOnJobExport(response, staffOnJob);
}
@@ -135,6 +143,7 @@
*/
@PostMapping("/exportCopy")
@ApiOperation("word妯℃澘鍚堝悓鍦ㄨ亴鍛樺伐瀵煎嚭")
+ @Log(title = "word妯℃澘鍚堝悓鍦ㄨ亴鍛樺伐瀵煎嚭", businessType = BusinessType.EXPORT)
public AjaxResult exportCopy(HttpServletResponse response,@RequestBody StaffOnJob staffOnJob) throws Exception{
return AjaxResult.success(staffOnJobService.exportCopy(response, staffOnJob));
}
diff --git a/src/main/java/com/ruoyi/staff/controller/StaffSalaryMainController.java b/src/main/java/com/ruoyi/staff/controller/StaffSalaryMainController.java
index ad43b6c..a40f338 100644
--- a/src/main/java/com/ruoyi/staff/controller/StaffSalaryMainController.java
+++ b/src/main/java/com/ruoyi/staff/controller/StaffSalaryMainController.java
@@ -34,12 +34,14 @@
@GetMapping("/listPage")
@ApiOperation("鍛樺伐宸ヨ祫涓昏〃鍒嗛〉鏌ヨ")
+ @Log(title = "鍛樺伐宸ヨ祫涓昏〃鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
public AjaxResult listPage(Page page, StaffSalaryMain staffSalaryMain) {
return staffSalaryMainService.listPage(page, staffSalaryMain);
}
@ApiOperation("閫氳繃閮ㄩ棬ids鑾峰彇鐢ㄦ埛淇℃伅璁$畻姣忎釜鍛樺伐鐨勫伐璧�")
@PostMapping("/calculateSalary")
+ @Log(title = "閫氳繃閮ㄩ棬ids鑾峰彇鐢ㄦ埛淇℃伅璁$畻姣忎釜鍛樺伐鐨勫伐璧�", businessType = BusinessType.OTHER)
public AjaxResult calculateSalary(@RequestBody CalculateSalaryDto calculateSalaryDto) {
return staffSalaryMainService.calculateSalary(calculateSalaryDto);
}
diff --git a/src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java b/src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java
index a54096a..c6e9140 100644
--- a/src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java
+++ b/src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java
@@ -31,23 +31,27 @@
private final StaffSchedulingService staffSchedulingService;
@PostMapping("/listPage")
+ @Log(title = "鎺掔彮鍒嗛〉鏌ヨ", businessType = BusinessType.OTHER)
public AjaxResult listPage(@RequestBody SearchSchedulingVo vo){
return AjaxResult.success(staffSchedulingService.listPage(vo));
}
@PostMapping("/save")
+ @Log(title = "鏂板鎺掔彮", businessType = BusinessType.INSERT)
public AjaxResult save(@RequestBody @Validated SaveStaffSchedulingDto saveStaffSchedulingDto){
staffSchedulingService.saveStaffScheduling(saveStaffSchedulingDto);
return AjaxResult.success();
}
@DeleteMapping("/delByIds")
+ @Log(title = "鎵归噺鍒犻櫎鎺掔彮", businessType = BusinessType.DELETE)
public AjaxResult delByIds(@RequestBody List<Integer> ids){
staffSchedulingService.removeByIds(ids);
return AjaxResult.success();
}
@DeleteMapping("/del/{id}")
+ @Log(title = "鍒犻櫎鎺掔彮", businessType = BusinessType.DELETE)
public AjaxResult del(@PathVariable("id") Integer id){
staffSchedulingService.removeById(id);
return AjaxResult.success();
@@ -57,6 +61,7 @@
* 鑾峰彇褰撳墠鐢ㄦ埛鏈�鏂版帓鐝褰�
*/
@GetMapping("/getCurrentUserLatestScheduling")
+ @Log(title = "鑾峰彇褰撳墠鐢ㄦ埛鏈�鏂版帓鐝褰�", businessType = BusinessType.OTHER)
public AjaxResult getCurrentUserLatestScheduling(){
return AjaxResult.success(staffSchedulingService.getCurrentUserLatestScheduling());
}
--
Gitblit v1.9.3