Merge remote-tracking branch 'origin/dev_pro_娌冲崡楣ゅ' into dev_pro_娌冲崡楣ゅ
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | ALTER TABLE `after_sales_service` |
| | | ADD COLUMN `product_model_quantities` varchar(255) DEFAULT NULL COMMENT '产ååå·å¯¹åºå®åæ°é'; |
| | |
| | | @Schema(description = "产ååå·IDs") |
| | | private String productModelIds; |
| | | |
| | | @Schema(description = "产ååå·æ°é,éå·åé") |
| | | private String productModelQuantities; |
| | | |
| | | @Schema(description = "è¯å(1-5å)") |
| | | @Excel(name = "è¯å") |
| | | private BigDecimal rating; |
| | |
| | | private final SysUserMapper sysUserMapper; |
| | | private final ISalesLedgerProductService salesLedgerProductService; |
| | | private final ISalesLedgerService salesLedgerService; |
| | | private final com.ruoyi.sales.mapper.ShippingInfoMapper shippingInfoMapper; |
| | | |
| | | @Override |
| | | public IPage<AfterSalesServiceNewDto> listPage(Page page, AfterSalesServiceNewDto afterSalesService) { |
| | |
| | | SalesLedger byId = salesLedgerService.getById(afterSalesService.getSalesLedgerId()); |
| | | List<Long> collect = Arrays.stream(afterSalesService.getProductModelIds().split(",")).map(Long::valueOf).collect(Collectors.toList()); |
| | | List<SalesLedgerProduct> list = salesLedgerProductService.list(new QueryWrapper<SalesLedgerProduct>().lambda().in(SalesLedgerProduct::getId, collect)); |
| | | |
| | | if (StringUtils.isNotEmpty(afterSalesService.getProductModelQuantities())) { |
| | | String[] quantities = afterSalesService.getProductModelQuantities().split(","); |
| | | for (int i = 0; i < collect.size(); i++) { |
| | | Long productId = collect.get(i); |
| | | for (SalesLedgerProduct product : list) { |
| | | if (product.getId().equals(productId)) { |
| | | if (i < quantities.length && StringUtils.isNotEmpty(quantities[i])) { |
| | | product.setQuantity(new java.math.BigDecimal(quantities[i])); |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | for (SalesLedgerProduct product : list) { |
| | | com.ruoyi.sales.pojo.ShippingInfo shippingInfo = shippingInfoMapper.selectOne( |
| | | new com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper<com.ruoyi.sales.pojo.ShippingInfo>() |
| | | .eq(com.ruoyi.sales.pojo.ShippingInfo::getSalesLedgerProductId, product.getId()) |
| | | .orderByDesc(com.ruoyi.sales.pojo.ShippingInfo::getCreateTime) |
| | | .last("limit 1") |
| | | ); |
| | | if (shippingInfo != null) { |
| | | product.setShippingCarNumber(shippingInfo.getShippingCarNumber()); |
| | | product.setShippingDate(shippingInfo.getShippingDate()); |
| | | product.setShippingStatus(shippingInfo.getStatus()); |
| | | product.setExpressCompany(shippingInfo.getExpressCompany()); |
| | | product.setExpressNumber(shippingInfo.getExpressNumber()); |
| | | } |
| | | } |
| | | |
| | | AfterSalesServiceNewDto afterSalesServiceNewDto = new AfterSalesServiceNewDto(); |
| | | BeanUtils.copyProperties(afterSalesService, afterSalesServiceNewDto); |
| | | SalesLedgerDto salesLedgerDto = new SalesLedgerDto(); |
| | |
| | | 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) { |
| | |
| | | // åè´§æ°é |
| | | long count = shippingInfoMapper.selectCount(new LambdaQueryWrapper<ShippingInfo>() |
| | | .in(ShippingInfo::getSalesLedgerProductId, salesLedgerProducts.stream().map(SalesLedgerProduct::getId).collect(Collectors.toList())) |
| | | .eq(ShippingInfo::getStatus,"å·²åè´§")); |
| | | .eq(ShippingInfo::getStatus,"å®¡æ ¸éè¿")); |
| | | map.put("shipRate", String.format("%.2f", count * 100.0 / salesLedgerProducts.size()) + "%"); |
| | | return AjaxResult.success(map); |
| | | } |
| | |
| | | .orderByDesc(ShippingInfo::getCreateTime) |
| | | .last("limit 1")); |
| | | if (shippingInfo != null) { |
| | | product.setShippingCarNumber(shippingInfo.getShippingCarNumber()); |
| | | product.setShippingDate(shippingInfo.getShippingDate()); |
| | | product.setShippingStatus(shippingInfo.getStatus()); |
| | | product.setExpressCompany(shippingInfo.getExpressCompany()); |
| | | product.setExpressNumber(shippingInfo.getExpressNumber()); |
| | | } |
| | | } |
| | | |
| | |
| | | .eq(ShippingInfo::getSalesLedgerProductId, product.getId()) |
| | | .orderByDesc(ShippingInfo::getCreateTime) |
| | | .last("limit 1")); |
| | | product.setShippingCarNumber(shippingInfo.getShippingCarNumber()); |
| | | product.setShippingDate(shippingInfo.getShippingDate()); |
| | | if (shippingInfo != null) { |
| | | product.setShippingCarNumber(shippingInfo.getShippingCarNumber()); |
| | | product.setShippingDate(shippingInfo.getShippingDate()); |
| | | product.setShippingStatus(shippingInfo.getStatus()); |
| | | product.setExpressCompany(shippingInfo.getExpressCompany()); |
| | | product.setExpressNumber(shippingInfo.getExpressNumber()); |
| | | } |
| | | } |
| | | // è¿æ»¤åªä¿çåè´§è®°å½ |
| | |
| | | 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)){ |
| | |
| | | <include refid="ProductionOrderVoColumns" /> |
| | | <include refid="ProductionOrderVoFrom" /> |
| | | <include refid="ProductionOrderWhere" /> |
| | | order by po.id desc |
| | | order by po.nps_no desc |
| | | </select> |
| | | |
| | | <select id="listProductionOrder" resultMap="ProductionOrderVoResultMap"> |
| | |
| | | </if> |
| | | </if> |
| | | </where> |
| | | ORDER BY COALESCE(pp.id) DESC |
| | | ORDER BY pp.mps_no DESC |
| | | </select> |
| | | |
| | | <select id="selectWithMaterialByIds" resultType="com.ruoyi.production.bean.dto.ProductionPlanDto"> |
| | |
| | | </select> |
| | | |
| | | <select id="getPassRateStatistics" resultType="com.ruoyi.quality.dto.QualityPassRateDto"> |
| | | SELECT qi.inspect_type AS modelType, |
| | | SELECT t.modelType, |
| | | t.totalCount, |
| | | t.completedCount, |
| | | t.qualifiedCount, |
| | | t.unqualifiedCount, |
| | | |
| | | COALESCE(SUM(qi.quantity), 0) AS totalCount, |
| | | /* 宿çï¼ |
| | | å¦ææ»æ°ä¸º 0 åè¿å 0ï¼å¦åè®¡ç®æ¯ä¾ï¼ä½¿ç¨ TRUNCATE ä¿ç 4 ä½å°æ°ï¼å¦ 99.9992ï¼ |
| | | */ |
| | | IF(t.totalCount = 0, 0, |
| | | TRUNCATE((t.completedCount / t.totalCount) * 100, 2) |
| | | ) AS completionRate, |
| | | |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 THEN qi.quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) AS completedCount, |
| | | |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 |
| | | THEN qi.qualified_quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) AS qualifiedCount, |
| | | |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 |
| | | THEN qi.unqualified_quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) AS unqualifiedCount, |
| | | |
| | | /* 宿ç */ |
| | | IF(COALESCE(SUM(qi.quantity), 0) = 0, 0, |
| | | ROUND( |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 THEN qi.quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) |
| | | / SUM(qi.quantity) * 100, 2) |
| | | ) AS completionRate, |
| | | |
| | | /* åæ ¼ç */ |
| | | IF(COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 THEN qi.quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) = 0, 0, |
| | | ROUND( |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 |
| | | THEN qi.qualified_quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) |
| | | / |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 THEN qi.quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) * 100, 2) |
| | | ) AS passRate |
| | | |
| | | FROM quality_inspect qi |
| | | |
| | | GROUP BY qi.inspect_type |
| | | ORDER BY qi.inspect_type; |
| | | /* åæ ¼çï¼ |
| | | 妿å®å·¥æ°ä¸º 0 åè¿å 0ï¼ä½¿ç¨ TRUNCATE æªæï¼é²æ¢æå
¶æ¥è¿ 100% çæ°æ®è¢«åèäºå
¥æ 100 |
| | | */ |
| | | IF(t.completedCount = 0, 0, |
| | | TRUNCATE((t.qualifiedCount / t.completedCount) * 100, 2) |
| | | ) AS passRate |
| | | FROM ( |
| | | /* å
éè¿åæ¥è¯¢æåºç¡æ°æ®è¿è¡èåç»è®¡ï¼é¿å
å¤å±éå¤ç¼å夿ç CASE WHEN */ |
| | | SELECT qi.inspect_type AS modelType, |
| | | COALESCE(SUM(qi.quantity), 0) AS totalCount, |
| | | COALESCE(SUM(CASE WHEN qi.inspect_state = 1 THEN qi.quantity ELSE 0 END), |
| | | 0) AS completedCount, |
| | | COALESCE(SUM(CASE WHEN qi.inspect_state = 1 THEN qi.qualified_quantity ELSE 0 END), |
| | | 0) AS qualifiedCount, |
| | | COALESCE(SUM(CASE WHEN qi.inspect_state = 1 THEN qi.unqualified_quantity ELSE 0 END), |
| | | 0) AS unqualifiedCount |
| | | FROM quality_inspect qi |
| | | GROUP BY qi.inspect_type) t |
| | | ORDER BY t.modelType; |
| | | </select> |
| | | |
| | | |
| | |
| | | FROM months m |
| | | CROSS JOIN types t) |
| | | |
| | | SELECT CASE b.month_num |
| | | WHEN 1 THEN '䏿' |
| | | WHEN 2 THEN 'äºæ' |
| | | WHEN 3 THEN '䏿' |
| | | WHEN 4 THEN 'åæ' |
| | | WHEN 5 THEN 'äºæ' |
| | | WHEN 6 THEN 'å
æ' |
| | | WHEN 7 THEN '䏿' |
| | | WHEN 8 THEN 'å
«æ' |
| | | WHEN 9 THEN '乿' |
| | | WHEN 10 THEN 'åæ' |
| | | WHEN 11 THEN 'å䏿' |
| | | WHEN 12 THEN 'åäºæ' |
| | | END AS month, |
| | | SELECT |
| | | CASE t.month_num |
| | | WHEN 1 THEN '䏿' |
| | | WHEN 2 THEN 'äºæ' |
| | | WHEN 3 THEN '䏿' |
| | | WHEN 4 THEN 'åæ' |
| | | WHEN 5 THEN 'äºæ' |
| | | WHEN 6 THEN 'å
æ' |
| | | WHEN 7 THEN '䏿' |
| | | WHEN 8 THEN 'å
«æ' |
| | | WHEN 9 THEN '乿' |
| | | WHEN 10 THEN 'åæ' |
| | | WHEN 11 THEN 'å䏿' |
| | | WHEN 12 THEN 'åäºæ' |
| | | END AS month, |
| | | |
| | | b.modelType, |
| | | t.modelType, |
| | | t.totalCount, |
| | | t.completedCount, |
| | | t.qualifiedCount, |
| | | t.unqualifiedCount, |
| | | |
| | | /* æ»æ°é */ |
| | | COALESCE(SUM(qi.quantity), 0) AS totalCount, |
| | | IF(t.totalCount = 0, 0, |
| | | TRUNCATE((t.completedCount / t.totalCount) * 100, 2) |
| | | ) AS completionRate, |
| | | |
| | | /* 已宿 */ |
| | | COALESCE(SUM( |
| | | CASE WHEN qi.inspect_state = 1 THEN qi.quantity ELSE 0 END |
| | | ), 0) AS completedCount, |
| | | IF(t.completedCount = 0, 0, |
| | | TRUNCATE((t.qualifiedCount / t.completedCount) * 100, 2) |
| | | ) AS passRate |
| | | |
| | | /* åæ ¼ */ |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 |
| | | THEN qi.qualified_quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) AS qualifiedCount, |
| | | |
| | | /* ä¸åæ ¼ */ |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 |
| | | THEN qi.unqualified_quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) AS unqualifiedCount, |
| | | |
| | | /* 宿ç */ |
| | | IF(COALESCE(SUM(qi.quantity), 0) = 0, 0, |
| | | ROUND( |
| | | COALESCE(SUM( |
| | | CASE WHEN qi.inspect_state = 1 THEN qi.quantity ELSE 0 END |
| | | ), 0) / SUM(qi.quantity) * 100, 2 |
| | | ) |
| | | ) AS completionRate, |
| | | |
| | | /* åæ ¼ç */ |
| | | IF(COALESCE(SUM( |
| | | CASE WHEN qi.inspect_state = 1 THEN qi.quantity ELSE 0 END |
| | | ), 0) = 0, 0, |
| | | ROUND( |
| | | COALESCE(SUM( |
| | | CASE |
| | | WHEN qi.inspect_state = 1 |
| | | THEN qi.qualified_quantity |
| | | ELSE 0 |
| | | END |
| | | ), 0) |
| | | / |
| | | COALESCE(SUM( |
| | | CASE WHEN qi.inspect_state = 1 THEN qi.quantity ELSE 0 END |
| | | ), 0) * 100, 2 |
| | | ) |
| | | ) AS passRate |
| | | |
| | | FROM base b |
| | | LEFT JOIN quality_inspect qi |
| | | ON qi.inspect_type = b.modelType |
| | | AND YEAR(qi.check_time) = #{year} |
| | | AND MONTH(qi.check_time) = b.month_num |
| | | |
| | | GROUP BY b.month_num, b.modelType |
| | | ORDER BY b.month_num, b.modelType; |
| | | |
| | | FROM ( |
| | | SELECT |
| | | b.month_num, |
| | | b.modelType, |
| | | COALESCE(SUM(qi.quantity), 0) AS totalCount, |
| | | COALESCE(SUM(CASE WHEN qi.inspect_state = 1 THEN qi.quantity ELSE 0 END), 0) AS completedCount, |
| | | COALESCE(SUM(CASE WHEN qi.inspect_state = 1 THEN qi.qualified_quantity ELSE 0 END), 0) AS qualifiedCount, |
| | | COALESCE(SUM(CASE WHEN qi.inspect_state = 1 THEN qi.unqualified_quantity ELSE 0 END), 0) AS unqualifiedCount |
| | | FROM base b |
| | | LEFT JOIN quality_inspect qi ON qi.inspect_type = b.modelType |
| | | AND YEAR(qi.check_time) = #{year} |
| | | AND MONTH(qi.check_time) = b.month_num |
| | | GROUP BY b.month_num, b.modelType |
| | | ) t |
| | | ORDER BY t.month_num, t.modelType; |
| | | </select> |
| | | |
| | | <select id="getYearlyPassRateStatistics" resultType="com.ruoyi.quality.dto.QualityPassRateDto"> |
| | | SELECT qi.inspect_type AS modelType, |
| | | |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.project.system.mapper.SysUserMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.project.system.domain.SysUser" id="SysUserResult"> |
| | | <id property="userId" column="user_id" /> |
| | | <result property="userName" column="user_name" /> |
| | | <result property="nickName" column="nick_name" /> |
| | | <result property="email" column="email" /> |
| | | <result property="phonenumber" column="phonenumber" /> |
| | | <result property="sex" column="sex" /> |
| | | <result property="avatar" column="avatar" /> |
| | | <result property="password" column="password" /> |
| | | <result property="status" column="status" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="aiEnabled" column="ai_enabled" /> |
| | | <result property="loginIp" column="login_ip" /> |
| | | <result property="loginDate" column="login_date" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="deptNames" column="dept_names" /> |
| | | <result property="tenantId" column="tenant_id" /> |
| | | <association property="dept" javaType="com.ruoyi.project.system.domain.SysDept" resultMap="deptResult" /> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult" /> |
| | | <id property="userId" column="user_id"/> |
| | | <result property="userName" column="user_name"/> |
| | | <result property="nickName" column="nick_name"/> |
| | | <result property="email" column="email"/> |
| | | <result property="phonenumber" column="phonenumber"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="avatar" column="avatar"/> |
| | | <result property="password" column="password"/> |
| | | <result property="status" column="status"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="aiEnabled" column="ai_enabled"/> |
| | | <result property="loginIp" column="login_ip"/> |
| | | <result property="loginDate" column="login_date"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="tenantId" column="tenant_id"/> |
| | | <association property="dept" javaType="com.ruoyi.project.system.domain.SysDept" resultMap="deptResult"/> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="deptResult" type="com.ruoyi.project.system.domain.SysDept"> |
| | | <id property="deptId" column="dept_id" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="deptName" column="dept_name" /> |
| | | <result property="ancestors" column="ancestors" /> |
| | | <result property="orderNum" column="order_num" /> |
| | | <result property="leader" column="leader" /> |
| | | <result property="status" column="dept_status" /> |
| | | <id property="deptId" column="dept_id"/> |
| | | <result property="parentId" column="parent_id"/> |
| | | <result property="deptName" column="dept_name"/> |
| | | <result property="ancestors" column="ancestors"/> |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="status" column="dept_status"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="RoleResult" type="com.ruoyi.project.system.domain.SysRole"> |
| | | <id property="roleId" column="role_id" /> |
| | | <result property="roleName" column="role_name" /> |
| | | <result property="roleKey" column="role_key" /> |
| | | <result property="roleSort" column="role_sort" /> |
| | | <result property="dataScope" column="data_scope" /> |
| | | <result property="status" column="role_status" /> |
| | | <id property="roleId" column="role_id"/> |
| | | <result property="roleName" column="role_name"/> |
| | | <result property="roleKey" column="role_key"/> |
| | | <result property="roleSort" column="role_sort"/> |
| | | <result property="dataScope" column="data_scope"/> |
| | | <result property="status" column="role_status"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectUserVo"> |
| | | select u.user_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.ai_enabled, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, |
| | | r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status,u.tenant_id |
| | | <sql id="selectUserVo"> |
| | | select u.user_id, |
| | | u.user_name, |
| | | u.nick_name, |
| | | u.email, |
| | | u.avatar, |
| | | u.phonenumber, |
| | | u.password, |
| | | u.sex, |
| | | u.status, |
| | | u.del_flag, |
| | | u.ai_enabled, |
| | | u.login_ip, |
| | | u.login_date, |
| | | u.create_by, |
| | | u.create_time, |
| | | u.remark, |
| | | r.role_id, |
| | | r.role_name, |
| | | r.role_key, |
| | | r.role_sort, |
| | | r.data_scope, |
| | | r.status as role_status, |
| | | u.tenant_id |
| | | from sys_user u |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | </sql> |
| | | |
| | | <select id="selectUserList" parameterType="com.ruoyi.project.system.domain.SysUser" resultMap="SysUserResult"> |
| | | select u.user_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,T2.dept_names from sys_user u |
| | | left join |
| | | ( SELECT T1.user_id,GROUP_CONCAT(T2.dept_name SEPARATOR ', ') AS dept_names |
| | | FROM |
| | | sys_user_dept T1 |
| | | LEFT JOIN sys_dept T2 ON T1.dept_id = T2.dept_id |
| | | <where> |
| | | <if test="tenantId != null and tenantId != 0"> |
| | | T1.dept_id = #{tenantId} |
| | | </if> |
| | | </where> |
| | | GROUP BY T1.user_id |
| | | ) T2 on T2.user_id = u.user_id |
| | | where u.del_flag = '0' |
| | | <if test="userId != null and userId != 0"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- å¼å§æ¶é´æ£ç´¢ --> |
| | | AND date_format(u.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- ç»ææ¶é´æ£ç´¢ --> |
| | | AND date_format(u.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d') |
| | | </if> |
| | | <if test="deptId != null"> |
| | | AND u.user_id IN |
| | | ( |
| | | SELECT user_id FROM sys_user_dept WHERE dept_id = #{deptId} |
| | | ) |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | select u.user_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, |
| | | u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,T2.dept_names from sys_user u |
| | | left join |
| | | ( SELECT T1.user_id,GROUP_CONCAT(T2.dept_name SEPARATOR ', ') AS dept_names |
| | | FROM |
| | | sys_user_dept T1 |
| | | LEFT JOIN sys_dept T2 ON T1.dept_id = T2.dept_id |
| | | <where> |
| | | <if test="tenantId != null and tenantId != 0"> |
| | | T1.dept_id = #{tenantId} |
| | | </if> |
| | | </where> |
| | | GROUP BY T1.user_id |
| | | ) T2 on T2.user_id = u.user_id |
| | | where u.del_flag = '0' |
| | | <if test="userId != null and userId != 0"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- å¼å§æ¶é´æ£ç´¢ --> |
| | | AND date_format(u.create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- ç»ææ¶é´æ£ç´¢ --> |
| | | AND date_format(u.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d') |
| | | </if> |
| | | <if test="deptId != null"> |
| | | AND u.user_id IN |
| | | ( |
| | | SELECT user_id FROM sys_user_dept WHERE dept_id = #{deptId} |
| | | ) |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectAllocatedList" parameterType="com.ruoyi.project.system.domain.SysUser" resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time |
| | | from sys_user u |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and r.role_id = #{roleId} |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | <select id="selectAllocatedList" parameterType="com.ruoyi.project.system.domain.SysUser" resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time |
| | | from sys_user u |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and r.role_id = #{roleId} |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectUnallocatedList" parameterType="com.ruoyi.project.system.domain.SysUser" resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time |
| | | from sys_user u |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL) |
| | | and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and ur.role_id = #{roleId}) |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | <select id="selectUnallocatedList" parameterType="com.ruoyi.project.system.domain.SysUser" |
| | | resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time |
| | | from sys_user u |
| | | left join sys_user_role ur on u.user_id = ur.user_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where u.del_flag = '0' and (r.role_id != #{roleId} or r.role_id IS NULL) |
| | | and u.user_id not in (select u.user_id from sys_user u inner join sys_user_role ur on u.user_id = ur.user_id and |
| | | ur.role_id = #{roleId}) |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="phonenumber != null and phonenumber != ''"> |
| | | AND u.phonenumber like concat('%', #{phonenumber}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | | |
| | | <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_name = #{userName} and u.del_flag = '0' |
| | | </select> |
| | | <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_name = #{userName} and u.del_flag = '0' |
| | | </select> |
| | | |
| | | <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_id = #{userId} |
| | | and u.del_flag = '0' |
| | | </select> |
| | | <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | where u.user_id = #{userId} |
| | | and u.del_flag = '0' |
| | | </select> |
| | | |
| | | <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, user_name from sys_user where user_name = #{userName} and del_flag = '0' limit 1 |
| | | </select> |
| | | <select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, user_name |
| | | from sys_user |
| | | where user_name = #{userName} |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} and del_flag = '0' limit 1 |
| | | </select> |
| | | <select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, phonenumber |
| | | from sys_user |
| | | where phonenumber = #{phonenumber} |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1 |
| | | </select> |
| | | <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult"> |
| | | select user_id, email |
| | | from sys_user |
| | | where email = #{email} |
| | | and del_flag = '0' limit 1 |
| | | </select> |
| | | <select id="selectUserByIds" resultType="com.ruoyi.project.system.domain.SysUser"> |
| | | <include refid="selectUserVo"/> |
| | | <where> |
| | |
| | | and u.del_flag = '0' |
| | | </where> |
| | | </select> |
| | | <select id="selectRegistrantIds" resultType="com.ruoyi.project.system.domain.SysUser"> |
| | | SELECT user_id, nick_name FROM sys_user |
| | | <where> |
| | | <if test="list != null and list.size() > 0"> |
| | | user_id IN |
| | | <foreach item="id" collection="list" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="list == null or list.size() == 0"> |
| | | 1=0 <!-- 空å表æ¶è¿åç©ºç»æ --> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectUsersByIds" resultType="com.ruoyi.project.system.domain.SysUser"> |
| | | SELECT user_id, nick_name |
| | | FROM sys_user |
| | | WHERE user_id IN |
| | | <foreach collection="userIds" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | and del_flag = '0' |
| | | </select> |
| | | <select id="selectUserByNickName" resultType="com.ruoyi.project.system.domain.SysUser" |
| | | parameterType="java.lang.String"> |
| | | <include refid="selectUserVo"/> |
| | | where u.nick_name = #{nickName} and u.del_flag = '0' |
| | | limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertUser" parameterType="com.ruoyi.project.system.domain.SysUser" useGeneratedKeys="true" keyProperty="userId"> |
| | | insert into sys_user( |
| | | <if test="userId != null and userId != 0">user_id,</if> |
| | | <if test="userName != null and userName != ''">user_name,</if> |
| | | <if test="nickName != null and nickName != ''">nick_name,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="avatar != null and avatar != ''">avatar,</if> |
| | | <if test="phonenumber != null and phonenumber != ''">phonenumber,</if> |
| | | <if test="sex != null and sex != ''">sex,</if> |
| | | <if test="password != null and password != ''">password,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="tenantId != null ">tenant_id,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | | <if test="userName != null and userName != ''">#{userName},</if> |
| | | <if test="nickName != null and nickName != ''">#{nickName},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="avatar != null and avatar != ''">#{avatar},</if> |
| | | <if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">#{sex},</if> |
| | | <if test="password != null and password != ''">#{password},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="tenantId != null ">#{tenantId},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateUser" parameterType="com.ruoyi.project.system.domain.SysUser"> |
| | | update sys_user |
| | | <set> |
| | | <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if> |
| | | <if test="email != null ">email = #{email},</if> |
| | | <if test="phonenumber != null ">phonenumber = #{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">sex = #{sex},</if> |
| | | <if test="avatar != null and avatar != ''">avatar = #{avatar},</if> |
| | | <if test="password != null and password != ''">password = #{password},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if> |
| | | <if test="loginDate != null">login_date = #{loginDate},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="tenantId != null">tenant_id = #{tenantId},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |
| | | </update> |
| | | |
| | | <update id="updateUserStatus" parameterType="com.ruoyi.project.system.domain.SysUser"> |
| | | update sys_user set status = #{status} where user_id = #{userId} |
| | | </update> |
| | | |
| | | <update id="updateUserAvatar" parameterType="com.ruoyi.project.system.domain.SysUser"> |
| | | update sys_user set avatar = #{avatar} where user_name = #{userName} |
| | | </update> |
| | | |
| | | <update id="resetUserPwd" parameterType="com.ruoyi.project.system.domain.SysUser"> |
| | | update sys_user set password = #{password} where user_name = #{userName} |
| | | </update> |
| | | |
| | | <delete id="deleteUserById" parameterType="Long"> |
| | | update sys_user set del_flag = '2' where user_id = #{userId} |
| | | </delete> |
| | | |
| | | <delete id="deleteUserByIds" parameterType="Long"> |
| | | update sys_user set del_flag = '2' where user_id in |
| | | <foreach collection="array" item="userId" open="(" separator="," close=")"> |
| | | #{userId} |
| | | <select id="selectRegistrantIds" resultType="com.ruoyi.project.system.domain.SysUser"> |
| | | SELECT user_id, nick_name FROM sys_user |
| | | <where> |
| | | <if test="list != null and list.size() > 0"> |
| | | user_id IN |
| | | <foreach item="id" collection="list" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="list == null or list.size() == 0"> |
| | | 1=0 <!-- 空å表æ¶è¿åç©ºç»æ --> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectUsersByIds" resultType="com.ruoyi.project.system.domain.SysUser"> |
| | | SELECT user_id, nick_name |
| | | FROM sys_user |
| | | WHERE user_id IN |
| | | <foreach collection="userIds" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | and del_flag = '0' |
| | | </select> |
| | | <select id="selectUserByNickName" resultType="com.ruoyi.project.system.domain.SysUser" |
| | | parameterType="java.lang.String"> |
| | | <include refid="selectUserVo"/> |
| | | where u.nick_name = #{nickName} and u.del_flag = '0' |
| | | limit 1 |
| | | </select> |
| | | |
| | | <select id="getUserByRole" resultType="java.lang.Long"> |
| | | select distinct su.user_id |
| | | from sys_user su |
| | | left join sys_user_role sur on su.user_id = sur.user_id |
| | | left join sys_role sr on sur.role_id = sr.role_id |
| | | where role_name like concat('%', #{role}, '%') |
| | | and sr.del_flag = '0' |
| | | and sr.status = '0' |
| | | and su.status = '0' |
| | | and su.del_flag = '0' |
| | | </select> |
| | | <select id="getUserByPerms" resultType="java.lang.Long"> |
| | | select distinct t5.user_id |
| | | from sys_role_menu t1 |
| | | left join sys_menu t2 on t1.menu_id = t2.menu_id |
| | | left join sys_role t3 on t1.role_id = t3.role_id |
| | | inner join sys_user_role t4 on t4.role_id = t3.role_id |
| | | inner join sys_user t5 on t5.user_id = t4.user_id |
| | | where t3.del_flag = '0' |
| | | and t2.perms is not null |
| | | and t2.perms <> '' |
| | | and t5.del_flag = '0' |
| | | and t5.status = '0' |
| | | and t3.status = '0' |
| | | <if test="perms != null and perms.size() > 0"> |
| | | AND ( |
| | | <foreach collection="perms" item="p" separator=" OR "> |
| | | t2.perms = #{p} |
| | | OR t2.perms = (split_part(#{p}, ':', 1) || ':' || split_part(#{p}, ':', 2) || ':*') |
| | | OR t2.perms = (split_part(#{p}, ':', 1) || ':*:*') |
| | | </foreach> |
| | | OR t2.perms = '*:*:*' |
| | | ) |
| | | </if> |
| | | </select> |
| | | <insert id="insertUser" parameterType="com.ruoyi.project.system.domain.SysUser" useGeneratedKeys="true" |
| | | keyProperty="userId"> |
| | | insert into sys_user( |
| | | <if test="userId != null and userId != 0">user_id,</if> |
| | | <if test="userName != null and userName != ''">user_name,</if> |
| | | <if test="nickName != null and nickName != ''">nick_name,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="avatar != null and avatar != ''">avatar,</if> |
| | | <if test="phonenumber != null and phonenumber != ''">phonenumber,</if> |
| | | <if test="sex != null and sex != ''">sex,</if> |
| | | <if test="password != null and password != ''">password,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="tenantId != null ">tenant_id,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | | <if test="userName != null and userName != ''">#{userName},</if> |
| | | <if test="nickName != null and nickName != ''">#{nickName},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="avatar != null and avatar != ''">#{avatar},</if> |
| | | <if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">#{sex},</if> |
| | | <if test="password != null and password != ''">#{password},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="tenantId != null ">#{tenantId},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateUser" parameterType="com.ruoyi.project.system.domain.SysUser"> |
| | | update sys_user |
| | | <set> |
| | | <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if> |
| | | <if test="email != null ">email = #{email},</if> |
| | | <if test="phonenumber != null ">phonenumber = #{phonenumber},</if> |
| | | <if test="sex != null and sex != ''">sex = #{sex},</if> |
| | | <if test="avatar != null and avatar != ''">avatar = #{avatar},</if> |
| | | <if test="password != null and password != ''">password = #{password},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if> |
| | | <if test="loginDate != null">login_date = #{loginDate},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="tenantId != null">tenant_id = #{tenantId},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |
| | | </update> |
| | | |
| | | <update id="updateUserStatus" parameterType="com.ruoyi.project.system.domain.SysUser"> |
| | | update sys_user |
| | | set status = #{status} |
| | | where user_id = #{userId} |
| | | </update> |
| | | |
| | | <update id="updateUserAvatar" parameterType="com.ruoyi.project.system.domain.SysUser"> |
| | | update sys_user |
| | | set avatar = #{avatar} |
| | | where user_name = #{userName} |
| | | </update> |
| | | |
| | | <update id="resetUserPwd" parameterType="com.ruoyi.project.system.domain.SysUser"> |
| | | update sys_user |
| | | set password = #{password} |
| | | where user_name = #{userName} |
| | | </update> |
| | | |
| | | <delete id="deleteUserById" parameterType="Long"> |
| | | update sys_user |
| | | set del_flag = '2' |
| | | where user_id = #{userId} |
| | | </delete> |
| | | |
| | | <delete id="deleteUserByIds" parameterType="Long"> |
| | | update sys_user set del_flag = '2' where user_id in |
| | | <foreach collection="array" item="userId" open="(" separator="," close=")"> |
| | | #{userId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="getUserByRole" resultType="java.lang.Long"> |
| | | select distinct su.user_id |
| | | from sys_user su |
| | | left join sys_user_role sur on su.user_id = sur.user_id |
| | | left join sys_role sr on sur.role_id = sr.role_id |
| | | where role_name like concat('%', #{role}, '%') |
| | | and sr.del_flag = '0' |
| | | and sr.status = '0' |
| | | and su.status = '0' |
| | | and su.del_flag = '0' |
| | | </select> |
| | | <select id="getUserByPerms" resultType="java.lang.Long"> |
| | | select distinct t5.user_id |
| | | from sys_role_menu t1 |
| | | left join sys_menu t2 on t1.menu_id = t2.menu_id |
| | | left join sys_role t3 on t1.role_id = t3.role_id |
| | | inner join sys_user_role t4 on t4.role_id = t3.role_id |
| | | inner join sys_user t5 on t5.user_id = t4.user_id |
| | | where t3.del_flag = '0' |
| | | and t2.perms is not null |
| | | and t2.perms <> '' |
| | | and t5.del_flag = '0' |
| | | and t5.status = '0' |
| | | and t3.status = '0' |
| | | <if test="perms != null and perms.size() > 0"> |
| | | AND ( |
| | | <foreach collection="perms" item="p" separator=" OR "> |
| | | t2.perms = #{p} |
| | | OR t2.perms = (split_part(#{p}, ':', 1) || ':' || split_part(#{p}, ':', 2) || ':*') |
| | | OR t2.perms = (split_part(#{p}, ':', 1) || ':*:*') |
| | | </foreach> |
| | | OR t2.perms = '*:*:*' |
| | | ) |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |