| | |
| | | import com.ruoyi.ai.store.MongoChatMemoryStore; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "财务智能体对话") |
| | | @Log(title = "财务智能体对话", businessType = BusinessType.OTHER) |
| | | @PostMapping(value = "/chat", produces = "text/stream;charset=utf-8") |
| | | public Flux<String> chat(@RequestBody ChatForm chatForm) { |
| | | if (!StringUtils.hasText(chatForm.getMemoryId())) { |
| | |
| | | } |
| | | |
| | | @Operation(summary = "删除财务智能体会话") |
| | | @Log(title = "删除财务智能体会话", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/history/{memoryId}") |
| | | public AjaxResult deleteSession(@PathVariable String memoryId) { |
| | | aiSessionUserContext.remove(memoryId); |
| | |
| | | import com.ruoyi.ai.store.MongoChatMemoryStore; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "制造对话") |
| | | @Log(title = "制造智能体对话", businessType = BusinessType.OTHER) |
| | | @PostMapping(value = "/chat", produces = "text/stream;charset=utf-8") |
| | | public Flux<String> chat(@RequestBody ChatForm chatForm) { |
| | | if (!StringUtils.hasText(chatForm.getMemoryId())) { |
| | |
| | | } |
| | | |
| | | @Operation(summary = "删除制造会话") |
| | | @Log(title = "删除制造智能体会话", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/history/{memoryId}") |
| | | public AjaxResult deleteSession(@PathVariable String memoryId) { |
| | | aiSessionUserContext.remove(memoryId); |
| | |
| | | import com.ruoyi.ai.bean.PurchaseAiConfirmRequest; |
| | | import com.ruoyi.ai.service.PurchaseAiService; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "采购对话") |
| | | @Log(title = "采购智能体对话", businessType = BusinessType.OTHER) |
| | | @PostMapping(value = "/chat", produces = "text/stream;charset=utf-8") |
| | | public Flux<String> chat(@RequestBody ChatForm chatForm) { |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | |
| | | } |
| | | |
| | | @Operation(summary = "采购多文件分析") |
| | | @Log(title = "采购多文件分析", businessType = BusinessType.OTHER) |
| | | @PostMapping(value = "/analyze-files", consumes = "multipart/form-data", produces = "text/stream;charset=utf-8") |
| | | public Flux<String> analyzeFiles(@RequestParam("files") MultipartFile[] files, |
| | | @RequestParam(value = "message", required = false) String message, |
| | |
| | | } |
| | | |
| | | @Operation(summary = "采购多文件分析确认处理") |
| | | @Log(title = "采购多文件分析确认", businessType = BusinessType.OTHER) |
| | | @PostMapping("/analyze-files/confirm") |
| | | public AjaxResult confirmAnalyzeResult(@RequestBody PurchaseAiConfirmRequest request) { |
| | | return purchaseAiService.confirmAnalyzeResult(request); |
| | |
| | | } |
| | | |
| | | @Operation(summary = "删除采购会话") |
| | | @Log(title = "删除采购智能体会话", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/history/{memoryId}") |
| | | public AjaxResult deleteSession(@PathVariable String memoryId) { |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | |
| | | import com.ruoyi.ai.store.MongoChatMemoryStore; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "销售助手对话") |
| | | @Log(title = "销售智能体对话", businessType = BusinessType.OTHER) |
| | | @PostMapping(value = "/chat", produces = "text/stream;charset=utf-8") |
| | | public Flux<String> chat(@RequestBody ChatForm chatForm) { |
| | | if (!StringUtils.hasText(chatForm.getMemoryId())) { |
| | |
| | | } |
| | | |
| | | @Operation(summary = "删除销售助手会话") |
| | | @Log(title = "删除销售智能体会话", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/history/{memoryId}") |
| | | public AjaxResult deleteSession(@PathVariable String memoryId) { |
| | | aiSessionUserContext.remove(memoryId); |
| | |
| | | import com.ruoyi.ai.store.MongoChatMemoryStore; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "对话") |
| | | @Log(title = "协同办公助手对话", businessType = BusinessType.OTHER) |
| | | @PostMapping(value = "/chat", produces = "text/stream;charset=utf-8") |
| | | public Flux<String> chat(@RequestBody ChatForm chatForm) { |
| | | if (!StringUtils.hasText(chatForm.getMemoryId())) { |
| | |
| | | } |
| | | |
| | | @Operation(summary = "上传文件分析") |
| | | @Log(title = "上传文件分析", businessType = BusinessType.OTHER) |
| | | @PostMapping(value = "/analyze-file", consumes = "multipart/form-data", produces = "text/stream;charset=utf-8") |
| | | public Flux<String> analyzeFile(@RequestParam("file") MultipartFile file, |
| | | @RequestParam(value = "message", required = false) String message, |
| | |
| | | } |
| | | |
| | | @Operation(summary = "删除会话") |
| | | @Log(title = "删除协同办公助手会话", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/history/{memoryId}") |
| | | public AjaxResult deleteSession(@PathVariable String memoryId) { |
| | | aiSessionUserContext.remove(memoryId); |
| | |
| | | |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | * @param approveNode |
| | | * @return |
| | | */ |
| | | @Log(title = "审批节点", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateApproveNode") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Operation(summary = "审批节点") |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Log(title = "初始化审批节点", businessType = BusinessType.INSERT) |
| | | @PostMapping("/init") |
| | | public AjaxResult init(String id) { |
| | | approveNodeService.initApproveNodes("",id,1L); |
| | |
| | | |
| | | import com.ruoyi.approve.pojo.ApproveProcessConfigNode; |
| | | import com.ruoyi.approve.service.ApproveProcessConfigNodeService; |
| | | 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.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation("添加审批节点") |
| | | @Log(title = "审批流程节点", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public R addApproveProcessConfigNodes(@RequestBody List<ApproveProcessConfigNode> approveProcessConfigNodes) { |
| | | return R.ok(approveProcessConfigNodeService.addApproveProcessConfigNodes(approveProcessConfigNodes)); |
| | |
| | | import com.ruoyi.approve.bean.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; |
| | |
| | | * @param approveProcessVO |
| | | * @return |
| | | */ |
| | | @Log(title = "添加审批", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Operation(summary = "添加审批") |
| | |
| | | * @param approveGetAndUpdateVo |
| | | * @return |
| | | */ |
| | | @Log(title = "更新审批", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Operation(summary = "更新审批") |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除审批", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/deleteIds") |
| | | @Operation(summary = "删除审批") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | } |
| | | |
| | | @Operation(summary = "公出管理导出") |
| | | @Log(title = "公出管理导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportOne") |
| | | public void exportOne(HttpServletResponse response) { |
| | | List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>() |
| | |
| | | } |
| | | |
| | | @Operation(summary = "请假管理导出") |
| | | @Log(title = "请假管理导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportTwo") |
| | | public void exportTwo(HttpServletResponse response) { |
| | | List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>() |
| | |
| | | } |
| | | |
| | | @Operation(summary = "出差管理导出") |
| | | @Log(title = "出差管理导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportThree") |
| | | public void exportThree(HttpServletResponse response) { |
| | | List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>() |
| | |
| | | } |
| | | |
| | | @Operation(summary = "报销管理导出") |
| | | @Log(title = "报销管理导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportFour") |
| | | public void exportFour(HttpServletResponse response) { |
| | | List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>() |
| | |
| | | } |
| | | |
| | | @Operation(summary = "采购申请导出") |
| | | @Log(title = "采购申请导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportFive") |
| | | public void exportFive(HttpServletResponse response) { |
| | | List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>() |
| | |
| | | } |
| | | |
| | | @Operation(summary = "协同审批导出") |
| | | @Log(title = "协同审批导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportZero") |
| | | public void exportZero(HttpServletResponse response) { |
| | | List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>() |
| | |
| | | } |
| | | |
| | | @Operation(summary = "危险作业审批导出") |
| | | @Log(title = "危险作业审批导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportEight") |
| | | public void exportEight(HttpServletResponse response) { |
| | | List<ApproveProcess> accountExpenses = approveProcessService.list(new LambdaQueryWrapper<ApproveProcess>() |
| | |
| | | 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 |
| | | */ |
| | | @Log(title = "增添假期设置", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HolidaySettings holidaySettings){ |
| | | return AjaxResult.success(holidaySettingsService.save(holidaySettings)); |
| | |
| | | * 更新 |
| | | * @return |
| | | */ |
| | | @Log(title = "更新假期设置", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody HolidaySettings holidaySettings){ |
| | | return AjaxResult.success(holidaySettingsService.updateById(holidaySettings)); |
| | |
| | | * 删除 |
| | | * @return |
| | | */ |
| | | @Log(title = "删除假期设置", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | public AjaxResult delete(@RequestBody List<Long> ids){ |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | |
| | | * 增添年假规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "增添年假规则", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addAnnualLeaveSetting") |
| | | public AjaxResult addAnnualLeaveSetting(@RequestBody AnnualLeaveSetting annualLeaveSetting){ |
| | | return AjaxResult.success(annualLeaveSettingMapper.insert(annualLeaveSetting)); |
| | |
| | | * 更新年假规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "更新年假规则", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateAnnualLeaveSetting") |
| | | public AjaxResult updateAnnualLeaveSetting(@RequestBody AnnualLeaveSetting annualLeaveSetting){ |
| | | return AjaxResult.success(annualLeaveSettingMapper.updateById(annualLeaveSetting)); |
| | |
| | | * 删除年假规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "删除年假规则", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/deleteAnnualLeaveSetting") |
| | | public AjaxResult deleteAnnualLeaveSetting(@RequestBody List<Long> ids){ |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | |
| | | * 增添加班规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "增添加班规则", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addOvertimeSetting") |
| | | public AjaxResult addOvertimeSetting(@RequestBody OvertimeSetting overtimeSetting){ |
| | | return AjaxResult.success(overtimeSettingMapper.insert(overtimeSetting)); |
| | |
| | | * 更新加班规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "更新加班规则", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateOvertimeSetting") |
| | | public AjaxResult updateOvertimeSetting(@RequestBody OvertimeSetting overtimeSetting){ |
| | | return AjaxResult.success(overtimeSettingMapper.updateById(overtimeSetting)); |
| | |
| | | * 删除加班规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "删除加班规则", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/deleteOvertimeSetting") |
| | | public AjaxResult deleteOvertimeSetting(@RequestBody List<Long> ids){ |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | |
| | | * 增添班制规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "增添班制规则", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addWorkingHoursSetting") |
| | | public AjaxResult addWorkingHoursSetting(@RequestBody WorkingHoursSetting workingHoursSetting){ |
| | | return AjaxResult.success(workingHoursSettingMapper.insert(workingHoursSetting)); |
| | |
| | | * 更新班制规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "更新班制规则", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateWorkingHoursSetting") |
| | | public AjaxResult updateWorkingHoursSetting(@RequestBody WorkingHoursSetting workingHoursSetting){ |
| | | return AjaxResult.success(workingHoursSettingMapper.updateById(workingHoursSetting)); |
| | |
| | | * 删除班制规则 |
| | | * @return |
| | | */ |
| | | @Log(title = "删除班制规则", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/deleteWorkingHoursSetting") |
| | | public AjaxResult deleteWorkingHoursSetting(@RequestBody List<Long> ids){ |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | |
| | | import com.ruoyi.approve.pojo.KnowledgeBase; |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | * 增添 |
| | | * @return |
| | | */ |
| | | @Log(title = "知识库", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody KnowledgeBase knowledgeBase){ |
| | | return AjaxResult.success(knowledgeBaseService.save(knowledgeBase)); |
| | |
| | | * 更新 |
| | | * @return |
| | | */ |
| | | @Log(title = "知识库", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody KnowledgeBase knowledgeBase){ |
| | | return AjaxResult.success(knowledgeBaseService.updateById(knowledgeBase)); |
| | |
| | | * 删除 |
| | | * @return |
| | | */ |
| | | @Log(title = "知识库", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | public AjaxResult delete(@RequestBody List<Long> ids){ |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | | return AjaxResult.success(knowledgeBaseService.removeByIds(ids)); |
| | | } |
| | | |
| | | @Log(title = "知识库", businessType = BusinessType.EXPORT) |
| | | @Operation(summary = "知识库管理导出") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | |
| | | 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 |
| | | */ |
| | | @Log(title = "增添通知管理", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody NotificationManagement notificationManagement){ |
| | | return AjaxResult.success(notificationManagementService.save(notificationManagement)); |
| | |
| | | * 更新 |
| | | * @return |
| | | */ |
| | | @Log(title = "更新通知管理", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody NotificationManagement notificationManagement){ |
| | | return AjaxResult.success(notificationManagementService.updateById(notificationManagement)); |
| | |
| | | * 删除 |
| | | * @return |
| | | */ |
| | | @Log(title = "删除通知管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | public AjaxResult delete(@RequestBody List<Long> ids){ |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | |
| | | * @param onlineMeeting |
| | | * @return |
| | | */ |
| | | @Log(title = "新增线上会议", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addOnlineMeeting") |
| | | public AjaxResult addOnlineMeeting(@RequestBody OnlineMeeting onlineMeeting){ |
| | | return AjaxResult.success(onlineMeetingMapper.insert(onlineMeeting)); |
| | |
| | | *新增文件共享 |
| | | * |
| | | */ |
| | | @Log(title = "新增文件共享", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addFileSharing") |
| | | public AjaxResult addFileSharing(@RequestBody FileSharing fileSharing){ |
| | | return AjaxResult.success(fileSharingMapper.insert(fileSharing)); |
| | |
| | | import com.ruoyi.approve.pojo.RpaProcessAutomation; |
| | | import com.ruoyi.approve.service.RpaProcessAutomationService; |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | * 增添 |
| | | * @return |
| | | */ |
| | | @Log(title = "RPA流程自动化", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody RpaProcessAutomation rpaProcessAutomation){ |
| | | return AjaxResult.success(rpaProcessAutomationService.save(rpaProcessAutomation)); |
| | |
| | | * 更新 |
| | | * @return |
| | | */ |
| | | @Log(title = "RPA流程自动化", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody RpaProcessAutomation rpaProcessAutomation){ |
| | | return AjaxResult.success(rpaProcessAutomationService.updateById(rpaProcessAutomation)); |
| | |
| | | * 删除 |
| | | * @return |
| | | */ |
| | | @Log(title = "RPA流程自动化", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | public AjaxResult delete(@RequestBody List<Long> ids){ |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | | return AjaxResult.success(rpaProcessAutomationService.removeByIds(ids)); |
| | | } |
| | | |
| | | @Log(title = "RPA流程自动化", businessType = BusinessType.EXPORT) |
| | | @Operation(summary = "RPA流程自动化导出") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | |
| | | |
| | | import com.ruoyi.basic.dto.StorageAttachmentDTO; |
| | | import com.ruoyi.basic.service.StorageAttachmentService; |
| | | 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.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | |
| | | * @param ids 文件id列表 |
| | | * @return 删除结果 |
| | | */ |
| | | @Log(title = "存储附件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除通用文件上传的附件信息") |
| | | public R batchDelete(@RequestBody List<Long> ids) { |
| | |
| | | /** |
| | | * 保存通用文件上传的附件信息 |
| | | */ |
| | | @Log(title = "存储附件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "保存通用文件上传的附件信息") |
| | | public R add(@RequestBody StorageAttachmentDTO storageAttachmentDTO) { |
| | |
| | | * @param supplierManage |
| | | * @return |
| | | */ |
| | | @Log(title = "供应商管理", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SupplierManage supplierManage) { |
| | | supplierService.saveSupplier(supplierManage); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "供应商管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delSupplier(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | |
| | | * @param supplierManage |
| | | * @return |
| | | */ |
| | | @Log(title = "供应商管理", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody SupplierManage supplierManage) { |
| | | supplierService.supplierUpdate(supplierManage); |
| | |
| | | * @param response |
| | | * @param supplierManageDto |
| | | */ |
| | | @Log(title = "供应商管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void supplierExport(HttpServletResponse response,SupplierManageDto supplierManageDto) { |
| | | supplierService.supplierExport(response, supplierManageDto); |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.pojo.SupplierManageFile; |
| | | import com.ruoyi.basic.service.SupplierManageFileService; |
| | | 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.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @param supplierManageFile |
| | | * @return |
| | | */ |
| | | @Log(title = "新增供应商附件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SupplierManageFile supplierManageFile) { |
| | | return AjaxResult.success(supplierManageFileService.save(supplierManageFile)); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除供应商附件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delSupplierManageFile(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | |
| | | 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.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | return AjaxResult.success(dutyPlanService.getNum()); |
| | | } |
| | | |
| | | @Log(title = "新增值班计划", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增") |
| | | public AjaxResult add(@RequestBody DutyPlan dutyPlan){ |
| | | return AjaxResult.success(dutyPlanService.save(dutyPlan)); |
| | | } |
| | | |
| | | @Log(title = "修改值班计划", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "修改") |
| | | public AjaxResult update(@RequestBody DutyPlan dutyPlan){ |
| | | return AjaxResult.success(dutyPlanService.updateById(dutyPlan)); |
| | | } |
| | | |
| | | @Log(title = "删除值班计划", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除") |
| | | public AjaxResult delete(@RequestBody List<Long> ids){ |
| | |
| | | } |
| | | return AjaxResult.success(dutyPlanService.removeBatchByIds(ids)); |
| | | } |
| | | @Log(title = "导出值班计划", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @Operation(summary = "导出") |
| | | public void exportData(HttpServletResponse response, DutyPlanDTO 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | return R.ok(meetingService.getMeetingRoomList(vo)); |
| | | } |
| | | |
| | | @Log(title = "新增会议室", businessType = BusinessType.INSERT) |
| | | @PostMapping("/saveRoom") |
| | | public R saveRoom(@RequestBody MeetingRoom meetingRoom) { |
| | | meetingService.saveMeetRoom(meetingRoom); |
| | |
| | | return R.ok(meetingService.findMeetRoomById(id)); |
| | | } |
| | | |
| | | @Log(title = "删除会议室", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delRoom/{id}") |
| | | public R deleteRoom(@PathVariable Long id) { |
| | | meetingService.deleteMeetingRoom(id); |
| | |
| | | return R.ok(meetingService.getMeetingDraftList(vo)); |
| | | } |
| | | |
| | | @Log(title = "保存会议草稿", businessType = BusinessType.INSERT) |
| | | @PostMapping("/saveDraft") |
| | | public R saveMeetingDraft(@RequestBody MeetDraft meetDraft) { |
| | | meetingService.saveMeetDraft(meetDraft); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Log(title = "删除会议草稿", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delDraft/{id}") |
| | | public R deleteMeetingDraft(@PathVariable Long id) { |
| | | meetingService.deleteMeetingDraft(id); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Log(title = "新增会议申请", businessType = BusinessType.INSERT) |
| | | @PostMapping("/saveMeetingApplication") |
| | | public R saveMeetApplication(@RequestBody MeetApplication meetApplication) { |
| | | return meetingService.saveMeetApplication(meetApplication); |
| | |
| | | return R.ok(meetingService.getMeetingMinutesById(id)); |
| | | } |
| | | |
| | | @Log(title = "保存会议纪要", businessType = BusinessType.INSERT) |
| | | @PostMapping("/saveMeetingMinutes") |
| | | public R saveMeetingMinutes(@RequestBody MeetingMinutes meetingMinutes) { |
| | | meetingService.saveMeetingMinutes(meetingMinutes); |
| | |
| | | } |
| | | |
| | | @Operation(summary = "会议室设置导出") |
| | | @Log(title = "导出会议室设置", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | | List<MeetingRoom> accountExpenses = meetingService.list(); |
| | |
| | | private final MeetDraftMapper meetDraftMapper; |
| | | |
| | | @Operation(summary = "会议草稿导出") |
| | | @Log(title = "导出会议草稿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportOne") |
| | | public void exportOne(HttpServletResponse response) { |
| | | List<MeetDraft> accountExpenses = meetDraftMapper.selectList(new LambdaQueryWrapper<MeetDraft>()); |
| | |
| | | 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 lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @param noticeType |
| | | * @return |
| | | */ |
| | | @Log(title = "新增公告类型", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody NoticeType noticeType) { |
| | | return AjaxResult.success(noticeTypeService.saveOrUpdate(noticeType)); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除公告类型", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delNoticeType(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | return AjaxResult.success(rulesRegulationsManagementService.listPage(page, rulesRegulationsManagement)); |
| | | } |
| | | |
| | | @Log(title = "新增规章制度", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增") |
| | | public AjaxResult add(@RequestBody RulesRegulationsManagement rulesRegulationsManagement){ |
| | |
| | | return AjaxResult.success(rulesRegulationsManagement.getId()); |
| | | } |
| | | |
| | | @Log(title = "修改规章制度", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "修改") |
| | | public AjaxResult update(@RequestBody RulesRegulationsManagement rulesRegulationsManagement){ |
| | | return AjaxResult.success(rulesRegulationsManagementService.updateById(rulesRegulationsManagement)); |
| | | } |
| | | |
| | | @Log(title = "删除规章制度", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除") |
| | | public AjaxResult delete(@PathVariable("ids") List<Long> ids){ |
| | |
| | | return AjaxResult.success(rulesRegulationsManagementService.removeBatchByIds(ids)); |
| | | } |
| | | //规则查看时新增阅读状态 |
| | | @Log(title = "新增阅读状态", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addReadingStatus") |
| | | @Operation(summary = "新增阅读状态") |
| | | public AjaxResult addReadingStatus(@RequestBody ReadingStatus readingStatus){ |
| | | return AjaxResult.success(readingStatusMapper.insert(readingStatus)); |
| | | } |
| | | @Log(title = "修改阅读状态", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateReadingStatus") |
| | | @Operation(summary = "修改阅读状态") |
| | | public AjaxResult updateReadingStatus(@RequestBody ReadingStatus readingStatus){ |
| | |
| | | } |
| | | |
| | | @Operation(summary = "规章制度管理导出") |
| | | @Log(title = "导出规章制度", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | | List<RulesRegulationsManagement> accountExpenses = rulesRegulationsManagementService.list(); |
| | |
| | | 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; |
| | |
| | | * @param rulesRegulationsManagementFile |
| | | * @return |
| | | */ |
| | | @Log(title = "规章制度文件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody RulesRegulationsManagementFile rulesRegulationsManagementFile) { |
| | | return AjaxResult.success(rulesRegulationsManagementFileService.save(rulesRegulationsManagementFile)); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "规章制度文件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delQualityUnqualified(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | |
| | | 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; |
| | |
| | | return AjaxResult.success(sealApplicationManagementService.listPage(page,sealApplicationManagement)); |
| | | } |
| | | |
| | | @Log(title = "用章申请", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增") |
| | | public AjaxResult add(@RequestBody SealApplicationManagementDTO sealApplicationManagement){ |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @Log(title = "用章申请", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "修改") |
| | | public AjaxResult update(@RequestBody SealApplicationManagementDTO sealApplicationManagement){ |
| | |
| | | return AjaxResult.success(sealApplicationManagementService.updateById(sealApplicationManagement)); |
| | | } |
| | | |
| | | @Log(title = "用章申请", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除") |
| | | public AjaxResult delete(@PathVariable("ids") List<Long> ids){ |
| | |
| | | return AjaxResult.success(sealApplicationManagementService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @Log(title = "用章申请", businessType = BusinessType.EXPORT) |
| | | @Operation(summary = "用印申请管理导出") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | |
| | | 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.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | return AjaxResult.success(staffContactsPersonalService.listPage(page, staffContactsPersonalDTO)); |
| | | } |
| | | |
| | | @Log(title = "新增员工通讯录", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增") |
| | | public AjaxResult add(@RequestBody StaffContactsPersonal staffContactsPersonal) { |
| | | return AjaxResult.success(staffContactsPersonalService.save(staffContactsPersonal)); |
| | | } |
| | | |
| | | @Log(title = "删除员工通讯录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete/{id}") |
| | | @Operation(summary = "删除") |
| | | public AjaxResult delete(@PathVariable("id") Long id) { |
| | |
| | | import com.ruoyi.device.dto.DeviceDefectRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceDefectRecord; |
| | | import com.ruoyi.device.service.DeviceDefectRecordService; |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | return AjaxResult.success(deviceDefectRecordService.listPage(new Page<>(1,-1),deviceDefectRecordDto)); |
| | | } |
| | | |
| | | @Log(title = "新增设备缺陷记录", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "添加设备缺陷记录") |
| | | public AjaxResult add(@RequestBody DeviceDefectRecord deviceDefectRecord) { |
| | | return AjaxResult.success(deviceDefectRecordService.add(deviceDefectRecord)); |
| | | } |
| | | @Log(title = "修改设备缺陷记录", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "修改设备缺陷记录") |
| | | public AjaxResult update(@RequestBody DeviceDefectRecord deviceDefectRecord) { |
| | | return AjaxResult.success(deviceDefectRecordService.updateByDDR(deviceDefectRecord)); |
| | | } |
| | | @Log(title = "删除设备缺陷记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除设备缺陷记录") |
| | | public AjaxResult delete(@PathVariable Long id) { |
| | |
| | | import com.ruoyi.device.pojo.DeviceMaintenance; |
| | | import com.ruoyi.device.service.IDeviceLedgerService; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Anonymous; |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | return AjaxResult.success(deviceLedgerService.queryPage(page, deviceLedger)); |
| | | } |
| | | |
| | | @Log(title = "新增设备台账", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | @Operation(summary = "添加设备台账") |
| | | public AjaxResult add(@RequestBody DeviceLedgerDto deviceLedgerDto) { |
| | |
| | | return AjaxResult.success(deviceLedgerDto); |
| | | } |
| | | |
| | | @Log(title = "修改设备台账", businessType = BusinessType.UPDATE) |
| | | @PutMapping() |
| | | @Operation(summary = "修改设备台账") |
| | | public AjaxResult update(@RequestBody DeviceLedgerDto deviceLedgerDto) { |
| | | return deviceLedgerService.updateDeviceLedger(deviceLedgerDto); |
| | | } |
| | | |
| | | @Log(title = "删除设备台账", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @Operation(summary = "删除设备台账") |
| | | public AjaxResult delete(@PathVariable("ids") ArrayList<Long> ids) { |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @Log(title = "导出设备台账", businessType = BusinessType.EXPORT) |
| | | @PostMapping("export") |
| | | @Operation(summary = "导出设备台账") |
| | | public void export(HttpServletResponse response, Long[] ids) { |
| | | deviceLedgerService.export(response, ids); |
| | | } |
| | | |
| | | @Log(title = "下载设备台账模板", businessType = BusinessType.EXPORT) |
| | | @Operation(summary = "下载模板") |
| | | @PostMapping("/downloadTemplate") |
| | | public void downloadTemplate(HttpServletResponse response) { |
| | |
| | | util.importTemplateExcel(response, "设备导入模板"); |
| | | } |
| | | |
| | | @Log(title = "导入设备台账", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/import") |
| | | @Operation(summary = "导入设备台账") |
| | | public AjaxResult importData(MultipartFile file) throws IOException { |
| | |
| | | import com.ruoyi.device.pojo.DeviceMaintenance; |
| | | import com.ruoyi.device.service.IDeviceLedgerService; |
| | | import com.ruoyi.device.service.IDeviceMaintenanceService; |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | return AjaxResult.success(deviceMaintenanceService.queryPage(page,deviceMaintenanceDto)); |
| | | } |
| | | |
| | | @Log(title = "新增设备保养", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | @Operation(summary = "添加设备保养") |
| | | public AjaxResult add(@RequestBody DeviceMaintenanceDto deviceMaintenance) { |
| | |
| | | return AjaxResult.success(deviceMaintenanceService.detailById(id)); |
| | | } |
| | | |
| | | @Log(title = "修改设备保养", businessType = BusinessType.UPDATE) |
| | | @PutMapping () |
| | | @Operation(summary = "修改设备保养") |
| | | public AjaxResult update(@RequestBody DeviceMaintenanceDto deviceMaintenance) { |
| | |
| | | return deviceMaintenanceService.updateDeviceDeviceMaintenance(deviceMaintenance); |
| | | } |
| | | |
| | | @Log(title = "执行设备保养", businessType = BusinessType.UPDATE) |
| | | @PostMapping ("maintenance") |
| | | @Operation(summary = "修改设备保养") |
| | | public AjaxResult maintenance(@RequestBody DeviceMaintenanceDto deviceMaintenance) { |
| | |
| | | } |
| | | |
| | | |
| | | @Log(title = "删除设备保养", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @Operation(summary = "删除设备保养") |
| | | public AjaxResult delete(@PathVariable("ids") Long[] ids) { |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @Log(title = "导出设备保养", businessType = BusinessType.EXPORT) |
| | | @PostMapping("export") |
| | | @Operation(summary = "导出设备保养") |
| | | public void export(HttpServletResponse response, Long[] ids) { |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.pojo.DeviceMaintenanceFile; |
| | | import com.ruoyi.device.service.DeviceMaintenanceFileService; |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | * @param deviceMaintenanceFile |
| | | * @return |
| | | */ |
| | | @Log(title = "新增设备保养附件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody DeviceMaintenanceFile deviceMaintenanceFile) { |
| | | return AjaxResult.success(deviceMaintenanceFileService.save(deviceMaintenanceFile)); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除设备保养附件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delQualityUnqualified(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | |
| | | import com.ruoyi.device.dto.DeviceRepairDto; |
| | | import com.ruoyi.device.pojo.DeviceRepair; |
| | | import com.ruoyi.device.service.IDeviceRepairService; |
| | | 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.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | return AjaxResult.success(deviceRepairService.queryPage(page,deviceRepairDto)); |
| | | } |
| | | |
| | | @Log(title = "新增设备报修", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | @Operation(summary = "添加设备报修") |
| | | public AjaxResult add( @RequestBody DeviceRepairDto deviceRepairDto) { |
| | |
| | | return AjaxResult.success(deviceRepairService.detailById(id)); |
| | | } |
| | | |
| | | @Log(title = "修改设备报修", businessType = BusinessType.UPDATE) |
| | | @PutMapping () |
| | | @Operation(summary = "修改设备报修") |
| | | public AjaxResult update( @RequestBody DeviceRepairDto deviceRepairDto) { |
| | | return deviceRepairService.updateDeviceRepair(deviceRepairDto); |
| | | } |
| | | |
| | | @Log(title = "设备维修", businessType = BusinessType.UPDATE) |
| | | @PostMapping ("/repair") |
| | | @Operation(summary = "设备维修") |
| | | public AjaxResult repair( @RequestBody DeviceRepairDto deviceRepairDto) { |
| | | return deviceRepairService.confirmRepair(deviceRepairDto); |
| | | } |
| | | |
| | | @Log(title = "设备报修验收", businessType = BusinessType.UPDATE) |
| | | @PostMapping ("/acceptance") |
| | | @Operation(summary = "设备报修验收审批") |
| | | public AjaxResult acceptance(@RequestBody DeviceRepairDto deviceRepairDto) { |
| | | return deviceRepairService.approveRepairAcceptance(deviceRepairDto); |
| | | } |
| | | |
| | | @Log(title = "删除设备报修", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @Operation(summary = "删除设备报修") |
| | | public AjaxResult delete(@PathVariable("ids") Long[] ids) { |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @Log(title = "导出设备报修", businessType = BusinessType.EXPORT) |
| | | @PostMapping("export") |
| | | @Operation(summary = "导出设备报修") |
| | | public void export(HttpServletResponse response, Long[] ids) { |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.inspectiontask.dto.InspectionTaskDto; |
| | |
| | | /** |
| | | * 导出 |
| | | */ |
| | | @PostMapping("/export") |
| | | @Log(title = "检验任务", businessType = BusinessType.EXPORT) |
| | | @Operation(summary = "导出定时任务记录") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | | Page page = new Page<>(-1, -1); |
| | | InspectionTaskDto timingTask = new InspectionTaskDto(); |
| | |
| | | /** |
| | | * 巡检任务表新增修改 |
| | | */ |
| | | @PostMapping("/addOrEditInspectionTask") |
| | | @Log(title = "检验任务", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "巡检任务表新增修改") |
| | | @PostMapping("/addOrEditInspectionTask") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R addOrEditInspectionTask(@RequestBody InspectionTaskDto inspectionTaskDto) { |
| | | return R.ok(inspectionTaskService.addOrEditInspectionTask(inspectionTaskDto)); |
| | |
| | | /** |
| | | * 巡检任务表删除 |
| | | */ |
| | | @DeleteMapping("/delInspectionTask") |
| | | @Log(title = "检验任务", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "巡检任务表删除") |
| | | @DeleteMapping("/delInspectionTask") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R remove(@RequestBody Long[] ids) { |
| | | return R.ok(inspectionTaskService.delByIds(ids)); |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.inspectiontask.dto.QrCodeDto; |
| | |
| | | /** |
| | | * 二维码管理表新增修改 |
| | | */ |
| | | @PostMapping("/addOrEditQrCode") |
| | | @Log(title = "二维码", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "二维码管理表新增修改") |
| | | @PostMapping("/addOrEditQrCode") |
| | | public R<Long> addOrEditQrCode(@RequestBody QrCodeDto qrCodeDto) { |
| | | return R.ok(qrCodeService.addOrEditQrCode(qrCodeDto)); |
| | | } |
| | |
| | | /** |
| | | * 二维码管理表删除 |
| | | */ |
| | | @DeleteMapping("/delQrCode") |
| | | @Log(title = "二维码", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "二维码管理表删除") |
| | | @DeleteMapping("/delQrCode") |
| | | public R remove(@RequestBody Long[] ids) { |
| | | return R.ok(qrCodeService.delByIds(ids)); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.inspectiontask.dto.QrCodeScanRecordDto; |
| | |
| | | /** |
| | | * 二维码扫码记录表新增修改 |
| | | */ |
| | | @PostMapping("/addOrEditQrCodeRecord") |
| | | @Log(title = "二维码扫描记录", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "二维码扫码记录表新增修改") |
| | | @PostMapping("/addOrEditQrCodeRecord") |
| | | public R addOrEditQrCodeRecord(@RequestBody QrCodeScanRecordDto qrCodeScanRecordDto) { |
| | | return R.ok(qrCodeScanRecordService.addOrEditQrCodeRecord(qrCodeScanRecordDto)); |
| | | } |
| | |
| | | /** |
| | | * 二维码扫码记录表删除 |
| | | */ |
| | | @DeleteMapping("/delSalesRecord") |
| | | @Log(title = "二维码扫描记录", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "二维码扫码记录表删除") |
| | | @DeleteMapping("/delSalesRecord") |
| | | public R remove(@RequestBody Long[] ids) { |
| | | return R.ok(qrCodeScanRecordService.delByIds(ids)); |
| | | } |
| | |
| | | /** |
| | | * 导出 |
| | | */ |
| | | @Log(title = "定时任务", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @Operation(summary = "导出定时任务") |
| | | public void export(HttpServletResponse response) { |
| | |
| | | /** |
| | | * 定时巡检任务表新增修改 |
| | | */ |
| | | @Log(title = "定时任务", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addOrEditTimingTask") |
| | | @Operation(summary = "新增修改定时任务") |
| | | @Log(title = "定时任务", businessType = BusinessType.INSERT) |
| | | public R addOrEditTimingTask(@RequestBody TimingTaskDto timingTaskDto) throws SchedulerException { |
| | | return R.ok(timingTaskService.addOrEditTimingTask(timingTaskDto)); |
| | | } |
| | |
| | | /** |
| | | * 定时巡检任务表删除 |
| | | */ |
| | | @Log(title = "定时任务", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delTimingTask") |
| | | @Operation(summary = "删除定时任务") |
| | | @Log(title = "定时任务", businessType = BusinessType.DELETE) |
| | | public R remove(@RequestBody Long[] ids) { |
| | | return R.ok(timingTaskService.delByIds(ids)); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.measuringinstrumentledger.dto.SparePartsRequisitionRecordDto; |
| | | import com.ruoyi.measuringinstrumentledger.service.SparePartsRequisitionRecordService; |
| | |
| | | |
| | | @GetMapping("/listPage") |
| | | @Operation(summary = "备件分类-分页查询") |
| | | @Log(title = "备件领用记录-分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page page, SparePartsRequisitionRecordDto sparePartsRequisitionRecordDto){ |
| | | IPage<SparePartsRequisitionRecordDto> listPage = sparePartsRequisitionRecordService.listPage(page, sparePartsRequisitionRecordDto); |
| | | return AjaxResult.success(listPage); |
| | |
| | | |
| | | @PostMapping("/add") |
| | | @Operation(summary = "办公物资-添加") |
| | | @Log(title = "办公物资-添加", businessType = BusinessType.INSERT) |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public AjaxResult add(@RequestBody OfficeSupplies officeSupplies) { |
| | | // 按照当前时间yyyyMMdd + 当天新增数量 + 1生成编号 |
| | |
| | | |
| | | @PostMapping("/update") |
| | | @Operation(summary = "办公物资-修改") |
| | | @Log(title = "办公物资-修改", businessType = BusinessType.UPDATE) |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public AjaxResult update(@RequestBody OfficeSupplies officeSupplies) { |
| | | return officeSuppliesService.updateById(officeSupplies) ? success() : error(); |
| | |
| | | |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "办公物资-删除") |
| | | @Log(title = "办公物资-删除", businessType = BusinessType.DELETE) |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | |
| | | package com.ruoyi.other.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.R; |
| | | import com.ruoyi.other.dto.PdaVersionDTO; |
| | | import com.ruoyi.other.pojo.PdaVersion; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "添加版本") |
| | | @Log(title = "PDA版本-添加", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody PdaVersionDTO pdaVersion) { |
| | | return R.ok(pdaVersionService.add(pdaVersion)); |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | 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.procurementrecord.pojo.GasTankWarning; |
| | | import com.ruoyi.procurementrecord.service.GasTankWarningService; |
| | |
| | | return AjaxResult.success(gasTankWarningService.listPage(page, gasTankWarning)); |
| | | } |
| | | |
| | | @Log(title = "新增气瓶预警", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody GasTankWarning gasTankWarning) { |
| | | return AjaxResult.success(gasTankWarningService.save(gasTankWarning)); |
| | | } |
| | | |
| | | @Log(title = "修改气瓶预警", businessType = BusinessType.UPDATE) |
| | | @PostMapping("update") |
| | | public AjaxResult update(@RequestBody GasTankWarning gasTankWarning) { |
| | | return AjaxResult.success(gasTankWarningService.updateById(gasTankWarning)); |
| | | } |
| | | |
| | | @Log(title = "删除气瓶预警", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("delete") |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | | return AjaxResult.success(gasTankWarningService.removeByIds(ids)); |
| | | } |
| | | |
| | | //导出 |
| | | @Log(title = "导出气瓶预警", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, @RequestParam(name = "ids", required = false) List<Long> ids) { |
| | | gasTankWarningService.export(response, ids); |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.procurementrecord.pojo.InboundManagement; |
| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @Log(title = "新增到货管理", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "到货管理-添加") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return result ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | @Log(title = "修改到货管理", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "到货管理-修改") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return result ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | @Log(title = "删除到货管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | @Operation(summary = "到货管理-删除") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | package com.ruoyi.procurementrecord.controller; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.procurementrecord.mapper.ProcurementExceptionRecordMapper; |
| | |
| | | |
| | | private ProcurementExceptionRecordMapper procurementExceptionRecordMapper; |
| | | |
| | | @Log(title = "新增采购异常记录", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Transactional |
| | | public AjaxResult add(@RequestBody ProcurementExceptionRecord procurementExceptionRecord) { |
| | | return AjaxResult.success(procurementExceptionRecordMapper.insert(procurementExceptionRecord)); |
| | | } |
| | | |
| | | @Log(title = "修改采购异常记录", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Transactional |
| | | public AjaxResult updatePro(@RequestBody ProcurementExceptionRecord procurementExceptionRecord) { |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.procurementrecord.pojo.ProcurementPlan; |
| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @Log(title = "新增采购计划", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "采购计划-添加") |
| | | public AjaxResult add(@RequestBody ProcurementPlan procurementPlan){ |
| | |
| | | return result ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | @Log(title = "修改采购计划", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "采购计划-修改") |
| | | public AjaxResult update(@RequestBody ProcurementPlan procurementPlan){ |
| | |
| | | return result ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | @Log(title = "删除采购计划", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | @Operation(summary = "采购计划-删除") |
| | | public AjaxResult del(@RequestBody List<Long> ids){ |
| | |
| | | return result ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | /** |
| | | * 导出 |
| | | * @param response |
| | | */ |
| | | @Log(title = "导出采购计划", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | | procurementPlanService.export(response); |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.procurementrecord.pojo.ProcurementPriceManagement; |
| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @Log(title = "新增采购价格管理", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "采购价格管理-添加") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return result ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | @Log(title = "修改采购价格管理", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "采购价格管理-修改") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return result ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | @Log(title = "删除采购价格管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | @Operation(summary = "采购价格管理-删除") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return result ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | /** |
| | | * 导出 |
| | | * @param response |
| | | */ |
| | | @Log(title = "导出采购价格管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | | procurementPriceManagementService.export(response); |
| | |
| | | import com.ruoyi.account.pojo.AccountStatementDetails; |
| | | import com.ruoyi.account.service.AccountStatementDetailsService; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.procurementrecord.bean.dto.ReturnManagementDto; |
| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @Log(title = "新增销售退货", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "销售退货-添加") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return returnManagementService.addReturnManagementDto(returnManagementDto) ? success() : error(); |
| | | } |
| | | |
| | | @Log(title = "修改销售退货", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "销售退货-修改") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | } |
| | | |
| | | |
| | | @Log(title = "删除销售退货", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | @Operation(summary = "销售退货-删除") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | package com.ruoyi.procurementrecord.controller; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | package com.ruoyi.production.controller; |
| | | |
| | | 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.production.bean.dto.ProductionBomStructureDto; |
| | | import com.ruoyi.production.bean.vo.ProductionBomStructureVo; |
| | |
| | | return R.ok(productionBomStructureService.listByBomId(bomId)); |
| | | } |
| | | |
| | | @Log(title = "新增或修改BOM结构", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/addOrUpdateBomStructs") |
| | | @Operation(summary = "新增或修改BOM结构") |
| | | public R addProductionBomStructure(@RequestBody ProductionBomStructureDto productionBomStructureDto) { |
| | |
| | | package com.ruoyi.production.controller; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.production.bean.dto.ProductionOperationTaskDto; |
| | |
| | | return R.ok(productionOperationTaskService.getProductionOperationTaskInfo(id)); |
| | | } |
| | | |
| | | @Log(title = "新增工单", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @Operation(summary = "新增工单") |
| | | public R<Boolean> add(@RequestBody ProductionOperationTask productionOperationTask) { |
| | | return R.ok(productionOperationTaskService.saveProductionOperationTask(productionOperationTask)); |
| | | } |
| | | |
| | | @Log(title = "修改工单", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @Operation(summary = "修改工单") |
| | | public R<Boolean> edit(@RequestBody ProductionOperationTask productionOperationTask) { |
| | | return R.ok(productionOperationTaskService.saveProductionOperationTask(productionOperationTask)); |
| | | } |
| | | |
| | | @Log(title = "删除工单", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除工单") |
| | | public R<Boolean> remove(@RequestBody List<Long> ids) { |
| | | return R.ok(productionOperationTaskService.removeProductionOperationTask(ids)); |
| | | } |
| | | |
| | | @Log(title = "产品工单更新", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "产品工单更新") |
| | | @PostMapping("/updateProductWorkOrder") |
| | | public R updateProductWorkOrder(@RequestBody ProductionOperationTaskDto dto) { |
| | | return R.ok(productionOperationTaskService.updateProductWorkOrder(dto)); |
| | | } |
| | | |
| | | @Log(title = "指派报工人", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "指派报工人") |
| | | @PostMapping("/assign") |
| | | public R<Boolean> assign(@RequestBody ProductionOperationTaskDto dto) { |
| | | return R.ok(productionOperationTaskService.assign(dto)); |
| | | } |
| | | |
| | | @Log(title = "工单流转卡下载", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/down") |
| | | @Operation(summary = "工单流转卡下载") |
| | | public void down(HttpServletResponse response, @RequestBody ProductionOperationTaskDto dto) { |
| | |
| | | return R.ok(productionOrderService.getProductionOrderInfo(id)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addOrder") |
| | | @Operation(summary = "新增生产订单", description = "新增下单只支持1种方式:生产计划生成,传 productionPlanIds,系统自动汇总计划得到产品规格和数量;" |
| | | + "technologyRoutingId 为空时会自动匹配该产品规格最新工艺路线,quantity 最终必须大于 0。") |
| | |
| | | return R.ok(productionOrderService.saveProductionOrder(productionOrder)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "绑定工艺路线") |
| | | @PostMapping("/bindingRoute") |
| | | public R bindingRoute(@RequestBody ProductionOrderDto productionOrderDto) { |
| | | return R.ok(productionOrderService.bindingRoute(productionOrderDto)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/syncSnapshot/{id}") |
| | | @Operation(summary = "同步生产订单工艺/BOM快照") |
| | | public R<Integer> syncSnapshot(@PathVariable Long id) { |
| | | return R.ok(productionOrderService.syncProductionOrderSnapshot(id)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除生产订单") |
| | | public R<Boolean> remove(@RequestBody List<Long> ids) { |
| | |
| | | return R.ok(productionOrderService.getWorkOrderReportInspectDetail(productionOrderDto)); |
| | | } |
| | | |
| | | @Log(title = "生产工单", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "更新订单状态") |
| | | @PostMapping("/updateOrder") |
| | | public R updateOrder(@RequestBody ProductionOrderDto productionOrderDto) { |
| | |
| | | package com.ruoyi.production.controller; |
| | | |
| | | 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.production.bean.dto.ProductionOrderPickDto; |
| | | import com.ruoyi.production.bean.vo.ProductionOrderPickVo; |
| | |
| | | |
| | | private final ProductionOrderPickService productionOrderPickService; |
| | | |
| | | @Log(title = "领料保存到线边仓", businessType = BusinessType.INSERT) |
| | | @PostMapping("/savePick") |
| | | @Operation(summary = "领料保存到线边仓") |
| | | public R<Boolean> savePick(@RequestBody ProductionOrderPickDto dto) { |
| | | return R.ok(productionOrderPickService.savePick(dto)); |
| | | } |
| | | |
| | | @Log(title = "变更领料", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updatePick") |
| | | @Operation(summary = "变更领料") |
| | | public R<Boolean> updatePick(@RequestBody ProductionOrderPickDto dto) { |
| | |
| | | package com.ruoyi.production.controller; |
| | | |
| | | 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.production.pojo.ProductionOrderRoutingOperation; |
| | | import com.ruoyi.production.service.ProductionOrderRoutingOperationService; |
| | |
| | | return R.ok(productionOrderRoutingService.listMain(orderId)); |
| | | } |
| | | |
| | | @Log(title = "生产工序路由", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addRouteItem") |
| | | @Operation(summary = "新增生产订单的工艺路线详情") |
| | | public R addRouteItem(@RequestBody ProductionOrderRoutingOperation productionOrderRoutingOperation) { |
| | | return productionOrderRoutingOperationService.addRouteItem(productionOrderRoutingOperation); |
| | | } |
| | | |
| | | @Log(title = "生产工序路由", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateRouteItem") |
| | | @Operation(summary = "修改生产订单的工艺路线详情") |
| | | public R updateRouteItem(@RequestBody ProductionOrderRoutingOperation productionOrderRoutingOperation) { |
| | | return R.ok(productionOrderRoutingOperationService.updateRouteItem(productionOrderRoutingOperation)); |
| | | } |
| | | |
| | | @Log(title = "生产工序路由", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/deleteRouteItem/{id}") |
| | | @Operation(summary = "删除生产工艺路线") |
| | | public R deleteRouteItem(@PathVariable("id") Long id) { |
| | | return productionOrderRoutingOperationService.deleteRouteItem(id); |
| | | } |
| | | |
| | | @Log(title = "生产工序路由", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/sortRouteItem") |
| | | @Operation(summary = "排序") |
| | | public R sortRouteItem(@RequestBody ProductionOrderRoutingOperation productionOrderRoutingOperation) { |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.production.bean.dto.ProductionOrderRoutingOperationParamDto; |
| | | import com.ruoyi.production.bean.vo.ProductionOrderRoutingOperationParamVo; |
| | |
| | | return R.ok(productionOrderRoutingOperationParamService.getProductionOrderRoutingOperationParamInfo(id)); |
| | | } |
| | | |
| | | @Log(title = "生产工序参数", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @Operation(summary = "新增生产订单工艺路线工序参数") |
| | | public R<Boolean> add(@RequestBody ProductionOrderRoutingOperationParam item) { |
| | | return R.ok(productionOrderRoutingOperationParamService.saveProductionOrderRoutingOperationParam(item)); |
| | | } |
| | | |
| | | @Log(title = "生产工序参数", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @Operation(summary = "修改生产订单工艺路线工序参数") |
| | | public R<Boolean> edit(@RequestBody ProductionOrderRoutingOperationParam item) { |
| | | return R.ok(productionOrderRoutingOperationParamService.updateById(item)); |
| | | } |
| | | |
| | | @Log(title = "生产工序参数", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{id}") |
| | | @Operation(summary = "删除生产订单工艺路线工序参数") |
| | | public R<Boolean> remove(@PathVariable("id") Long id) { |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | 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 com.ruoyi.production.bean.dto.ProductionProductMainDto; |
| | | import com.ruoyi.production.service.ProductionProductMainService; |
| | |
| | | * @param productionProductMainDto |
| | | * @return |
| | | */ |
| | | @Log(title = "生产产品", businessType = BusinessType.INSERT) |
| | | @PostMapping("/addProductMain") |
| | | @PreAuthorize("@ss.hasPermi('productionProductMain:add')") |
| | | public R addProductMain(@RequestBody ProductionProductMainDto productionProductMainDto) { |
| | | return R.ok(productionProductMainService.addProductMain(productionProductMainDto)); |
| | | } |
| | | |
| | | @Log(title = "生产产品", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @Operation(summary = "新增生产报工") |
| | | public R add(@RequestBody ProductionProductMainDto productionProductMainDto) { |
| | | return R.ok(productionProductMainService.saveProductionProductMain(productionProductMainDto)); |
| | | } |
| | | |
| | | @Log(title = "生产产品", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @Operation(summary = "修改生产报工") |
| | | public R edit(@RequestBody ProductionProductMainDto productionProductMainDto) { |
| | | return R.ok(productionProductMainService.saveProductionProductMain(productionProductMainDto)); |
| | | } |
| | | |
| | | @Log(title = "生产产品", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "删除报工") |
| | | @DeleteMapping("/delete") |
| | | public R delete(@RequestBody ProductionProductMainDto productionProductMainDto) { |
| | | return R.ok(productionProductMainService.removeProductMain(productionProductMainDto.getId())); |
| | | } |
| | | |
| | | @Log(title = "生产产品", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{id}") |
| | | @Operation(summary = "删除生产报工") |
| | | public R remove(@PathVariable("id") Long id) { |
| | |
| | | /** |
| | | * 导出 |
| | | */ |
| | | @Log(title = "生产产品", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ProductionProductMainDto productionProductMainDto) { |
| | | List<ProductionProductMainDto> list; |
| | |
| | | import com.ruoyi.basic.service.StorageBlobService;
|
| | | import com.ruoyi.basic.utils.FileUtil;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Anonymous;
|
| | | 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.v3.oas.annotations.Operation;
|
| | | import io.swagger.v3.oas.annotations.tags.Tag;
|
| | |
| | | private final StorageBlobService storageBlobService;
|
| | | private final FileUtil fileUtil;
|
| | |
|
| | | @Log(title = "通用文件上传", businessType = BusinessType.INSERT)
|
| | | @PostMapping({"/upload"})
|
| | | @Operation(summary = "文件上传")
|
| | | public R upload(@RequestParam("files") List<MultipartFile> files) {
|
| | |
| | | * 公共文件上传
|
| | | * 此接口上传的文件永久有效,慎用
|
| | | */
|
| | | @Log(title = "公共文件上传", businessType = BusinessType.INSERT)
|
| | | @PostMapping({"/public/upload"})
|
| | | @Operation(summary = "文件上传")
|
| | | public R publicUpload(@RequestParam("files") List<MultipartFile> files) {
|
| | |
| | | import org.springframework.web.bind.annotation.RequestBody;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.Parameters; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import com.ruoyi.common.utils.StringUtils;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
| | | import com.ruoyi.framework.web.controller.BaseController;
|
| | | import com.ruoyi.framework.web.domain.R;
|
| | | import io.swagger.v3.oas.annotations.Operation;
|
| | | import io.swagger.v3.oas.annotations.Parameter;
|
| | | import io.swagger.v3.oas.annotations.Parameters;
|
| | | import io.swagger.v3.oas.annotations.media.Schema;
|
| | | import io.swagger.v3.oas.annotations.tags.Tag;
|
| | |
|
| | | /**
|
| | | * swagger 用户测试方法
|
| | |
| | | }
|
| | |
|
| | | @Operation(summary = "获取用户详细")
|
| | | @Parameter(name = "userId", description = "用户ID", required = true) |
| | | @GetMapping("/{userId}") |
| | | public R<UserEntity> getUser(@PathVariable Integer userId) |
| | | @Parameter(name = "userId", description = "用户ID", required = true)
|
| | | @GetMapping("/{userId}")
|
| | | public R<UserEntity> getUser(@PathVariable Integer userId)
|
| | | {
|
| | | if (!users.isEmpty() && users.containsKey(userId))
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | @Log(title = "测试接口新增用户", businessType = BusinessType.INSERT)
|
| | | @Operation(summary = "新增用户")
|
| | | @Parameters({ |
| | | @Parameter(name = "userId", description = "用户id"), |
| | | @Parameter(name = "username", description = "用户名称"), |
| | | @Parameter(name = "password", description = "用户密码"), |
| | | @Parameter(name = "mobile", description = "用户手机") |
| | | }) |
| | | @PostMapping("/save") |
| | | public R<String> save(UserEntity user) |
| | | @Parameters({
|
| | | @Parameter(name = "userId", description = "用户id"),
|
| | | @Parameter(name = "username", description = "用户名称"),
|
| | | @Parameter(name = "password", description = "用户密码"),
|
| | | @Parameter(name = "mobile", description = "用户手机")
|
| | | })
|
| | | @PostMapping("/save")
|
| | | public R<String> save(UserEntity user)
|
| | | {
|
| | | if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId()))
|
| | | {
|
| | |
| | | return R.ok();
|
| | | }
|
| | |
|
| | | @Log(title = "测试接口更新用户", businessType = BusinessType.UPDATE)
|
| | | @Operation(summary = "更新用户")
|
| | | @PutMapping("/update")
|
| | | public R<String> update(@RequestBody UserEntity user)
|
| | |
| | | return R.ok();
|
| | | }
|
| | |
|
| | | @Log(title = "测试接口删除用户", businessType = BusinessType.DELETE)
|
| | | @Operation(summary = "删除用户信息")
|
| | | @Parameter(name = "userId", description = "用户ID", required = true) |
| | | @DeleteMapping("/{userId}") |
| | | public R<String> delete(@PathVariable Integer userId) |
| | | @Parameter(name = "userId", description = "用户ID", required = true)
|
| | | @DeleteMapping("/{userId}")
|
| | | public R<String> delete(@PathVariable Integer userId)
|
| | | {
|
| | | if (!users.isEmpty() && users.containsKey(userId))
|
| | | {
|
| | |
| | | package com.ruoyi.projectManagement.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.projectManagement.dto.InfoStageDto; |
| | | import com.ruoyi.projectManagement.dto.UpdateStateInfo; |
| | |
| | | |
| | | @PostMapping("/save") |
| | | @Operation(summary = "保存") |
| | | @Log(title = "项目信息-保存", businessType = BusinessType.INSERT) |
| | | public AjaxResult save(@RequestBody @Valid SaveInfoVo saveInfoVo) { |
| | | infoService.save(saveInfoVo); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/updateStatus") |
| | | @Operation(summary = "修改状态") |
| | | @Log(title = "项目信息-修改状态", businessType = BusinessType.UPDATE) |
| | | public AjaxResult updateStatus(@RequestBody @Valid UpdateStateInfo updateStateInfo){ |
| | | infoService.updateStatus(updateStateInfo); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/delete/{id}") |
| | | @Operation(summary = "删除") |
| | | @Log(title = "项目信息-删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@PathVariable Long id) { |
| | | infoService.deleteInfo(id); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/saveStage") |
| | | @Operation(summary = "保存阶段") |
| | | @Log(title = "项目信息-保存阶段", businessType = BusinessType.INSERT) |
| | | public AjaxResult saveStage(@RequestBody @Valid SaveInfoStageVo dto) { |
| | | infoStageHandleService.save(dto); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/deleteStage/{id}") |
| | | @Operation(summary = "删除阶段") |
| | | @Log(title = "项目信息-删除阶段", businessType = BusinessType.DELETE) |
| | | public AjaxResult deleteStage(@PathVariable Long id) { |
| | | infoStageHandleService.deleteById(id); |
| | | return AjaxResult.success(); |
| | |
| | | package com.ruoyi.projectManagement.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.projectManagement.service.PlanService; |
| | | import com.ruoyi.projectManagement.vo.SavePlanNodeVo; |
| | |
| | | |
| | | @PostMapping("/save") |
| | | @Operation(summary = "保存") |
| | | @Log(title = "项目计划-保存", businessType = BusinessType.INSERT) |
| | | public AjaxResult save(@RequestBody @Valid SavePlanVo savePlanVo) { |
| | | planService.savePlan(savePlanVo); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/delete/{id}") |
| | | @Operation(summary = "删除") |
| | | @Log(title = "项目计划-删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@PathVariable Long id) { |
| | | planService.deletePlan(id); |
| | | return AjaxResult.success(); |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.utils.OrderUtils; |
| | | 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.projectManagement.dto.RoleDto; |
| | | import com.ruoyi.projectManagement.mapper.RolesMapper; |
| | |
| | | |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增") |
| | | @Log(title = "项目角色-新增", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody RoleDto roleDto) { |
| | | if (roleDto.getIsDefaultNo()) { |
| | | roleDto.setNo(OrderUtils.countTodayByCreateTime(rolesMapper, "XMJS","no")); |
| | |
| | | |
| | | @PostMapping("/update") |
| | | @Operation(summary = "修改") |
| | | @Log(title = "项目角色-修改", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody Roles roles) { |
| | | return AjaxResult.success(rolesservice.updateById(roles)); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除") |
| | | @Log(title = "项目角色-删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) return AjaxResult.error("请传入要删除的ID"); |
| | | return AjaxResult.success(rolesservice.removeBatchByIds(ids)); |
| | |
| | | /** |
| | | * 修改采购台账审批状态 |
| | | */ |
| | | @Log(title = "采购台账", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/updateApprovalStatus") |
| | | public AjaxResult addOrEditPurchase(@RequestBody PurchaseLedger purchaseLedger){ |
| | | return toAjax(purchaseLedgerService.updateById(purchaseLedger)); |
| | |
| | | return AjaxResult.success(purchaseReturnOrdersService.getPurchaseReturnOrderDtoById(id)); |
| | | } |
| | | |
| | | @Log(title = "采购退货单", businessType = BusinessType.DELETE) |
| | | @PostMapping("/deleteById/{id}") |
| | | public AjaxResult deleteById(@PathVariable Long id) { |
| | | //如果该采购退货已经生成对账单则无法删除 |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.quality.pojo.QualityInspect; |
| | | import com.ruoyi.quality.pojo.QualityInspectFile; |
| | | import com.ruoyi.quality.pojo.QualityInspectParam; |
| | |
| | | * @param qualityInspectFile |
| | | * @return |
| | | */ |
| | | @Log(title = "上传质检文件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody QualityInspectFile qualityInspectFile) { |
| | | return AjaxResult.success(qualityInspectFileService.save(qualityInspectFile)); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除质检文件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delQualityUnqualified(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | |
| | | package com.ruoyi.safe.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.R; |
| | | import com.ruoyi.safe.pojo.SafeAccident; |
| | | import com.ruoyi.safe.service.SafeAccidentService; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "新增事故上报记录") |
| | | @Log(title = "安全事故", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeAccident safeAccident) { |
| | | return R.ok(safeAccidentService.save(safeAccident)); |
| | | } |
| | | |
| | | @Operation(summary = "修改事故上报记录") |
| | | @Log(title = "安全事故", businessType = BusinessType.UPDATE) |
| | | @PutMapping () |
| | | public R update(@RequestBody SafeAccident safeAccident) { |
| | | return R.ok(safeAccidentService.updateById(safeAccident)); |
| | | } |
| | | |
| | | @Operation(summary = "删除事故上报记录") |
| | | @Log(title = "安全事故", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeAccident(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeAccidentService.removeBatchByIds(ids)); |
| | |
| | | package com.ruoyi.safe.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.R; |
| | | import com.ruoyi.safe.pojo.SafeCertification; |
| | | import com.ruoyi.safe.service.SafeCertificationService; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "新增安全规程与资质管理") |
| | | @Log(title = "安全证书", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeCertification safeCertification) { |
| | | return R.ok(safeCertificationService.save(safeCertification)); |
| | | } |
| | | |
| | | @Operation(summary = "修改安全规程与资质管理") |
| | | @Log(title = "安全证书", businessType = BusinessType.UPDATE) |
| | | @PutMapping () |
| | | public R update(@RequestBody SafeCertification safeCertification) { |
| | | return R.ok(safeCertificationService.updateById(safeCertification)); |
| | | } |
| | | |
| | | @Operation(summary = "删除安全规程与资质管理") |
| | | @Log(title = "安全证书", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeCertification(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeCertificationService.removeBatchByIds(ids)); |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | 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.safe.pojo.SafeCertificationFile; |
| | | import com.ruoyi.safe.service.SafeCertificationFileService; |
| | |
| | | * @param safeCertificationFile |
| | | * @return |
| | | */ |
| | | @Log(title = "新增安全证书文件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增") |
| | | public R add(@RequestBody SafeCertificationFile safeCertificationFile) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除安全证书文件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | @Operation(summary = "删除") |
| | | public R delSafeCertificationFile(@RequestBody List<Integer> ids) { |
| | |
| | | package com.ruoyi.safe.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.R; |
| | | import com.ruoyi.safe.pojo.SafeContingencyPlan; |
| | | import com.ruoyi.safe.service.SafeContingencyPlanService; |
| | |
| | | return R.ok(safeContingencyPlanService.pageSafeContingencyPlan(page, safeContingencyPlan)); |
| | | } |
| | | |
| | | @Log(title = "新增应急预案", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增应急预案查阅") |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeContingencyPlan safeContingencyPlan) { |
| | | return R.ok(safeContingencyPlanService.save(safeContingencyPlan)); |
| | | } |
| | | |
| | | @Log(title = "修改应急预案", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "修改应急预案查阅") |
| | | @PutMapping () |
| | | public R update(@RequestBody SafeContingencyPlan safeContingencyPlan) { |
| | | return R.ok(safeContingencyPlanService.updateById(safeContingencyPlan)); |
| | | } |
| | | |
| | | @Log(title = "删除应急预案", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "删除应急预案查阅") |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeCertification(@RequestBody List<Integer> ids) { |
| | |
| | | package com.ruoyi.safe.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.R; |
| | | import com.ruoyi.safe.pojo.SafeHazard; |
| | | import com.ruoyi.safe.service.SafeHazardService; |
| | |
| | | return R.ok(safeHazardService.pageSafeHazard(page, safeHazard)); |
| | | } |
| | | |
| | | @Log(title = "新增危险源", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增危险源台账") |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeHazard safeHazard) { |
| | | return R.ok(safeHazardService.save(safeHazard)); |
| | | } |
| | | |
| | | @Log(title = "修改危险源", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "修改危险源台账") |
| | | @PutMapping () |
| | | public R update(@RequestBody SafeHazard safeHazard) { |
| | | return R.ok(safeHazardService.updateById(safeHazard)); |
| | | } |
| | | |
| | | @Log(title = "删除危险源", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "删除危险源台账") |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeHazard(@RequestBody List<Integer> ids) { |
| | |
| | | package com.ruoyi.safe.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.R; |
| | | import com.ruoyi.safe.dto.SafeHazardRecordDto; |
| | | import com.ruoyi.safe.pojo.SafeHazardRecord; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "领用") |
| | | @Log(title = "危险源记录", businessType = BusinessType.INSERT) |
| | | @PostMapping("/borrow") |
| | | public R borrow(@RequestBody SafeHazardRecord safeHazardRecord) { |
| | | return R.ok(safeHazardRecordService.borrow(safeHazardRecord)); |
| | | } |
| | | |
| | | @Operation(summary = "归还") |
| | | @Log(title = "危险源记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/return") |
| | | public R returnSafeHazardRecord(@RequestBody SafeHazardRecord safeHazardRecord) { |
| | | return R.ok(safeHazardRecordService.returnSafeHazardRecord(safeHazardRecord)); |
| | | } |
| | | |
| | | @Operation(summary = "删除") |
| | | @Log(title = "危险源记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeHazardRecord(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeHazardRecordService.delSafeHazardRecord(ids)); |
| | |
| | | package com.ruoyi.safe.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.R; |
| | | import com.ruoyi.safe.dto.SafeHiddenDto; |
| | | import com.ruoyi.safe.pojo.SafeHidden; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "新增隐患排查") |
| | | @Log(title = "安全隐患", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeHidden safeHidden) { |
| | | return R.ok(safeHiddenService.add(safeHidden)); |
| | | } |
| | | |
| | | @Operation(summary = "修改隐患排查(整改/验收)") |
| | | @Log(title = "安全隐患", businessType = BusinessType.UPDATE) |
| | | @PutMapping () |
| | | public R update(@RequestBody SafeHidden safeHidden) { |
| | | return R.ok(safeHiddenService.updateById(safeHidden)); |
| | | } |
| | | |
| | | @Operation(summary = "删除隐患排查") |
| | | @Log(title = "安全隐患", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeHidden(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeHiddenService.delSafeHidden(ids)); |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | 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.safe.pojo.SafeHiddenFile; |
| | | import com.ruoyi.safe.service.SafeHiddenFileService; |
| | |
| | | * @param safeHiddenFile |
| | | * @return |
| | | */ |
| | | @Log(title = "新增隐患文件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增") |
| | | public R add(@RequestBody SafeHiddenFile safeHiddenFile) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除隐患文件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | @Operation(summary = "删除") |
| | | public R delSafeHiddenFile(@RequestBody List<Integer> ids) { |
| | |
| | | package com.ruoyi.safe.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.R; |
| | | import com.ruoyi.safe.dto.SafeTrainingDto; |
| | | import com.ruoyi.safe.pojo.SafeTraining; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "新增/编辑安全培训考核") |
| | | @Log(title = "安全培训", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R addOrUpdate(@RequestBody SafeTraining safeTraining) { |
| | | return R.ok(safeTrainingService.addOrUpdate(safeTraining)); |
| | | } |
| | | |
| | | @Operation(summary = "签到") |
| | | @Log(title = "安全培训", businessType = BusinessType.INSERT) |
| | | @PostMapping ("/sign") |
| | | public R sign(@RequestBody SafeTrainingDetails safeTrainingDetails) { |
| | | return R.ok(safeTrainingDetailsService.save(safeTrainingDetails)); |
| | |
| | | } |
| | | |
| | | @Operation(summary = "结果明细保存") |
| | | @Log(title = "安全培训", businessType = BusinessType.UPDATE) |
| | | @PostMapping ("/saveSafeTraining") |
| | | public R saveSafeTraining(@RequestBody SafeTrainingDto safeTrainingDto) { |
| | | return R.ok(safeTrainingService.saveSafeTraining(safeTrainingDto)); |
| | | } |
| | | |
| | | @Operation(summary = "删除安全培训考核") |
| | | @Log(title = "安全培训", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeTraining(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeTrainingService.delSafeTraining(ids)); |
| | | } |
| | | |
| | | @Operation(summary = "导出") |
| | | @Log(title = "安全培训", businessType = BusinessType.EXPORT) |
| | | @PostMapping ("/export") |
| | | public void export(HttpServletResponse response, @RequestBody SafeTraining safeTraining) { |
| | | safeTrainingService.export(response,safeTraining.getId()); |
| | |
| | | package com.ruoyi.safe.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.R; |
| | | import com.ruoyi.safe.pojo.SafeTrainingDetails; |
| | | import com.ruoyi.safe.service.SafeTrainingDetailsService; |
| | |
| | | return R.ok(safeTrainingDetailsService.pageDetails(page, safeTrainingDetails)); |
| | | } |
| | | |
| | | @Log(title = "导出培训详情", businessType = BusinessType.EXPORT) |
| | | @Operation(summary = "导出") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, @RequestBody SafeTrainingDetails safeTrainingDetails) { |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | 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.safe.pojo.SafeHiddenFile; |
| | | import com.ruoyi.safe.pojo.SafeTrainingFile; |
| | |
| | | * @param safeHiddenFile |
| | | * @return |
| | | */ |
| | | @Log(title = "新增培训文件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增") |
| | | public R add(@RequestBody SafeTrainingFile safeHiddenFile) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除培训文件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | @Operation(summary = "删除") |
| | | public R delSafeHiddenFile(@RequestBody List<Integer> ids) { |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.utils.OrderUtils; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.sales.mapper.PaymentShippingMapper; |
| | |
| | | return AjaxResult.success(listPage); |
| | | } |
| | | |
| | | @Log(title = "付款发货", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "添加支付与发货信息") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return save ? success() : error(); |
| | | } |
| | | |
| | | @Log(title = "付款发货", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "修改支付与发货信息") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return update ? success() : error(); |
| | | } |
| | | |
| | | @Log(title = "付款发货", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除支付与发货信息") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | 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.sales.dto.SalesQuotationDto; |
| | | import com.ruoyi.sales.service.SalesQuotationService; |
| | |
| | | } |
| | | |
| | | |
| | | @Log(title = "销售报价", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | | Page page = new Page(-1,-1); |
| | |
| | | } |
| | | |
| | | |
| | | @Log(title = "销售报价", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SalesQuotationDto salesQuotationDto) { |
| | | return AjaxResult.success(salesQuotationService.add(salesQuotationDto)); |
| | | } |
| | | @Log(title = "销售报价", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody SalesQuotationDto salesQuotationDto) { |
| | | return AjaxResult.success(salesQuotationService.edit(salesQuotationDto)); |
| | | } |
| | | @Log(title = "销售报价", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | public AjaxResult delete(@RequestBody Long id) { |
| | | return AjaxResult.success(salesQuotationService.delete(id)); |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.sales.pojo.SalespersonManagement; |
| | |
| | | return AjaxResult.success(listPage); |
| | | } |
| | | |
| | | @Log(title = "业务员管理", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @Operation(summary = "添加业务员信息") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return save ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | @Log(title = "业务员管理", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | @Operation(summary = "修改业务员信息") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return update ? AjaxResult.success() : AjaxResult.error(); |
| | | } |
| | | |
| | | @Log(title = "业务员管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除业务员信息") |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | /** |
| | | * 导出发货信息管理 |
| | | */ |
| | | @Log(title = "发货信息", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | @Operation(summary = "导出发货信息") |
| | | public void export(HttpServletResponse response) { |
| | |
| | | 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; |
| | |
| | | /** |
| | | * 新增请假申请 |
| | | */ |
| | | @Log(title = "新增请假申请", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HolidayApplication holidayApplication){ |
| | | return AjaxResult.success(holidayApplicationService.save(holidayApplication)); |
| | |
| | | /** |
| | | * 修改请假申请 |
| | | */ |
| | | @Log(title = "修改请假申请", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/update") |
| | | public AjaxResult update(@RequestBody HolidayApplication holidayApplication){ |
| | | return AjaxResult.success(holidayApplicationService.updateById(holidayApplication)); |
| | |
| | | /** |
| | | * 删除请假申请 |
| | | */ |
| | | @Log(title = "删除请假申请", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delete/{id}") |
| | | 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.R; |
| | | import com.ruoyi.staff.pojo.PersonalAttendanceLocationConfig; |
| | | import com.ruoyi.staff.service.PersonalAttendanceLocationConfigService; |
| | |
| | | private final PersonalAttendanceLocationConfigService personalAttendanceLocationConfigService; |
| | | |
| | | @Operation(summary = "新增/修改人员打卡规则配置") |
| | | @Log(title = "新增/修改人员打卡规则配置", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody PersonalAttendanceLocationConfig personalAttendanceLocationConfig){ |
| | | |
| | |
| | | |
| | | |
| | | @Operation(summary = "删除人员打卡规则配置") |
| | | @Log(title = "删除人员打卡规则配置", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | 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; |
| | |
| | | @Resource |
| | | private PersonalAttendanceRecordsService personalAttendanceRecordsService; |
| | | |
| | | @Log(title = "个人考勤记录", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增打卡签到") |
| | | @PostMapping("") |
| | | public AjaxResult add(@RequestBody PersonalAttendanceRecordsDto personalAttendanceRecordsDto){ |
| | |
| | | return AjaxResult.success(personalAttendanceRecordsService.todayInfo(personalAttendanceRecordsDto)); |
| | | } |
| | | |
| | | @Log(title = "个人考勤记录", businessType = BusinessType.EXPORT) |
| | | @Operation(summary = "导出打卡签到") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PersonalAttendanceRecordsDto 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; |
| | |
| | | private PersonalShiftService personalShiftService; |
| | | |
| | | @Operation(summary = "人员排班") |
| | | @Log(title = "新增人员排班", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody PerformanceShiftAddDto performanceShiftAddDto){ |
| | | return R.ok(personalShiftService.performanceShiftAdd(performanceShiftAddDto)); |
| | |
| | | } |
| | | |
| | | @Operation(summary = "班次状态修改") |
| | | @Log(title = "修改班次状态", businessType = BusinessType.UPDATE) |
| | | @PostMapping("update") |
| | | public R performanceShiftUpdate(@RequestBody PersonalShift personalShift) { |
| | | personalShiftService.performanceShiftUpdate(personalShift); |
| | |
| | | } |
| | | |
| | | @Operation(summary = "导出") |
| | | @Log(title = "导出人员排班", businessType = BusinessType.EXPORT) |
| | | @GetMapping("export") |
| | | public void exportToExcel(@NotNull(message = "时间不能为空!") String time, String userName, Integer sysDeptId, Boolean isMonth, HttpServletResponse response) throws Exception { |
| | | ServletOutputStream out = response.getOutputStream(); |
| | |
| | | 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; |
| | |
| | | * @param staffLeaveDto |
| | | * @return |
| | | */ |
| | | @Log(title = "新增离职记录", businessType = BusinessType.INSERT) |
| | | @PostMapping("") |
| | | public AjaxResult add(@RequestBody StaffLeaveDto staffLeaveDto) { |
| | | return AjaxResult.success(staffLeaveService.add(staffLeaveDto)); |
| | |
| | | * @param staffLeaveDto |
| | | * @return |
| | | */ |
| | | @Log(title = "修改离职记录", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/{id}") |
| | | public AjaxResult update(@PathVariable("id") Long id, @RequestBody StaffLeaveDto staffLeaveDto) { |
| | | return AjaxResult.success(staffLeaveService.update(id, staffLeaveDto)); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除离职记录", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult del(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | |
| | | * 离职导出 |
| | | * @param staffLeaveDto |
| | | */ |
| | | @Log(title = "导出离职记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, StaffLeaveDto staffLeaveDto) { |
| | | staffLeaveService.export(response, staffLeaveDto); |
| | |
| | | * @param staffOnJob |
| | | * @return |
| | | */ |
| | | @Log(title = "在职员工", businessType = BusinessType.INSERT) |
| | | @PostMapping("") |
| | | public AjaxResult add(@RequestBody StaffOnJobDto staffOnJob) { |
| | | return AjaxResult.success(staffOnJobService.add(staffOnJob)); |
| | |
| | | * @param staffOnJobDto |
| | | * @return |
| | | */ |
| | | @Log(title = "在职员工", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/{id}") |
| | | public AjaxResult update(@PathVariable("id") Long id, @RequestBody StaffOnJobDto staffOnJobDto) { |
| | | return AjaxResult.success(staffOnJobService.update(id, staffOnJobDto)); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "在职员工", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delStaffOnJobs(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | |
| | | * @param staffContract |
| | | * @return |
| | | */ |
| | | @Log(title = "在职员工", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/renewContract/{id}") |
| | | public AjaxResult renewContract(@PathVariable Long id, @RequestBody StaffContract staffContract) { |
| | | return AjaxResult.success(staffOnJobService.renewContract(id, staffContract)); |
| | | } |
| | | |
| | | @Operation(summary = "下载模板") |
| | | @Log(title = "在职员工", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/downloadTemplate") |
| | | public void downloadTemplate(HttpServletResponse response) { |
| | | ExcelUtil<StaffOnJobExcelDto> util = new ExcelUtil<>(StaffOnJobExcelDto.class); |
| | |
| | | * @param response |
| | | * @param staffOnJob |
| | | */ |
| | | @Log(title = "在职员工", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void staffOnJobExport(HttpServletResponse response,StaffOnJob staffOnJob) { |
| | | staffOnJobService.staffOnJobExport(response, staffOnJob); |
| | |
| | | * @param response |
| | | * @param staffOnJob |
| | | */ |
| | | @Log(title = "在职员工", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportCopy") |
| | | @Operation(summary = "word模板合同在职员工导出") |
| | | public AjaxResult exportCopy(HttpServletResponse response,@RequestBody StaffOnJob staffOnJob) throws Exception{ |
| | |
| | | return AjaxResult.success(staffSchedulingService.listPage(vo)); |
| | | } |
| | | |
| | | @Log(title = "员工排班", businessType = BusinessType.INSERT) |
| | | @PostMapping("/save") |
| | | public AjaxResult save(@RequestBody @Validated SaveStaffSchedulingDto saveStaffSchedulingDto){ |
| | | staffSchedulingService.saveStaffScheduling(saveStaffSchedulingDto); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @Log(title = "员工排班", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/delByIds") |
| | | public AjaxResult delByIds(@RequestBody List<Integer> ids){ |
| | | staffSchedulingService.removeByIds(ids); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @Log(title = "员工排班", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del/{id}") |
| | | public AjaxResult del(@PathVariable("id") Integer id){ |
| | | staffSchedulingService.removeById(id); |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.enums.StockInQualifiedRecordTypeEnum; |
| | | import com.ruoyi.common.enums.StockOutQualifiedRecordTypeEnum; |
| | | 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.stock.dto.StockInventoryDto; |
| | | import com.ruoyi.stock.dto.StockUninventoryDto; |
| | |
| | | |
| | | @PostMapping("/addstockUninventory") |
| | | @Operation(summary = "新增库存") |
| | | @Log(title = "新增不合格库存", businessType = BusinessType.INSERT) |
| | | public R addstockUninventory(@RequestBody StockUninventoryDto stockUninventoryDto) { |
| | | stockUninventoryDto.setRecordType(String.valueOf(StockInQualifiedRecordTypeEnum.CUSTOMIZATION_UNSTOCK_IN.getCode())); |
| | | stockUninventoryDto.setRecordId(0L); |
| | |
| | | |
| | | @PostMapping("/subtractstockUninventory") |
| | | @Operation(summary = "扣减库存") |
| | | @Log(title = "扣减不合格库存", businessType = BusinessType.UPDATE) |
| | | public R subtractstockUninventory(@RequestBody StockUninventoryDto stockUninventoryDto) { |
| | | stockUninventoryDto.setRecordType(String.valueOf(StockOutQualifiedRecordTypeEnum.CUSTOMIZATION_UNSTOCK_OUT.getCode())); |
| | | stockUninventoryDto.setRecordId(0L); |
| | |
| | | |
| | | @PostMapping("/addStockInRecordOnly") |
| | | @Operation(summary = "新增入库记录(仅创建记录,不调整库存)") |
| | | @Log(title = "新增不合格库存入库记录", businessType = BusinessType.INSERT) |
| | | public R addStockInRecordOnly(@RequestBody StockUninventoryDto stockUninventoryDto) { |
| | | stockUninventoryDto.setRecordType(String.valueOf(StockInQualifiedRecordTypeEnum.CUSTOMIZATION_UNSTOCK_IN.getCode())); |
| | | stockUninventoryDto.setRecordId(0L); |
| | |
| | | |
| | | @PostMapping("/addStockOutRecordOnly") |
| | | @Operation(summary = "新增出库记录(仅创建记录,不调整库存)") |
| | | @Log(title = "新增不合格库存出库记录", businessType = BusinessType.INSERT) |
| | | public R addStockOutRecordOnly(@RequestBody StockUninventoryDto stockUninventoryDto) { |
| | | stockUninventoryDto.setRecordType(String.valueOf(StockOutQualifiedRecordTypeEnum.CUSTOMIZATION_UNSTOCK_OUT.getCode())); |
| | | stockUninventoryDto.setRecordId(0L); |
| | |
| | | |
| | | @PostMapping("/exportStockUninventory") |
| | | @Operation(summary = "导出库存") |
| | | @Log(title = "导出不合格库存", businessType = BusinessType.EXPORT) |
| | | public void exportStockUninventory(HttpServletResponse response, StockUninventoryDto stockUninventoryDto) { |
| | | stockUninventoryService.exportStockUninventory(response,stockUninventoryDto); |
| | | } |
| | |
| | | |
| | | @PostMapping("/frozenStock") |
| | | @Operation(summary = "冻结库存") |
| | | @Log(title = "冻结不合格库存", businessType = BusinessType.UPDATE) |
| | | public R frozenStock(@RequestBody StockInventoryDto stockInventoryDto) { |
| | | return R.ok(stockUninventoryService.frozenStock(stockInventoryDto)); |
| | | } |
| | | |
| | | @PostMapping("/thawStock") |
| | | @Operation(summary = "解冻库存") |
| | | @Log(title = "解冻不合格库存", businessType = BusinessType.UPDATE) |
| | | public R thawStock(@RequestBody StockInventoryDto stockInventoryDto) { |
| | | return R.ok(stockUninventoryService.thawStock(stockInventoryDto)); |
| | | } |
| | |
| | | package com.ruoyi.technology.controller; |
| | | |
| | | 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.technology.bean.dto.TechnologyBomStructureDto; |
| | | import com.ruoyi.technology.bean.vo.TechnologyBomStructureVo; |
| | |
| | | |
| | | @PostMapping |
| | | @Operation(summary = "新增或修改BOM结构") |
| | | @Log(title = "新增或修改BOM结构", businessType = BusinessType.INSERT) |
| | | public R addOrUpdate(@RequestBody TechnologyBomStructureDto technologyBomStructureDto) { |
| | | return R.ok(technologyBomStructureService.addTechnologyBomStructure(technologyBomStructureDto)); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.technology.bean.dto.TechnologyRoutingDto; |
| | | import com.ruoyi.technology.bean.vo.TechnologyRoutingVo; |
| | |
| | | /** |
| | | * 新增工艺路线。 |
| | | */ |
| | | @PostMapping("/addTechRoute") |
| | | @Log(title = "工艺路线", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增工艺路线") |
| | | @PostMapping("/addTechRoute") |
| | | public R add(@RequestBody TechnologyRouting technologyRouting) { |
| | | return R.ok(technologyRoutingService.saveTechnologyRouting(technologyRouting)); |
| | | } |
| | |
| | | /** |
| | | * 修改工艺路线。 |
| | | */ |
| | | @PutMapping("/editTechRoute") |
| | | @Log(title = "工艺路线", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "修改工艺路线") |
| | | @PutMapping("/editTechRoute") |
| | | public R edit(@RequestBody TechnologyRouting technologyRouting) { |
| | | return R.ok(technologyRoutingService.updateTechnologyRouting(technologyRouting)); |
| | | } |
| | |
| | | /** |
| | | * 批量删除工艺路线。 |
| | | */ |
| | | @DeleteMapping("/delete") |
| | | @Log(title = "工艺路线", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "删除工艺路线") |
| | | @DeleteMapping("/delete") |
| | | public R remove(@RequestBody List<Long> ids) { |
| | | return R.ok(technologyRoutingService.removeTechnologyRouting(ids)); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.technology.bean.dto.TechnologyRoutingOperationDto; |
| | | import com.ruoyi.technology.bean.vo.TechnologyRoutingOperationVo; |
| | |
| | | return R.ok(technologyRoutingOperationService.getTechnologyRoutingOperationInfo(id)); |
| | | } |
| | | |
| | | @PostMapping("/add") |
| | | @Log(title = "工艺路线工序", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增工艺路线工序") |
| | | @PostMapping("/add") |
| | | public R add(@RequestBody TechnologyRoutingOperation technologyRoutingOperation) { |
| | | return R.ok(technologyRoutingOperationService.saveTechnologyRoutingOperation(technologyRoutingOperation)); |
| | | } |
| | | |
| | | @PutMapping |
| | | @Log(title = "工艺路线工序", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "修改工艺路线工序") |
| | | @PutMapping |
| | | public R edit(@RequestBody TechnologyRoutingOperation technologyRoutingOperation) { |
| | | return R.ok(technologyRoutingOperationService.updateById(technologyRoutingOperation)); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @Log(title = "工艺路线工序", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "删除工艺路线工序") |
| | | @DeleteMapping("/{id}") |
| | | public R remove(@PathVariable("id") Long id) { |
| | | return R.ok(technologyRoutingOperationService.removeTechnologyRoutingOperation(id)); |
| | | } |
| | | |
| | | @PostMapping ("/sort") |
| | | @Log(title = "工艺路线工序", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "排序工艺路线工序") |
| | | @PostMapping ("/sort") |
| | | public R sort(@RequestBody TechnologyRoutingOperation technologyRoutingOperation) { |
| | | return R.ok(technologyRoutingOperationService.sort(technologyRoutingOperation)); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.technology.bean.dto.TechnologyRoutingOperationParamDto; |
| | | import com.ruoyi.technology.bean.dto.TechnologyRoutingOperationParamSyncDto; |
| | |
| | | |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增生产订单工艺路线工序参数") |
| | | @Log(title = "新增工艺路线工序参数", businessType = BusinessType.INSERT) |
| | | public R<Boolean> add(@RequestBody TechnologyRoutingOperationParam technologyRoutingOperationParam) { |
| | | return R.ok(technologyRoutingOperationParamService.saveTechnologyRoutingOperationParam(technologyRoutingOperationParam)); |
| | | } |
| | | |
| | | @PutMapping |
| | | @Operation(summary = "修改生产订单工艺路线工序参数") |
| | | @Log(title = "修改工艺路线工序参数", businessType = BusinessType.UPDATE) |
| | | public R<Boolean> edit(@RequestBody TechnologyRoutingOperationParam technologyRoutingOperationParam) { |
| | | return R.ok(technologyRoutingOperationParamService.saveTechnologyRoutingOperationParam(technologyRoutingOperationParam)); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @Operation(summary = "删除生产订单工艺路线工序参数") |
| | | @Log(title = "删除工艺路线工序参数", businessType = BusinessType.DELETE) |
| | | public R<Boolean> remove(@PathVariable("id") Long id) { |
| | | return R.ok(technologyRoutingOperationParamService.removeTechnologyRoutingOperationParam(id)); |
| | | } |
| | | |
| | | @PostMapping("/sync") |
| | | @Operation(summary = "按工艺路线工序同步工序参数") |
| | | @Log(title = "同步工艺路线工序参数", businessType = BusinessType.UPDATE) |
| | | public R<Integer> sync(@RequestBody TechnologyRoutingOperationParamSyncDto syncDto) { |
| | | return R.ok(technologyRoutingOperationParamService.syncTechnologyRoutingOperationParam(syncDto)); |
| | | } |
| | |
| | | package com.ruoyi.warehouse.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.warehouse.pojo.DocumentationFile; |
| | | import com.ruoyi.warehouse.service.DocumentationFileService; |
| | |
| | | * @param documentationFile |
| | | * @return |
| | | */ |
| | | @Log(title = "新增文档文件", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody DocumentationFile documentationFile) { |
| | | return AjaxResult.success(documentationFileService.save(documentationFile)); |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Log(title = "删除文档文件", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delDocumentationFile(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |