huminmin
5 天以前 7a8827c634b53bb1cb861ebc1fd4ac6d1ae6cb5a
人力资源和协同办公增加操作日志
已修改25个文件
181 ■■■■■ 文件已修改
src/main/java/com/ruoyi/approve/controller/ApproveNodeController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/approve/controller/ApproveProcessController.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/approve/controller/HolidaySettingsController.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/approve/controller/KnowledgeBaseController.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/approve/controller/NotificationManagementController.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/approve/controller/RpaProcessAutomationController.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/collaborativeApproval/controller/DutyPlanController.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/collaborativeApproval/controller/MeetingController.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/collaborativeApproval/controller/NoticeTypeController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementController.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/collaborativeApproval/controller/RulesRegulationsManagementFileController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/collaborativeApproval/controller/SealApplicationManagementController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/collaborativeApproval/controller/StaffContactsPersonalController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/AnalyticsController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/BankController.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/HolidayApplicationController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/PersonalAttendanceLocationConfigController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/PersonalAttendanceRecordsController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/SchemeApplicableStaffController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/StaffContractController.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/StaffLeaveController.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/StaffOnJobController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/StaffSalaryMainController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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();
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)
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("请传入要删除的ID");
        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("请传入要删除的ID");
        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("请传入要删除的ID");
        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("请传入要删除的ID");
        return AjaxResult.success(workingHoursSettingMapper.deleteBatchIds(ids));
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("请传入要删除的ID");
        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);
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("请传入要删除的ID");
        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));
    }
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("请传入要删除的ID");
        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);
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("请传入要删除的ID");
@@ -57,6 +64,7 @@
    }
    @PostMapping("/export")
    @ApiOperation("导出")
    @Log(title = "导出岗位计划", businessType = BusinessType.EXPORT)
    public void exportData(HttpServletResponse response, DutyPlanDTO dutyPlanDTO){
        dutyPlanService.exportData(response, dutyPlanDTO);
    }
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);
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());
    }
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("请传入要删除的ID");
@@ -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, "规章制度管理导出");
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));
    }
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("请传入要删除的ID");
@@ -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);
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("请传入要删除的ID");
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());
    }
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());
    }
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));
    }
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));
    }
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);
    }
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");
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);
    }
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));
    }
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);
    }
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));
    }
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);
    }
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());
    }