| | |
| | | |
| | | 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; |
| | |
| | | */ |
| | | @GetMapping("/details/{id}") |
| | | @ApiOperation(value = "流程状态详情") |
| | | @Log(title = "流程状态详情", businessType = BusinessType.OTHER) |
| | | public AjaxResult details(@PathVariable String id) { |
| | | return AjaxResult.success(approveNodeService.details(id)); |
| | | } |
| | |
| | | @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(); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/init") |
| | | @Log(title = "初始化审批节点", businessType = BusinessType.OTHER) |
| | | public AjaxResult init(String id) { |
| | | approveNodeService.initApproveNodes("",id,1L); |
| | | return AjaxResult.success(); |
| | |
| | | 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; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/getDept") |
| | | @Log(title = "获取部门列表", businessType = BusinessType.OTHER) |
| | | public AjaxResult getDept() { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | LoginUser user = SecurityUtils.getLoginUser(); |
| | |
| | | @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("参数不能为空"); |
| | |
| | | */ |
| | | @GetMapping("/get") |
| | | @ApiOperation(value = "审批详情") |
| | | @Log(title = "审批详情", businessType = BusinessType.OTHER) |
| | | public AjaxResult get(ApproveGetAndUpdateVo approveGetAndUpdateVo){ |
| | | if (approveGetAndUpdateVo.getId() == null || approveGetAndUpdateVo.getId().isEmpty()) { |
| | | return AjaxResult.warn("参数不能为空"); |
| | |
| | | @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("参数不能为空"); |
| | |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "获取审批列表") |
| | | @Log(title = "获取审批列表", businessType = BusinessType.OTHER) |
| | | public AjaxResult list(Page page, ApproveProcess approveProcess) { |
| | | return AjaxResult.success(approveProcessService.listAll(page, approveProcess)); |
| | | } |
| | |
| | | */ |
| | | @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) { |
| | |
| | | |
| | | @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) |
| | |
| | | |
| | | @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) |
| | |
| | | |
| | | @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) |
| | |
| | | |
| | | @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) |
| | |
| | | |
| | | @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) |
| | |
| | | |
| | | @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) |
| | |
| | | |
| | | @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) |
| | |
| | | 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; |
| | |
| | | * @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); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @Log(title = "添假期设置", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody HolidaySettings holidaySettings){ |
| | | return AjaxResult.success(holidaySettingsService.save(holidaySettings)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/update") |
| | | @Log(title = "更新假期设置", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody HolidaySettings holidaySettings){ |
| | | return AjaxResult.success(holidaySettingsService.updateById(holidaySettings)); |
| | | } |
| | |
| | | * @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)); |
| | |
| | | * @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); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/addAnnualLeaveSetting") |
| | | @Log(title = "添年假规则", businessType = BusinessType.INSERT) |
| | | public AjaxResult addAnnualLeaveSetting(@RequestBody AnnualLeaveSetting annualLeaveSetting){ |
| | | return AjaxResult.success(annualLeaveSettingMapper.insert(annualLeaveSetting)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/updateAnnualLeaveSetting") |
| | | @Log(title = "更新年假规则", businessType = BusinessType.UPDATE) |
| | | public AjaxResult updateAnnualLeaveSetting(@RequestBody AnnualLeaveSetting annualLeaveSetting){ |
| | | return AjaxResult.success(annualLeaveSettingMapper.updateById(annualLeaveSetting)); |
| | | } |
| | |
| | | * @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)); |
| | |
| | | * @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); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/addOvertimeSetting") |
| | | @Log(title = "添加班规则", businessType = BusinessType.INSERT) |
| | | public AjaxResult addOvertimeSetting(@RequestBody OvertimeSetting overtimeSetting){ |
| | | return AjaxResult.success(overtimeSettingMapper.insert(overtimeSetting)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/updateOvertimeSetting") |
| | | @Log(title = "更新加班规则", businessType = BusinessType.UPDATE) |
| | | public AjaxResult updateOvertimeSetting(@RequestBody OvertimeSetting overtimeSetting){ |
| | | return AjaxResult.success(overtimeSettingMapper.updateById(overtimeSetting)); |
| | | } |
| | |
| | | * @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)); |
| | |
| | | * @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); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/addWorkingHoursSetting") |
| | | @Log(title = "添班制规则", businessType = BusinessType.INSERT) |
| | | public AjaxResult addWorkingHoursSetting(@RequestBody WorkingHoursSetting workingHoursSetting){ |
| | | return AjaxResult.success(workingHoursSettingMapper.insert(workingHoursSetting)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/updateWorkingHoursSetting") |
| | | @Log(title = "更新班制规则", businessType = BusinessType.UPDATE) |
| | | public AjaxResult updateWorkingHoursSetting(@RequestBody WorkingHoursSetting workingHoursSetting){ |
| | | return AjaxResult.success(workingHoursSettingMapper.updateById(workingHoursSetting)); |
| | | } |
| | |
| | | * @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)); |
| | |
| | | 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; |
| | |
| | | * @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); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @Log(title = "新增知识库管理", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody KnowledgeBase knowledgeBase){ |
| | | return AjaxResult.success(knowledgeBaseService.save(knowledgeBase)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/update") |
| | | @Log(title = "修改知识库管理", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody KnowledgeBase knowledgeBase){ |
| | | return AjaxResult.success(knowledgeBaseService.updateById(knowledgeBase)); |
| | | } |
| | |
| | | * @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)); |
| | |
| | | |
| | | @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); |
| | |
| | | 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; |
| | |
| | | * @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); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @Log(title = "新增通知管理", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody NotificationManagement notificationManagement){ |
| | | return AjaxResult.success(notificationManagementService.save(notificationManagement)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/update") |
| | | @Log(title = "修改通知管理", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody NotificationManagement notificationManagement){ |
| | | return AjaxResult.success(notificationManagementService.updateById(notificationManagement)); |
| | | } |
| | |
| | | * @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)); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/addOnlineMeeting") |
| | | @Log(title = "新增会议", businessType = BusinessType.INSERT) |
| | | public AjaxResult addOnlineMeeting(@RequestBody OnlineMeeting onlineMeeting){ |
| | | return AjaxResult.success(onlineMeetingMapper.insert(onlineMeeting)); |
| | | } |
| | |
| | | * |
| | | */ |
| | | @PostMapping("/addFileSharing") |
| | | @Log(title = "新增文件共享", businessType = BusinessType.INSERT) |
| | | public AjaxResult addFileSharing(@RequestBody FileSharing fileSharing){ |
| | | return AjaxResult.success(fileSharingMapper.insert(fileSharing)); |
| | | } |
| | |
| | | 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; |
| | |
| | | * @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); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @Log(title = "添加RPA流程自动化", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody RpaProcessAutomation rpaProcessAutomation){ |
| | | return AjaxResult.success(rpaProcessAutomationService.save(rpaProcessAutomation)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/update") |
| | | @Log(title = "更新RPA流程自动化", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody RpaProcessAutomation rpaProcessAutomation){ |
| | | return AjaxResult.success(rpaProcessAutomationService.updateById(rpaProcessAutomation)); |
| | | } |
| | |
| | | * @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)); |
| | |
| | | |
| | | @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); |
| | |
| | | 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; |
| | |
| | | |
| | | @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"); |
| | |
| | | } |
| | | @PostMapping("/export") |
| | | @ApiOperation("导出") |
| | | @Log(title = "导出岗位计划", businessType = BusinessType.EXPORT) |
| | | public void exportData(HttpServletResponse response, DutyPlanDTO dutyPlanDTO){ |
| | | dutyPlanService.exportData(response, dutyPlanDTO); |
| | | } |
| | |
| | | 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; |
| | |
| | | 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)); |
| | | } |
| | |
| | | |
| | | |
| | | @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); |
| | |
| | | |
| | | @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); |
| | |
| | | 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; |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @Log(title = "新增通知公告的公告类型", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody NoticeType noticeType) { |
| | | return AjaxResult.success(noticeTypeService.saveOrUpdate(noticeType)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/del") |
| | | @Log(title = "删除通知公告的公告类型", businessType = BusinessType.DELETE) |
| | | public AjaxResult delNoticeType(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/list") |
| | | @Log(title = "查询通知公告的公告类型", businessType = BusinessType.OTHER) |
| | | public AjaxResult noticeTypeList() { |
| | | return AjaxResult.success(noticeTypeService.list()); |
| | | } |
| | |
| | | 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; |
| | |
| | | |
| | | @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()); |
| | |
| | | |
| | | @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"); |
| | |
| | | //规则查看时新增阅读状态 |
| | | @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, "规章制度管理导出"); |
| | |
| | | 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; |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | @Log(title = "新增规章制度管理附件", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody RulesRegulationsManagementFile rulesRegulationsManagementFile) { |
| | | return AjaxResult.success(rulesRegulationsManagementFileService.save(rulesRegulationsManagementFile)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/del") |
| | | @Log(title = "删除规章制度管理附件", businessType = BusinessType.DELETE) |
| | | public AjaxResult delQualityUnqualified(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/listPage") |
| | | @Log(title = "分页查询规章制度管理附件", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page page, RulesRegulationsManagementFile rulesRegulationsManagementFile) { |
| | | return AjaxResult.success(rulesRegulationsManagementFileService.listPage(page, rulesRegulationsManagementFile)); |
| | | } |
| | |
| | | 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; |
| | |
| | | |
| | | @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); |
| | | //消息通知 |
| | |
| | | |
| | | @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"); |
| | |
| | | |
| | | @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); |
| | |
| | | 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; |
| | |
| | | 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"); |
| | |
| | | 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; |
| | |
| | | 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()); |
| | | } |
| | |
| | | private BankService bankService; |
| | | |
| | | @GetMapping("/list") |
| | | public AjaxResult list() { |
| | | @Log(title = "银行管理表", businessType = BusinessType.OTHER) |
| | | public AjaxResult list() { |
| | | return AjaxResult.success(bankService.list()); |
| | | } |
| | | |
| | |
| | | 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; |
| | |
| | | * 请假申请分页查询 |
| | | */ |
| | | @GetMapping("/listPage") |
| | | @Log(title = "请假申请分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page page, HolidayApplication holidayApplication){ |
| | | return AjaxResult.success(holidayApplicationService.listPage(page, holidayApplication)); |
| | | } |
| | |
| | | * 新增请假申请 |
| | | */ |
| | | @PostMapping("/add") |
| | | @Log(title = "新增请假申请", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody HolidayApplication holidayApplication){ |
| | | return AjaxResult.success(holidayApplicationService.save(holidayApplication)); |
| | | } |
| | |
| | | * 修改请假申请 |
| | | */ |
| | | @PostMapping("/update") |
| | | @Log(title = "修改请假申请", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody HolidayApplication holidayApplication){ |
| | | return AjaxResult.success(holidayApplicationService.updateById(holidayApplication)); |
| | | } |
| | |
| | | * 删除请假申请 |
| | | */ |
| | | @DeleteMapping("/delete/{id}") |
| | | @Log(title = "删除请假申请", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@PathVariable("id") Long id){ |
| | | return AjaxResult.success(holidayApplicationService.removeById(id)); |
| | | } |
| | |
| | | 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; |
| | |
| | | |
| | | @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)); |
| | | } |
| | |
| | | |
| | | @ApiOperation("删除人员打卡规则配置") |
| | | @DeleteMapping("/del") |
| | | @Log(title = "删除人员打卡规则配置", businessType = BusinessType.DELETE) |
| | | public R del(@RequestBody List<Integer> ids) { |
| | | return R.ok(personalAttendanceLocationConfigService.removeBatchByIds(ids)); |
| | | } |
| | |
| | | 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; |
| | |
| | | |
| | | @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); |
| | | } |
| | |
| | | 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; |
| | |
| | | |
| | | @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(); |
| | |
| | | |
| | | @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"); |
| | |
| | | |
| | | @GetMapping("/listPage") |
| | | @ApiOperation(value = "分页查询") |
| | | @Log(title = "社保方案适用人员表分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page page, SchemeApplicableStaff schemeApplicableStaff) { |
| | | return schemeApplicableStaffService.listPage(page,schemeApplicableStaff); |
| | | } |
| | |
| | | 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; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/listPage") |
| | | @Log(title = "员工合同分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult staffContractListPage(Page page, StaffContract staffContract) { |
| | | return AjaxResult.success(staffContractService.staffContractListPage(page, staffContract)); |
| | | } |
| | |
| | | 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; |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/listPage") |
| | | @Log(title = "员工离职分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult staffLeaveListPage(Page page, StaffLeaveDto staffLeaveDto) { |
| | | return AjaxResult.success(staffLeaveService.staffLeaveListPage(page, staffLeaveDto)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("") |
| | | @Log(title = "新增离职", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody StaffLeaveDto staffLeaveDto) { |
| | | return AjaxResult.success(staffLeaveService.add(staffLeaveDto)); |
| | | } |
| | |
| | | * @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)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/del") |
| | | @Log(title = "删除离职", businessType = BusinessType.DELETE) |
| | | public AjaxResult del(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | |
| | | * @param staffLeaveDto |
| | | */ |
| | | @PostMapping("/export") |
| | | @Log(title = "离职导出", businessType = BusinessType.EXPORT) |
| | | public void export(HttpServletResponse response, StaffLeaveDto staffLeaveDto) { |
| | | staffLeaveService.export(response, staffLeaveDto); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/listPage") |
| | | @Log(title = "在职员工台账分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult staffOnJobListPage(Page page, StaffOnJob staffOnJob) { |
| | | return AjaxResult.success(staffOnJobService.staffOnJobListPage(page, staffOnJob)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/list") |
| | | @Log(title = "在职员工下拉(新增离职用)", businessType = BusinessType.OTHER) |
| | | public AjaxResult staffOnJobList(StaffOnJob staffOnJob) { |
| | | return AjaxResult.success(staffOnJobService.staffOnJobList(staffOnJob)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("") |
| | | @Log(title = "新增入职", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody StaffOnJobDto staffOnJob) { |
| | | return AjaxResult.success(staffOnJobService.add(staffOnJob)); |
| | | } |
| | |
| | | * @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)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/del") |
| | | @Log(title = "删除入职", businessType = BusinessType.DELETE) |
| | | public AjaxResult delStaffOnJobs(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/{id}") |
| | | @Log(title = "在职员工详情", businessType = BusinessType.OTHER) |
| | | public AjaxResult staffOnJobDetail(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(staffOnJobService.staffOnJobDetail(id)); |
| | | } |
| | |
| | | * @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)); |
| | | } |
| | |
| | | * @param staffOnJob |
| | | */ |
| | | @PostMapping("/export") |
| | | @Log(title = "在职员工导出", businessType = BusinessType.EXPORT) |
| | | public void staffOnJobExport(HttpServletResponse response,StaffOnJob staffOnJob) { |
| | | staffOnJobService.staffOnJobExport(response, staffOnJob); |
| | | } |
| | |
| | | */ |
| | | @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)); |
| | | } |
| | |
| | | |
| | | @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); |
| | | } |
| | |
| | | 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(); |
| | |
| | | * 获取当前用户最新排班记录 |
| | | */ |
| | | @GetMapping("/getCurrentUserLatestScheduling") |
| | | @Log(title = "获取当前用户最新排班记录", businessType = BusinessType.OTHER) |
| | | public AjaxResult getCurrentUserLatestScheduling(){ |
| | | return AjaxResult.success(staffSchedulingService.getCurrentUserLatestScheduling()); |
| | | } |