feat(migration): 补迁 5 个 cnas 业务模块
从 dev_新疆_新聚 迁入 cnas-require/device/process/manage/personnel
共 735 个 java + mapper XML + docx/xlsx 报表模板(aspose jar 走 m2 依赖,不入库)。
迁移中处理的适配点:
- Swagger 2 → OpenAPI 3:补上 @ApiModel("X")、@ApiModelProperty(value,hidden)
两种此前未覆盖的注解形式(后者映射为 @Schema(description, hidden))
- Result.getMessage() → getMsg()
- FieldStrategy.IGNORED 在 MP 3.5.16 已移除,改用语义等价的 ALWAYS
(仅 cnas-personnel/PersonBasicInfo 使用)
- 删除 cnas-process 中 javac 17 已不存在的 javax.xml.soap 死导入
- ruoyi-system 补 SysRoleMenuMapper.selectRoleMenu(cnas-device 的
"只看我" 判断依赖,XML 顺带取 srm.is_rersonal)
全量 reactor(15 模块)mvn install -DskipTests 通过。
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.pojo.DeviceAcceptance; |
| | | import com.ruoyi.device.pojo.DeviceAcceptanceFile; |
| | | import com.ruoyi.device.service.DeviceAcceptanceFileService; |
| | | import com.ruoyi.device.service.DeviceAcceptanceService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤) å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:14 |
| | | */ |
| | | @Tag(name = "设å¤éªæ¶(è£
å¤)") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/deviceAcceptance") |
| | | public class DeviceAcceptanceController { |
| | | |
| | | private DeviceAcceptanceService deviceAcceptanceService; |
| | | private DeviceAcceptanceFileService deviceAcceptanceFileService; |
| | | |
| | | /** |
| | | * 设å¤éªæ¶å表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "设å¤éªæ¶å表") |
| | | @GetMapping("/pageDeviceAcceptance") |
| | | public Result<IPage<DeviceAcceptance>> pageDeviceAcceptance(Page page, DeviceAcceptance deviceAcceptance) { |
| | | return Result.success(deviceAcceptanceService.pageDeviceAcceptance(page, deviceAcceptance)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤éªæ¶ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤éªæ¶") |
| | | @GetMapping("/getDeviceAcceptance") |
| | | public Result getDeviceAcceptance(Integer acceptanceId){ |
| | | return Result.success(deviceAcceptanceService.getById(acceptanceId)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤éªæ¶ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤éªæ¶") |
| | | @DeleteMapping("/delDeviceAcceptance") |
| | | public Result delDeviceAcceptance(Integer acceptanceId){ |
| | | return Result.success(deviceAcceptanceService.removeById(acceptanceId)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤éªæ¶ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤éªæ¶") |
| | | @PostMapping("/addDeviceAcceptance") |
| | | public Result addDeviceAcceptance(@RequestBody DeviceAcceptance deviceAcceptance){ |
| | | return Result.success(deviceAcceptanceService.save(deviceAcceptance)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤éªæ¶ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "ç¼è¾è®¾å¤éªæ¶") |
| | | @PostMapping("/updateDeviceAcceptance") |
| | | public Result updateDeviceAcceptance(@RequestBody DeviceAcceptance deviceAcceptance){ |
| | | return Result.success(deviceAcceptanceService.updateById(deviceAcceptance)); |
| | | } |
| | | |
| | | /** |
| | | * 设å¤éªæ¶å¯¼åº |
| | | * @param acceptanceId 设å¤éªæ¶id |
| | | * @param response ååºä½ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "设å¤éªæ¶å¯¼åº") |
| | | @GetMapping("/exportDeviceAcceptance") |
| | | public void exportDeviceAcceptance(Integer acceptanceId, HttpServletResponse response){ |
| | | deviceAcceptanceService.exportDeviceAcceptance(acceptanceId, response); |
| | | } |
| | | |
| | | /** |
| | | * 设å¤éªæ¶éä»¶æ°å¢ |
| | | * @param acceptanceId |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @Operation(summary = "设å¤éªæ¶éä»¶æ°å¢") |
| | | @PostMapping("/uploadDeviceAcceptanceFile") |
| | | public Result<?> uploadDeviceAcceptanceFile(Integer acceptanceId, MultipartFile file) { |
| | | return Result.success(deviceAcceptanceService.uploadDeviceAcceptanceFile(acceptanceId, file)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 设å¤éªæ¶éä»¶å表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "设å¤éªæ¶éä»¶å表") |
| | | @GetMapping("/getDeviceAcceptanceFileList") |
| | | public Result<List<DeviceAcceptanceFile>> getVerifyMethodFileList(Integer acceptanceId){ |
| | | return Result.success(deviceAcceptanceFileService.list(Wrappers.<DeviceAcceptanceFile>lambdaQuery() |
| | | .eq(DeviceAcceptanceFile::getAcceptanceId, acceptanceId))); |
| | | } |
| | | |
| | | /** |
| | | * 设å¤éªæ¶éä»¶å é¤ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "设å¤éªæ¶éä»¶å é¤") |
| | | @DeleteMapping("/delDeviceAcceptanceFileList") |
| | | public Result delDeviceAcceptanceFileList(Integer acceptanceFileId){ |
| | | return Result.success(deviceAcceptanceFileService.removeById(acceptanceFileId)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.pojo.DeviceAccidentReport; |
| | | import com.ruoyi.device.service.DeviceAccidentReportService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤äºæ
æ¥åå å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 06:31:12 |
| | | */ |
| | | @Tag(name = "设å¤äºæ
æ¥åå") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/deviceAccidentReport") |
| | | public class DeviceAccidentReportController { |
| | | |
| | | private DeviceAccidentReportService deviceAccidentReportService; |
| | | |
| | | |
| | | /** |
| | | * 设å¤äºæ
æ¥åå表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "设å¤äºæ
æ¥åå表") |
| | | @GetMapping("/pageDeviceAccidentReport") |
| | | public Result<IPage<DeviceAccidentReport>> pageDeviceAccidentReport(Page page, DeviceAccidentReport deviceAccidentReport){ |
| | | return Result.success(deviceAccidentReportService.pageDeviceAccidentReport(page, deviceAccidentReport)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤äºæ
æ¥å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤äºæ
æ¥å") |
| | | @GetMapping("/getDeviceAccidentReport") |
| | | public Result getDeviceAccidentReport(Integer accidentReportId){ |
| | | return Result.success(deviceAccidentReportService.getById(accidentReportId)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤äºæ
æ¥å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤äºæ
æ¥å") |
| | | @DeleteMapping("/delDeviceAccidentReport") |
| | | public Result delDeviceAccidentReport(Integer accidentReportId){ |
| | | return Result.success(deviceAccidentReportService.removeById(accidentReportId)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤äºæ
æ¥å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤äºæ
æ¥å") |
| | | @PostMapping("/addDeviceAccidentReport") |
| | | public Result addDeviceAccidentReport(@RequestBody DeviceAccidentReport deviceAccidentReport){ |
| | | return Result.success(deviceAccidentReportService.addDeviceAccidentReport(deviceAccidentReport)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤äºæ
æ¥å |
| | | * @param accidentReportId 设å¤äºæ
æ¥åid |
| | | * @param response ååº |
| | | */ |
| | | @Operation(summary = "导åºè®¾å¤äºæ
æ¥å") |
| | | @GetMapping("/exportDeviceAccidentReport") |
| | | public Result exportDeviceAccidentReport(Integer accidentReportId, HttpServletResponse response) { |
| | | deviceAccidentReportService.exportDeviceAccidentReport(accidentReportId, response); |
| | | return Result.success(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.pojo.DeviceBorrow; |
| | | import com.ruoyi.device.service.DeviceBorrowService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 10:53:51 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/deviceBorrow") |
| | | public class DeviceBorrowController { |
| | | |
| | | @Resource |
| | | private DeviceBorrowService deviceBorrowService; |
| | | |
| | | |
| | | //å页 |
| | | @GetMapping("/deviceBorrowPage") |
| | | public Result deviceBorrowPage(Page page, DeviceBorrow deviceBorrow) throws Exception { |
| | | return Result.success(deviceBorrowService.deviceBorrowPage(page, deviceBorrow)); |
| | | } |
| | | |
| | | //æ¥è¯¢ |
| | | @GetMapping("/getDeviceBorrow") |
| | | public Result getDeviceBorrow(Integer id) { |
| | | return Result.success(deviceBorrowService.getDeviceBorrow(id)); |
| | | } |
| | | |
| | | //æ°å¢ |
| | | @PostMapping("/saveDeviceBorrow") |
| | | public Result saveDeviceBorrow(@RequestBody DeviceBorrow deviceBorrow) { |
| | | return Result.success(deviceBorrowService.saveDeviceBorrow(deviceBorrow)); |
| | | } |
| | | |
| | | //å é¤ |
| | | @DeleteMapping("/deleteDeviceBorrow") |
| | | public Result deleteDeviceBorrow(Integer id) { |
| | | return Result.success(deviceBorrowService.removeById(id)); |
| | | } |
| | | |
| | | //å¯¼åº |
| | | @GetMapping("/deviceBorrowExport") |
| | | public Result deviceBorrowExport(@RequestParam("deviceId") Integer deviceId, HttpServletResponse response) throws Exception { |
| | | List<DeviceBorrow> deviceBorrows = deviceBorrowService.getDeviceBorrowBydeviceId(deviceId); |
| | | response.setHeader("requestType", "excel"); |
| | | response.setHeader("Access-Control-Expose-Headers", "requestType"); |
| | | // 设置åå
æ ¼æ ·å¼ |
| | | // ä¿åå°ç¬¬ä¸ä¸ªsheetä¸ |
| | | EasyExcel.write(response.getOutputStream()) |
| | | .head(DeviceBorrow.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) // èªéåºå宽 |
| | | .sheet() |
| | | .doWrite(deviceBorrows); |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceBreakdownMaintenance; |
| | | import com.ruoyi.device.service.DeviceBreakdownMaintenanceService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ
é维修表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 04:50:57 |
| | | */ |
| | | @Tag(name = "è®¾å¤æ
é维修表") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/deviceBreakdownMaintenance") |
| | | public class DeviceBreakdownMaintenanceController { |
| | | |
| | | private DeviceBreakdownMaintenanceService deviceBreakdownMaintenanceService; |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ
éç»´ä¿®å表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ
éç»´ä¿®å表") |
| | | @GetMapping("/pageDeviceBreakdownMaintenance") |
| | | public Result<IPage<DeviceBreakdownMaintenance>> pageDeviceBreakdownMaintenance(Page page, DeviceBreakdownMaintenance deviceBreakdownMaintenance) { |
| | | return Result.success(deviceBreakdownMaintenanceService.pageDeviceBreakdownMaintenance(page, deviceBreakdownMaintenance)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ
éç»´ä¿® |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤æ
éç»´ä¿®") |
| | | @GetMapping("/getDeviceBreakdownMaintenance") |
| | | public Result getDeviceBreakdownMaintenance(Integer maintenanceId){ |
| | | return Result.success(deviceBreakdownMaintenanceService.getById(maintenanceId)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ
éç»´ä¿® |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤æ
éç»´ä¿®") |
| | | @DeleteMapping("/delDeviceBreakdownMaintenance") |
| | | public Result delDeviceBreakdownMaintenance(Integer maintenanceId){ |
| | | return Result.success(deviceBreakdownMaintenanceService.removeById(maintenanceId)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ
éç»´ä¿® |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤æ
éç»´ä¿®") |
| | | @PostMapping("/addDeviceBreakdownMaintenance") |
| | | public Result addDeviceBreakdownMaintenance(@RequestBody DeviceBreakdownMaintenance deviceBreakdownMaintenance){ |
| | | return Result.success(deviceBreakdownMaintenanceService.addDeviceBreakdownMaintenance(deviceBreakdownMaintenance)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ
éç»´ä¿® |
| | | * @param maintenanceId è®¾å¤æ
éç»´ä¿®id |
| | | * @param response ååº |
| | | * @return |
| | | */ |
| | | @Operation(summary = "导åºè®¾å¤æ
éç»´ä¿®") |
| | | @GetMapping("/exportDeviceBreakdownMaintenance") |
| | | public Result exportDeviceBreakdownMaintenance(Integer maintenanceId, HttpServletResponse response){ |
| | | deviceBreakdownMaintenanceService.exportDeviceBreakdownMaintenance(maintenanceId, response); |
| | | return Result.success(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceCalibrationPlanDto; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlan; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlanDetail; |
| | | import com.ruoyi.device.service.DeviceCalibrationPlanDetailService; |
| | | import com.ruoyi.device.service.DeviceCalibrationPlanService; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å主表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:17 |
| | | */ |
| | | @Tag(name = "è®¾å¤æ ¡å计å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/deviceCalibrationPlan") |
| | | public class DeviceCalibrationPlanController { |
| | | |
| | | private DeviceCalibrationPlanService deviceCalibrationPlanService; |
| | | |
| | | private DeviceCalibrationPlanDetailService deviceCalibrationPlanDetailService; |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ ¡å计å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤æ ¡å计å") |
| | | @PostMapping("/addDeviceCalibrationPlan") |
| | | public Result addDeviceCalibrationPlan(@RequestBody DeviceCalibrationPlanDto calibrationPlanDto){ |
| | | return Result.success(deviceCalibrationPlanService.addDeviceCalibrationPlan(calibrationPlanDto)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ ¡å计å |
| | | * @param calibrationPlanDto è®¾å¤æ ¡å计å |
| | | */ |
| | | @Operation(summary = "æ¹éä¿®æ¹è®¾å¤æ ¡å计å") |
| | | @PostMapping("/updateDeviceCalibrationPlan") |
| | | public Result updateDeviceCalibrationPlan(@RequestBody DeviceCalibrationPlanDto calibrationPlanDto) { |
| | | return Result.success(deviceCalibrationPlanService.updateDeviceCalibrationPlan(calibrationPlanDto)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ ¡å计å详æ
|
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤æ ¡å计å详æ
") |
| | | @GetMapping("/getDeviceCalibrationPlan") |
| | | public Result<DeviceCalibrationPlanDto> getDeviceCalibrationPlan(Integer planId) { |
| | | return Result.success(deviceCalibrationPlanService.getDeviceCalibrationPlan(planId)); |
| | | } |
| | | |
| | | /** |
| | | * 导å
¥è®¾å¤æ ¡å计å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "导å
¥è®¾å¤æ ¡å计å") |
| | | @PostMapping("/importDeviceCalibrationPlan") |
| | | public Result importDeviceCalibrationPlan(MultipartFile file, String planYear){ |
| | | return Result.success(deviceCalibrationPlanService.importDeviceCalibrationPlan(file, planYear)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计åå é¤ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ ¡å计åå é¤") |
| | | @DeleteMapping("/delDeviceCalibrationPlan") |
| | | public Result delDeviceCalibrationPlan(Integer planId){ |
| | | return Result.success(deviceCalibrationPlanService.removeById(planId)); |
| | | } |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æäº¤æ¹å") |
| | | @PostMapping("/submiatRatifyDeviceCalibrationPlan") |
| | | public Result submiatRatifyDeviceCalibrationPlan(@RequestBody DeviceCalibrationPlan DeviceCalibrationPlan){ |
| | | return Result.success(deviceCalibrationPlanService.submiatRatifyDeviceCalibrationPlan(DeviceCalibrationPlan)); |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡åè®¡åæ¹å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ ¡åè®¡åæ¹å") |
| | | @PostMapping("/ratifyDeviceCalibrationPlan") |
| | | public Result ratifyDeviceCalibrationPlan(@RequestBody DeviceCalibrationPlan DeviceCalibrationPlan){ |
| | | return Result.success(deviceCalibrationPlanService.ratifyDeviceCalibrationPlan(DeviceCalibrationPlan)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计åå表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ ¡å计åå表") |
| | | @GetMapping("/pageDeviceCalibrationPlan") |
| | | public Result<IPage<DeviceCalibrationPlanDto>> pageDeviceCalibrationPlan(Page page, DeviceCalibrationPlan DeviceCalibrationPlan) throws Exception { |
| | | return Result.success(deviceCalibrationPlanService.pageDeviceCalibrationPlan(page, DeviceCalibrationPlan)); |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计å详æ
å表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ ¡å计å详æ
å表") |
| | | @GetMapping("/pageDeviceCalibrationPlanDetail") |
| | | public Result<IPage<DeviceCalibrationPlanDetail>> pageDeviceCalibrationPlanDetail(Page page, DeviceCalibrationPlanDetail deviceCalibrationPlanDetails) { |
| | | return Result.success(deviceCalibrationPlanService.pageDeviceCalibrationPlanDetail(page, deviceCalibrationPlanDetails)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ ¡å计å详æ
|
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤æ ¡å计å详æ
") |
| | | @PostMapping("/addDeviceCalibrationPlanDetail") |
| | | public Result addDeviceCalibrationPlanDetail(@RequestBody DeviceCalibrationPlanDetail deviceCalibrationPlanDetail){ |
| | | if (deviceCalibrationPlanDetail.getPlanId() == null) { |
| | | throw new ErrorException("缺å°è®¾å¤æ ¡å计å主表id"); |
| | | } |
| | | return Result.success(deviceCalibrationPlanDetailService.save(deviceCalibrationPlanDetail)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ ¡å计å详æ
|
| | | * @return |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹è®¾å¤æ ¡å计å详æ
") |
| | | @PostMapping("/updateDeviceCalibrationPlanDetail") |
| | | public Result updateDeviceCalibrationPlanDetail(@RequestBody DeviceCalibrationPlanDetail deviceCalibrationPlanDetail){ |
| | | return Result.success(deviceCalibrationPlanDetailService.updateById(deviceCalibrationPlanDetail)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ ¡å计å详æ
|
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤æ ¡å计å详æ
") |
| | | @DeleteMapping("/delDeviceCalibrationPlanDetail") |
| | | public Result delDeviceCalibrationPlanDetail(Integer planDetailsId){ |
| | | return Result.success(deviceCalibrationPlanDetailService.removeById(planDetailsId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ ¡å计å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "导åºè®¾å¤æ ¡å计å") |
| | | @GetMapping("/exportDeviceCalibrationPlanDetail") |
| | | public void exportDeviceCalibrationPlanDetail(Integer planId, HttpServletResponse response){ |
| | | deviceCalibrationPlanService.exportDeviceCalibrationPlanDetail(planId, response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DataConfigDto; |
| | | import com.ruoyi.device.dto.DeviceCollectionDto; |
| | | import com.ruoyi.device.dto.DeviceDto; |
| | | import com.ruoyi.device.pojo.DataConfig; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.service.DataConfigService; |
| | | import com.ruoyi.device.service.DeviceService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletRequest; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 设å¤(DeviceController)表æ§å¶å± |
| | | */ |
| | | @Tag(name = "设å¤") |
| | | @RestController |
| | | @RequestMapping("/deviceScope") |
| | | public class DeviceController { |
| | | |
| | | @Resource |
| | | private DeviceService deviceService; |
| | | |
| | | @Value("${file.path}") |
| | | private String filePath; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Autowired |
| | | private DataConfigService dataConfigService; |
| | | |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤è¯¦æ
") |
| | | @GetMapping("/getDeviceById") |
| | | public Result getDeviceById(Integer deviceId) { |
| | | return Result.success(deviceService.getById(deviceId)); |
| | | } |
| | | |
| | | |
| | | //设å¤å·¥å
·æç» |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤è¯¦æ
å表") |
| | | @GetMapping("/selectDeviceParameter") |
| | | public Result selectDeviceParameter(Page page, DeviceDto itemParameter, Boolean laboratoryNameIsNull) { |
| | | return Result.success(deviceService.selectDeviceParameter(page, itemParameter, laboratoryNameIsNull)); |
| | | } |
| | | |
| | | @Operation(summary = "æ·»å 设å¤è¯¦æ
åæ°") |
| | | @PostMapping("/addDeviceParameter") |
| | | public Result addDeviceParameter(@RequestBody Device itemParameter) { |
| | | return Result.success(deviceService.addDeviceParameter(itemParameter)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤è®¾å¤è¯¦æ
åæ°") |
| | | @DeleteMapping("/delDeviceParameter") |
| | | public Result<?> delDeviceParameter(Integer id) { |
| | | return Result.success(deviceService.delDeviceParameter(id)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¿®æ¹è®¾å¤è¯¦æ
åæ°") |
| | | @PostMapping("/upDeviceParameter") |
| | | public Result<?> upDeviceParameter(@RequestBody Device itemParameter) { |
| | | return Result.success(deviceService.upDeviceParameter(itemParameter)); |
| | | } |
| | | |
| | | @Operation(summary = "è·åè®¾å¤æ»è§") |
| | | @GetMapping("/selectEquipmentOverview") |
| | | public Result selectEquipmentOverview() { |
| | | return Result.success(deviceService.selectEquipmentOverview()); |
| | | } |
| | | |
| | | @Operation(summary = "è·å被ææäºº") |
| | | @GetMapping("/authorizedPerson") |
| | | public Result authorizedPerson() { |
| | | return Result.success(deviceService.authorizedPerson()); |
| | | } |
| | | |
| | | @Operation(summary = "æç´¢") |
| | | @GetMapping("/search") |
| | | public Result search(Integer status, String deviceName, String specificationModel, String largeCategory) { |
| | | return Result.success(deviceService.search(status, deviceName, specificationModel, largeCategory)); |
| | | } |
| | | |
| | | //å¾çä¸ä¼ |
| | | @Operation(summary = "è®¾å¤æä»¶ä¸ä¼ ") |
| | | @PostMapping("/uploadFile") |
| | | public Result uploadFile(MultipartFile file) { |
| | | String urlString; |
| | | String pathName; |
| | | String filename = file.getOriginalFilename(); |
| | | String path; |
| | | try { |
| | | String contentType = file.getContentType(); |
| | | if (contentType != null && contentType.startsWith("image/")) { |
| | | // æ¯å¾ç |
| | | path = filePath; |
| | | } else { |
| | | // æ¯æä»¶ |
| | | path = wordUrl; |
| | | } |
| | | |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddHHmmss")) + "-" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | map.put("name", filename); |
| | | map.put("url", pathName); |
| | | return Result.success(map); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("æä»¶ä¸ä¼ é误"); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | @Operation(summary = "éè¿é¡¹ç®è·å设å¤å表") |
| | | @GetMapping("/selectDeviceByCategory") |
| | | public Result selectDeviceByCategory(String inspectionItem, String inspectionItemSubclass, String laboratory) { |
| | | return Result.success(deviceService.selectDeviceByCategory(inspectionItem, inspectionItemSubclass, laboratory)); |
| | | } |
| | | |
| | | @Operation(summary = "éè¿è®¾å¤ç¼å·è·å设å¤å表") |
| | | @GetMapping("/selectDeviceByCode") |
| | | public Result<DeviceDto> selectDeviceByCode(Integer id) { |
| | | return Result.success(deviceService.selectDeviceByCode(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "/æ°é-æ°æ®éé") |
| | | @PostMapping("/dataCollection") |
| | | public Result<?> dataAcquisition(HttpServletRequest request, @RequestBody DeviceCollectionDto dto) { |
| | | return deviceService.dataAcquisition(request, dto); |
| | | } |
| | | |
| | | @Operation(summary = "ç»´æ¤è®¾å¤æä»¶é
ç½®") |
| | | @PostMapping("/saveDeviceFileConfiguration") |
| | | public Result<?> saveDeviceFileConfiguration(@RequestBody DataConfigDto dataConfigList) { |
| | | dataConfigService.saveDeviceFileConfiguration(dataConfigList); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "æ¥è¯¢æ°éé
ç½®") |
| | | @GetMapping("/queryDataAcquisitionConfiguration") |
| | | public Result<?> queryDataAcquisitionConfiguration(DataConfig dataConfig) { |
| | | return dataConfigService.queryDataAcquisitionConfiguration(dataConfig); |
| | | } |
| | | |
| | | @Operation(summary = "æ¥è¯¢æ£éªé¡¹æ°éé
ç½®") |
| | | @GetMapping("/queryProductConfiguration") |
| | | public Result<?> queryProductConfiguration(DataConfig dataConfig) { |
| | | return dataConfigService.queryProductConfiguration(dataConfig); |
| | | } |
| | | |
| | | @Operation(summary = "ç»´æ¤æ°éé
ç½®") |
| | | @PostMapping("/saveDataAcquisitionConfiguration") |
| | | public Result<?> saveDataAcquisitionConfiguration(@RequestBody DataConfigDto dataConfigList) { |
| | | dataConfigService.saveDataAcquisitionConfiguration(dataConfigList); |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "æ¥è¯¢ç»å®äºä½æ¯æ²¡æé
ç½®çæ£éªé¡¹") |
| | | @GetMapping("/getNoConfigProduct") |
| | | public Result<?> getNoConfigProduct(Page page, Integer deviceId) { |
| | | return Result.success(dataConfigService.getNoConfigProduct(page, deviceId)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿°éé
ç½®") |
| | | @DeleteMapping("/deleteDataAcquisitionConfiguration") |
| | | public Result<?> deleteDataAcquisitionConfiguration(@RequestParam("ids") String ids) { |
| | | List<String> split = Arrays.asList(ids.split(",")); |
| | | List<String> collect = split.stream().distinct().collect(Collectors.toList()); |
| | | dataConfigService.removeBatchByIds(collect); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "å·¦ä¾§è®¾å¤æ å½¢æ ") |
| | | @GetMapping("/treeDevice") |
| | | public Result treeDevice(String deviceName) { |
| | | return Result.success(deviceService.treeDevice(deviceName)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "è®¾å¤æ¡£æ¡å¯¼åº") |
| | | @GetMapping("/exportDeviceFile") |
| | | public void exportDeviceFile(@RequestParam Integer deviceId, HttpServletResponse response) { |
| | | deviceService.exportDeviceFile(deviceId, response); |
| | | } |
| | | |
| | | @Operation(summary = "仪å¨è®¾å¤ä¸è§è¡¨å¯¼åº") |
| | | @GetMapping("/exportEquipmentDetails") |
| | | public void exportEquipmentDetails(HttpServletResponse response) { |
| | | deviceService.exportEquipmentDetails(response); |
| | | } |
| | | |
| | | @Operation(summary = "ä¸è½½è®¾å¤å¯¼å
¥æ¨¡æ¿") |
| | | @GetMapping("/importTemplate") |
| | | public void importTemplate(HttpServletResponse response) { |
| | | deviceService.downloadImportTemplate(response); |
| | | } |
| | | |
| | | @Operation(summary = "导å
¥è®¾å¤") |
| | | @PostMapping("/importDevice") |
| | | public Result importDevice(MultipartFile file) { |
| | | return Result.success(deviceService.importDevice(file)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.pojo.DeviceDocuments; |
| | | import com.ruoyi.device.service.DeviceDocumentsService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡ææ¡£ |
| | | * |
| | | * @author zhuo |
| | | * @since 2025-02-28 |
| | | */ |
| | | @RestController |
| | | @Tag(name = "è®¾å¤æ¡£æ¡ææ¡£") |
| | | @RequestMapping("/deviceDocuments") |
| | | public class DeviceDocumentsController { |
| | | |
| | | @Resource |
| | | private DeviceDocumentsService deviceDocumentsService; |
| | | |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¡£æ¡ |
| | | * @param document |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤æ¡£æ¡") |
| | | @PostMapping("/addDocument") |
| | | public Result addDocument(@RequestBody DeviceDocuments document) { |
| | | if (document.getDeviceId() == null) { |
| | | throw new RuntimeException("设å¤id为空"); |
| | | } |
| | | deviceDocumentsService.save(document); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡ä¿¡æ¯ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤æ¡£æ¡ä¿¡æ¯") |
| | | @GetMapping("/getDocumentById") |
| | | public Result getDocumentById(Integer id) { |
| | | return Result.success(deviceDocumentsService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¡£æ¡ |
| | | * @param document |
| | | * @return |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹è®¾å¤æ¡£æ¡") |
| | | @PostMapping("/updateDocument") |
| | | public Result updateDocument(@RequestBody DeviceDocuments document) { |
| | | return Result.success(deviceDocumentsService.updateById(document)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ¡£æ¡ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤æ¡£æ¡") |
| | | @DeleteMapping("/deleteDocumentById") |
| | | public Result deleteDocumentById(Integer id) { |
| | | return Result.success(deviceDocumentsService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¡£æ¡å表 |
| | | * @param deviceId |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤æ¡£æ¡å表") |
| | | @GetMapping("/getAllDocuments") |
| | | public Result getAllDocuments(Integer deviceId) { |
| | | LambdaQueryWrapper<DeviceDocuments> lambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | lambdaQueryWrapper.eq(DeviceDocuments::getDeviceId, deviceId); |
| | | return Result.success(deviceDocumentsService.list(lambdaQueryWrapper)); |
| | | } |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDto; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordContrastDto; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlan; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import com.ruoyi.device.service.DeviceExaminePlanDetailsService; |
| | | import com.ruoyi.device.service.DeviceExaminePlanService; |
| | | import com.ruoyi.device.service.DeviceExamineRecordContrastService; |
| | | import com.ruoyi.device.service.DeviceExamineRecordService; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å主表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:04 |
| | | */ |
| | | @Tag(name = "è®¾å¤æ ¸æ¥è®¡å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/deviceExaminePlan") |
| | | public class DeviceExaminePlanController { |
| | | |
| | | private DeviceExaminePlanService deviceExaminePlanService; |
| | | |
| | | private DeviceExaminePlanDetailsService deviceExaminePlanDetailsService; |
| | | |
| | | private DeviceExamineRecordService deviceExamineRecordService; |
| | | |
| | | private DeviceExamineRecordContrastService deviceExamineRecordContrastService; |
| | | |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ ¸æ¥è®¡å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤æ ¸æ¥è®¡å") |
| | | @PostMapping("/addDeviceExaminePlan") |
| | | public Result addDeviceExaminePlan(@RequestBody DeviceExaminePlanDto examinePlanDto){ |
| | | return Result.success(deviceExaminePlanService.addDeviceExaminePlan(examinePlanDto)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ ¸æ¥è®¡å |
| | | * @param examinePlanDto è®¾å¤æ ¸æ¥è®¡å |
| | | */ |
| | | @Operation(summary = "æ¹éä¿®æ¹è®¾å¤æ ¸æ¥è®¡å") |
| | | @PostMapping("/updateDeviceExaminePlan") |
| | | public Result updateDeviceExaminePlan(@RequestBody DeviceExaminePlanDto examinePlanDto) { |
| | | return Result.success(deviceExaminePlanService.updateDeviceExaminePlan(examinePlanDto)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ ¸æ¥è®¡å详æ
|
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤æ ¸æ¥è®¡å详æ
") |
| | | @GetMapping("/getDeviceExaminePlan") |
| | | public Result<DeviceExaminePlanDto> getDeviceExaminePlan(Integer planId) { |
| | | return Result.success(deviceExaminePlanService.getDeviceExaminePlan(planId)); |
| | | } |
| | | |
| | | /** |
| | | * 导å
¥è®¾å¤æ ¸æ¥è®¡å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "导å
¥è®¾å¤æ ¸æ¥è®¡å") |
| | | @PostMapping("/importDeviceExaminePlan") |
| | | public Result importDeviceExaminePlan(MultipartFile file){ |
| | | return Result.success(deviceExaminePlanService.importDeviceExaminePlan(file)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åå é¤ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ ¸æ¥è®¡åå é¤") |
| | | @DeleteMapping("/delDeviceExaminePlan") |
| | | public Result delDeviceExaminePlan(Integer planId){ |
| | | return Result.success(deviceExaminePlanService.removeById(planId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åæ¹å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æäº¤æ¹å") |
| | | @PostMapping("/submitRatifyDeviceExaminePlan") |
| | | public Result submitRatifyDeviceExaminePlan(@RequestBody DeviceExaminePlan DeviceExaminePlan){ |
| | | return Result.success(deviceExaminePlanService.submitRatifyDeviceExaminePlan(DeviceExaminePlan)); |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åæ¹å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ ¸æ¥è®¡åæ¹å") |
| | | @PostMapping("/ratifyDeviceExaminePlan") |
| | | public Result ratifyDeviceExaminePlan(@RequestBody DeviceExaminePlan DeviceExaminePlan){ |
| | | return Result.success(deviceExaminePlanService.ratifyDeviceExaminePlan(DeviceExaminePlan)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åå表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ ¸æ¥è®¡åå表") |
| | | @GetMapping("/pageDeviceExaminePlan") |
| | | public Result<IPage<DeviceExaminePlanDto>> pageDeviceExaminePlan(Page page, DeviceExaminePlan DeviceExaminePlan) { |
| | | return Result.success(deviceExaminePlanService.pageDeviceExaminePlan(page, DeviceExaminePlan)); |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡å详æ
å表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ ¸æ¥è®¡å详æ
å表") |
| | | @GetMapping("/pageDeviceExaminePlanDetail") |
| | | public Result<IPage<DeviceExaminePlanDetailsDto>> pageDeviceExaminePlanDetail(Page page, DeviceExaminePlanDetails deviceExaminePlanDetails) { |
| | | return Result.success(deviceExaminePlanService.pageDeviceExaminePlanDetail(page, deviceExaminePlanDetails)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ ¸æ¥è®¡å详æ
|
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤æ ¸æ¥è®¡å详æ
") |
| | | @PostMapping("/addDeviceExaminePlanDetail") |
| | | public Result addDeviceExaminePlanDetail(@RequestBody DeviceExaminePlanDetails deviceExaminePlanDetail){ |
| | | if (deviceExaminePlanDetail.getPlanId() == null) { |
| | | throw new ErrorException("缺å°è®¾å¤æ ¸æ¥è®¡å主表id"); |
| | | } |
| | | return Result.success(deviceExaminePlanDetailsService.save(deviceExaminePlanDetail)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ ¸æ¥è®¡å详æ
|
| | | * @return |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹è®¾å¤æ ¸æ¥è®¡å详æ
") |
| | | @PostMapping("/updateDeviceExaminePlanDetail") |
| | | public Result updateDeviceExaminePlanDetail(@RequestBody DeviceExaminePlanDetails deviceExaminePlanDetail){ |
| | | return Result.success(deviceExaminePlanDetailsService.updateById(deviceExaminePlanDetail)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ ¸æ¥è®¡å详æ
|
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤æ ¸æ¥è®¡å详æ
") |
| | | @DeleteMapping("/delDeviceExaminePlanDetail") |
| | | public Result delDeviceExaminePlanDetail(Integer planDetailsId){ |
| | | return Result.success(deviceExaminePlanDetailsService.removeById(planDetailsId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ ¸æ¥è®¡å |
| | | * @param planId è®¾å¤æ ¸æ¥è®¡åid |
| | | * @return |
| | | */ |
| | | @Operation(summary = "导åºè®¾å¤æ ¸æ¥è®¡å") |
| | | @GetMapping("/exportDeviceExaminePlanDetail") |
| | | public void exportDeviceExaminePlanDetail(Integer planId, HttpServletResponse response){ |
| | | deviceExaminePlanService.exportDeviceExaminePlanDetail(planId, response); |
| | | } |
| | | |
| | | /*********************************************** æ¥å **************************************************/ |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸æ¥è®°å½ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢æ ¸æ¥è®°å½") |
| | | @GetMapping("/getExamineRecord") |
| | | public Result<DeviceExamineRecordDto> getExamineRecord(Integer planDetailsId){ |
| | | return Result.success(deviceExamineRecordService.getExamineRecord(planDetailsId)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ ¸æ¥è®°å½ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢æ ¸æ¥è®°å½") |
| | | @PostMapping("/addExamineRecord") |
| | | public Result addExamineRecord(@RequestBody DeviceExamineRecordDto deviceExamineRecordDto){ |
| | | return Result.success(deviceExamineRecordService.addExamineRecord(deviceExamineRecordDto)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 夿 ¸æ ¸æ¥è®°å½ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "夿 ¸æ ¸æ¥è®°å½") |
| | | @PostMapping("/reviewExamineRecord") |
| | | public Result reviewExamineRecord(@RequestBody DeviceExamineRecordDto deviceExamineRecordDto){ |
| | | return Result.success(deviceExamineRecordService.reviewExamineRecord(deviceExamineRecordDto)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå¤æ ¸æ ¸æ¥è®°å½ |
| | | * @param planDetailsId |
| | | * @return |
| | | */ |
| | | @Operation(summary = "导åºå¤æ ¸æ ¸æ¥è®°å½") |
| | | @GetMapping("/exportReviewExamineRecordDetail") |
| | | public void exportReviewExamineRecordDetail(Integer planDetailsId, HttpServletResponse response){ |
| | | deviceExamineRecordService.exportReviewExamineRecordDetail(planDetailsId, response); |
| | | } |
| | | |
| | | /*********************************************** æ¥åå¯¹æ¯ **************************************************/ |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢æ ¸æ¥å¯¹æ¯è®°å½") |
| | | @GetMapping("/getExamineRecordContrast") |
| | | public Result<DeviceExamineRecordContrastDto> getExamineRecordContrast(Integer planDetailsId){ |
| | | return Result.success(deviceExamineRecordContrastService.getExamineRecordContrast(planDetailsId)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢æ ¸æ¥å¯¹æ¯è®°å½") |
| | | @PostMapping("/addExamineRecordContrast") |
| | | public Result addExamineRecordContrast(@RequestBody DeviceExamineRecordContrastDto deviceExamineRecordContrastDto){ |
| | | return Result.success(deviceExamineRecordContrastService.addExamineRecordContrast(deviceExamineRecordContrastDto)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½") |
| | | @PostMapping("/reviewExamineRecordContrast") |
| | | public Result reviewExamineRecordContrast(@RequestBody DeviceExamineRecordContrastDto deviceExamineRecordContrastDto){ |
| | | return Result.success(deviceExamineRecordContrastService.reviewExamineRecordContrast(deviceExamineRecordContrastDto)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @param planDetailsId |
| | | * @return |
| | | */ |
| | | @Operation(summary = "导åºå®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½") |
| | | @GetMapping("/exportReviewExamineRecordContrast") |
| | | public Result exportReviewExamineRecordContrast(Integer planDetailsId, HttpServletResponse response){ |
| | | deviceExamineRecordContrastService.exportReviewExamineRecordContrast(planDetailsId, response); |
| | | return Result.success(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.pojo.DeviceExternalApply; |
| | | import com.ruoyi.device.service.DeviceExternalApplyService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 10:28:43 |
| | | */ |
| | | @Tag(name = "å©ç¨å¤é¨è®¾å¤ç³è¯·è¡¨") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/deviceExternalApply") |
| | | public class DeviceExternalApplyController { |
| | | |
| | | private DeviceExternalApplyService deviceExternalApplyService; |
| | | |
| | | |
| | | /** |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·å表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å©ç¨å¤é¨è®¾å¤ç³è¯·å表") |
| | | @GetMapping("/pageDeviceExternalApply") |
| | | public Result<IPage<DeviceExternalApply>> pageDeviceExternalApply(Page page, DeviceExternalApply deviceExternalApply) throws Exception { |
| | | return Result.success(deviceExternalApplyService.pageDeviceExternalApply(page, deviceExternalApply)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢å©ç¨å¤é¨è®¾å¤ç³è¯·") |
| | | @GetMapping("/getDeviceExternalApply") |
| | | public Result getDeviceExternalApply(Integer externalApplyId){ |
| | | return Result.success(deviceExternalApplyService.getById(externalApplyId)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤å©ç¨å¤é¨è®¾å¤ç³è¯·") |
| | | @DeleteMapping("/delDeviceExternalApply") |
| | | public Result delDeviceExternalApply(Integer externalApplyId){ |
| | | return Result.success(deviceExternalApplyService.removeById(externalApplyId)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢å©ç¨å¤é¨è®¾å¤ç³è¯·") |
| | | @PostMapping("/addDeviceExternalApply") |
| | | public Result addDeviceExternalApply(@RequestBody DeviceExternalApply deviceExternalApply){ |
| | | return Result.success(deviceExternalApplyService.addDeviceExternalApply(deviceExternalApply)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * @param externalApplyId å¤é¨è®¾å¤ç³è¯·id |
| | | * @return |
| | | */ |
| | | @Operation(summary = "导åºå©ç¨å¤é¨è®¾å¤ç³è¯·") |
| | | @GetMapping("/exportDeviceExternalApply") |
| | | public Result exportDeviceExternalApply(Integer externalApplyId, HttpServletResponse response){ |
| | | deviceExternalApplyService.exportDeviceExternalApply(externalApplyId, response); |
| | | return Result.success(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceImpowerDto; |
| | | import com.ruoyi.device.pojo.DeviceImpower; |
| | | import com.ruoyi.device.service.DeviceImpowerService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä½¿ç¨ææè¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:23 |
| | | */ |
| | | @Tag(name = "设å¤ä½¿ç¨ææè¡¨") |
| | | @RestController |
| | | @RequestMapping("/deviceImpower") |
| | | public class DeviceImpowerController { |
| | | |
| | | @Resource |
| | | private DeviceImpowerService deviceImpowerService; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ä½¿ç¨ææ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å页æ¥è¯¢ä½¿ç¨ææ") |
| | | @GetMapping("selectDeviceImpowerByPage") |
| | | public Result<IPage<DeviceImpower>> selectDeviceImpowerByPage(Page page, DeviceImpowerDto itemParameter){ |
| | | return deviceImpowerService.selectDeviceImpowerByPage(page, itemParameter); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ä½¿ç¨ææ |
| | | * @param deviceImpowerDto ä½¿ç¨ææ |
| | | */ |
| | | @Operation(summary = "æ°å¢ä½¿ç¨ææ") |
| | | @PostMapping("/addImpower") |
| | | public Result addImpower(@RequestBody DeviceImpowerDto deviceImpowerDto) { |
| | | return deviceImpowerService.addImpower(deviceImpowerDto); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ä½¿ç¨ææ |
| | | * @param deviceImpowerDto ä½¿ç¨ææ |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹ä½¿ç¨ææ") |
| | | @PostMapping("/updateImpower") |
| | | public Result updateImpower(@RequestBody DeviceImpowerDto deviceImpowerDto) { |
| | | return deviceImpowerService.updateImpower(deviceImpowerDto); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä½¿ç¨ææ |
| | | * @param deviceImpowerDto ä½¿ç¨ææ |
| | | */ |
| | | @Operation(summary = "å é¤ä½¿ç¨ææ") |
| | | @DeleteMapping("/deleteImpower") |
| | | public Result deleteImpower(DeviceImpowerDto deviceImpowerDto) { |
| | | return deviceImpowerService.deleteImpower(deviceImpowerDto); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ä½¿ç¨ææè¯¦æ
|
| | | */ |
| | | @Operation(summary = "æ¥è¯¢ä½¿ç¨ææè¯¦æ
") |
| | | @GetMapping("/getImpowerDetail") |
| | | public Result<DeviceImpowerDto> getImpowerDetail(Integer impowerId) { |
| | | return deviceImpowerService.getImpowerDetail(impowerId); |
| | | } |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | */ |
| | | @Operation(summary = "æäº¤æ¹åéç¥") |
| | | @PostMapping("/submitReviewImpowerStatus") |
| | | public Result submitReviewImpowerStatus(@RequestBody DeviceImpowerDto deviceImpowerDto) { |
| | | return deviceImpowerService.submitReviewImpowerStatus(deviceImpowerDto); |
| | | } |
| | | |
| | | /** |
| | | * ä½¿ç¨æææ¹å |
| | | */ |
| | | @Operation(summary = "æææ¹å") |
| | | @PostMapping("/reviewImpowerStatus") |
| | | public Result reviewImpowerStatus(@RequestBody DeviceImpowerDto deviceImpowerDto) { |
| | | return deviceImpowerService.reviewImpowerStatus(deviceImpowerDto); |
| | | } |
| | | |
| | | /** |
| | | * 导åºä½¿ç¨ææ |
| | | */ |
| | | @Operation(summary = "导åºä½¿ç¨ææ") |
| | | @GetMapping("/exportDeviceImpower") |
| | | public void exportDeviceImpower(@RequestParam("impowerId") Integer impowerId, HttpServletResponse response) { |
| | | deviceImpowerService.exportDeviceImpowerDto(impowerId, response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceInspectionRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecord; |
| | | import com.ruoyi.device.service.DeviceInspectionRecordService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.SneakyThrows; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ç¹æ£è®°å½è¡¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:25:14 |
| | | */ |
| | | @Tag(name = "设å¤ç¹æ£è®°å½") |
| | | @RestController |
| | | @RequestMapping("/deviceInspectionRecord") |
| | | public class DeviceInspectionRecordController { |
| | | @Resource |
| | | private DeviceInspectionRecordService deviceInspectionRecordService; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ç¹æ£è®°å½ |
| | | */ |
| | | @Operation(summary = "å页æ¥è¯¢è®¾å¤ç¹æ£è®°å½") |
| | | @GetMapping("/getDeviceInspectionRecordByPage") |
| | | public Result<IPage<DeviceInspectionRecord>> getDeviceInspectionRecordByPage(Page page, DeviceInspectionRecordDto itemParameter) { |
| | | return deviceInspectionRecordService.getDeviceInspectionRecordByPage(page, itemParameter); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£è¯¦æ
|
| | | */ |
| | | @Operation(summary = "æ¥è¯¢ç¹æ£è¯¦æ
") |
| | | @GetMapping("/getDeviceInspectionRecord") |
| | | public Result getDeviceInspectionRecord(Integer inspectionRecordId) { |
| | | return deviceInspectionRecordService.getDeviceInspectionRecord(inspectionRecordId); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤ç¹æ£è®°å½ |
| | | * @param deviceInspectionRecord 设å¤ç¹æ£è®°å½ |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤ç¹æ£è®°å½") |
| | | @PostMapping("/addDeviceInspectionRecord") |
| | | public Result addDeviceInspectionRecord(@RequestBody DeviceInspectionRecordDto deviceInspectionRecord) { |
| | | return deviceInspectionRecordService.addDeviceInspectionRecord(deviceInspectionRecord); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤ç¹æ£è®°å½ |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹è®¾å¤ç¹æ£è®°å½") |
| | | @PostMapping("/updateDeviceInspectionRecord") |
| | | public Result updateDeviceInspectionRecord(@RequestBody DeviceInspectionRecordDto deviceInspectionRecord) { |
| | | return deviceInspectionRecordService.updateInspectionRecordAndDetails(deviceInspectionRecord); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤ç¹æ£è®°å½ |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤ç¹æ£è®°å½") |
| | | @DeleteMapping("/deleteDeviceInspectionRecord") |
| | | public Result deleteDeviceInspectionRecord(DeviceInspectionRecordDto deviceInspectionRecord) { |
| | | return deviceInspectionRecordService.deleteDeviceInspectionRecordOrDetails(deviceInspectionRecord); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 夿 ¸ç¹æ£è®°å½ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "夿 ¸æ ¸æ¥è®°å½") |
| | | @PostMapping("/reviewDeviceInspectionRecord") |
| | | public Result reviewDeviceInspectionRecord(@RequestBody DeviceInspectionRecordDto deviceExamineRecordDto){ |
| | | return deviceInspectionRecordService.reviewDeviceInspectionRecord(deviceExamineRecordDto); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ç¹æ£è®°å½ |
| | | */ |
| | | @Operation(summary = "导åºè®¾å¤ç¹æ£è®°å½") |
| | | @GetMapping("/exportDeviceInspectionRecord") |
| | | public Result exportDeviceInspectionRecord(@RequestParam("inspectionRecordId") Integer inspectionRecordId, HttpServletResponse response) { |
| | | return deviceInspectionRecordService.exportDeviceInspectionRecord(inspectionRecordId, response); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.dto.DeviceInstructionDto; |
| | | import com.ruoyi.device.dto.DeviceOperationInstructionDto; |
| | | import com.ruoyi.device.pojo.DeviceInstruction; |
| | | import com.ruoyi.device.pojo.OperationInstruction; |
| | | import com.ruoyi.device.service.DeviceInstructionService; |
| | | import com.ruoyi.device.service.DeviceOperationInstructionService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½ä¸æå¯¼ä¹¦æ·»å åæ§æä»¶è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:29:18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/deviceInstruction") |
| | | public class DeviceInstructionController { |
| | | |
| | | @Autowired |
| | | private DeviceInstructionService deviceInstructionService; |
| | | |
| | | @Autowired |
| | | private DeviceOperationInstructionService deviceOperationInstructionService; |
| | | |
| | | |
| | | @Operation(summary = "ä½ä¸æå¯¼ä¹¦å页") |
| | | @GetMapping("/pageByPageQueryOfHomeworkInstructions") |
| | | public Result<IPage<DeviceOperationInstructionDto>> pageByPageQueryOfHomeworkInstructions(Page page, DeviceOperationInstructionDto operationInstructionDto){ |
| | | return Result.success(deviceInstructionService.pageByPageQueryOfHomeworkInstructions(page, operationInstructionDto)); |
| | | } |
| | | |
| | | @Operation(summary = "ä½ä¸æå¯¼ä¹¦æ°å¢") |
| | | @PostMapping("/newHomeworkGuidebookAdded") |
| | | public Result newHomeworkGuidebookAdded(@RequestBody DeviceInstructionDto instructionDto){ |
| | | deviceInstructionService.newHomeworkGuidebookAdded(instructionDto); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "ä½ä¸æå¯¼ä¹¦è¯¦æ
") |
| | | @GetMapping("/homeworkGuidebookEditor") |
| | | public Result<Map<String, Object>> homeworkGuidebookEditor(Integer instructionId){ |
| | | DeviceInstruction instruction = deviceInstructionService.getById(instructionId); |
| | | List<DeviceOperationInstructionDto> list = deviceOperationInstructionService.homeworkGuidebookEditor(instructionId); |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("list", list); |
| | | map.put("instruction", instruction); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @Operation(summary = "ä½ä¸æå¯¼ä¹¦åæ§æä»¶å é¤") |
| | | @DeleteMapping("/deleteHomeworkGuidebook") |
| | | public Result deleteHomeworkGuidebook(String ids){ |
| | | if (ObjectUtils.isNotEmpty(ids)) { |
| | | String[] idArray = ids.split(","); |
| | | deviceOperationInstructionService.removeBatchByIds(Arrays.asList(idArray)); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "ä½ä¸æå¯¼ä¹¦å é¤") |
| | | @DeleteMapping("/homeworkGuidebook") |
| | | public Result homeworkGuidebook(String id, String instructionId){ |
| | | // å é¤åè¡¨æ°æ® |
| | | deviceOperationInstructionService.removeById(id); |
| | | // 妿åè¡¨æ°æ®ä¸ºç©º |
| | | long count = deviceOperationInstructionService.count(Wrappers.<OperationInstruction>lambdaQuery() |
| | | .eq(OperationInstruction::getInstructionId, instructionId)); |
| | | // é£ä¹å°±å é¤ç¶è¡¨æ°æ® |
| | | if (count < 1) { |
| | | deviceInstructionService.removeById(id); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "ä½ä¸æå¯¼ä¹¦å®¡æ¹") |
| | | @PostMapping("/approvalOfHomeworkInstructionManual") |
| | | public Result approvalOfHomeworkInstructionManual(@RequestBody Map<String,Object> map){ |
| | | Integer id =(Integer) map.get("id"); |
| | | Boolean status =(Boolean) map.get("status"); |
| | | deviceOperationInstructionService.update(Wrappers.<OperationInstruction>lambdaUpdate() |
| | | .eq(OperationInstruction::getId, id) |
| | | .set(OperationInstruction::getStatus, status) |
| | | .set(OperationInstruction::getApproverId, SecurityUtils.getUserId().intValue()) |
| | | .set(OperationInstruction::getEntryIntoForceTime, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.device.dto.DeviceMaintenanceDto; |
| | | import com.ruoyi.device.pojo.DeviceMaintenance; |
| | | import com.ruoyi.device.service.DeviceMaintenanceService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * todo: åæ²³æ»¨ |
| | | */ |
| | | @RestController |
| | | @Tag(name = "设å¤ç»´æ¤ä¿å
»") |
| | | @RequestMapping("/deviceMaintain") |
| | | public class DeviceMaintenanceController { |
| | | |
| | | @Autowired |
| | | private DeviceMaintenanceService deviceMaintenanceService; |
| | | |
| | | @Autowired |
| | | private UserMapper userMapper; |
| | | |
| | | |
| | | /** |
| | | * 设å¤ç»´æ¤å页æ¥è¯¢ |
| | | * @param deviceMaintenance |
| | | * @return |
| | | */ |
| | | @Operation(summary = "设å¤ç»´æ¤å页æ¥è¯¢") |
| | | @GetMapping("/selectDeviceMaintenancePage") |
| | | public Result selectDeviceMaintenancePage(Page page, DeviceMaintenanceDto deviceMaintenance){ |
| | | return Result.success(deviceMaintenanceService.selectDeviceMaintenancePage(page, deviceMaintenance)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ°å¢ä¿®æ¹è®¾å¤ç»´æ¤ä¿å
» |
| | | * @param deviceMaintenance |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢ä¿®æ¹è®¾å¤ç»´æ¤ä¿å
»") |
| | | @PostMapping("/addDeviceMaintenance") |
| | | public Result addDeviceMaintenance(@RequestBody DeviceMaintenance deviceMaintenance){ |
| | | if (deviceMaintenance.getDeviceId() == null) { |
| | | throw new RuntimeException("缺å°è®¾å¤id"); |
| | | } |
| | | User user = userMapper.selectById(deviceMaintenance.getMaintenanceUserId()); |
| | | deviceMaintenance.setMaintenanceUserName(user.getName()); |
| | | |
| | | return Result.success(deviceMaintenanceService.saveOrUpdate(deviceMaintenance)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä¿®æ¹è®¾å¤ç»´æ¤ä¿å
» |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤ä¿®æ¹è®¾å¤ç»´æ¤ä¿å
»") |
| | | @DeleteMapping("/deleteDeviceMaintenance") |
| | | public Result deleteDeviceMaintenance(Integer id){ |
| | | return Result.success(deviceMaintenanceService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ç»´æ¤ä¿å
» |
| | | */ |
| | | @Operation(summary = "导åºè®¾å¤ç»´æ¤ä¿å
»") |
| | | @GetMapping("/exportDeviceMaintenance") |
| | | public void exportDeviceMaintenance(@RequestParam("deviceId") Integer deviceId, HttpServletResponse response) { |
| | | deviceMaintenanceService.exportDeviceMaintenance(deviceId, response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceMaintenancePlanDto; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlan; |
| | | import com.ruoyi.device.service.DeviceMaintenancePlanService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.SneakyThrows; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:10:52 |
| | | */ |
| | | @Tag(name = "设å¤ä¿å
»è®¡å") |
| | | @RestController |
| | | @RequestMapping("/deviceMaintenancePlan") |
| | | public class DeviceMaintenancePlanController { |
| | | @Resource |
| | | private DeviceMaintenancePlanService deviceMaintenancePlanService; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ä¿å
»è®¡å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å页æ¥è¯¢è®¾å¤ä¿å
»è®¡å") |
| | | @GetMapping("selectDeviceMaintenancePlanByPage") |
| | | public Result<IPage<DeviceMaintenancePlan>> selectDeviceMaintenancePlanByPage(Page page, DeviceMaintenancePlanDto itemParameter){ |
| | | return deviceMaintenancePlanService.selectDeviceMaintenancePlanByPage(page, itemParameter); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤ä¿å
»è®¡å |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤ä¿å
»è®¡å") |
| | | @PostMapping("/addMaintenancePlan") |
| | | public Result addMaintenancePlan(@RequestBody DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | return deviceMaintenancePlanService.addMaintenancePlan(deviceMaintenancePlanDto); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤ä¿å
»è®¡å |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹è®¾å¤ä¿å
»è®¡å") |
| | | @PostMapping("/updateMaintenancePlan") |
| | | public Result updateMaintenancePlan(@RequestBody DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | return deviceMaintenancePlanService.updateMaintenancePlan(deviceMaintenancePlanDto); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤ä¿å
»è®¡å |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤ä¿å
»è®¡å") |
| | | @DeleteMapping("/deleteMaintenancePlan") |
| | | public Result deleteMaintenancePlan(DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | return deviceMaintenancePlanService.deleteMaintenancePlan(deviceMaintenancePlanDto); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ä¿å
»è®¡å详æ
|
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤ä¿å
»è®¡å详æ
") |
| | | @GetMapping("/getMaintenancePlanDetail") |
| | | public Result<DeviceMaintenancePlanDto> getMaintenancePlanDetail(Integer maintenancePlanId) { |
| | | return deviceMaintenancePlanService.getMaintenancePlanDetail(maintenancePlanId); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ä¿å
»è®¡å |
| | | */ |
| | | @Operation(summary = "导åºè®¾å¤ä¿å
»è®¡å") |
| | | @GetMapping("/exportDeviceMaintenancePlan") |
| | | public Result exportDeviceMaintenancePlan(@RequestParam("maintenancePlanId") Integer maintenancePlanId, HttpServletResponse response) { |
| | | return deviceMaintenancePlanService.exportDeviceMaintenancePlanDto(maintenancePlanId, response); |
| | | } |
| | | |
| | | /** |
| | | * æäº¤å®¡æ ¸ |
| | | */ |
| | | @Operation(summary = "æäº¤å®¡æ ¸") |
| | | @PostMapping("/submitReviewMaintenancePlanStatus") |
| | | public Result submitReviewMaintenancePlanStatus(@RequestBody DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | return deviceMaintenancePlanService.submitReviewMaintenancePlanStatus(deviceMaintenancePlanDto); |
| | | } |
| | | |
| | | /** |
| | | * å®¡æ ¸è®¾å¤ä¿å
»è®¡åç¶æ |
| | | */ |
| | | @Operation(summary = "å®¡æ ¸è®¾å¤ä¿å
»è®¡åç¶æ") |
| | | @PostMapping("/reviewMaintenancePlanStatus") |
| | | public Result reviewMaintenancePlanStatus(@RequestBody DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | return deviceMaintenancePlanService.reviewMaintenancePlanStatus(deviceMaintenancePlanDto); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.pojo.DeviceMetric; |
| | | import com.ruoyi.device.service.IDeviceMetricService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/deviceMetrics") |
| | | public class DeviceMetricController { |
| | | |
| | | @Autowired |
| | | private IDeviceMetricService deviceMetricService; |
| | | |
| | | @PostMapping("/saveOrUpdateDeviceMetric") |
| | | public Result create(@RequestBody DeviceMetric deviceMetric) { |
| | | return Result.success(deviceMetricService.saveOrUpdate(deviceMetric)); |
| | | } |
| | | |
| | | @GetMapping("/selectDeviceMetric") |
| | | public Result read(@RequestParam("deviceId") Integer deviceId, @RequestParam("type") String type) { |
| | | return Result.success(deviceMetricService.list(Wrappers.<DeviceMetric>lambdaQuery() |
| | | .eq(DeviceMetric::getDeviceId,deviceId) |
| | | .eq(DeviceMetric::getType,type))); |
| | | } |
| | | |
| | | @DeleteMapping("/deleteDeviceMetrics") |
| | | public Result delete(@RequestParam("id") Integer id) { |
| | | return Result.success(deviceMetricService.removeById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.numgen.NumberGenerator; |
| | | import com.ruoyi.common.utils.FileSaveUtil; |
| | | import com.ruoyi.device.dto.DeviceMetricRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceMetricRecord; |
| | | import com.ruoyi.device.pojo.DeviceMetricsCopy; |
| | | import com.ruoyi.device.service.DeviceMetricRecordService; |
| | | import com.ruoyi.device.service.DeviceMetricsCopyService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.Locale; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:01 |
| | | */ |
| | | @Tag(name = "è®¾å¤ - è®¾å¤æ ¡å") |
| | | @RestController |
| | | @RequestMapping("/deviceMetricRecord") |
| | | public class DeviceMetricRecordController { |
| | | |
| | | @Autowired |
| | | private DeviceMetricRecordService deviceMetricRecordService; |
| | | |
| | | @Autowired |
| | | private DeviceMetricsCopyService deviceMetricsCopyService; |
| | | |
| | | @Autowired |
| | | private NumberGenerator<DeviceMetricRecord> numberGenerator; |
| | | |
| | | @Operation(summary = "è®¾å¤æ ¡åå页æ¥è¯¢") |
| | | @GetMapping("/deviceMetricRecordPage") |
| | | public Result deviceMetricRecordPage(@RequestParam("deviceId") Integer deviceId, Page page, @RequestParam("type") String type) { |
| | | return Result.success(deviceMetricRecordService.page(page, Wrappers.<DeviceMetricRecord>lambdaQuery() |
| | | .eq(DeviceMetricRecord::getDeviceId, deviceId) |
| | | .eq(DeviceMetricRecord::getType, type))); |
| | | } |
| | | |
| | | @Operation(summary = "è®¾å¤æ ¡å æ°å¢ æ´æ°") |
| | | @PostMapping("/addOrUpdateDeviceMetricRecord") |
| | | public Result addOrUpdateDeviceMetricRecord(@RequestBody DeviceMetricRecordDto deviceMetricRecordDto) { |
| | | if (ObjectUtils.isEmpty(deviceMetricRecordDto.getProcessNumber())) { |
| | | String year = new SimpleDateFormat("yy", Locale.CHINESE).format(new Date()); |
| | | String month = new SimpleDateFormat("MM", Locale.CHINESE).format(new Date()); |
| | | String processNumber = numberGenerator.generateNumberWithPrefix(5, "SBJZ" + year + month, DeviceMetricRecord::getProcessNumber); |
| | | deviceMetricRecordDto.setProcessNumber(processNumber); |
| | | } |
| | | deviceMetricRecordService.saveOrUpdate(deviceMetricRecordDto); |
| | | if (CollectionUtils.isNotEmpty(deviceMetricRecordDto.getDeviceMetricsCopyList())) { |
| | | deviceMetricRecordDto.getDeviceMetricsCopyList().forEach(i -> i.setDeviceMetricsId(deviceMetricRecordDto.getId())); |
| | | deviceMetricsCopyService.saveOrUpdateBatch(deviceMetricRecordDto.getDeviceMetricsCopyList()); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "è®¾å¤æ ¡å å é¤") |
| | | @DeleteMapping("/deleteDeviceMetricRecord") |
| | | public Result deleteDeviceMetricRecord(@RequestParam("id") Integer id) { |
| | | DeviceMetricRecord deviceMetricRecord = deviceMetricRecordService.getById(id); |
| | | deviceMetricsCopyService.remove(Wrappers.<DeviceMetricsCopy>lambdaQuery() |
| | | .eq(DeviceMetricsCopy::getDeviceMetricsId, id)); |
| | | // å 餿件 |
| | | FileSaveUtil.DeleteFile(deviceMetricRecord.getSystemFileName()); |
| | | return Result.success(deviceMetricRecordService.removeById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "è®¾å¤æ ¡å æ ¡åæ¡ç®æ¥è¯¢") |
| | | @GetMapping("/showDeviceMetricsCopy") |
| | | public Result showDeviceMetricsCopy(@RequestParam("id") Integer id, @RequestParam("type") String type) { |
| | | return Result.success(deviceMetricsCopyService.list(Wrappers.<DeviceMetricsCopy>lambdaQuery() |
| | | .eq(DeviceMetricsCopy::getDeviceMetricsId, id) |
| | | .eq(DeviceMetricsCopy::getType, type))); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.numgen.NumberGenerator; |
| | | import com.ruoyi.device.pojo.DeviceRecord; |
| | | import com.ruoyi.device.service.DeviceRecordService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * cnas设å¤ä½¿ç¨è®°å½è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 11:06:47 |
| | | */ |
| | | @Tag(name = "设å¤ä½¿ç¨è®°å½") |
| | | @RestController |
| | | @RequestMapping("/deviceRecord") |
| | | public class DeviceRecordController { |
| | | @Autowired |
| | | private DeviceRecordService deviceRecordService; |
| | | |
| | | @Operation(summary = "å¤ä½¿ç¨è®°å½æ¥è¯¢") |
| | | @GetMapping("/deviceRecordPage") |
| | | public Result deviceRecordPage(Integer deviceId, Page page, String sampleCode, String managementNumber) { |
| | | return Result.success(deviceRecordService.deviceRecordPage(deviceId, page, sampleCode, managementNumber)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢") |
| | | @PostMapping("/saveDeviceRecord") |
| | | public Result saveDeviceRecords(@RequestBody DeviceRecord deviceRecord) { |
| | | return Result.success(deviceRecordService.save(deviceRecord)); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾è®¾å¤ä½¿ç¨è®°å½ |
| | | * @param deviceRecord |
| | | * @return |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹") |
| | | @PostMapping("/updateDeviceRecord") |
| | | public Result updateDeviceRecord(@RequestBody DeviceRecord deviceRecord) { |
| | | return Result.success(deviceRecordService.updateById(deviceRecord)); |
| | | } |
| | | |
| | | @DeleteMapping("/deleteDeviceRecord") |
| | | public Result deleteDeviceRecords(@RequestParam("id") Integer id) { |
| | | return Result.success(deviceRecordService.removeById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "设å¤ä½¿ç¨è®°å½å¯¼åº") |
| | | @GetMapping("/exportUseRecord") |
| | | public void exportUseRecord(Integer deviceId, String exportDate, HttpServletResponse response){ |
| | | deviceRecordService.exportUseRecord(deviceId, exportDate, response); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.pojo.DeviceScrapped; |
| | | import com.ruoyi.device.service.DeviceScrappedService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ¥åºç³è¯·è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 01:53:47 |
| | | */ |
| | | @Tag(name = "è®¾å¤æ¥åºç³è¯·è¡¨") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/deviceScrapped") |
| | | public class DeviceScrappedController { |
| | | |
| | | private DeviceScrappedService deviceScrappedService; |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ¥åºç³è¯·å表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "è®¾å¤æ¥åºç³è¯·å表") |
| | | @GetMapping("/pageDeviceScrapped") |
| | | public Result<IPage<DeviceScrapped>> pageDeviceScrapped(Page page, DeviceScrapped deviceScrapped) { |
| | | return Result.success(deviceScrappedService.pageDeviceScrapped(page, deviceScrapped)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ¥åºç³è¯· |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ¥è¯¢è®¾å¤æ¥åºç³è¯·") |
| | | @GetMapping("/getDeviceScrapped") |
| | | public Result getDeviceScrapped(Integer scrappedId){ |
| | | return Result.success(deviceScrappedService.getById(scrappedId)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤æ ¸æ¥è®¡å详æ
|
| | | * @return |
| | | */ |
| | | @Operation(summary = "å é¤è®¾å¤æ¥åºç³è¯·") |
| | | @DeleteMapping("/delDeviceScrapped") |
| | | public Result delDeviceScrapped(Integer scrappedId){ |
| | | return Result.success(deviceScrappedService.removeById(scrappedId)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¥åºç³è¯· |
| | | * @return |
| | | */ |
| | | @Operation(summary = "æ°å¢è®¾å¤æ¥åºç³è¯·") |
| | | @PostMapping("/addDeviceScrapped") |
| | | public Result addDeviceScrapped(@RequestBody DeviceScrapped deviceScrapped){ |
| | | return Result.success(deviceScrappedService.addDeviceScrapped(deviceScrapped)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ¥åºç³è¯· |
| | | */ |
| | | @Operation(summary = "导åºè®¾å¤æ¥åºç³è¯·") |
| | | @GetMapping("/exportDeviceScrapped") |
| | | public Result exportDeviceScrapped(Integer scrappedId, HttpServletResponse response) { |
| | | return deviceScrappedService.exportDeviceScrapped(scrappedId, response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.numgen.NumberGenerator; |
| | | import com.ruoyi.device.dto.DeviceStateDto; |
| | | import com.ruoyi.device.excel.DeviceStateExport; |
| | | import com.ruoyi.device.pojo.DeviceState; |
| | | import com.ruoyi.device.service.DeviceStateService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Locale; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤åç¨/å¯ç¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-26 09:51:40 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/deviceState") |
| | | public class DeviceStateController { |
| | | |
| | | @Autowired |
| | | private DeviceStateService deviceStateService; |
| | | |
| | | @Autowired |
| | | private NumberGenerator<DeviceState> numberGenerator; |
| | | |
| | | @PostMapping("saveDeviceState") |
| | | public Result saveIncidentReportData(@RequestBody DeviceState deviceState) { |
| | | if (ObjectUtils.isEmpty(deviceState.getProcessNumber())) { |
| | | String year = new SimpleDateFormat("yy", Locale.CHINESE).format(new Date()); |
| | | String month = new SimpleDateFormat("MM", Locale.CHINESE).format(new Date()); |
| | | String processNumber = numberGenerator.generateNumberWithPrefix(3, "DG-TC-23FM " + month + "-" + year + month, DeviceState::getProcessNumber); |
| | | deviceState.setProcessNumber(processNumber); |
| | | } |
| | | deviceStateService.saveOrUpdate(deviceState); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @GetMapping("/getDeviceStatePage") |
| | | public Result getDeviceStatePage(@RequestParam("deviceId") Integer deviceId, Page page, String processNumber){ |
| | | return Result.success(deviceStateService.getDeviceStatePage(deviceId, page, processNumber)); |
| | | } |
| | | |
| | | @DeleteMapping("/deleteDeviceState") |
| | | public Result deleteDeviceState(@RequestParam("stateId") Integer stateId){ |
| | | return Result.success(deviceStateService.removeById(stateId)); |
| | | } |
| | | |
| | | @GetMapping("/deviceStateExport") |
| | | public Result deviceStateExport(@RequestParam("deviceId") Integer deviceId, String processNumber, HttpServletResponse response) throws Exception { |
| | | IPage<DeviceStateDto> deviceBorrows = deviceStateService.getDeviceStatePage(deviceId, new Page<>(-1, -1), processNumber); |
| | | List<DeviceStateExport> studentList = JSONObject.parseArray(JSON.toJSONString(deviceBorrows.getRecords()), DeviceStateExport.class); |
| | | response.setHeader("requestType", "excel"); |
| | | response.setHeader("Access-Control-Expose-Headers", "requestType"); |
| | | // 设置åå
æ ¼æ ·å¼ |
| | | // ä¿åå°ç¬¬ä¸ä¸ªsheetä¸ |
| | | EasyExcel.write(response.getOutputStream()) |
| | | .head(DeviceStateExport.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) // èªéåºå宽 |
| | | .sheet("sheet") |
| | | .doWrite(studentList); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "设å¤å¯å¨/忢坼åº") |
| | | @GetMapping("/exportDeviceStatus") |
| | | public void exportDeviceStatus(@RequestParam("processNumber") String processNumber,@RequestParam("deviceId") Integer deviceId, HttpServletResponse response) throws Exception { |
| | | deviceStateService.exportDeviceStatus(deviceId, processNumber, response); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceTraceabilityManagementDto; |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagement; |
| | | import com.ruoyi.device.service.DeviceTraceabilityManagementService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:44 |
| | | */ |
| | | @Tag(name = "设å¤é弿º¯æºè®¡å") |
| | | @RestController |
| | | @RequestMapping("/deviceTraceabilityManagement") |
| | | public class DeviceTraceabilityManagementController { |
| | | @Resource |
| | | private DeviceTraceabilityManagementService deviceTraceabilityManagementService; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢é弿º¯æºè®¡å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å页æ¥è¯¢é弿º¯æºè®¡å") |
| | | @GetMapping("selectDeviceTraceabilityManagementByPage") |
| | | public Result<IPage<DeviceTraceabilityManagement>> selectDeviceTraceabilityManagementByPage(Page page, DeviceTraceabilityManagementDto itemParameter){ |
| | | return deviceTraceabilityManagementService.selectDeviceTraceabilityManagementByPage(page, itemParameter); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é弿º¯æºè®¡å |
| | | * @param deviceTraceabilityManagementDto é弿º¯æºè®¡å |
| | | */ |
| | | @Operation(summary = "æ°å¢é弿º¯æºè®¡å") |
| | | @PostMapping("/addTraceabilityManagement") |
| | | public Result addTraceabilityManagement(@RequestBody DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | return deviceTraceabilityManagementService.addTraceabilityManagement(deviceTraceabilityManagementDto); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é弿º¯æºè®¡å |
| | | * @param deviceTraceabilityManagementDto é弿º¯æºè®¡å |
| | | */ |
| | | @Operation(summary = "ä¿®æ¹é弿º¯æºè®¡å") |
| | | @PostMapping("/updateTraceabilityManagement") |
| | | public Result updateTraceabilityManagement(@RequestBody DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | return deviceTraceabilityManagementService.updateTraceabilityManagement(deviceTraceabilityManagementDto); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é弿º¯æºè®¡å |
| | | * @param deviceTraceabilityManagementDto é弿º¯æºè®¡å |
| | | */ |
| | | @Operation(summary = "å é¤é弿º¯æºè®¡å") |
| | | @DeleteMapping("/deleteTraceabilityManagement") |
| | | public Result deleteTraceabilityManagement(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | return deviceTraceabilityManagementService.deleteTraceabilityManagement(deviceTraceabilityManagementDto); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é弿º¯æºè®¡å详æ
|
| | | */ |
| | | @Operation(summary = "æ¥è¯¢é弿º¯æºè®¡å详æ
") |
| | | @GetMapping("/getTraceabilityManagementDetail") |
| | | public Result<DeviceTraceabilityManagementDto> getTraceabilityManagementDetail(Integer traceabilityManagementId) { |
| | | return deviceTraceabilityManagementService.getTraceabilityManagementDetail(traceabilityManagementId); |
| | | } |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | */ |
| | | @Operation(summary = "æäº¤æ¹å") |
| | | @PostMapping("/submitReviewTraceabilityManagementStatus") |
| | | public Result submitReviewTraceabilityManagementStatus(@RequestBody DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | return deviceTraceabilityManagementService.submitReviewTraceabilityManagementStatus(deviceTraceabilityManagementDto); |
| | | } |
| | | |
| | | /** |
| | | * é弿º¯æºè®¡åæ¹å |
| | | */ |
| | | @Operation(summary = "é弿º¯æºè®¡åæ¹å") |
| | | @PostMapping("/reviewTraceabilityManagementStatus") |
| | | public Result reviewTraceabilityManagementStatus(@RequestBody DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | return deviceTraceabilityManagementService.reviewTraceabilityManagementStatus(deviceTraceabilityManagementDto); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé弿º¯æºè®¡å |
| | | */ |
| | | @Operation(summary = "导åºé弿º¯æºè®¡å") |
| | | @GetMapping("/exportDeviceTraceabilityManagement") |
| | | public Result exportDeviceTraceabilityManagement(@RequestParam("traceabilityManagementId") Integer traceabilityManagementId, HttpServletResponse response) { |
| | | return deviceTraceabilityManagementService.exportDeviceTraceabilityManagementDto(traceabilityManagementId, response); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DataConfig; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class DataConfigDto { |
| | | |
| | | private List<DataConfig> dataConfigList; |
| | | |
| | | private Boolean isDevice; |
| | | |
| | | @Schema(description = "æä»¶åç¼") |
| | | private String fileType; |
| | | |
| | | @Schema(description = "ééå°å") |
| | | private String collectUrl; |
| | | |
| | | @Schema(description = "åå¨å°å") |
| | | private String storageUrl; |
| | | |
| | | @Schema(description = "设å¤IP") |
| | | private String ip; |
| | | |
| | | @Schema(description = "æ°é-å§æåæ®µ") |
| | | private String entrustCode; |
| | | |
| | | @Schema(description = "æ°é-æ ·ååæ®µ") |
| | | private String sampleCode; |
| | | |
| | | @Schema(description = "æ°é-dbï¼mdbæä»¶åç§°") |
| | | private String dbFileName; |
| | | |
| | | @Schema(description = "设å¤ID") |
| | | private Integer deviceId; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceAccidentReport; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-18 ææä¸ 10:00:48 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceAccidentReportDto extends DeviceAccidentReport { |
| | | @Schema(description = "æ¶é´") |
| | | private String accidentDateStr; |
| | | |
| | | @Schema(description = "æ¥åäººå¡«åæ¶é´") |
| | | private String reportDateStr; |
| | | |
| | | @Schema(description = "è¯ä¼°äººå¡«åæ¶é´") |
| | | private String assessorDateStr; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººå¡«åæ¶é´") |
| | | private String departmentHeadDateStr; |
| | | |
| | | @Schema(description = "ææ¯è´è´£äººå¡«åæ¶é´") |
| | | private String technicalDirectorDateStr; |
| | | |
| | | @Schema(description = "䏻任填忶é´") |
| | | private String directorHeadDateStr; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ
é维修表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 04:50:57 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_breakdown_maintenance") |
| | | @Schema(description = "è®¾å¤æ
é维修表") |
| | | public class DeviceBreakdownMaintenance { |
| | | |
| | | @TableId(value = "maintenance_id", type = IdType.AUTO) |
| | | private Integer maintenanceId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "å®è£
å°å") |
| | | private String location; |
| | | |
| | | @Schema(description = "æåææ
éæ
åµ") |
| | | private String damageOrMalfunction; |
| | | |
| | | @Schema(description = "ç³è¯·äººid") |
| | | private Integer applicantUserId; |
| | | |
| | | @Schema(description = "ç³è¯·äºº") |
| | | private String applicantUser; |
| | | |
| | | @Schema(description = "è¦æ±ä¿®å¤æ¶é´") |
| | | private LocalDate repairDate; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººæè§") |
| | | private String departmentHeadOpinion; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººid") |
| | | private Integer departmentHeadUserId; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äºº") |
| | | private String departmentHeadUser; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººå¡«åæ¶é´") |
| | | private LocalDate departmentHeadDate; |
| | | |
| | | @Schema(description = "维修记äº") |
| | | private String maintenanceRecord; |
| | | |
| | | @Schema(description = "维修人") |
| | | private String maintenanceUser; |
| | | |
| | | @Schema(description = "ç»´ä¿®æ¶é´") |
| | | private LocalDate maintenanceDate; |
| | | |
| | | @Schema(description = "æ¯å¦ç»æ,0 æªç»æ, 1ç»æ") |
| | | private Integer isFinish; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | @Schema(description = "æµç¨, 0:ç³è¯·, 1ç³è¯·é¨é¨è´è´£äººæè§, 2:维修记äº") |
| | | private Integer flowType; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlanDetail; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-17 ææäº 10:05:08 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceCalibrationPlanDetailDto extends DeviceCalibrationPlanDetail { |
| | | |
| | | @Schema(description = "åºå·") |
| | | private Integer index; |
| | | @Schema(description = "æè¿æ£å®æ¶é´Str") |
| | | private String lastDateStr; |
| | | @Schema(description = "æ¬å¹´è®¡åæ ¡åæ¶é´Str") |
| | | private String planDateStr; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlan; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlanDetail; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/12/16 |
| | | */ |
| | | @Data |
| | | public class DeviceCalibrationPlanDto extends DeviceCalibrationPlan { |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private String writeName; |
| | | |
| | | @Schema(description = "æ¹å人") |
| | | private String ratifyName; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | private String writeTimeStr; |
| | | |
| | | @Schema(description = "æ¹åæ¶é´") |
| | | private String ratifyTimeStr; |
| | | |
| | | @Schema(description = "æ ¡å计å详æ
") |
| | | private List<DeviceCalibrationPlanDetail> calibrationPlanDetailList; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 设å¤éé对象 |
| | | * |
| | | * @Author zhuo |
| | | * @Date 2024/12/3 |
| | | */ |
| | | @Data |
| | | public class DeviceCollectionDto { |
| | | |
| | | @Schema(description = "æ ·åid") |
| | | private Integer id; |
| | | |
| | | @Schema(description = "订åç¼å·") |
| | | private String entrustCode; |
| | | |
| | | @Schema(description = "æ ·åç¼å·") |
| | | private String sampleCode; |
| | | |
| | | @Schema(description = "ééçæ£éªé¡¹id") |
| | | private List<Integer> itemIds; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DeviceConfigDtoPage{ |
| | | |
| | | @Schema(description = "设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "åå»ºç¨æ·") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "æä»¶åç¼") |
| | | private String fileType; |
| | | |
| | | @Schema(description = "ééå°å") |
| | | private String collectUrl; |
| | | |
| | | @Schema(description = "åå¨å°å") |
| | | private String storageUrl; |
| | | |
| | | @Schema(description = "IPå°å") |
| | | private String ip; |
| | | |
| | | @Schema(description = "æ£éªé¡¹åç±»") |
| | | private String inspectionItemClass; |
| | | |
| | | @Schema(description = "æ£éªé¡¹") |
| | | private String inspectionItem; |
| | | |
| | | @Schema(description = "æ£éªé¡¹å项") |
| | | private String inspectionItemSubclass; |
| | | |
| | | @Schema(description = "å
¬å¼") |
| | | private String formula; |
| | | |
| | | @Schema(description = "åç
§X") |
| | | private String referx; |
| | | |
| | | @Schema(description = "X") |
| | | private String x; |
| | | |
| | | @Schema(description = "åç
§Y") |
| | | private String refery; |
| | | |
| | | |
| | | @Schema(description = "Y") |
| | | private String y; |
| | | |
| | | @Schema(description = "å«å") |
| | | private String anotherName; |
| | | |
| | | @Schema(description = "å¹é
åç§°") |
| | | private String matchingName; |
| | | |
| | | private Integer id; |
| | | |
| | | @Schema(description = "æ£éªå¯¹è±¡") |
| | | private String sample; |
| | | |
| | | @Schema(description = "æ£éªé¡¹ç®id") |
| | | private Integer structureItemParameterId; |
| | | |
| | | @Schema(description = "æ°é-å§æåæ®µ") |
| | | private String entrustCode; |
| | | |
| | | @Schema(description = "æ°é-æ ·ååæ®µ") |
| | | private String sampleCode; |
| | | |
| | | @Schema(description = "æ°é-dbï¼mdbæä»¶åç§°") |
| | | private String dbFileName; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | public class DeviceDto extends Device { |
| | | |
| | | @Schema(description = "管ç人") |
| | | private String equipmentManagerUser; |
| | | |
| | | @Schema(description = "æå±é¨é¨") |
| | | @JsonInclude(JsonInclude.Include.NON_NULL) |
| | | private String laboratoryName; |
| | | |
| | | @Schema(description = "æ£éªé¡¹ç®") |
| | | private String insProductItem; |
| | | |
| | | @Schema(description = "管ç人å§å") |
| | | private String equipmentManagerName; |
| | | |
| | | @Schema(description = "被ææäººå§å") |
| | | private String authorizedPersonName; |
| | | |
| | | @Schema(description = "æ ¸åè¯ä¹¦ç¼å·") |
| | | private String calibrateNo; |
| | | |
| | | @Schema(description = "æè¿æ ¡åæ¥æ") |
| | | private LocalDateTime lastCalibrationDateTwo; |
| | | |
| | | @Schema(description = "䏿¬¡æ ¡åæ¥æ") |
| | | private LocalDateTime nextCalibrationDateTwo; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-17 ææäº 15:34:44 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceExaminePlanDetailsDto extends DeviceExaminePlanDetails { |
| | | @Schema(description = "åºå·") |
| | | private Integer index; |
| | | |
| | | @Schema(description = "è®°å½ç¶æ, 0: æªå¼å§, 1:å¾
æ¹å, 2:éè¿, 3:ä¸éè¿") |
| | | private Integer recordStatus; |
| | | |
| | | @Schema(description = "对æ¯ç¶æ, 0: æªå¼å§, 1:å¾
æ¹å, 2:éè¿, 3:ä¸éè¿") |
| | | private Integer recordContrastStatus; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceExaminePlan; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/12/16 |
| | | */ |
| | | @Data |
| | | public class DeviceExaminePlanDto extends DeviceExaminePlan { |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private String writeName; |
| | | |
| | | @Schema(description = "æ¹å人") |
| | | private String ratifyName; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | private String writeTimeStr; |
| | | |
| | | @Schema(description = "æ¹åæ¶é´") |
| | | private String ratifyTimeStr; |
| | | |
| | | @Schema(description = "年度") |
| | | private String year; |
| | | |
| | | private List<DeviceExaminePlanDetails> examinePlanDetailsList; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrastDetails; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-17 ææäº 13:59:37 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceExamineRecordContrastDetailsDto extends DeviceExamineRecordContrastDetails { |
| | | @Schema(description = "åºå·") |
| | | private Integer index; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrast; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrastDetails; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/12/16 |
| | | */ |
| | | @Data |
| | | public class DeviceExamineRecordContrastDto extends DeviceExamineRecordContrast { |
| | | |
| | | @Schema(description = "æ ¸æ¥è®°å½å¯¹æ¯è¯¦æ
") |
| | | private List<DeviceExamineRecordContrastDetails> recordContrastDetailsList; |
| | | |
| | | |
| | | @Schema(description = "A设å¤åç§°") |
| | | private String aDeviceName; |
| | | |
| | | @Schema(description = "A设å¤ç¼å·") |
| | | private String aDeviceNumber; |
| | | |
| | | @Schema(description = "b设å¤åç§°") |
| | | private String bDeviceName; |
| | | |
| | | @Schema(description = "b设å¤ç¼å·") |
| | | private String bDeviceNumber; |
| | | |
| | | @Schema(description = "c设å¤åç§°") |
| | | private String cDeviceName; |
| | | |
| | | @Schema(description = "c设å¤ç¼å·") |
| | | private String cDeviceNumber; |
| | | |
| | | @Schema(description = "æ ¸æ¥æ¥æ") |
| | | private String checkerTimeStr; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥æ") |
| | | private String reviewTimeStr; |
| | | |
| | | @Schema(description = "å®éªå®¤") |
| | | private String labName; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceExamineRecord; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordDetail; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/12/16 |
| | | */ |
| | | @Data |
| | | public class DeviceExamineRecordDto extends DeviceExamineRecord { |
| | | |
| | | @Schema(description = "æ ¸æ¥è®°å½è¯¦æ
") |
| | | private List<DeviceExamineRecordDetail> recordDetailList; |
| | | |
| | | @Schema(description = "设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "设å¤ç¼å·") |
| | | private String deviceNumber; |
| | | |
| | | @Schema(description = "æå䏿¬¡ä¿®æ¹æ¥æ") |
| | | private String updateTimeStr; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.Device; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-10 ææäº 15:55:29 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceExport extends Device { |
| | | @Schema(description = "管ç人") |
| | | private String equipmentManagerName; |
| | | |
| | | @Schema(description = "åºå·") |
| | | private Integer index; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceImpowerDetails; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2025/4/17 |
| | | */ |
| | | @Data |
| | | public class DeviceImpowerDetailsDto extends DeviceImpowerDetails { |
| | | |
| | | @Schema(description = "åºå·") |
| | | private Integer index; |
| | | |
| | | @Schema(description = "仪å¨è®¾å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "仪å¨è®¾å¤åå·") |
| | | private String specificationModel; |
| | | |
| | | @Schema(description = "仪å¨ç¼å·") |
| | | private String managementNumber; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceImpower; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2025/4/17 |
| | | */ |
| | | @Data |
| | | public class DeviceImpowerDto extends DeviceImpower { |
| | | |
| | | @Schema(description = "详æ
") |
| | | private List<DeviceImpowerDetailsDto> deviceImpowerDetails; |
| | | |
| | | @Schema(description = "æææ¥æä¸æ") |
| | | private String auditDateCH; |
| | | |
| | | @Schema(description = "æææ¥æè±æ") |
| | | private String auditDateEN; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecord; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecordDetails; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-16 ææä¸ 17:23:22 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceInspectionRecordDto extends DeviceInspectionRecord { |
| | | |
| | | @TableField(exist = false) |
| | | @Schema(description = "æµè¯è¯¦æ
å
容") |
| | | private List<DeviceInspectionRecordDetails> details; |
| | | |
| | | @Schema(description = "æµè¯æ¶é´") |
| | | private String testDateString; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceInstruction; |
| | | import com.ruoyi.device.pojo.OperationInstruction; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class DeviceInstructionDto extends DeviceInstruction { |
| | | |
| | | private List<OperationInstruction> feTempHumRecordList; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceMaintenance; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2025/4/17 |
| | | */ |
| | | @Data |
| | | public class DeviceMaintenanceDto extends DeviceMaintenance { |
| | | |
| | | @Schema(description = "设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "设å¤ç¼å·") |
| | | private String managementNumber; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlanDetails; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-17 ææäº 9:26:48 |
| | | * Description: 设å¤ä¿å
»è®¡å详æ
|
| | | */ |
| | | @Data |
| | | public class DeviceMaintenancePlanDetailsDto extends DeviceMaintenancePlanDetails { |
| | | |
| | | @Schema(description = "åºå·") |
| | | private Integer index; |
| | | |
| | | @Schema(description = "仪å¨è®¾å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "仪å¨è®¾å¤ç¼å·") |
| | | private String deviceNumber; |
| | | |
| | | @Schema(description = "仪å¨è®¾å¤åå·") |
| | | private String specificationModel; |
| | | |
| | | @Schema(description = "仪å¨ç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @Schema(description = "å½å±å®éªå®¤") |
| | | private String storagePoint; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlan; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-16 ææä¸ 18:26:59 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceMaintenancePlanDto extends DeviceMaintenancePlan { |
| | | |
| | | @Schema(description = "设å¤ä¿å
»è®¡å详æ
") |
| | | @TableField(exist = false) |
| | | private List<DeviceMaintenancePlanDetailsDto> deviceMaintenancePlanDetails; |
| | | |
| | | @Schema(description = "ç¼å¶æ¥æ") |
| | | private String datePreparationStr; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥æ") |
| | | private String auditDateStr; |
| | | |
| | | @Schema(description = "设å¤Id") |
| | | private Integer deviceId; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-13 ææäº 10:43:06 |
| | | * Description: 仪å¨è®¾å¤æ¡£æ¡å¡ä¸æ¾ç¤ºçè®¾å¤æ ¡åè®°å½åç»´æ¤è®°å½çå表对象 |
| | | */ |
| | | @Data |
| | | public class DeviceMetricRecordAndMaintenanceDto { |
| | | @Schema(description = "åºå·") |
| | | private Integer index; |
| | | |
| | | // æ ¡å表ä¸çæ°æ® |
| | | @Schema(description = "æ ¡åæ¥æ") |
| | | private String calibrationDateString; |
| | | |
| | | @Schema(description = "è¯ä¹¦æ å·") |
| | | private String certificateNumber; |
| | | |
| | | @Schema(description = "æ ¡åæææ¥æ") |
| | | private String validityDateString; |
| | | |
| | | @Schema(description = "å¤å®") |
| | | private String judgement; |
| | | |
| | | // 维修记å½è¡¨ä¸çæ°æ® |
| | | @Schema(description = "ç»´ä¿®æ¥æ") |
| | | private String maintenanceDateString; |
| | | |
| | | @Schema(description = "å¤çæ¹å¼") |
| | | private String handlingMethod; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String comments; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceMetricRecord; |
| | | import com.ruoyi.device.pojo.DeviceMetricsCopy; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class DeviceMetricRecordDto extends DeviceMetricRecord { |
| | | |
| | | private List<DeviceMetricsCopy> deviceMetricsCopyList; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.OperationInstruction; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DeviceOperationInstructionDto extends OperationInstruction { |
| | | @Schema(description = "ç³è¯·ç¼å·") |
| | | private String applicationNumber; |
| | | |
| | | @Schema(description = "ç³è¯·é¨é¨") |
| | | private String applicationDepartment; |
| | | |
| | | @Schema(description = "责任人") |
| | | private String personLiable; |
| | | |
| | | @Schema(description = "åæ§ç³è¯·è¯´æ") |
| | | private String controlledApplicationDescription; |
| | | |
| | | @Schema(description = "管çç¼å·") |
| | | private String deviceNumber; |
| | | |
| | | @Schema(description = "åå·") |
| | | private String deviceModel; |
| | | |
| | | @Schema(description = "设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "ä¸ä¼ 人") |
| | | private String uploaderName; |
| | | |
| | | @Schema(description = "审æ¹äºº") |
| | | private String approverName; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceRecord; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DeviceRecordDto extends DeviceRecord { |
| | | |
| | | @Schema(description = "设å¤åç§°") |
| | | private String deviceName; |
| | | @Schema(description = "设å¤ç¼å·") |
| | | private String managementNumber; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceScrapped; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-17 ææäº 18:34:17 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceScrappedDto extends DeviceScrapped { |
| | | |
| | | @Schema(description = "ç³è¯·æ¶é´") |
| | | private String applicantDateStr; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººå¡«åæ¶é´") |
| | | private String departmentHeadDateStr; |
| | | |
| | | @Schema(description = "计éå®¤äººå¡«åæ¶é´") |
| | | private String meteringRoomDateStr; |
| | | |
| | | @Schema(description = "æ¹åäººå¡«åæ¶é´") |
| | | private String approverDateStr; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceState; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DeviceStateDto extends DeviceState { |
| | | @Schema(description = "设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "è§æ ¼åå·") |
| | | private String specificationModel; |
| | | |
| | | @Schema(description = "管çç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @Schema(description = "æä½æ¥æ yyyy-MM-dd") |
| | | private String submitDateString; |
| | | |
| | | @Schema(description = "è´è´£äººå®¡æ¹æ¥æ yyyy-MM-dd") |
| | | private String departmentDateString; |
| | | |
| | | @Schema(description = "计éå®¤å®¡æ¹æ¥æ yyyy-MM-dd") |
| | | private String measuringRoomDateString; |
| | | |
| | | @Schema(description = "æ¹åæ¥æ yyyy-MM-dd") |
| | | private String approvalDateString; |
| | | |
| | | @Schema(description = "设å¤ç±»å") |
| | | private String largeCategory; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagementDetails; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-20 ææäº 15:05:02 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceTraceabilityManagementDetailsDto extends DeviceTraceabilityManagementDetails { |
| | | @Schema(description = "åºå·") |
| | | private Integer index; |
| | | |
| | | @Schema(description = "仪å¨è®¾å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "仪å¨è®¾å¤åå·") |
| | | private String specificationModel; |
| | | |
| | | @Schema(description = "仪å¨ç¼å·") |
| | | private String managementNumber; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagement; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-20 ææäº 14:30:45 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceTraceabilityManagementDto extends DeviceTraceabilityManagement { |
| | | |
| | | @Schema(description = "设å¤é弿º¯æºè®¡å详æ
") |
| | | private List<DeviceTraceabilityManagementDetailsDto> deviceTraceabilityManagementDetails; |
| | | |
| | | @Schema(description = "ç¼å¶æ¥æ") |
| | | private String datePreparationStr; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥æ") |
| | | private String auditDateStr; |
| | | |
| | | @Schema(description = "设å¤Id") |
| | | private Integer deviceId; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.dto; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-13 ææäº 8:45:34 |
| | | * Description: ç¨äºä»ªå¨è®¾å¤æ¡£æ¡å¡çå¯¼åº |
| | | */ |
| | | @Data |
| | | public class DocumentExportWordDto { |
| | | |
| | | // è®¾å¤æ¡£æ¡å·¦å表 |
| | | @Schema(description = "åºå·") |
| | | private Integer index1; |
| | | |
| | | @Schema(description = "æ¡£æ¡åç§°") |
| | | private String name1; |
| | | |
| | | @Schema(description = "份æ°") |
| | | private Integer quantity1; |
| | | |
| | | @Schema(description = "页ç ") |
| | | private Integer pageCount1; |
| | | |
| | | @Schema(description = "彿¡£æ¥æ") |
| | | private String archiveDateString1; |
| | | |
| | | // è®¾å¤æ¡£æ¡å³å表 |
| | | @Schema(description = "åºå·") |
| | | private Integer index2; |
| | | |
| | | @Schema(description = "æ¡£æ¡åç§°") |
| | | private String name2; |
| | | |
| | | @Schema(description = "份æ°") |
| | | private Integer quantity2; |
| | | |
| | | @Schema(description = "页ç ") |
| | | private Integer pageCount2; |
| | | |
| | | @Schema(description = "彿¡£æ¥æ") |
| | | private String archiveDateString2; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.alibaba.excel.annotation.write.style.ColumnWidth; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DeviceMaintenanceExport { |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("æµç¨ç¼å·") |
| | | private String deviceNumber; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("管çç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @ColumnWidth(50) |
| | | @ExcelProperty("ç»´æ¤å
容") |
| | | private String content; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("ç»´æ¤æ¶é´") |
| | | private String date; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("䏿¬¡ç»´æ¤æ¶é´") |
| | | private String nextDate; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("ç»´æ¤ç±»å") |
| | | private String maintenanceType; |
| | | |
| | | @ColumnWidth(20) |
| | | @ExcelProperty("ç»´æ¤äºº") |
| | | private String name; |
| | | |
| | | @ColumnWidth(50) |
| | | @ExcelProperty("夿³¨") |
| | | private String comments; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.excel; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceRecord; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-10 ææäº 17:19:22 |
| | | * Description: |
| | | */ |
| | | @Data |
| | | public class DeviceRecordExportWord extends DeviceRecord { |
| | | @Schema(description = "使ç¨å0ä»£è¡¨ä¸æ£å¸¸1代表æ£å¸¸") |
| | | private String useBeforeString; |
| | | |
| | | @Schema(description = "使ç¨å0ä»£è¡¨ä¸æ£å¸¸1代表æ£å¸¸") |
| | | private String useAfterString; |
| | | |
| | | @Schema(description = "æä½æ¶é´ String yyyy-MM-dd") |
| | | private String operationDate; |
| | | |
| | | @Schema(description = "使ç¨å¼å§æ¥æ String yyyy-MM-dd \n HH:mm:ss") |
| | | private String useStartDateString; |
| | | |
| | | @Schema(description = "使ç¨ç»ææ¥æ String yyyy-MM-dd \n HH:mm:ss") |
| | | private String useEndDateString; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | public class DeviceStateExport { |
| | | @ExcelProperty(value = "设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @ExcelProperty(value = "è§æ ¼åå·") |
| | | private String specificationModel; |
| | | |
| | | @ExcelProperty(value = "管çç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @ExcelProperty("设å¤ç¶æ") |
| | | private String deviceStatus; |
| | | |
| | | @ExcelProperty("åç¨å¯ç¨çç±") |
| | | private String reason; |
| | | |
| | | @ExcelProperty("æäº¤äºº") |
| | | private String createUser; |
| | | |
| | | @ExcelProperty("æäº¤æ¥æ") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ExcelProperty("å½åç¶æ") |
| | | private String currentState; |
| | | |
| | | @ExcelProperty("å½åè´è´£äºº") |
| | | private String currentResponsible; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.excel.upload; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/12/20 |
| | | */ |
| | | @Data |
| | | public class DeviceCalibrationPlanDetailUpload { |
| | | |
| | | @Schema(description = "设å¤åç§°ååå·") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "è®¾å¤æ°é") |
| | | private String deviceAmount; |
| | | |
| | | @Schema(description = "仪å¨ç¼å·") |
| | | private String deviceNumber; |
| | | |
| | | @Schema(description = "æ£å®åä½") |
| | | private String verificationUnit; |
| | | |
| | | @Schema(description = "æ£å®å¨æ") |
| | | private String verificationCycles; |
| | | |
| | | @Schema(description = "æè¿æ£å®æ¶é´") |
| | | private String lastDate; |
| | | |
| | | @Schema(description = "æ¬å¹´è®¡åæ ¡åæ¶é´") |
| | | private String planDate; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.excel.upload; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/12/20 |
| | | */ |
| | | @Data |
| | | public class DeviceExaminePlanUpload { |
| | | |
| | | @Schema(description = "设å¤ç¼å·") |
| | | private String deviceNumber; |
| | | |
| | | @Schema(description = "计ååç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "æ ¸æ¥æ¶é´") |
| | | private String checkTime; |
| | | |
| | | @Schema(description = "æ ¸æ¥ææ ") |
| | | private String checkIndex; |
| | | |
| | | @Schema(description = "æ ¸æ¥æ¹æ³") |
| | | private String checkMethod; |
| | | |
| | | @Schema(description = "ç»æå¦ä½å¤å®") |
| | | private String howResults; |
| | | |
| | | @Schema(description = "æ ¸æ¥è´£ä»»äºº") |
| | | private String checkChargerUser; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.excel.upload; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.alibaba.excel.annotation.write.style.ColumnWidth; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ColumnWidth(22) |
| | | public class DeviceImport { |
| | | |
| | | @ExcelProperty("仪å¨åç§°*") |
| | | private String deviceName; |
| | | |
| | | @ExcelProperty("è§æ ¼åå·*") |
| | | private String specificationModel; |
| | | |
| | | @ExcelProperty("管çç¼å·*") |
| | | private String managementNumber; |
| | | |
| | | @ExcelProperty("æ ¡åæææ*(yyyy-MM-dd)") |
| | | private String activationDate; |
| | | |
| | | @ExcelProperty("æå±é¨é¨*") |
| | | private String laboratoryName; |
| | | |
| | | @ExcelProperty("å½åç¶æ*") |
| | | private String deviceStatus; |
| | | |
| | | @ExcelProperty("æ ¡å卿(æ)*") |
| | | private String calibrationDate; |
| | | |
| | | @ExcelProperty("è±æåç§°") |
| | | private String enDeviceName; |
| | | |
| | | @ExcelProperty("ç产åå®¶") |
| | | private String manufacturer; |
| | | |
| | | @ExcelProperty("åºåç¼å·") |
| | | private String factoryNo; |
| | | |
| | | @ExcelProperty("èµäº§ç¼ç ") |
| | | private String assetCode; |
| | | |
| | | @ExcelProperty("产å°") |
| | | private String origin; |
| | | |
| | | @ExcelProperty("è´ç½®æ¥æ(yyyy-MM-dd)") |
| | | private String acquisitionDate; |
| | | |
| | | @ExcelProperty("è´è´£äºº") |
| | | private String equipmentManagerName; |
| | | |
| | | @ExcelProperty("åæ¾ç¹") |
| | | private String storagePoint; |
| | | |
| | | @ExcelProperty("ææ¯ææ ") |
| | | private String technicalIndicators; |
| | | |
| | | @ExcelProperty("æ ¡åæå¡æºæ") |
| | | private String calibrationServices; |
| | | |
| | | @ExcelProperty("æè¿æ ¡åæ¥æ(yyyy-MM-dd)") |
| | | private String lastCalibrationDate; |
| | | |
| | | @ExcelProperty("䏿¬¡æ ¡åæ¥æ(yyyy-MM-dd)") |
| | | private String nextCalibrationDate; |
| | | |
| | | @ExcelProperty("设å¤ç±»å") |
| | | private String largeCategory; |
| | | |
| | | @ExcelProperty("åä»·(ä¸å
)") |
| | | private String unitPrice; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.CollectBridge; |
| | | |
| | | /** |
| | | * æ°åçµæ¡¥éé |
| | | * |
| | | * @author zhuo |
| | | * @since 2025-02-19 |
| | | */ |
| | | public interface CollectBridgeMapper extends BaseMapper<CollectBridge> { |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceConfigDtoPage; |
| | | import com.ruoyi.device.pojo.DataConfig; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-07-13 12:23:00 |
| | | */ |
| | | public interface DataConfigMapper extends BaseMapper<DataConfig> { |
| | | |
| | | List<DeviceConfigDtoPage> selectDataConfigList(Integer deviceId); |
| | | |
| | | List<Integer> deleteDataConfig(); |
| | | |
| | | /** |
| | | * æ¥è¯¢äºç»å®ä½æ¯æ²¡æé
ç½®çæ£éªé¡¹ |
| | | * @param deviceId |
| | | * @return |
| | | */ |
| | | IPage<DataConfig> getNoConfigProduct(@Param("page") Page page, @Param("deviceId") Integer deviceId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceAcceptanceFile; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤)é件表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:26 |
| | | */ |
| | | public interface DeviceAcceptanceFileMapper extends BaseMapper<DeviceAcceptanceFile> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.pojo.DeviceAcceptance; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤) Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:14 |
| | | */ |
| | | public interface DeviceAcceptanceMapper extends BaseMapper<DeviceAcceptance> { |
| | | |
| | | /** |
| | | * 设å¤éªæ¶å表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceAcceptance> pageDeviceAcceptance(Page page, @Param("ew") QueryWrapper<DeviceAcceptance> ew); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceAccidentReportDto; |
| | | import com.ruoyi.device.pojo.DeviceAccidentReport; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤äºæ
æ¥åå Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 06:31:12 |
| | | */ |
| | | public interface DeviceAccidentReportMapper extends BaseMapper<DeviceAccidentReport> { |
| | | |
| | | /** |
| | | * 设å¤äºæ
æ¥åå表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceAccidentReport> pageDeviceAccidentReport(Page page, @Param("ew") QueryWrapper<DeviceAccidentReport> ew); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤äºæ
æ¥å详æ
|
| | | * @param accidentReportId 设å¤äºæ
æ¥åid |
| | | * @return |
| | | */ |
| | | DeviceAccidentReportDto selectDeviceAccidentReportById(Integer accidentReportId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.pojo.DeviceBorrow; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 10:53:51 |
| | | */ |
| | | public interface DeviceBorrowMapper extends BaseMapper<DeviceBorrow> { |
| | | |
| | | IPage<DeviceBorrow> deviceBorrowPage(Page page, @Param("ew")QueryWrapper<DeviceBorrow> ew); |
| | | |
| | | List<DeviceBorrow> getDeviceBorrowBydeviceId(Integer deviceId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceBreakdownMaintenance; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ
é维修表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 04:50:57 |
| | | */ |
| | | public interface DeviceBreakdownMaintenanceMapper extends BaseMapper<DeviceBreakdownMaintenance> { |
| | | |
| | | /** |
| | | * è®¾å¤æ
éç»´ä¿®å表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceBreakdownMaintenance> pageDeviceBreakdownMaintenance(Page page, @Param("ew") QueryWrapper<DeviceBreakdownMaintenance> ew); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlanDetail; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å详æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:29 |
| | | */ |
| | | public interface DeviceCalibrationPlanDetailMapper extends BaseMapper<DeviceCalibrationPlanDetail> { |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计å详æ
å表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceCalibrationPlanDetail> pageDeviceCalibrationPlanDetail(Page page, @Param("ew") QueryWrapper<DeviceCalibrationPlanDetail> ew); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceCalibrationPlanDto; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlan; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å主表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:17 |
| | | */ |
| | | public interface DeviceCalibrationPlanMapper extends BaseMapper<DeviceCalibrationPlan> { |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计åå表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceCalibrationPlanDto> pageDeviceCalibrationPlan(Page page, @Param("ew") QueryWrapper<DeviceCalibrationPlan> ew); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceDocuments; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @Mapper |
| | | public interface DeviceDocumentsMapper extends BaseMapper<DeviceDocuments> { |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDetailsDto; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å详æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:16 |
| | | */ |
| | | public interface DeviceExaminePlanDetailsMapper extends BaseMapper<DeviceExaminePlanDetails> { |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡å详æ
å表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceExaminePlanDetailsDto> pageDeviceExaminePlanDetail(Page page, @Param("ew") QueryWrapper<DeviceExaminePlanDetails> ew); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDto; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlan; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å主表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:04 |
| | | */ |
| | | public interface DeviceExaminePlanMapper extends BaseMapper<DeviceExaminePlan> { |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åå表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceExaminePlanDto> deviceExaminePlanDetailsMapper(Page page, @Param("ew") QueryWrapper<DeviceExaminePlan> ew); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ ¸æ¥è®¡å详æ
|
| | | * @param deviceExaminePlanId è®¾å¤æ ¸æ¥è®¡åid |
| | | * @return |
| | | */ |
| | | DeviceExaminePlanDto selectExamineExaminePlanDto(@Param("deviceExaminePlanId") Integer deviceExaminePlanId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrastDetails; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¯¦æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:57 |
| | | */ |
| | | public interface DeviceExamineRecordContrastDetailsMapper extends BaseMapper<DeviceExamineRecordContrastDetails> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordContrastDto; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrast; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:43 |
| | | */ |
| | | public interface DeviceExamineRecordContrastMapper extends BaseMapper<DeviceExamineRecordContrast> { |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @param planDetailsId |
| | | * @return |
| | | */ |
| | | DeviceExamineRecordContrastDto getExamineRecordContrast(Integer planDetailsId); |
| | | |
| | | /** |
| | | * æ¥è¯¢å¯¹æ¯è®°å½ç¨äºå¯¼åº |
| | | * @param planDetailsId |
| | | * @return |
| | | */ |
| | | DeviceExamineRecordContrastDto selectExamineRecordContrastDto(@Param("planDetailsId") Integer planDetailsId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½è¯¦æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:15:11 |
| | | */ |
| | | public interface DeviceExamineRecordDetailMapper extends BaseMapper<DeviceExamineRecordDetail> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecord; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:28 |
| | | */ |
| | | public interface DeviceExamineRecordMapper extends BaseMapper<DeviceExamineRecord> { |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ ¸æ¥è®°å½ |
| | | * @param planDetailsId |
| | | * @return |
| | | */ |
| | | DeviceExamineRecordDto getExamineRecord(Integer planDetailsId); |
| | | |
| | | /** |
| | | * 夿 ¸æ ¸æ¥è®°å½ |
| | | * @param planDetailsId 夿 ¸æ ¸æ¥è®°å½id |
| | | * @return |
| | | */ |
| | | DeviceExamineRecordDto selectReviewExamineRecordDto(@Param("planDetailsId") Integer planDetailsId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.pojo.DeviceExternalApply; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 10:28:43 |
| | | */ |
| | | public interface DeviceExternalApplyMapper extends BaseMapper<DeviceExternalApply> { |
| | | |
| | | /** |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·å表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceExternalApply> pageDeviceExternalApply(Page page, @Param("ew") QueryWrapper<DeviceExternalApply> ew); |
| | | |
| | | /** |
| | | * å¯¼åºæ¥è¯¢å©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * @param externalApplyId å¤é¨è®¾å¤ç³è¯·è¡¨id |
| | | * @return |
| | | */ |
| | | DeviceExternalApply selectDeviceExternalById(@Param("externalApplyId") Integer externalApplyId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.ruoyi.device.dto.DeviceImpowerDetailsDto; |
| | | import com.ruoyi.device.pojo.DeviceImpowerDetails; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å详æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:39 |
| | | */ |
| | | public interface DeviceImpowerDetailsMapper extends BaseMapper<DeviceImpowerDetails> { |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ä½¿ç¨è¯¦æ
|
| | | * @param impowerId |
| | | * @return |
| | | */ |
| | | List<DeviceImpowerDetailsDto> deviceImpowerDetailsList(@Param("impowerId") Integer impowerId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceImpowerDto; |
| | | import com.ruoyi.device.dto.DeviceTraceabilityManagementDto; |
| | | import com.ruoyi.device.pojo.DeviceImpower; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:23 |
| | | */ |
| | | public interface DeviceImpowerMapper extends BaseMapper<DeviceImpower> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ä½¿ç¨ææ |
| | | * @param page |
| | | * @param deviceImpowerDtoQueryWrapper |
| | | * @return |
| | | */ |
| | | IPage<DeviceImpower> selectDeviceParameterPage(@Param("page") Page page, @Param("ew") QueryWrapper<DeviceImpowerDto> deviceImpowerDtoQueryWrapper); |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥è¯¢è®¾å¤ä½¿ç¨ææ |
| | | * @param traceabilityManagementId |
| | | * @return |
| | | */ |
| | | DeviceTraceabilityManagementDto selectDeviceTraceabilityManagementById(@Param("traceabilityManagementId") Integer traceabilityManagementId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecordDetails; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:27:32 |
| | | */ |
| | | public interface DeviceInspectionRecordDetailsMapper extends BaseMapper<DeviceInspectionRecordDetails> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceInspectionRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecord; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:25:14 |
| | | */ |
| | | public interface DeviceInspectionRecordMapper extends BaseMapper<DeviceInspectionRecord> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ç¹æ£è®°å½ |
| | | * @param page |
| | | * @param queryWrappers |
| | | * @return |
| | | */ |
| | | IPage<DeviceInspectionRecord> selectDeviceParameterPage(Page page, @Param("ew") QueryWrapper<DeviceInspectionRecordDto> queryWrappers); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceLog; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface DeviceLogMapper extends BaseMapper<DeviceLog> { |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceMaintenanceDto; |
| | | import com.ruoyi.device.pojo.DeviceMaintenance; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 设å¤ç»´æ¤ä¿å
» |
| | | */ |
| | | @Mapper |
| | | public interface DeviceMaintenanceMapper extends BaseMapper<DeviceMaintenance> { |
| | | |
| | | /** |
| | | * 设å¤ç»´æ¤å页æ¥è¯¢ |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<DeviceMaintenanceDto> selectDeviceMaintenancePage(@Param("page") Page page, @Param("ew") QueryWrapper<DeviceMaintenanceDto> ew); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.dto.DeviceMaintenancePlanDetailsDto; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlanDetails; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å详æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:11:46 |
| | | */ |
| | | public interface DeviceMaintenancePlanDetailsMapper extends BaseMapper<DeviceMaintenancePlanDetails> { |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ä¿å
»è¯¦æ
|
| | | * @param maintenancePlanId 设å¤ä¿å
»è®¡åid |
| | | */ |
| | | List<DeviceMaintenancePlanDetailsDto> deviceInspectionRecordDetailsList(@Param("maintenancePlanId") Integer maintenancePlanId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceMaintenancePlanDto; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlan; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:10:52 |
| | | */ |
| | | public interface DeviceMaintenancePlanMapper extends BaseMapper<DeviceMaintenancePlan> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ä¿å
»è®¡å |
| | | * @param page å½å页 |
| | | * @param queryWrappers æ¥è¯¢æ¡ä»¶ |
| | | * @return |
| | | */ |
| | | IPage<DeviceMaintenancePlan> selectDeviceParameterPage(Page page, @Param("ew") QueryWrapper<DeviceMaintenancePlanDto> queryWrappers); |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿å
»è®¡åidæ¥è¯¢è®¾å¤ä¿å
»è®¡å |
| | | * @param maintenancePlanId ä¿å
»è®¡åid |
| | | * @return |
| | | */ |
| | | DeviceMaintenancePlanDto selectMaintenancePlanById(@Param("maintenancePlanId") Integer maintenancePlanId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceDto; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 设å¤(Device)è¡¨æ°æ®åºè®¿é®å± |
| | | */ |
| | | public interface DeviceMapper extends BaseMapper<Device> { |
| | | |
| | | IPage<Device> selectDeviceParameter(Page page, QueryWrapper<Device> ew); |
| | | List<Device> selectEquipmentOverview(Page page, QueryWrapper<Device> ew); |
| | | |
| | | //è·å被ææäºº |
| | | List<Device> authorizedPerson(); |
| | | |
| | | //æ¥è¯¢ |
| | | List<Device> search(@Param(value = "status") Integer status, @Param(value = "deviceName") String deviceName, |
| | | @Param(value = "specificationModel") String specificationModel, @Param(value = "largeCategory") String largeCategory); |
| | | |
| | | //è·åå¾çæ°æ® |
| | | void selectDeviceImage(@Param(value = "name") String name ,@Param(value = "id") Integer id); |
| | | |
| | | IPage<DeviceDto> selectDeviceParameterPage(Page page, @Param("ew") QueryWrapper<DeviceDto> queryWrappers, @Param("laboratoryNameIsNull") Boolean laboratoryNameIsNull); |
| | | |
| | | List<Map<String, Object>> getInspectionItemSubclass(@Param("id") Integer id); |
| | | |
| | | List<Map<String, Object>> treeDevice(@Param("deviceName") String deviceName); |
| | | |
| | | DeviceDto selectDeviceByCode(Integer id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å°è¾¾æ ¡åæææç设å¤-æå5天 |
| | | * @return |
| | | */ |
| | | List<Device> selectOverdueDevice(); |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceMetric; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface DeviceMetricMapper extends BaseMapper<DeviceMetric> { |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceMetricRecord; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:01 |
| | | */ |
| | | public interface DeviceMetricRecordMapper extends BaseMapper<DeviceMetricRecord> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.pojo.DeviceMetricsCopy; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ - æ ¡åæ¡ç® Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:11 |
| | | */ |
| | | public interface DeviceMetricsCopyMapper extends BaseMapper<DeviceMetricsCopy> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceRecord; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * cnas设å¤ä½¿ç¨è®°å½è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 11:06:47 |
| | | */ |
| | | public interface DeviceRecordMapper extends BaseMapper<DeviceRecord> { |
| | | |
| | | IPage<DeviceRecordDto> deviceRecordPage(@Param("deviceId") Integer deviceId, @Param("page") Page page, @Param("sampleCode") String sampleCode, @Param("managementNumber") String managementNumber, @Param("userId") Integer userId); |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æªå¡«åçè®¾å¤ |
| | | * @return |
| | | */ |
| | | List<DeviceRecordDto> selectNotFilled(); |
| | | |
| | | /** |
| | | * æ¥è¯¢å¯¼åºè®¾å¤ä½¿ç¨è®°å½ |
| | | * @param deviceId |
| | | * @param exportDate |
| | | * @return |
| | | */ |
| | | List<DeviceRecord> selectExportList(@Param("deviceId") Integer deviceId, @Param("exportDate") String exportDate); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceScrappedDto; |
| | | import com.ruoyi.device.pojo.DeviceScrapped; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ¥åºç³è¯·è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 01:53:47 |
| | | */ |
| | | public interface DeviceScrappedMapper extends BaseMapper<DeviceScrapped> { |
| | | |
| | | /** |
| | | * è®¾å¤æ¥åºç³è¯·å表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<DeviceScrapped> pageDeviceScrapped(Page page, @Param("ew") QueryWrapper<DeviceScrapped> ew); |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥è¯¢è®¾å¤æ¥åºç³è¯· |
| | | * @param scrappedId |
| | | * @return |
| | | */ |
| | | DeviceScrappedDto selectDeviceScrappedById(@Param("scrappedId") Integer scrappedId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceStateDto; |
| | | import com.ruoyi.device.pojo.DeviceState; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤åç¨/å¯ç¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-26 09:51:40 |
| | | */ |
| | | public interface DeviceStateMapper extends BaseMapper<DeviceState> { |
| | | |
| | | IPage<DeviceStateDto> getDeviceStatePage(@Param("deviceId") Integer deviceId, @Param("page") Page page, @Param("processNumber") String processNumber); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.dto.DeviceTraceabilityManagementDetailsDto; |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagementDetails; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å详æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:58 |
| | | */ |
| | | public interface DeviceTraceabilityManagementDetailsMapper extends BaseMapper<DeviceTraceabilityManagementDetails> { |
| | | |
| | | /** |
| | | * æ ¹æ®æº¯æºè®¡åidæ¥è¯¢æº¯æºè®¡å详æ
|
| | | * @param traceabilityManagementId 溯æºè®¡åid |
| | | * @return 溯æºè®¡å详æ
|
| | | */ |
| | | List<DeviceTraceabilityManagementDetailsDto> deviceTraceabilityManagementDetailsList(@Param("traceabilityManagementId") Integer traceabilityManagementId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ruoyi.device.dto.DeviceTraceabilityManagementDto; |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagement; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:44 |
| | | */ |
| | | public interface DeviceTraceabilityManagementMapper extends BaseMapper<DeviceTraceabilityManagement> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤é弿º¯æºè®¡å |
| | | * @param page |
| | | * @param queryWrappers |
| | | * @return |
| | | */ |
| | | IPage<DeviceTraceabilityManagement> selectDeviceParameterPage(IPage page, @Param("ew") QueryWrapper<DeviceTraceabilityManagementDto> ew); |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥è¯¢è®¾å¤é弿º¯æºè®¡å |
| | | * @param traceabilityManagementId |
| | | * @return |
| | | */ |
| | | DeviceTraceabilityManagementDto selectDeviceTraceabilityManagementById(@Param("traceabilityManagementId") Integer traceabilityManagementId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.device.dto.DeviceOperationInstructionDto; |
| | | import com.ruoyi.device.pojo.DeviceInstruction; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½ä¸æå¯¼ä¹¦æ·»å åæ§æä»¶è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:29:18 |
| | | */ |
| | | public interface InstructionMapper extends BaseMapper<DeviceInstruction> { |
| | | |
| | | |
| | | IPage<DeviceOperationInstructionDto> pageByPageQueryOfHomeworkInstructions(Page page, @Param("ew") QueryWrapper<DeviceOperationInstructionDto> ew); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.device.dto.DeviceOperationInstructionDto; |
| | | import com.ruoyi.device.pojo.OperationInstruction; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤ - ä½ä¸æå¯¼ä¹¦ æ·»å åæ§æä»¶ å Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:43:32 |
| | | */ |
| | | public interface OperationInstructionMapper extends BaseMapper<OperationInstruction> { |
| | | |
| | | List<DeviceOperationInstructionDto> homeworkGuidebookEditor(Integer instructionId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ°åçµæ¡¥éé |
| | | * |
| | | * @author zhuo |
| | | * @since 2025-02-19 |
| | | */ |
| | | @Data |
| | | @TableName("collect_bridge") |
| | | public class CollectBridge { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "å§æç¼å·") |
| | | private String entrustCode; |
| | | |
| | | @Schema(description = "ééå¼") |
| | | private String collectValue; |
| | | |
| | | @Schema(description = "æ¶é´") |
| | | private LocalDateTime collectDate; |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-07-13 12:23:00 |
| | | */ |
| | | @Data |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("device_data_config") |
| | | @Schema(description = "") |
| | | public class DataConfig implements Serializable { |
| | | |
| | | @Schema(description = "主é®id") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "å
¬å¼") |
| | | private String formula; |
| | | |
| | | @Schema(description = "åç
§X") |
| | | private String referx; |
| | | |
| | | @Schema(description = "åç
§Y") |
| | | private String refery; |
| | | |
| | | @Schema(description = "x") |
| | | private String x; |
| | | |
| | | @Schema(description = "y") |
| | | private String y; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "æ£éªé¡¹åç±»") |
| | | private String inspectionItemClass; |
| | | |
| | | @Schema(description = "æ£éªé¡¹ç®") |
| | | private String inspectionItem; |
| | | |
| | | @Schema(description = "æ£éªé¡¹å项") |
| | | private String inspectionItemSubclass; |
| | | |
| | | @TableField(exist = false) |
| | | @Schema(description = "æ£éªé¡¹å项") |
| | | private String insProductItem; |
| | | |
| | | @Schema(description = "æ£éªé¡¹id") |
| | | private Integer structureItemParameterId; |
| | | |
| | | @Schema(description = "åºå·") |
| | | private String serialNumber; |
| | | |
| | | @Schema(description = "å«å") |
| | | private String anotherName; |
| | | |
| | | @Schema(description = "å¹é
åç§°") |
| | | private String matchingName; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | private Boolean isDevice; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | private String sample; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 设å¤(Device)表对象 |
| | | */ |
| | | @TableName(value = "device") |
| | | @Data |
| | | public class Device implements Serializable { |
| | | |
| | | @Schema(description = "主é®") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "en设å¤åç§°") |
| | | private String enDeviceName; |
| | | |
| | | @Schema(description = "è§æ ¼åå·") |
| | | private String specificationModel; |
| | | |
| | | @Schema(description = "ç产åå®¶") |
| | | private String manufacturer; |
| | | |
| | | @Schema(description = "åºåç¼å·") |
| | | private String factoryNo; |
| | | |
| | | @Schema(description = "管çç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @Schema(description = "ææ¯ææ ") |
| | | private String technicalIndicators; |
| | | |
| | | @Schema(description = "è´ç½®æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime acquisitionDate; |
| | | |
| | | @Schema(description = "æ ¡åæææ¥æ") |
| | | private LocalDateTime activationDate; |
| | | |
| | | @Schema(description = "管ç人Id") |
| | | private Integer equipmentManager; |
| | | |
| | | @Schema(description = "åæ¾ç¹") |
| | | private String storagePoint; |
| | | |
| | | @Schema(description = "æå±é¨é¨Id") |
| | | private Integer subordinateDepartmentsId; |
| | | |
| | | @Schema(description = "æ£éªé¡¹ç®Id") |
| | | private String insProductIds; |
| | | |
| | | @Schema(description = "æ ¡åæå¡æºæ") |
| | | private String calibrationServices; |
| | | |
| | | @Schema(description = "æè¿æ ¡åæ¥æ") |
| | | private LocalDateTime lastCalibrationDate; |
| | | |
| | | @Schema(description = "䏿¬¡æ ¡åæ¥æ") |
| | | private LocalDateTime nextCalibrationDate; |
| | | |
| | | @Schema(description = "设å¤ç±»å") |
| | | private String largeCategory; |
| | | |
| | | @Schema(description = "åä»·") |
| | | private BigDecimal unitPrice; |
| | | |
| | | @Schema(description = "设å¤ç¶æ") |
| | | private Integer deviceStatus; |
| | | |
| | | @Schema(description = "æ ¡å卿(æ)") |
| | | private String calibrationDate; |
| | | |
| | | @Schema(description = "å¾çä¸ä¼ ") |
| | | private String imageUpload; |
| | | |
| | | @Schema(description = "å¾ç夿³¨") |
| | | private String imageName; |
| | | |
| | | @Schema(description = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "æ°é-æä»¶åç¼") |
| | | private String fileType; |
| | | |
| | | @Schema(description = "æ°é-ééå°å") |
| | | private String collectUrl; |
| | | |
| | | @Schema(description = "æ°é-åå¨å°å") |
| | | private String storageUrl; |
| | | |
| | | @Schema(description = "æ°é-设å¤IP") |
| | | private String ip; |
| | | |
| | | @Schema(description = "æ°é-æ¯å¦ä¸ºæ°é设å¤") |
| | | @TableField(exist = false) |
| | | private Boolean isItADataAcquisitionDevice; |
| | | |
| | | @Schema(description = "æ°é-å§æåæ®µ") |
| | | private String entrustCode; |
| | | |
| | | @Schema(description = "æ°é-æ ·ååæ®µ") |
| | | private String sampleCode; |
| | | |
| | | @Schema(description = "æ°é-dbï¼mdbæä»¶åç§°") |
| | | private String dbFileName; |
| | | |
| | | @Schema(description = "被ææäºº") |
| | | private String authorizedPerson; |
| | | |
| | | @Schema(description = "èµäº§ç¼ç ") |
| | | private String assetCode; |
| | | |
| | | @Schema(description = "产å°") |
| | | private String origin; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤) |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:14 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_acceptance") |
| | | @Schema(description = "设å¤éªæ¶(è£
å¤)") |
| | | public class DeviceAcceptance { |
| | | |
| | | @TableId(value = "acceptance_id", type = IdType.AUTO) |
| | | private Integer acceptanceId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "å°è´§æ¥æ") |
| | | private LocalDate arrivalDate; |
| | | |
| | | @Schema(description = "éé¢") |
| | | private String goldAmount; |
| | | |
| | | @Schema(description = "ç»´ä¿®åä½") |
| | | private String maintenanceunit; |
| | | |
| | | @Schema(description = "æ¶è®¾å¤ä¸»æºåå¤ä»½æ
åµ") |
| | | private String spareParts; |
| | | |
| | | @Schema(description = "å®è£
åè°è¯æ
åµ") |
| | | private String installationDebugging; |
| | | |
| | | @Schema(description = "éªæ¶æ
åµ") |
| | | private String checkSituation; |
| | | |
| | | @Schema(description = "æ¥æ¶ç¾å") |
| | | private String receivingSignature; |
| | | |
| | | @Schema(description = "å家代表") |
| | | private String producer; |
| | | |
| | | @Schema(description = "æ¥æ¶äºº") |
| | | private String recipient; |
| | | |
| | | @Schema(description = "æ¥æ¶æ¶é´") |
| | | private String recipientDate; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤)é件表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:26 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_acceptance_file") |
| | | @Schema(description = "设å¤éªæ¶(è£
å¤)é件表") |
| | | public class DeviceAcceptanceFile implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "acceptance_file_id", type = IdType.AUTO) |
| | | private Integer acceptanceFileId; |
| | | |
| | | @Schema(description = "设å¤éªæ¶id") |
| | | private Integer acceptanceId; |
| | | |
| | | @Schema(description = "ç±»å:1å¾ç/2æä»¶") |
| | | private Integer type; |
| | | |
| | | @Schema(description = "éä»¶è·¯å¾") |
| | | private String fileUrl; |
| | | |
| | | @Schema(description = "éä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤äºæ
æ¥åå |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 06:31:12 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_accident_report") |
| | | @Schema(description = "设å¤äºæ
æ¥åå") |
| | | public class DeviceAccidentReport { |
| | | |
| | | @TableId(value = "accident_report_id", type = IdType.AUTO) |
| | | private Integer accidentReportId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "å°å") |
| | | private String address; |
| | | |
| | | @Schema(description = "æ¶é´") |
| | | private LocalDateTime accidentDate; |
| | | |
| | | @Schema(description = "äºæ
æ
åµæè¿°") |
| | | private String descriptionOfAccident; |
| | | |
| | | @Schema(description = "æ¥å人id") |
| | | private Integer reportUserId; |
| | | |
| | | @Schema(description = "æ¥å人") |
| | | private String reportUser; |
| | | |
| | | @Schema(description = "æ¥åäººå¡«åæ¶é´") |
| | | private LocalDate reportDate; |
| | | |
| | | @Schema(description = "è¯ä¼°äººæè§") |
| | | private String assessorOpinion; |
| | | |
| | | @Schema(description = "è¯ä¼°äººid") |
| | | private Integer assessorUserId; |
| | | |
| | | @Schema(description = "è¯ä¼°äºº") |
| | | private String assessorUser; |
| | | |
| | | @Schema(description = "è¯ä¼°äººå¡«åæ¶é´") |
| | | private LocalDate assessorDate; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººæè§") |
| | | private String departmentHeadOpinion; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººid") |
| | | private Integer departmentHeadUserId; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äºº") |
| | | private String departmentHeadUser; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººå¡«åæ¶é´") |
| | | private LocalDate departmentHeadDate; |
| | | |
| | | @Schema(description = "ææ¯è´è´£äººæè§") |
| | | private String technicalDirectorOpinion; |
| | | |
| | | @Schema(description = "ææ¯è´è´£äººid") |
| | | private Integer technicalDirectorUserId; |
| | | |
| | | @Schema(description = "ææ¯è´è´£äºº") |
| | | private String technicalDirectorUser; |
| | | |
| | | @Schema(description = "ææ¯è´è´£äººå¡«åæ¶é´") |
| | | private LocalDate technicalDirectorDate; |
| | | |
| | | @Schema(description = "主任æè§") |
| | | private String directorHeadOpinion; |
| | | |
| | | @Schema(description = "主任id") |
| | | private Integer directorHeadUserId; |
| | | |
| | | @Schema(description = "主任") |
| | | private String directorHeadUser; |
| | | |
| | | @Schema(description = "䏻任填忶é´") |
| | | private LocalDate directorHeadDate; |
| | | |
| | | @Schema(description = "æ¯å¦ç»æ,0 æªç»æ, 1ç»æ") |
| | | private Integer isFinish; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | @Schema(description = "æµç¨, 0:æ¥å, 1è¯ä¼°, 2:é¨é¨è´è´£äººæè§, 3:ææ¯è´è´£äººæè§, 4:主任æè§") |
| | | private Integer flowType; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnore; |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 10:53:51 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_borrow") |
| | | @Schema(description = "设å¤åç¨") |
| | | @ExcelIgnoreUnannotated |
| | | public class DeviceBorrow implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "æµç¨ç¼å·") |
| | | @ExcelProperty(value = "æµç¨ç¼å·") |
| | | private String processNumber; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "管çç¼å·") |
| | | @ExcelProperty(value = "管çç¼å·") |
| | | private String unifyNumber; |
| | | |
| | | @Schema(description = "åç¨äºº") |
| | | @ExcelProperty(value = "åç¨äºº") |
| | | private String recipientUser; |
| | | |
| | | @ExcelProperty(value = "åç¨äººèç³»æ¹å¼") |
| | | @Schema(description = "åç¨äººèç³»æ¹å¼") |
| | | private String borrowerContactInformation; |
| | | |
| | | @Schema(description = "åç¨æ¶ç¶æ") |
| | | @ExcelProperty(value = "åç¨æ¶ç¶æ") |
| | | //0åæ ¼;1ç»´ä¿®;2åç¨;3æ¥åº |
| | | private Integer recipientState; |
| | | |
| | | @Schema(description = "åç¨æ¥æ") |
| | | @ExcelProperty(value = "æäº¤æ¥æ") |
| | | private Date recipientTime; |
| | | |
| | | @Schema(description = "ååºäºº") |
| | | @ExcelProperty(value = "ååºäºº") |
| | | private String submitUser; |
| | | |
| | | @Schema(description = "ååºæ¥æ") |
| | | @ExcelProperty(value = "ååºæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "å½åç¶æ") |
| | | @ExcelProperty(value = "å½åç¶æ") |
| | | private String nowState; |
| | | |
| | | @Schema(description = "å½å责任人") |
| | | @ExcelProperty(value = "å½å责任人") |
| | | private String nowUser; |
| | | |
| | | @Schema(description = "éä»¶") |
| | | //è·¯å¾ |
| | | private String url; |
| | | |
| | | @Schema(description = "éä»¶") |
| | | @ExcelProperty(value = "éä»¶") |
| | | //æä»¶å |
| | | private String fileName; |
| | | |
| | | @Schema(description = "ä¸ç¯è责任人") |
| | | private String nextUser; |
| | | |
| | | @Schema(description = "æäº¤æä½äºº") |
| | | private String submitOperationUser; |
| | | |
| | | @Schema(description = "æäº¤æä½æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime submitOperationTime; |
| | | |
| | | @Schema(description = "å½è¿äºº") |
| | | private String rebackUser; |
| | | |
| | | @Schema(description = "å½è¿æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime rebackTime; |
| | | |
| | | @Schema(description = "æ¥åç¶æ0åæ ¼;1ç»´ä¿®;2åç¨;3æ¥åº") |
| | | private Integer receiveState; |
| | | |
| | | @Schema(description = "设å¤è´£ä»»äºº") |
| | | private String deviceUser; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String note; |
| | | |
| | | @Schema(description = "æ¥æ¶æä½äºº") |
| | | private String receiveOperationUser; |
| | | |
| | | @Schema(description = "æ¥æ¶æä½æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime receiveOperationTime; |
| | | |
| | | @Schema(description = "设å¤åç§°") |
| | | @TableField(select = false, exist = false) |
| | | @ExcelProperty(value = "设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | |
| | | @Schema(description = "æµç¨è·è¸ª") |
| | | @TableField(select = false, exist = false) |
| | | private List<DeviceLog> deviceLogs; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å主表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:17 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_calibration_plan") |
| | | @Schema(description = "è®¾å¤æ ¡å计å主表") |
| | | public class DeviceCalibrationPlan{ |
| | | |
| | | @TableId(value = "plan_id", type = IdType.AUTO) |
| | | private Integer planId; |
| | | |
| | | @Schema(description = "计ååç§°") |
| | | private String planName; |
| | | |
| | | @Schema(description = "计å年份") |
| | | private String planYear; |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private Integer writeUserId; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | private LocalDateTime writeTime; |
| | | |
| | | @Schema(description = "æ¹å人") |
| | | private Integer ratifyUserId; |
| | | |
| | | @Schema(description = "æ¹åæ¶é´") |
| | | private LocalDateTime ratifyTime; |
| | | |
| | | @Schema(description = "æ¹åç¶æ,0 ä¸éè¿, 1 éè¿") |
| | | private Integer ratifyStatus; |
| | | |
| | | @Schema(description = "æ¹åä¿¡æ¯") |
| | | private String ratifyRemark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å详æ
表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:29 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_calibration_plan_detail") |
| | | @Schema(description = "è®¾å¤æ ¡å计å详æ
表") |
| | | public class DeviceCalibrationPlanDetail{ |
| | | |
| | | @TableId(value = "plan_detail_id", type = IdType.AUTO) |
| | | private Integer planDetailId; |
| | | |
| | | @Schema(description = "计å主表id") |
| | | private Integer planId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "设å¤åç§°ååå·") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "è®¾å¤æ°é") |
| | | private String deviceAmount; |
| | | |
| | | @Schema(description = "仪å¨ç¼å·") |
| | | private String deviceNumber; |
| | | |
| | | @Schema(description = "æ£å®åä½") |
| | | private String verificationUnit; |
| | | |
| | | @Schema(description = "æ£å®å¨æ") |
| | | private String verificationCycles; |
| | | |
| | | @Schema(description = "æè¿æ£å®æ¶é´") |
| | | private LocalDate lastDate; |
| | | |
| | | @Schema(description = "æ¬å¹´è®¡åæ ¡åæ¶é´") |
| | | private LocalDate planDate; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @Data |
| | | @TableName(value = "device_documents") |
| | | public class DeviceDocuments implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主é®ID |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * ææ¡£ç±»åï¼æä¸¾ï¼ |
| | | */ |
| | | private String documentType; |
| | | |
| | | /** |
| | | * åç§° |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * çæ¬å· |
| | | */ |
| | | private String version; |
| | | |
| | | /** |
| | | * æ°é |
| | | */ |
| | | private Integer quantity; |
| | | |
| | | /** |
| | | * é¡µæ° |
| | | */ |
| | | private Integer pageCount; |
| | | |
| | | /** |
| | | * æä¾å |
| | | */ |
| | | private String provider; |
| | | |
| | | /** |
| | | * æä¾æ¥æ |
| | | */ |
| | | private LocalDateTime provideDate; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | private String comments; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * æ´æ°æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "èµäº§ç¼å·") |
| | | private String number; |
| | | |
| | | @Schema(description = "åå§æä»¶åç§°") |
| | | private String systemFileName; |
| | | |
| | | @Schema(description = "ç³»ç»çææä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å主表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:04 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_examine_plan") |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è®¡å主表") |
| | | public class DeviceExaminePlan{ |
| | | |
| | | @TableId(value = "plan_id", type = IdType.AUTO) |
| | | private Integer planId; |
| | | |
| | | @Schema(description = "计ååç§°") |
| | | private String planName; |
| | | |
| | | @Schema(description = "计ååç§°") |
| | | private String planYear; |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private Integer writeUserId; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | private LocalDateTime writeTime; |
| | | |
| | | @Schema(description = "æ¹å人") |
| | | private Integer ratifyUserId; |
| | | |
| | | @Schema(description = "æ¹åæ¶é´") |
| | | private LocalDateTime ratifyTime; |
| | | |
| | | @Schema(description = "æ¹åç¶æ,0 ä¸éè¿, 1 éè¿") |
| | | private Integer ratifyStatus; |
| | | |
| | | @Schema(description = "æ¹åä¿¡æ¯") |
| | | private String ratifyRemark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å详æ
表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:16 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_examine_plan_details") |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è®¡å详æ
表") |
| | | public class DeviceExaminePlanDetails { |
| | | |
| | | @TableId(value = "plan_details_id", type = IdType.AUTO) |
| | | private Integer planDetailsId; |
| | | |
| | | @Schema(description = "主表id") |
| | | private Integer planId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "设å¤ç¼å·") |
| | | private String deviceNumber; |
| | | |
| | | @Schema(description = "计ååç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "æ ¸æ¥æ¶é´") |
| | | private String checkTime; |
| | | |
| | | @Schema(description = "æ ¸æ¥ææ ") |
| | | private String checkIndex; |
| | | |
| | | @Schema(description = "æ ¸æ¥æ¹æ³") |
| | | private String checkMethod; |
| | | |
| | | @Schema(description = "ç»æå¦ä½å¤å®") |
| | | private String howResults; |
| | | |
| | | @Schema(description = "æ ¸æ¥è´£ä»»äººid") |
| | | private Integer checkChargerUserId; |
| | | |
| | | @Schema(description = "æ ¸æ¥è´£ä»»äºº") |
| | | private String checkChargerUser; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½è¡¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:28 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_examine_record") |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è®°å½è¡¨") |
| | | public class DeviceExamineRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "record_id", type = IdType.AUTO) |
| | | private Integer recordId; |
| | | |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è¯¦æ
id") |
| | | private Integer planDetailsId; |
| | | |
| | | @Schema(description = "精度ç级") |
| | | private String accuracyGrade; |
| | | |
| | | @Schema(description = "使ç¨ç©è´¨åç§°") |
| | | private String materialName; |
| | | |
| | | @Schema(description = "使ç¨ç©è´¨ç®¡çç¼å·") |
| | | private String materialNumber; |
| | | |
| | | @Schema(description = "使ç¨ç©è´¨ç²¾åº¦/ä¸ç¡®å®åº¦") |
| | | private String materialAccuracyUncertainty; |
| | | |
| | | @Schema(description = "使ç¨ç©è´¨è§æ ¼åå·") |
| | | private String materialModel; |
| | | |
| | | @Schema(description = "使ç¨ç©è´¨æ ¸æ¥æ¹å¼") |
| | | private String materialCheckMethod; |
| | | |
| | | @Schema(description = "使ç¨ç©è´¨æ ¸æ¥é¡¹ç®") |
| | | private String materialCheckItems; |
| | | |
| | | @Schema(description = "温度") |
| | | private String temperature; |
| | | |
| | | @Schema(description = "湿度") |
| | | private String humidity; |
| | | |
| | | @Schema(description = "å¤å®") |
| | | private String determine; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "æ ¸æ¥äººid") |
| | | private Integer checkerUserId; |
| | | |
| | | @Schema(description = "æ ¸æ¥äºº") |
| | | private String checkerUser; |
| | | |
| | | @Schema(description = "夿 ¸äººid") |
| | | private Integer reviewUserId; |
| | | |
| | | @Schema(description = "夿 ¸äºº") |
| | | private String reviewUser; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç¶æ0,ä¸éè¿, 1éè¿") |
| | | private Integer reviewStatus; |
| | | |
| | | @Schema(description = "å®¡æ ¸å¤æ³¨") |
| | | private String reviewRemark; |
| | | |
| | | @Schema(description = "æµè¯ç¹1") |
| | | private String dataValue1; |
| | | @Schema(description = "æµè¯ç¹2") |
| | | private String dataValue2; |
| | | @Schema(description = "æµè¯ç¹3") |
| | | private String dataValue3; |
| | | @Schema(description = "æµè¯ç¹4") |
| | | private String dataValue4; |
| | | @Schema(description = "æµè¯ç¹5") |
| | | private String dataValue5; |
| | | @Schema(description = "æµè¯ç¹6") |
| | | private String dataValue6; |
| | | |
| | | @Schema(description = "æå¤§åå·®1") |
| | | private String maximun1; |
| | | @Schema(description = "æå¤§åå·®2") |
| | | private String maximun2; |
| | | @Schema(description = "æå¤§åå·®3") |
| | | private String maximun3; |
| | | @Schema(description = "æå¤§åå·®4") |
| | | private String maximun4; |
| | | @Schema(description = "æå¤§åå·®5") |
| | | private String maximun5; |
| | | @Schema(description = "æå¤§åå·®6") |
| | | private String maximun6; |
| | | |
| | | @Schema(description = "ç¸å¯¹åå·®1") |
| | | private String relative1; |
| | | @Schema(description = "ç¸å¯¹åå·®2") |
| | | private String relative2; |
| | | @Schema(description = "ç¸å¯¹åå·®3") |
| | | private String relative3; |
| | | @Schema(description = "ç¸å¯¹åå·®4") |
| | | private String relative4; |
| | | @Schema(description = "ç¸å¯¹åå·®5") |
| | | private String relative5; |
| | | @Schema(description = "ç¸å¯¹åå·®6") |
| | | private String relative6; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¡¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:43 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_examine_record_contrast") |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¡¨") |
| | | public class DeviceExamineRecordContrast implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "record_contrast_id", type = IdType.AUTO) |
| | | private Integer recordContrastId; |
| | | |
| | | @Schema(description = "æ ¸æ¥æ¹å¼") |
| | | private String checkMethod; |
| | | |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è¯¦æ
id") |
| | | private Integer planDetailsId; |
| | | |
| | | @Schema(description = "设å¤idA") |
| | | private Integer aDeviceId; |
| | | |
| | | @Schema(description = "设å¤idb") |
| | | private Integer bDeviceId; |
| | | |
| | | @Schema(description = "设å¤idc") |
| | | private Integer cDeviceId; |
| | | |
| | | @Schema(description = "èå´ä¸ç¡®å®åº¦A") |
| | | private String aRangeUncertainty; |
| | | |
| | | @Schema(description = "èå´ä¸ç¡®å®åº¦b") |
| | | private String bRangeUncertainty; |
| | | |
| | | @Schema(description = "èå´ä¸ç¡®å®åº¦c") |
| | | private String cRangeUncertainty; |
| | | |
| | | @Schema(description = "综åå¤å®") |
| | | private String judgment; |
| | | |
| | | @Schema(description = "æ ¸æ¥äººid") |
| | | private Integer checkerUserId; |
| | | |
| | | @Schema(description = "æ ¸æ¥äºº") |
| | | private String checkerUser; |
| | | |
| | | @Schema(description = "æ ¸æ¥æ¥æ") |
| | | private LocalDateTime checkerTime; |
| | | |
| | | @Schema(description = "å®¡æ ¸äººid") |
| | | private Integer reviewUserId; |
| | | |
| | | @Schema(description = "å®¡æ ¸äºº") |
| | | private String reviewUser; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç¶æ0,ä¸éè¿, 1éè¿") |
| | | private Integer reviewStatus; |
| | | |
| | | @Schema(description = "å®¡æ ¸å¤æ³¨") |
| | | private String reviewRemark; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥æ") |
| | | private LocalDateTime reviewTime; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¯¦æ
表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:57 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_examine_record_contrast_details") |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¯¦æ
表") |
| | | public class DeviceExamineRecordContrastDetails implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "record_contrast_details_id", type = IdType.AUTO) |
| | | private Integer recordContrastDetailsId; |
| | | |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è¯¦æ
id") |
| | | private Integer recordContrastId; |
| | | |
| | | @Schema(description = "æ ¸æ¥é¡¹ç®") |
| | | private String checkItems; |
| | | |
| | | @Schema(description = "a仪å¨ç¤ºå¼") |
| | | private String indicationA; |
| | | |
| | | @Schema(description = "b仪å¨ç¤ºå¼") |
| | | private String indicationB; |
| | | |
| | | @Schema(description = "c仪å¨ç¤ºå¼") |
| | | private String indicationC; |
| | | |
| | | @Schema(description = "å·®å¼") |
| | | private String dValue; |
| | | |
| | | @Schema(description = "åå·®") |
| | | private String deviation; |
| | | |
| | | @Schema(description = "å¤å®") |
| | | private String determine; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½è¯¦æ
表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:15:11 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_examine_record_detail") |
| | | @Schema(description = "è®¾å¤æ ¸æ¥è®°å½è¯¦æ
表") |
| | | public class DeviceExamineRecordDetail implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "record_detail_id", type = IdType.AUTO) |
| | | private Integer recordDetailId; |
| | | |
| | | @Schema(description = "è®¾è®¾å¤æ ¸æ¥è®°å½id") |
| | | private Integer recordId; |
| | | |
| | | @Schema(description = "æµè¯ç¹") |
| | | private String testPoint; |
| | | |
| | | @Schema(description = "å
容å¼1") |
| | | private String dataValue1; |
| | | |
| | | @Schema(description = "å
容å¼2") |
| | | private String dataValue2; |
| | | |
| | | @Schema(description = "å
容å¼3") |
| | | private String dataValue3; |
| | | |
| | | @Schema(description = "å
容å¼4") |
| | | private String dataValue4; |
| | | |
| | | @Schema(description = "å
容å¼5") |
| | | private String dataValue5; |
| | | |
| | | @Schema(description = "å
容å¼6") |
| | | private String dataValue6; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·è¡¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 10:28:43 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_external_apply") |
| | | @Schema(description = "å©ç¨å¤é¨è®¾å¤ç³è¯·è¡¨") |
| | | public class DeviceExternalApply{ |
| | | |
| | | @TableId(value = "external_apply_id", type = IdType.AUTO) |
| | | private Integer externalApplyId; |
| | | |
| | | @Schema(description = "åä½åç§°") |
| | | private String unitName; |
| | | |
| | | @Schema(description = "å°å") |
| | | private String address; |
| | | |
| | | @Schema(description = "仪å¨åç§°") |
| | | private String deviceName; |
| | | |
| | | @Schema(description = "仪å¨åå·") |
| | | private String deviceModel; |
| | | |
| | | @Schema(description = "é
ä»¶") |
| | | private String parts; |
| | | |
| | | @Schema(description = "对æ¹ä»ªå¨ç¼å·") |
| | | private String instrumentNumber; |
| | | |
| | | @Schema(description = "ææ¯ææ ") |
| | | private String technicalIndex; |
| | | |
| | | @Schema(description = "ææ¯è¦æ±") |
| | | private String technicalRequirements; |
| | | |
| | | @Schema(description = "å©ç¨åå ") |
| | | private String useReason; |
| | | |
| | | @Schema(description = "0ç³è¯·äººid") |
| | | private Integer applicantUserId; |
| | | |
| | | @Schema(description = "0ç³è¯·äºº") |
| | | private String applicantUser; |
| | | |
| | | @Schema(description = "0ç³è¯·æ¶é´") |
| | | private LocalDate applicantDate; |
| | | |
| | | @Schema(description = "1é¨é¨è´è´£äººæè§") |
| | | private String departmentHeadOpinion; |
| | | |
| | | @Schema(description = "1é¨é¨è´è´£äººid") |
| | | private Integer departmentHeadUserId; |
| | | |
| | | @Schema(description = "1é¨é¨è´è´£äºº") |
| | | private String departmentHeadUser; |
| | | |
| | | @Schema(description = "1é¨é¨è´è´£äººå¡«åæ¶é´") |
| | | private LocalDate departmentHeadDate; |
| | | |
| | | @Schema(description = "2计é室æè§") |
| | | private String meteringRoomOpinion; |
| | | |
| | | @Schema(description = "2计é室人id") |
| | | private Integer meteringRoomUserId; |
| | | |
| | | @Schema(description = "2计é室人") |
| | | private String meteringRoomUser; |
| | | |
| | | @Schema(description = "2计éå®¤äººå¡«åæ¶é´") |
| | | private LocalDate meteringRoomDate; |
| | | |
| | | @Schema(description = "3æ¹å人æè§") |
| | | private String approverOpinion; |
| | | |
| | | @Schema(description = "3æ¹å人id") |
| | | private Integer approverUserId; |
| | | |
| | | @Schema(description = "3æ¹å人") |
| | | private String approverUser; |
| | | |
| | | @Schema(description = "3æ¹åäººå¡«åæ¶é´") |
| | | private LocalDate approverDate; |
| | | |
| | | @Schema(description = "æ¯å¦ç»æ,0: æªç»æ, 1:ç»æ") |
| | | private Integer isFinish; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | @Schema(description = "æµç¨, 0:ç³è¯·, 1ç³è¯·é¨é¨è´è´£äººæè§, 2:计é室æè§, 3:æ¹å人") |
| | | private Integer flowType; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä½¿ç¨ææè¡¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:23 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_impower") |
| | | @Schema(description = "设å¤ä½¿ç¨ææè¡¨") |
| | | public class DeviceImpower implements Serializable { |
| | | |
| | | @Schema(description = "ææid") |
| | | @TableId(value = "impower_id", type = IdType.AUTO) |
| | | private Integer impowerId; |
| | | |
| | | @Schema(description = "计å年份") |
| | | private String impowerYear; |
| | | |
| | | @Schema(description = "ç¼å¶äººid") |
| | | private Integer compilerId; |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private String compiler; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | private LocalDateTime datePreparation; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç¶æï¼0æªå®¡æ ¸ï¼1å®¡æ ¸") |
| | | private Integer status; |
| | | |
| | | @Schema(description = "ææid") |
| | | private Integer auditId; |
| | | |
| | | @Schema(description = "ææäºº") |
| | | private String audit; |
| | | |
| | | @Schema(description = "æææ¥æ") |
| | | private LocalDateTime auditDate; |
| | | |
| | | @Schema(description = "ææä¿¡æ¯") |
| | | private String auditRemark; |
| | | |
| | | @Schema(description = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "åå»ºæ¥æ") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å详æ
表 |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:39 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_impower_details") |
| | | @Schema(description = "设å¤é弿º¯æºè®¡å详æ
表") |
| | | public class DeviceImpowerDetails implements Serializable { |
| | | |
| | | |
| | | @Schema(description = "设å¤é弿º¯æºè®¡å详æ
id") |
| | | @TableId(value = "impower_detail_id", type = IdType.AUTO) |
| | | private Integer impowerDetailId; |
| | | |
| | | @Schema(description = "设å¤é弿º¯æºè®¡åid") |
| | | private Integer impowerId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "æ£æµé¡¹ç®") |
| | | private String inspectionItem; |
| | | |
| | | @Schema(description = "被ææäºº") |
| | | private String delegatedUser; |
| | | |
| | | @Schema(description = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "åå»ºæ¥æ") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ç¹æ£è®°å½ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:25:14 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_inspection_record") |
| | | @Schema(description = "") |
| | | public class DeviceInspectionRecord implements Serializable { |
| | | |
| | | @Schema(description = "设å¤ç¹æ£è®°å½id") |
| | | @TableId(value = "inspection_record_id", type = IdType.AUTO) |
| | | private Integer inspectionRecordId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "æµéèå´") |
| | | private String measurementScope; |
| | | |
| | | @Schema(description = "ç¹æ£ä½¿ç¨ç©è´¨åç§°") |
| | | private String materialName; |
| | | |
| | | @Schema(description = "ç¹æ£ä½¿ç¨ç©è´¨è§æ ¼åå·") |
| | | private String materialModel; |
| | | |
| | | @Schema(description = "ç¹æ£ä½¿ç¨ç©è´¨ç®¡çç¼å·") |
| | | private String materialManagementNumber; |
| | | |
| | | @Schema(description = "ç¹æ£ä½¿ç¨ç©è´¨ç²¾åº¦ç级") |
| | | private String materialAccuracyGrade; |
| | | |
| | | @Schema(description = "温度") |
| | | private String temperature; |
| | | |
| | | @Schema(description = "湿度") |
| | | private String humidity; |
| | | |
| | | @Schema(description = "æµè¯ç»è®º") |
| | | private String testConclusion; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "ç¶æï¼æ¯å¦å¤æ ¸ï¼0æªå¤æ ¸ï¼1夿 ¸") |
| | | private Integer status; |
| | | |
| | | @Schema(description = "æµè¯äºº") |
| | | private String recorder; |
| | | |
| | | @Schema(description = "æµè¯äººid") |
| | | private Integer recorderId; |
| | | |
| | | @Schema(description = "夿 ¸äºº") |
| | | private String reviewer; |
| | | |
| | | @Schema(description = "夿 ¸äººid") |
| | | private Integer reviewerId; |
| | | |
| | | @Schema(description = "夿 ¸ä¿¡æ¯") |
| | | private String reviewerRemark; |
| | | |
| | | @Schema(description = "æµè¯æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDateTime testDate; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äººid") |
| | | private Integer updateUserId; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:27:32 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_inspection_record_details") |
| | | @Schema(description = "") |
| | | public class DeviceInspectionRecordDetails implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Schema(description = "ç¹æ£è¯¦æ
id") |
| | | @TableId(value = "inspection_record_detail_id", type = IdType.AUTO) |
| | | private Integer inspectionRecordDetailId; |
| | | |
| | | @Schema(description = "ç¹æ£id") |
| | | private Integer inspectionRecordId; |
| | | |
| | | @Schema(description = "æµè¯é¡¹ç®") |
| | | private String testItems; |
| | | |
| | | @Schema(description = "æ åå¼") |
| | | private String standardValue; |
| | | |
| | | @Schema(description = "宿µå¼") |
| | | private String measuredValue; |
| | | |
| | | @Schema(description = "示å¼è¯¯å·®") |
| | | private String indicationError; |
| | | |
| | | @Schema(description = "å
许误差") |
| | | private String allowableError; |
| | | |
| | | @Schema(description = "å项ç»è®º") |
| | | private String singleItemConclusion; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äººid") |
| | | private Integer updateUserId; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½ä¸æå¯¼ä¹¦æ·»å åæ§æä»¶è¡¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:29:18 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_instruction") |
| | | @Schema(description = "ä½ä¸æå¯¼ä¹¦æ·»å åæ§æä»¶è¡¨") |
| | | public class DeviceInstruction implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "ç³è¯·ç¼å·") |
| | | private String applicationNumber; |
| | | |
| | | @Schema(description = "ç³è¯·é¨é¨") |
| | | private String applicationDepartment; |
| | | |
| | | @Schema(description = "责任人") |
| | | private String personLiable; |
| | | |
| | | @Schema(description = "åæ§ç³è¯·è¯´æ") |
| | | private String controlledApplicationDescription; |
| | | |
| | | @Schema(description = "ç³»ç»çæåç§°") |
| | | private String fileName; |
| | | |
| | | @Schema(description = "ç³»ç»çæåç§°") |
| | | private String fileSystemName; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "æ´æ°äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | @TableName("device_log") // è®°å½ |
| | | public class DeviceLog implements Serializable { |
| | | |
| | | @TableId(type= IdType.AUTO) |
| | | private Integer id; |
| | | private String operator; |
| | | // @JsonFormat() |
| | | private LocalDateTime operationTime; |
| | | private String operationType; |
| | | private String operationContent; |
| | | private Integer deviceId; |
| | | |
| | | //å
³èç表å |
| | | private String relevanceForm; |
| | | |
| | | //å
³èçid |
| | | private Integer relevanceId; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.deepoove.poi.data.PictureRenderData; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 设å¤ç»´æ¤æ·»å ç»´æ¤è®°å½è¡¨ |
| | | * |
| | | * @author makejava |
| | | * @since 2025-04-17 11:28:56 |
| | | */ |
| | | @Data |
| | | @TableName("device_maintenance") |
| | | public class DeviceMaintenance { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "ç»´æ¤æ¥æ") |
| | | private LocalDate maintenanceDate; |
| | | |
| | | @Schema(description = "ç»´æ¤å
容") |
| | | private String maintenanceContent; |
| | | |
| | | @Schema(description = "ç»´æ¤äººid") |
| | | private Integer maintenanceUserId; |
| | | |
| | | @Schema(description = "ç»´æ¤äºº") |
| | | private String maintenanceUserName; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "åå»ºæ¥æ") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "æ´æ°äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | @Schema(description = "ç»´æ¤äººå¾ç") |
| | | private PictureRenderData maintenanceUserUrlRender; |
| | | |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:10:52 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_maintenance_plan") |
| | | @Schema(description = "设å¤ä¿å
»è®¡å表") |
| | | public class DeviceMaintenancePlan implements Serializable { |
| | | |
| | | @Schema(description = "设å¤ä¿å
»è®¡åid") |
| | | @TableId(value = "maintenance_plan_id", type = IdType.AUTO) |
| | | private Integer maintenancePlanId; |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private String compiler; |
| | | |
| | | @Schema(description = "计ååç§°") |
| | | private String planName; |
| | | |
| | | @Schema(description = "计å年份") |
| | | private String planYear; |
| | | |
| | | @Schema(description = "ç¼å¶äººid") |
| | | private Integer compilerId; |
| | | |
| | | @Schema(description = "ç¼å¶æ¥æ") |
| | | private LocalDateTime datePreparation; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç¶æï¼0æªå®¡æ ¸ï¼1å®¡æ ¸") |
| | | private Integer status; |
| | | |
| | | @Schema(description = "å®¡æ ¸äººid") |
| | | private Integer auditId; |
| | | |
| | | @Schema(description = "å®¡æ ¸äºº") |
| | | private String audit; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥æ") |
| | | private LocalDateTime auditDate; |
| | | |
| | | @Schema(description = "å®¡æ ¸ä¿¡æ¯") |
| | | private String auditRemark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å详æ
表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:11:46 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_maintenance_plan_details") |
| | | @Schema(description = "设å¤ä¿å
»è®¡å详æ
表") |
| | | public class DeviceMaintenancePlanDetails implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Schema(description = "ä¿å
»è®¡å详æ
id") |
| | | @TableId(value = "maintenance_plan_detail_id", type = IdType.AUTO) |
| | | private Integer maintenancePlanDetailId; |
| | | |
| | | @Schema(description = "ä¿å
»è®¡åid") |
| | | private Integer maintenancePlanId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "ä¿å
Ȍ
³é®é¨ä½") |
| | | private String maintenanceSite; |
| | | |
| | | @Schema(description = "ä¿å
Ȍ
容") |
| | | private String maintenanceContent; |
| | | |
| | | @Schema(description = "ä¿å
»å¨æ") |
| | | private String maintenanceIntervals; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | @TableName("device_metrics") |
| | | public class DeviceMetric implements Serializable { |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; //id |
| | | private Integer deviceId; // 设å¤ID |
| | | private String measurementParameter; // 计éåæ° |
| | | private String rangeOfMeasurement; // éç¨èå´ |
| | | private String maxPermissibleError; // æå¤§å
许误差 |
| | | private String judgmentCriteria; // å¤å®æ å |
| | | private String createdBy; // å建人 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime creationTime; // å建æ¶é´ |
| | | |
| | | @Schema(description = "calibrateï¼æ ¡åï¼examineï¼æ ¸æ¥") |
| | | private String type; // ç±»å |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:01 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_metric_record") |
| | | @Schema(description = "è®¾å¤æ ¡å - æ ¡åè®°å½") |
| | | public class DeviceMetricRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Schema(description = "主é®id") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "è®°å½ç¼å·") |
| | | private String processNumber; |
| | | |
| | | @Schema(description = "计éåä½") |
| | | private String unitOfMeasure; |
| | | |
| | | @Schema(description = "æ ¡åæ¥æ") |
| | | private Date calibrationDate; |
| | | |
| | | @Schema(description = "䏿¬¡æ ¡åæ¥æ") |
| | | private Date nextCalibrationDate; |
| | | |
| | | @Schema(description = "计ç®å¨å
·") |
| | | private String calculatingApparatus; |
| | | |
| | | @Schema(description = "è®¡ç®æ åéç¨") |
| | | private String standardRange; |
| | | |
| | | @Schema(description = "è®¡éæ åä¸ç¡®å®åº¦") |
| | | private String calibrationStandardUncertainty; |
| | | |
| | | @Schema(description = "便®æä»¶") |
| | | private String byDocument; |
| | | |
| | | @Schema(description = "è¯ä¹¦ç¼å·") |
| | | private String certificateSerialNumber; |
| | | |
| | | @Schema(description = "ç¶æ") |
| | | private String status; |
| | | |
| | | @Schema(description = "åæä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Schema(description = "ç³»ç»çææä»¶åç§°") |
| | | private String systemFileName; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "å建æ¶é´ / ç»è®°æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ç»è®°äºº") |
| | | private String createUser; |
| | | |
| | | @Schema(description = "calibrateï¼æ ¡åï¼examineï¼æ ¸æ¥") |
| | | private String type; |
| | | |
| | | @Schema(description = "确认æ¶é´") |
| | | private Date confirmDate; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ - æ ¡åæ¡ç® |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:11 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_metrics_copy") |
| | | @Schema(description = "è®¾å¤æ ¡å - æ ¡åè®°å½ - æ ¡åæ¡ç®") |
| | | public class DeviceMetricsCopy implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Schema(description = "id") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "è®¾å¤æ ¡å - æ ¡åè®°å½id") |
| | | private Integer deviceMetricsId; |
| | | |
| | | @Schema(description = "计éåæ°") |
| | | private String measurementParameter; |
| | | |
| | | @Schema(description = "éç¨èå´") |
| | | private String rangeOfMeasurement; |
| | | |
| | | @Schema(description = "æå¤§å
许误差") |
| | | private String maxPermissibleError; |
| | | |
| | | @Schema(description = "å¤å®æ å") |
| | | private String judgmentCriteria; |
| | | |
| | | @Schema(description = "å建人") |
| | | private String createdBy; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | private LocalDateTime creationTime; |
| | | |
| | | @Schema(description = "æ¯å¦æ ¡å") |
| | | private String isCalibration; |
| | | |
| | | @Schema(description = "å¤å®ç»æ") |
| | | private String result; |
| | | |
| | | @Schema(description = "åé¡¹ç»æè¯´æ") |
| | | private String singleResultStatement; |
| | | |
| | | @Schema(description = "calibrateï¼æ ¡åï¼examineï¼æ ¸æ¥") |
| | | private String type; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * cnas设å¤ä½¿ç¨è®°å½è¡¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 11:06:47 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_record") |
| | | @Schema(description = "cnas设å¤ä½¿ç¨è®°å½è¡¨") |
| | | public class DeviceRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "订åid") |
| | | private Integer insOrderId; |
| | | |
| | | @Schema(description = "æ ·åç¼å·") |
| | | private String sampleCode; |
| | | |
| | | @Schema(description = "温度") |
| | | private String temperature; |
| | | |
| | | @Schema(description = "湿度") |
| | | private String humidity; |
| | | |
| | | @Schema(description = "使ç¨å0å¼å¸¸1è¯å¥½") |
| | | private Integer useBefore; |
| | | |
| | | @Schema(description = "使ç¨å0å¼å¸¸1è¯å¥½") |
| | | private Integer useAfter; |
| | | |
| | | @Schema(description = "å¼å¸¸æ
åµ") |
| | | private String abnormal; |
| | | |
| | | @Schema(description = "使ç¨äººid") |
| | | private Integer usePersonId; |
| | | |
| | | @Schema(description = "使ç¨äºº") |
| | | private String usePerson; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "使ç¨å¼å§æ¥æ") |
| | | private LocalDateTime useStartDate; |
| | | |
| | | @Schema(description = "使ç¨ç»ææ¥æ") |
| | | private LocalDateTime useEndDate; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ¥åºç³è¯·è¡¨ |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 01:53:47 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_scrapped") |
| | | @Schema(description = "è®¾å¤æ¥åºç³è¯·è¡¨") |
| | | public class DeviceScrapped { |
| | | |
| | | @TableId(value = "scrapped_id", type = IdType.AUTO) |
| | | private Integer scrappedId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "é
ä»¶") |
| | | private String parts; |
| | | |
| | | @Schema(description = "æ¥åºçç±") |
| | | private String reasonsForScrap; |
| | | |
| | | @Schema(description = "ç³è¯·äººid") |
| | | private Integer applicantUserId; |
| | | |
| | | @Schema(description = "ç³è¯·äºº") |
| | | private String applicantUser; |
| | | |
| | | @Schema(description = "ç³è¯·æ¶é´") |
| | | private LocalDate applicantDate; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººæè§") |
| | | private String departmentHeadOpinion; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººid") |
| | | private Integer departmentHeadUserId; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äºº") |
| | | private String departmentHeadUser; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äººå¡«åæ¶é´") |
| | | private LocalDate departmentHeadDate; |
| | | |
| | | @Schema(description = "计é室æè§") |
| | | private String meteringRoomOpinion; |
| | | |
| | | @Schema(description = "计é室人id") |
| | | private Integer meteringRoomUserId; |
| | | |
| | | @Schema(description = "计é室人") |
| | | private String meteringRoomUser; |
| | | |
| | | @Schema(description = "计éå®¤äººå¡«åæ¶é´") |
| | | private LocalDate meteringRoomDate; |
| | | |
| | | @Schema(description = "æ¹å人æè§") |
| | | private String approverOpinion; |
| | | |
| | | @Schema(description = "æ¹å人id") |
| | | private Integer approverUserId; |
| | | |
| | | @Schema(description = "æ¹å人") |
| | | private String approverUser; |
| | | |
| | | @Schema(description = "æ¹åäººå¡«åæ¶é´") |
| | | private LocalDate approverDate; |
| | | |
| | | @Schema(description = "æ¯å¦ç»æ,0: æªç»æ, 1:ç»æ") |
| | | private Integer isFinish; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | @Schema(description = "æµç¨, 0:æ¥åºç³è¯·, 1ç³è¯·é¨é¨è´è´£äººæè§, 2:计é室æè§, 3:æ¹å人") |
| | | private Integer flowType; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤åç¨/å¯ç¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-26 09:51:40 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_state") |
| | | @Schema(description = "设å¤åç¨/å¯ç¨") |
| | | public class DeviceState implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Schema(description = "设å¤åç¨å¯ç¨id") |
| | | @TableId(value = "state_id", type = IdType.AUTO) |
| | | private Integer stateId; |
| | | |
| | | @Schema(description = "æµç¨ç¼å·") |
| | | private String processNumber; |
| | | |
| | | @Schema(description = "0é
ä»¶") |
| | | private String accessoryPart; |
| | | |
| | | @Schema(description = "0设å¤ç¶æ") |
| | | private String deviceStatus; |
| | | |
| | | @Schema(description = "0åç¨å¯ç¨çç±") |
| | | private String reason; |
| | | |
| | | @Schema(description = "0ä¸ç¯è责任人") |
| | | private String submitNextPesponsible; |
| | | |
| | | @Schema(description = "0æä½äºº") |
| | | private String submitOperatingPersonnel; |
| | | |
| | | @Schema(description = "0æ¥æ") |
| | | private LocalDateTime submitDate; |
| | | |
| | | @Schema(description = "1é¨é¨è´è´£äººæè§") |
| | | private String departmentReviewOpinion; |
| | | |
| | | @Schema(description = "1ä¸ç¯è责任人") |
| | | private String departmentNextPesponsible; |
| | | |
| | | @Schema(description = "1æä½äºº") |
| | | private String departmentOperatingPersonnel; |
| | | |
| | | @Schema(description = "1æ¥æ") |
| | | private LocalDateTime departmentDate; |
| | | |
| | | @Schema(description = "2计é室æè§") |
| | | private String measuringRoomReviewOpinion; |
| | | |
| | | @Schema(description = "2ä¸ç¯è责任人") |
| | | private String measuringRoomNextPesponsible; |
| | | |
| | | @Schema(description = "2æä½äºº") |
| | | private String measuringRoomOperatingPersonnel; |
| | | |
| | | @Schema(description = "2æ¥æ") |
| | | private LocalDateTime measuringRoomDate; |
| | | |
| | | @Schema(description = "3æ¹åæè§") |
| | | private String approvalOpinion; |
| | | |
| | | @Schema(description = "3ä¸ç¯è责任人") |
| | | private String approvalNextPesponsible; |
| | | |
| | | @Schema(description = "3æä½äºº") |
| | | private String approvalOperatingPersonnel; |
| | | |
| | | @Schema(description = "3æ¥æ") |
| | | private LocalDateTime approvalDate; |
| | | |
| | | @Schema(description = "å½åç¶æ") |
| | | private String currentState; |
| | | |
| | | @Schema(description = "设å¤Id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "å½åç¯èè´è´£äºº") |
| | | private String currentResponsible; |
| | | |
| | | @Schema(description = "æäº¤äºº") |
| | | @ExcelProperty(value = "æäº¤äºº") |
| | | private String createUser; |
| | | |
| | | @Schema(description = "æäº¤æ¥æ") |
| | | @ExcelProperty(value = "æäº¤æ¥æ") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:44 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_traceability_management") |
| | | @Schema(description = "设å¤é弿º¯æºè®¡å表") |
| | | public class DeviceTraceabilityManagement{ |
| | | |
| | | @Schema(description = "设å¤é弿º¯æºè®¡åid") |
| | | @TableId(value = "traceability_management_id", type = IdType.AUTO) |
| | | private Integer traceabilityManagementId; |
| | | |
| | | @Schema(description = "æä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Schema(description = "计ååç§°") |
| | | private String planName; |
| | | |
| | | @Schema(description = "计å年份") |
| | | private String planYear; |
| | | |
| | | @Schema(description = "ç¼å¶äººid") |
| | | private Integer compilerId; |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private String compiler; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | private LocalDateTime datePreparation; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç¶æï¼0æªå®¡æ ¸ï¼1å®¡æ ¸") |
| | | private Integer status; |
| | | |
| | | @Schema(description = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "å®¡æ ¸äººid") |
| | | private Integer auditId; |
| | | |
| | | @Schema(description = "å®¡æ ¸äºº") |
| | | private String audit; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥æ") |
| | | private LocalDateTime auditDate; |
| | | |
| | | @Schema(description = "å®¡æ ¸ä¿¡æ¯") |
| | | private String auditRemark; |
| | | |
| | | @Schema(description = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "åå»ºæ¥æ") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å详æ
表 |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:58 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_traceability_management_details") |
| | | @Schema(description = "设å¤é弿º¯æºè®¡å详æ
表") |
| | | public class DeviceTraceabilityManagementDetails implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Schema(description = "设å¤é弿º¯æºè®¡å详æ
id") |
| | | @TableId(value = "traceability_management_detail_id", type = IdType.AUTO) |
| | | private Integer traceabilityManagementDetailId; |
| | | |
| | | @Schema(description = "设å¤é弿º¯æºè®¡åid") |
| | | private Integer traceabilityManagementId; |
| | | |
| | | @Schema(description = "设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @Schema(description = "ææ¯ææ åæ°") |
| | | private String technicalIndexParameters; |
| | | |
| | | @Schema(description = "ææ¯ææ è¦æ±") |
| | | private String technicalRequirements; |
| | | |
| | | @Schema(description = "æ£å®å¨æ") |
| | | private String verificationCycle; |
| | | |
| | | @Schema(description = "æ£å®åä½") |
| | | private String verificationUnit; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "åå»ºæ¥æ") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤ - ä½ä¸æå¯¼ä¹¦ æ·»å åæ§æä»¶ å |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:43:32 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("device_operation_instruction") |
| | | public class OperationInstruction { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "设å¤ä¸»é®id") |
| | | private String deviceId; |
| | | |
| | | @Schema(description = "æä»¶ç±»å") |
| | | private String documentType; |
| | | |
| | | @Schema(description = "ææ¡£ç¼å·") |
| | | private String documentNumber; |
| | | |
| | | @Schema(description = "æä»¶çæ¬") |
| | | private String documentVersion; |
| | | |
| | | @Schema(description = "ä½è
") |
| | | private String author; |
| | | |
| | | @Schema(description = "æäº¤æ¥æ") |
| | | private LocalDate submitDate; |
| | | |
| | | @Schema(description = "ææ¡£è¯´æ") |
| | | private String documentNote; |
| | | |
| | | @Schema(description = "ç³»ç»çæåç§°") |
| | | private String fileName; |
| | | |
| | | @Schema(description = "ç³»ç»çæåç§°") |
| | | private String fileSystemName; |
| | | |
| | | @Schema(description = "ä½ä¸æå¯¼ä¹¦id") |
| | | private Integer instructionId; |
| | | |
| | | @Schema(description = "ä¸ä¼ 人id") |
| | | private Integer uploader; |
| | | |
| | | @Schema(description = "审æ¹äººid") |
| | | private Integer approverId; |
| | | |
| | | @Schema(description = "审æ¹ç¶æ") |
| | | private Boolean status; |
| | | |
| | | @Schema(description = "çææ¶é´") |
| | | private LocalDateTime entryIntoForceTime; |
| | | |
| | | @Schema(description = "ä¸ä¼ æ¶é´") |
| | | private LocalDateTime uploadTime; |
| | | |
| | | @Schema(description = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "æ´æ°äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.CollectBridge; |
| | | |
| | | /** |
| | | * æ°åçµæ¡¥éé |
| | | * |
| | | * @author zhuo |
| | | * @since 2025-02-19 |
| | | */ |
| | | public interface CollectBridgeService extends IService<CollectBridge> { |
| | | |
| | | /** |
| | | * å¡«å
ééæ°æ® |
| | | * @param jsonObject |
| | | */ |
| | | void addBridgeValue(JSONObject jsonObject); |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DataConfigDto; |
| | | import com.ruoyi.device.pojo.DataConfig; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-07-13 12:23:00 |
| | | */ |
| | | public interface DataConfigService extends IService<DataConfig> { |
| | | |
| | | |
| | | /** |
| | | * ç»´æ¤è®¾å¤æä»¶é
ç½® |
| | | * @param dataConfigList |
| | | */ |
| | | void saveDeviceFileConfiguration(DataConfigDto dataConfigList); |
| | | |
| | | /** |
| | | * æ°éé
ç½® |
| | | * @param dataConfigList |
| | | */ |
| | | void saveDataAcquisitionConfiguration(DataConfigDto dataConfigList); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°éé
ç½® |
| | | * @param dataConfig |
| | | * @return |
| | | */ |
| | | Result<?> queryDataAcquisitionConfiguration(DataConfig dataConfig); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£éªé¡¹æ°éé
ç½® |
| | | * @param dataConfig |
| | | * @return |
| | | */ |
| | | Result<?> queryProductConfiguration(DataConfig dataConfig); |
| | | |
| | | /** |
| | | * æ¥è¯¢äºç»å®ä½æ¯æ²¡æé
ç½®çæ£éªé¡¹ |
| | | * @param deviceId |
| | | * @return |
| | | */ |
| | | IPage<DataConfig> getNoConfigProduct(Page page, Integer deviceId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceAcceptanceFile; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤)é件表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:26 |
| | | */ |
| | | public interface DeviceAcceptanceFileService extends IService<DeviceAcceptanceFile> { |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceAcceptance; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤) æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:14 |
| | | */ |
| | | public interface DeviceAcceptanceService extends IService<DeviceAcceptance> { |
| | | |
| | | /** |
| | | * 设å¤éªæ¶å表 |
| | | * @param page |
| | | * @param deviceAcceptance |
| | | * @return |
| | | */ |
| | | IPage<DeviceAcceptance> pageDeviceAcceptance(Page page, DeviceAcceptance deviceAcceptance); |
| | | |
| | | |
| | | boolean uploadDeviceAcceptanceFile(Integer acceptanceId, MultipartFile file); |
| | | |
| | | /** |
| | | * 设å¤éªæ¶å¯¼åº |
| | | * @param acceptanceId 设å¤éªæ¶id |
| | | * @param response ååºä½ |
| | | * @return |
| | | */ |
| | | void exportDeviceAcceptance(Integer acceptanceId, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceAccidentReport; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤äºæ
æ¥åå æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 06:31:12 |
| | | */ |
| | | public interface DeviceAccidentReportService extends IService<DeviceAccidentReport> { |
| | | |
| | | /** |
| | | * 设å¤äºæ
æ¥åå表 |
| | | * @param page |
| | | * @param deviceAccidentReport |
| | | * @return |
| | | */ |
| | | IPage<DeviceAccidentReport> pageDeviceAccidentReport(Page page, DeviceAccidentReport deviceAccidentReport); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤äºæ
æ¥å |
| | | * @param deviceAccidentReport |
| | | * @return |
| | | */ |
| | | boolean addDeviceAccidentReport(DeviceAccidentReport deviceAccidentReport); |
| | | |
| | | /** |
| | | * 导åºè®¾å¤äºæ
æ¥å |
| | | * @param accidentReportId 设å¤äºæ
æ¥åid |
| | | * @param response ååº |
| | | */ |
| | | void exportDeviceAccidentReport(Integer accidentReportId, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceBorrow; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 10:53:51 |
| | | */ |
| | | public interface DeviceBorrowService extends IService<DeviceBorrow> { |
| | | |
| | | IPage<DeviceBorrow> deviceBorrowPage(Page page, DeviceBorrow deviceBorrow); |
| | | |
| | | int saveDeviceBorrow(DeviceBorrow deviceBorrow); |
| | | |
| | | DeviceBorrow getDeviceBorrow(Integer id); |
| | | |
| | | List<DeviceBorrow> getDeviceBorrowBydeviceId(Integer deviceId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceBreakdownMaintenance; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ
é维修表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 04:50:57 |
| | | */ |
| | | public interface DeviceBreakdownMaintenanceService extends IService<DeviceBreakdownMaintenance> { |
| | | |
| | | /** |
| | | * è®¾å¤æ
éç»´ä¿®å表 |
| | | * @param page |
| | | * @param deviceBreakdownMaintenance |
| | | * @return |
| | | */ |
| | | IPage<DeviceBreakdownMaintenance> pageDeviceBreakdownMaintenance(Page page, DeviceBreakdownMaintenance deviceBreakdownMaintenance); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ
éç»´ä¿® |
| | | * @param deviceBreakdownMaintenance |
| | | * @return |
| | | */ |
| | | boolean addDeviceBreakdownMaintenance(DeviceBreakdownMaintenance deviceBreakdownMaintenance); |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ
éç»´ä¿® |
| | | * @param maintenanceId è®¾å¤æ
éç»´ä¿®id |
| | | * @param response ååº |
| | | */ |
| | | void exportDeviceBreakdownMaintenance(Integer maintenanceId, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlanDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å详æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:29 |
| | | */ |
| | | public interface DeviceCalibrationPlanDetailService extends IService<DeviceCalibrationPlanDetail> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceCalibrationPlanDto; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlan; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlanDetail; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å主表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:17 |
| | | */ |
| | | public interface DeviceCalibrationPlanService extends IService<DeviceCalibrationPlan> { |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ ¡å计å |
| | | * @param calibrationPlanDto |
| | | * @return |
| | | */ |
| | | boolean addDeviceCalibrationPlan(DeviceCalibrationPlanDto calibrationPlanDto); |
| | | |
| | | /** |
| | | * 导å
¥è®¾å¤æ ¡å计å |
| | | * @param file |
| | | * @return |
| | | */ |
| | | boolean importDeviceCalibrationPlan(MultipartFile file, String planYear); |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @param deviceCalibrationPlan |
| | | * @return |
| | | */ |
| | | boolean submiatRatifyDeviceCalibrationPlan(DeviceCalibrationPlan deviceCalibrationPlan); |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡åè®¡åæ¹å |
| | | * @param DeviceCalibrationPlan |
| | | * @return |
| | | */ |
| | | boolean ratifyDeviceCalibrationPlan(DeviceCalibrationPlan DeviceCalibrationPlan); |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计åå表 |
| | | * @param page |
| | | * @param DeviceCalibrationPlan |
| | | * @return |
| | | */ |
| | | IPage<DeviceCalibrationPlanDto> pageDeviceCalibrationPlan(Page page, DeviceCalibrationPlan deviceCalibrationPlan); |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计å详æ
å表 |
| | | * @param page |
| | | * @param DeviceCalibrationPlanDetails |
| | | * @return |
| | | */ |
| | | IPage<DeviceCalibrationPlanDetail> pageDeviceCalibrationPlanDetail(Page page, DeviceCalibrationPlanDetail deviceCalibrationPlanDetails); |
| | | |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ ¡å计å |
| | | * |
| | | * @param DeviceCalibrationPlanId |
| | | * @param response |
| | | */ |
| | | void exportDeviceCalibrationPlanDetail(Integer DeviceCalibrationPlanId, HttpServletResponse response); |
| | | |
| | | /** |
| | | * æ¹éç¼è¾è®¾å¤æ ¡å详æ
|
| | | * @param calibrationPlanDto |
| | | * @return |
| | | */ |
| | | boolean updateDeviceCalibrationPlan(DeviceCalibrationPlanDto calibrationPlanDto); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ ¡å详æ
|
| | | * @param planId |
| | | * @return |
| | | */ |
| | | DeviceCalibrationPlanDto getDeviceCalibrationPlan(Integer planId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceDocuments; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡ |
| | | */ |
| | | public interface DeviceDocumentsService extends IService<DeviceDocuments> { |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å详æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:16 |
| | | */ |
| | | public interface DeviceExaminePlanDetailsService extends IService<DeviceExaminePlanDetails> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDto; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlan; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å主表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:04 |
| | | */ |
| | | public interface DeviceExaminePlanService extends IService<DeviceExaminePlan> { |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ ¸æ¥è®¡å |
| | | * @param examinePlanDto |
| | | * @return |
| | | */ |
| | | boolean addDeviceExaminePlan(DeviceExaminePlanDto examinePlanDto); |
| | | |
| | | /** |
| | | * 导å
¥è®¾å¤æ ¸æ¥è®¡å |
| | | * @param file |
| | | * @return |
| | | */ |
| | | boolean importDeviceExaminePlan(MultipartFile file); |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @param deviceExaminePlan |
| | | * @return |
| | | */ |
| | | boolean submitRatifyDeviceExaminePlan(DeviceExaminePlan deviceExaminePlan); |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åæ¹å |
| | | * @param DeviceExaminePlan |
| | | * @return |
| | | */ |
| | | boolean ratifyDeviceExaminePlan(DeviceExaminePlan DeviceExaminePlan); |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åå表 |
| | | * @param page |
| | | * @param DeviceExaminePlan |
| | | * @return |
| | | */ |
| | | IPage<DeviceExaminePlanDto> pageDeviceExaminePlan(Page page, DeviceExaminePlan DeviceExaminePlan); |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡å详æ
å表 |
| | | * @param page |
| | | * @param DeviceExaminePlanDetails |
| | | * @return |
| | | */ |
| | | IPage<DeviceExaminePlanDetailsDto> pageDeviceExaminePlanDetail(Page page, DeviceExaminePlanDetails DeviceExaminePlanDetails); |
| | | |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ ¸æ¥è®¡å |
| | | * @param deviceExaminePlanId è®¾å¤æ ¸æ¥è®¡åid |
| | | * @param response ååº |
| | | */ |
| | | void exportDeviceExaminePlanDetail(Integer deviceExaminePlanId, HttpServletResponse response); |
| | | |
| | | /** |
| | | * æ¹éä¿®æ¹è®¾å¤æ ¸æ¥è®¡å |
| | | * @param examinePlanDto |
| | | * @return |
| | | */ |
| | | boolean updateDeviceExaminePlan(DeviceExaminePlanDto examinePlanDto); |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ ¸æ¥è®¡å详æ
|
| | | * @param planId |
| | | * @return |
| | | */ |
| | | DeviceExaminePlanDto getDeviceExaminePlan(Integer planId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrastDetails; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¯¦æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:57 |
| | | */ |
| | | public interface DeviceExamineRecordContrastDetailsService extends IService<DeviceExamineRecordContrastDetails> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordContrastDto; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrast; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:43 |
| | | */ |
| | | public interface DeviceExamineRecordContrastService extends IService<DeviceExamineRecordContrast> { |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | */ |
| | | DeviceExamineRecordContrastDto getExamineRecordContrast(Integer planDetailsId); |
| | | |
| | | /** |
| | | * æ°å¢æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | * |
| | | */ |
| | | boolean addExamineRecordContrast(DeviceExamineRecordContrastDto deviceExamineRecordContrastDto); |
| | | |
| | | /** |
| | | * å®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | */ |
| | | boolean reviewExamineRecordContrast(DeviceExamineRecordContrastDto deviceExamineRecordContrastDto); |
| | | |
| | | /** |
| | | * 导åºå®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * |
| | | * @param recordId å®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½id |
| | | * @param response |
| | | * @return |
| | | */ |
| | | void exportReviewExamineRecordContrast(Integer recordId, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½è¯¦æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:15:11 |
| | | */ |
| | | public interface DeviceExamineRecordDetailService extends IService<DeviceExamineRecordDetail> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecord; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:28 |
| | | */ |
| | | public interface DeviceExamineRecordService extends IService<DeviceExamineRecord> { |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸æ¥è®°å½ |
| | | * @return |
| | | */ |
| | | DeviceExamineRecordDto getExamineRecord(Integer planDetailsId); |
| | | |
| | | /** |
| | | * æ°å¢æ ¸æ¥è®°å½ |
| | | * @return |
| | | */ |
| | | boolean addExamineRecord(DeviceExamineRecordDto deviceExamineRecordDto); |
| | | |
| | | /** |
| | | * 夿 ¸æ ¸æ¥è®°å½ |
| | | * @return |
| | | */ |
| | | boolean reviewExamineRecord(DeviceExamineRecordDto deviceExamineRecordDto); |
| | | |
| | | /** |
| | | * 导åºå¤æ ¸æ ¸æ¥è®°å½ |
| | | * @param planDetailsId |
| | | * @param response ååº |
| | | */ |
| | | void exportReviewExamineRecordDetail(Integer planDetailsId, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceExternalApply; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 10:28:43 |
| | | */ |
| | | public interface DeviceExternalApplyService extends IService<DeviceExternalApply> { |
| | | |
| | | /** |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·å表 |
| | | * @param page |
| | | * @param deviceExternalApply |
| | | * @return |
| | | */ |
| | | IPage<DeviceExternalApply> pageDeviceExternalApply(Page page, DeviceExternalApply deviceExternalApply); |
| | | |
| | | /** |
| | | * æ°å¢å©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * @param deviceExternalApply |
| | | * @return |
| | | */ |
| | | boolean addDeviceExternalApply(DeviceExternalApply deviceExternalApply); |
| | | |
| | | /** |
| | | * 导åºå©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * |
| | | * @param externalApplyId å¤é¨è®¾å¤ç³è¯·id |
| | | * @param response |
| | | */ |
| | | void exportDeviceExternalApply(Integer externalApplyId, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceImpowerDetails; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å详æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:39 |
| | | */ |
| | | public interface DeviceImpowerDetailsService extends IService<DeviceImpowerDetails> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceImpowerDto; |
| | | import com.ruoyi.device.pojo.DeviceImpower; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceImpower; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä½¿ç¨ææè¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:23 |
| | | */ |
| | | public interface DeviceImpowerService extends IService<DeviceImpower> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ä½¿ç¨ææ |
| | | * @param page å页忰 |
| | | * @param itemParameter ä½¿ç¨ææ |
| | | * @return |
| | | */ |
| | | Result<IPage<DeviceImpower>> selectDeviceImpowerByPage(@Param("page") Page page, @Param("itemParameter") DeviceImpowerDto itemParameter); |
| | | |
| | | /** |
| | | * æ°å¢ä½¿ç¨ææ |
| | | * @param deviceImpowerDto ä½¿ç¨ææ |
| | | */ |
| | | Result addImpower(DeviceImpowerDto deviceImpowerDto); |
| | | |
| | | /** |
| | | * ä¿®æ¹ä½¿ç¨ææ |
| | | * @param deviceImpowerDto ä½¿ç¨ææ |
| | | */ |
| | | Result updateImpower(DeviceImpowerDto deviceImpowerDto); |
| | | |
| | | /** |
| | | * å é¤ä½¿ç¨ææ |
| | | * @param deviceImpowerDto ä½¿ç¨ææ |
| | | */ |
| | | Result deleteImpower(DeviceImpowerDto deviceImpowerDto); |
| | | |
| | | /** |
| | | * æ¥è¯¢ä½¿ç¨ææè¯¦æ
|
| | | */ |
| | | Result<DeviceImpowerDto> getImpowerDetail(Integer impowerId); |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @param deviceImpowerDto |
| | | * @return |
| | | */ |
| | | Result submitReviewImpowerStatus(DeviceImpowerDto deviceImpowerDto); |
| | | |
| | | /** |
| | | * ä½¿ç¨ææå®¡æ ¸ |
| | | */ |
| | | Result reviewImpowerStatus(DeviceImpowerDto deviceImpowerDto); |
| | | |
| | | /** |
| | | * ä½¿ç¨ææå¯¼åº |
| | | */ |
| | | void exportDeviceImpowerDto(Integer impowerId, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecordDetails; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:27:32 |
| | | */ |
| | | public interface DeviceInspectionRecordDetailsService extends IService<DeviceInspectionRecordDetails> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceInspectionRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecord; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ç¹æ£è®°å½è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:25:14 |
| | | */ |
| | | public interface DeviceInspectionRecordService extends IService<DeviceInspectionRecord> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ç¹æ£è®°å½ |
| | | * @param page |
| | | */ |
| | | Result<IPage<DeviceInspectionRecord>> getDeviceInspectionRecordByPage(Page page, DeviceInspectionRecordDto deviceInspectionRecord); |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£è¯¦æ
|
| | | * @param inspectionRecordId |
| | | * @return |
| | | */ |
| | | Result getDeviceInspectionRecord(Integer inspectionRecordId); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤ç¹æ£è®°å½ |
| | | * |
| | | * @param deviceInspectionRecord 设å¤ç¹æ£è®°å½ |
| | | */ |
| | | Result addDeviceInspectionRecord(DeviceInspectionRecordDto deviceInspectionRecord); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤ç¹æ£è®°å½ |
| | | * @param deviceInspectionRecord 设å¤ç¹æ£è®°å½ |
| | | */ |
| | | Result updateInspectionRecordAndDetails(DeviceInspectionRecordDto deviceInspectionRecord); |
| | | |
| | | /** |
| | | * å é¤è®¾å¤ç¹æ£è®°å½ |
| | | * @param deviceInspectionRecord 设å¤ç¹æ£è®°å½ |
| | | */ |
| | | Result deleteDeviceInspectionRecordOrDetails(DeviceInspectionRecordDto deviceInspectionRecord); |
| | | |
| | | /** |
| | | * 夿 ¸ç¹æ£è®°å½ |
| | | * @param deviceExamineRecordDto |
| | | * @return |
| | | */ |
| | | Result reviewDeviceInspectionRecord(DeviceInspectionRecordDto deviceExamineRecordDto); |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ç¹æ£è®°å½ |
| | | * |
| | | * @param deviceInspectionRecordId 设å¤ç¹æ£è®°å½id |
| | | * @param response |
| | | */ |
| | | Result exportDeviceInspectionRecord(Integer deviceInspectionRecordId, HttpServletResponse response); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceInstructionDto; |
| | | import com.ruoyi.device.dto.DeviceOperationInstructionDto; |
| | | import com.ruoyi.device.pojo.DeviceInstruction; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½ä¸æå¯¼ä¹¦æ·»å åæ§æä»¶è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:29:18 |
| | | */ |
| | | public interface DeviceInstructionService extends IService<DeviceInstruction> { |
| | | |
| | | IPage<DeviceOperationInstructionDto> pageByPageQueryOfHomeworkInstructions(Page page, DeviceOperationInstructionDto operationInstructionDto); |
| | | |
| | | void newHomeworkGuidebookAdded(DeviceInstructionDto instructionDto); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlanDetails; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å详æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:11:46 |
| | | */ |
| | | public interface DeviceMaintenancePlanDetailsService extends IService<DeviceMaintenancePlanDetails> { |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceMaintenancePlanDto; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlan; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:10:52 |
| | | */ |
| | | public interface DeviceMaintenancePlanService extends IService<DeviceMaintenancePlan> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ä¿å
»è®¡å |
| | | * @param page å½å页 |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | * @return |
| | | */ |
| | | Result<IPage<DeviceMaintenancePlan>> selectDeviceMaintenancePlanByPage(Page page, DeviceMaintenancePlanDto deviceMaintenancePlanDto); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤ä¿å
»è®¡å |
| | | * |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | Result addMaintenancePlan(DeviceMaintenancePlanDto deviceMaintenancePlanDto); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤ä¿å
»è®¡å |
| | | * |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | Result updateMaintenancePlan(DeviceMaintenancePlanDto deviceMaintenancePlanDto); |
| | | |
| | | /** |
| | | * å é¤è®¾å¤ä¿å
»è®¡å |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | Result deleteMaintenancePlan(DeviceMaintenancePlanDto deviceMaintenancePlanDto); |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ä¿å
»è®¡å |
| | | * |
| | | * @param maintenancePlanId 设å¤ä¿å
»è®¡åid |
| | | * @param response ååº |
| | | */ |
| | | Result exportDeviceMaintenancePlanDto(Integer maintenancePlanId, HttpServletResponse response); |
| | | |
| | | /** |
| | | * æ¥ç设å¤ä¿å
»è®¡å详æ
|
| | | * @param maintenancePlanId 设å¤ä¿å
»è®¡åid |
| | | * @return |
| | | */ |
| | | Result<DeviceMaintenancePlanDto> getMaintenancePlanDetail(Integer maintenancePlanId); |
| | | |
| | | /** |
| | | * æäº¤å®¡æ ¸ |
| | | * @param deviceMaintenancePlanDto |
| | | * @return |
| | | */ |
| | | Result submitReviewMaintenancePlanStatus(DeviceMaintenancePlanDto deviceMaintenancePlanDto); |
| | | |
| | | /** |
| | | * å®¡æ ¸è®¾å¤ä¿å
»è®¡åç¶æ |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | * @return |
| | | */ |
| | | Result reviewMaintenancePlanStatus(DeviceMaintenancePlanDto deviceMaintenancePlanDto); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceMaintenanceDto; |
| | | import com.ruoyi.device.pojo.DeviceMaintenance; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * 设å¤ç»´æ¤ä¿å
» |
| | | */ |
| | | public interface DeviceMaintenanceService extends IService<DeviceMaintenance> { |
| | | |
| | | /** |
| | | * 设å¤ç»´æ¤å页æ¥è¯¢ |
| | | * @return |
| | | */ |
| | | IPage<DeviceMaintenanceDto> selectDeviceMaintenancePage(Page page, DeviceMaintenanceDto deviceMaintenance); |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ç»´æ¤ä¿å
» |
| | | * @param deviceId |
| | | * @param response |
| | | * @return |
| | | */ |
| | | void exportDeviceMaintenance(Integer deviceId, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceMetricRecord; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:01 |
| | | */ |
| | | public interface DeviceMetricRecordService extends IService<DeviceMetricRecord> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceMetricsCopy; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ - æ ¡åæ¡ç® æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:11 |
| | | */ |
| | | public interface DeviceMetricsCopyService extends IService<DeviceMetricsCopy> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceOperationInstructionDto; |
| | | import com.ruoyi.device.pojo.OperationInstruction; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤ - ä½ä¸æå¯¼ä¹¦ æ·»å åæ§æä»¶ å æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:43:32 |
| | | */ |
| | | public interface DeviceOperationInstructionService extends IService<OperationInstruction> { |
| | | |
| | | List<DeviceOperationInstructionDto> homeworkGuidebookEditor(Integer instructionId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceRecordDto; |
| | | import com.ruoyi.device.pojo.DeviceRecord; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * cnas设å¤ä½¿ç¨è®°å½è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 11:06:47 |
| | | */ |
| | | public interface DeviceRecordService extends IService<DeviceRecord> { |
| | | |
| | | IPage<DeviceRecordDto> deviceRecordPage(Integer deviceId, Page page, String sampleCode, String managementNumber); |
| | | |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ä½¿ç¨è®°å½ |
| | | * |
| | | * @param deviceId |
| | | * @param response |
| | | */ |
| | | void exportUseRecord(Integer deviceId, String exportDate, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.pojo.DeviceScrapped; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ¥åºç³è¯·è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 01:53:47 |
| | | */ |
| | | public interface DeviceScrappedService extends IService<DeviceScrapped> { |
| | | |
| | | /** |
| | | * è®¾å¤æ¥åºç³è¯·å表 |
| | | * @param page |
| | | * @param deviceScrapped |
| | | * @return |
| | | */ |
| | | IPage<DeviceScrapped> pageDeviceScrapped(Page page, DeviceScrapped deviceScrapped); |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¥åºç³è¯· |
| | | * @param deviceScrapped |
| | | * @return |
| | | */ |
| | | boolean addDeviceScrapped(DeviceScrapped deviceScrapped); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤æ¥åºç³è¯· |
| | | * @param scrappedId è®¾å¤æ¥åºç³è¯·id |
| | | * @return |
| | | */ |
| | | Result exportDeviceScrapped(Integer scrappedId, HttpServletResponse response); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.device.dto.DeviceCollectionDto; |
| | | import com.ruoyi.device.dto.DeviceDto; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletRequest; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 设å¤(Device)表æå¡æ¥å£ |
| | | */ |
| | | public interface DeviceService extends IService<Device> { |
| | | |
| | | |
| | | IPage<DeviceDto> selectDeviceParameter(Page page, DeviceDto itemParameter, Boolean laboratoryNameIsNull); |
| | | |
| | | int addDeviceParameter(Device itemParameter); |
| | | |
| | | int delDeviceParameter(Integer id); |
| | | |
| | | int upDeviceParameter(Device itemParameter); |
| | | |
| | | List<Device> selectEquipmentOverview(); |
| | | |
| | | List<Device> authorizedPerson(); |
| | | |
| | | List<Device> search(Integer status, String deviceName, String specificationModel, String largeCategory); |
| | | |
| | | List<Device> selectDeviceByCategory(String inspectionItem, String inspectionItemSubclass,String laboratory); |
| | | |
| | | DeviceDto selectDeviceByCode(Integer id); |
| | | |
| | | Result<?> dataAcquisition(HttpServletRequest request, DeviceCollectionDto dto); |
| | | |
| | | List<Map<String, Object>> treeDevice(String deviceName); |
| | | |
| | | /** |
| | | * 导åºè®¾å¤å表 |
| | | * @param deviceId |
| | | * @param response |
| | | */ |
| | | void exportDeviceFile(Integer deviceId, HttpServletResponse response); |
| | | |
| | | /** |
| | | * 导åºè®¾å¤å·¥å
·æç» |
| | | * @param response |
| | | */ |
| | | void exportEquipmentDetails(HttpServletResponse response); |
| | | |
| | | void downloadImportTemplate(HttpServletResponse response); |
| | | |
| | | int importDevice(MultipartFile file); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.dto.DeviceStateDto; |
| | | import com.ruoyi.device.pojo.DeviceState; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤åç¨/å¯ç¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-26 09:51:40 |
| | | */ |
| | | public interface DeviceStateService extends IService<DeviceState> { |
| | | |
| | | IPage<DeviceStateDto> getDeviceStatePage(Integer deviceId, Page page, String processNumber); |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ç¶æ |
| | | * |
| | | * @param deviceId |
| | | * @param processNumber |
| | | * @param response |
| | | */ |
| | | void exportDeviceStatus(Integer deviceId, String processNumber, HttpServletResponse response); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagementDetails; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å详æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:58 |
| | | */ |
| | | public interface DeviceTraceabilityManagementDetailsService extends IService<DeviceTraceabilityManagementDetails> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DeviceTraceabilityManagementDto; |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagement; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:44 |
| | | */ |
| | | public interface DeviceTraceabilityManagementService extends IService<DeviceTraceabilityManagement> { |
| | | |
| | | /** |
| | | * å页æ¥è¯¢é弿º¯æºè®¡å |
| | | * @param page å页忰 |
| | | * @param itemParameter é弿º¯æºè®¡å |
| | | * @return |
| | | */ |
| | | Result<IPage<DeviceTraceabilityManagement>> selectDeviceTraceabilityManagementByPage(@Param("page") Page page, @Param("itemParameter") DeviceTraceabilityManagementDto itemParameter); |
| | | |
| | | /** |
| | | * æ°å¢é弿º¯æºè®¡å |
| | | * @param deviceTraceabilityManagementDto é弿º¯æºè®¡å |
| | | */ |
| | | Result addTraceabilityManagement(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto); |
| | | |
| | | /** |
| | | * ä¿®æ¹é弿º¯æºè®¡å |
| | | * @param deviceTraceabilityManagementDto é弿º¯æºè®¡å |
| | | */ |
| | | Result updateTraceabilityManagement(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto); |
| | | |
| | | /** |
| | | * å é¤é弿º¯æºè®¡å |
| | | * @param deviceTraceabilityManagementDto é弿º¯æºè®¡å |
| | | */ |
| | | Result deleteTraceabilityManagement(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto); |
| | | |
| | | /** |
| | | * æ¥è¯¢é弿º¯æºè®¡å详æ
|
| | | */ |
| | | Result<DeviceTraceabilityManagementDto> getTraceabilityManagementDetail(Integer traceabilityManagementId); |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @param deviceTraceabilityManagementDto |
| | | * @return |
| | | */ |
| | | Result submitReviewTraceabilityManagementStatus(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto); |
| | | |
| | | /** |
| | | * é弿º¯æºè®¡åå®¡æ ¸ |
| | | */ |
| | | Result reviewTraceabilityManagementStatus(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto); |
| | | |
| | | /** |
| | | * é弿º¯æºè®¡åå¯¼åº |
| | | */ |
| | | Result exportDeviceTraceabilityManagementDto(Integer traceabilityManagementId, HttpServletResponse response); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.device.pojo.DeviceMetric; |
| | | |
| | | public interface IDeviceMetricService extends IService<DeviceMetric> { |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.CollectBridgeMapper; |
| | | import com.ruoyi.device.pojo.CollectBridge; |
| | | import com.ruoyi.device.service.CollectBridgeService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.time.Duration; |
| | | import java.time.Instant; |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | | |
| | | /** |
| | | * æ°åçµæ¡¥éé |
| | | * |
| | | * @author zhuo |
| | | * @since 2025-02-19 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class CollectBridgeServiceImpl extends ServiceImpl<CollectBridgeMapper, CollectBridge> implements CollectBridgeService { |
| | | |
| | | /** |
| | | * å¡«å
ééæ°æ® |
| | | * @param jsonObject |
| | | */ |
| | | @Override |
| | | public void addBridgeValue(JSONObject jsonObject) { |
| | | JSONArray dataArray = jsonObject.getJSONArray("data"); |
| | | for (int i = 0; i < dataArray.size(); i++) { |
| | | JSONObject listInfo = dataArray.getJSONObject(i); |
| | | // å卿°æ® |
| | | String dataStream = listInfo.getString("dataStream"); |
| | | if (dataStream.equals("DQCS.DQCS.SN")) { |
| | | JSONArray dataPoints = listInfo.getJSONArray("dataPoints"); |
| | | JSONObject pointsJSONObject = dataPoints.getJSONObject(0); |
| | | String entrustCode = pointsJSONObject.getString("value"); |
| | | // è§£ææ¶é´æ³ |
| | | Instant instant = Instant.ofEpochMilli(pointsJSONObject.getLong("time")); |
| | | LocalDateTime collectDate = LocalDateTime.ofInstant(instant, ZoneId.systemDefault()); |
| | | |
| | | // å
åå¨ç¼å·, åç»åå¨å¼ |
| | | CollectBridge collectBridge = new CollectBridge(); |
| | | collectBridge.setEntrustCode(entrustCode); |
| | | collectBridge.setCollectDate(collectDate); |
| | | baseMapper.insert(collectBridge); |
| | | |
| | | } |
| | | // å¯åå¨å°åçäº64è·åç»æå¼ |
| | | if (dataStream.equals("DQCS.DQCS.64")) { |
| | | JSONArray dataPoints = listInfo.getJSONArray("dataPoints"); |
| | | JSONObject pointsJSONObject = dataPoints.getJSONObject(0); |
| | | String value = pointsJSONObject.getString("value"); |
| | | |
| | | if (value.equals("64")) { |
| | | for (int j = 0; j < dataArray.size(); j++) { |
| | | JSONObject listInfo2 = dataArray.getJSONObject(j); |
| | | String dataStream2 = listInfo2.getString("dataStream"); |
| | | // å¯åå¨å°åçäº64è·åç»æå¼ |
| | | if (dataStream2.equals("DQCS.DQCS.DZZ")) { |
| | | JSONArray dataPoints2 = listInfo2.getJSONArray("dataPoints"); |
| | | JSONObject pointsJSONObject2 = dataPoints2.getJSONObject(0); |
| | | String collectValue = pointsJSONObject2.getString("value"); |
| | | |
| | | // è§£ææ¶é´æ³ |
| | | Instant instant = Instant.ofEpochMilli(pointsJSONObject2.getLong("time")); |
| | | LocalDateTime collectDate = LocalDateTime.ofInstant(instant, ZoneId.systemDefault()); |
| | | |
| | | // æ¥è¯¢ææ°ä¸æ¡æ°æ® |
| | | CollectBridge collectBridge = baseMapper.selectOne(Wrappers.<CollectBridge>lambdaQuery() |
| | | .orderByDesc(CollectBridge::getCollectDate) |
| | | .last("limit 1")); |
| | | |
| | | // å¤æä¸¤æ¡æ°æ®æ¯å¦ç¸å·®å¨10åéä¹å
åææ²¡æç¼å· |
| | | if (isWithinTenMinutes(collectDate, collectBridge.getCollectDate()) && |
| | | StringUtils.isNotBlank(collectBridge.getEntrustCode())) { |
| | | // ä¿®æ¹æ£éªå¼ |
| | | collectBridge.setCollectValue(collectValue); |
| | | baseMapper.updateById(collectBridge); |
| | | } else { |
| | | // åªåå¨å¼ |
| | | CollectBridge bridge = new CollectBridge(); |
| | | bridge.setCollectValue(collectValue); |
| | | bridge.setCollectDate(collectDate); |
| | | baseMapper.insert(bridge); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | public static boolean isWithinTenMinutes(LocalDateTime dateTime1, LocalDateTime dateTime2) { |
| | | Duration duration = Duration.between(dateTime1, dateTime2); |
| | | long minutesDifference = Math.abs(duration.toMinutes()); |
| | | return minutesDifference <= 10; |
| | | } |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.device.dto.DataConfigDto; |
| | | import com.ruoyi.device.mapper.DataConfigMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.pojo.DataConfig; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.service.DataConfigService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-07-13 12:23:00 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class DataConfigServiceImpl extends ServiceImpl<DataConfigMapper, DataConfig> implements DataConfigService { |
| | | |
| | | private DeviceMapper deviceMapper; |
| | | |
| | | private DataConfigMapper dataConfigMapper; |
| | | |
| | | /** |
| | | * ç»´æ¤è®¾å¤æä»¶é
ç½® |
| | | * @param dataConfigList |
| | | */ |
| | | @Override |
| | | public void saveDeviceFileConfiguration(DataConfigDto dataConfigList) { |
| | | if (dataConfigList.getDeviceId() == null) { |
| | | throw new RuntimeException("缺å°è®¾å¤Id"); |
| | | } |
| | | |
| | | Device device = new Device(); |
| | | BeanUtils.copyProperties(dataConfigList, device); |
| | | device.setId(dataConfigList.getDeviceId()); |
| | | deviceMapper.updateById(device); |
| | | } |
| | | |
| | | /** |
| | | * æ°éé
ç½® |
| | | * @param dataConfigList |
| | | */ |
| | | @Override |
| | | public void saveDataAcquisitionConfiguration(DataConfigDto dataConfigList) { |
| | | if (dataConfigList.getDeviceId() == null) { |
| | | throw new RuntimeException("缺å°è®¾å¤id"); |
| | | } |
| | | |
| | | for (DataConfig dataConfig : dataConfigList.getDataConfigList()) { |
| | | if (dataConfig.getStructureItemParameterId() == null) { |
| | | throw new RuntimeException("ç¼ºå°æ£éªé¡¹id"); |
| | | } |
| | | dataConfig.setDeviceId(dataConfigList.getDeviceId()); |
| | | } |
| | | |
| | | this.saveOrUpdateBatch(dataConfigList.getDataConfigList()); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public Result<?> queryDataAcquisitionConfiguration(DataConfig dataConfig) { |
| | | return Result.success(dataConfigMapper.selectDataConfigList(dataConfig.getDeviceId())); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£éªé¡¹æ°éé
ç½® |
| | | * @param dataConfig |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result<?> queryProductConfiguration(DataConfig dataConfig) { |
| | | if (dataConfig.getStructureItemParameterId() == null) { |
| | | throw new RuntimeException("ç¼ºå°æ£æµé¡¹id"); |
| | | } |
| | | List<DataConfig> list = baseMapper.selectList(Wrappers.<DataConfig>lambdaQuery().eq(DataConfig::getStructureItemParameterId, dataConfig.getStructureItemParameterId())); |
| | | return Result.success(list); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢äºç»å®ä½æ¯æ²¡æé
ç½®çæ£éªé¡¹ |
| | | * @param deviceId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DataConfig> getNoConfigProduct(Page page, Integer deviceId) { |
| | | return baseMapper.getNoConfigProduct(page, deviceId); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceAcceptanceFileMapper; |
| | | import com.ruoyi.device.pojo.DeviceAcceptanceFile; |
| | | import com.ruoyi.device.service.DeviceAcceptanceFileService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤)é件表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:26 |
| | | */ |
| | | @Service |
| | | public class DeviceAcceptanceFileServiceImpl extends ServiceImpl<DeviceAcceptanceFileMapper, DeviceAcceptanceFile> implements DeviceAcceptanceFileService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.device.mapper.DeviceAcceptanceFileMapper; |
| | | import com.ruoyi.device.mapper.DeviceAcceptanceMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceAcceptance; |
| | | import com.ruoyi.device.pojo.DeviceAcceptanceFile; |
| | | import com.ruoyi.device.service.DeviceAcceptanceService; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤éªæ¶(è£
å¤) æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 01:45:14 |
| | | */ |
| | | @Service |
| | | public class DeviceAcceptanceServiceImpl extends ServiceImpl<DeviceAcceptanceMapper, DeviceAcceptance> implements DeviceAcceptanceService { |
| | | |
| | | @Resource |
| | | private DeviceAcceptanceFileMapper deviceAcceptanceFileMapper; |
| | | |
| | | @Resource |
| | | private DeviceMapper deviceMapper; |
| | | |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | /** |
| | | * 设å¤éªæ¶å表 |
| | | * @param page |
| | | * @param deviceAcceptance |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceAcceptance> pageDeviceAcceptance(Page page, DeviceAcceptance deviceAcceptance) { |
| | | return baseMapper.pageDeviceAcceptance(page, QueryWrappers.queryWrappers(deviceAcceptance)); |
| | | } |
| | | |
| | | /** |
| | | * 设å¤éªæ¶éä»¶ |
| | | * @param acceptanceId |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean uploadDeviceAcceptanceFile(Integer acceptanceId, MultipartFile file) { |
| | | if (acceptanceId == null) { |
| | | throw new ErrorException("缺å°éªæ¶id"); |
| | | } |
| | | |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | String filename = file.getOriginalFilename(); |
| | | String contentType = file.getContentType(); |
| | | DeviceAcceptanceFile acceptanceFile = new DeviceAcceptanceFile(); |
| | | acceptanceFile.setAcceptanceId(acceptanceId); |
| | | acceptanceFile.setFileName(filename); |
| | | if (contentType != null && contentType.startsWith("image/")) { |
| | | // æ¯å¾ç |
| | | path = imgUrl; |
| | | acceptanceFile.setType(1); |
| | | } else { |
| | | // æ¯æä»¶ |
| | | path = wordUrl; |
| | | acceptanceFile.setType(2); |
| | | } |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddHHmmss")) + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | acceptanceFile.setFileUrl(pathName); |
| | | deviceAcceptanceFileMapper.insert(acceptanceFile); |
| | | return true; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 设å¤éªæ¶å¯¼åº |
| | | * @param acceptanceId 设å¤éªæ¶id |
| | | * @param response ååºä½ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public void exportDeviceAcceptance(Integer acceptanceId, HttpServletResponse response) { |
| | | DeviceAcceptance deviceAcceptance = baseMapper.selectById(acceptanceId); |
| | | if (deviceAcceptance == null) { |
| | | throw new ErrorException("设å¤éªæ¶ä¸åå¨"); |
| | | } |
| | | Device device = null; |
| | | if (deviceAcceptance.getDeviceId() != null) { |
| | | device = deviceMapper.selectById(deviceAcceptance.getDeviceId()); |
| | | } |
| | | |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/acceptance-certificate.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceInspectionRecordDetailsList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | Device finalDevice = device; |
| | | String deviceName = device.getDeviceName() == null ? "" : device.getDeviceName(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceAcceptance", deviceAcceptance); |
| | | put("device", finalDevice); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | deviceName+ "éªæ¶å", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.dto.DeviceAccidentReportDto; |
| | | import com.ruoyi.device.mapper.DeviceAccidentReportMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceAccidentReport; |
| | | import com.ruoyi.device.service.DeviceAccidentReportService; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDate; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤äºæ
æ¥åå æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 06:31:12 |
| | | */ |
| | | @Service |
| | | public class DeviceAccidentReportServiceImpl extends ServiceImpl<DeviceAccidentReportMapper, DeviceAccidentReport> implements DeviceAccidentReportService { |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | |
| | | @Resource |
| | | private DeviceMapper deivceMapper; |
| | | |
| | | /** |
| | | * 设å¤äºæ
æ¥åå表 |
| | | * @param page |
| | | * @param deviceAccidentReport |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceAccidentReport> pageDeviceAccidentReport(Page page, DeviceAccidentReport deviceAccidentReport) { |
| | | return baseMapper.pageDeviceAccidentReport(page, QueryWrappers.queryWrappers(deviceAccidentReport)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤äºæ
æ¥å |
| | | * @param deviceAccidentReport |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addDeviceAccidentReport(DeviceAccidentReport deviceAccidentReport) { |
| | | DeviceAccidentReport accidentReport = new DeviceAccidentReport(); |
| | | User user = userMapper.selectById(SecurityUtils.getUserId().intValue()); |
| | | switch (deviceAccidentReport.getFlowType()) { |
| | | case 0: |
| | | // æ¥å |
| | | BeanUtils.copyProperties(deviceAccidentReport, accidentReport); |
| | | accidentReport.setDescriptionOfAccident(deviceAccidentReport.getDescriptionOfAccident()); |
| | | accidentReport.setReportUserId(user.getId()); |
| | | accidentReport.setReportUser(user.getName()); |
| | | accidentReport.setReportDate(LocalDate.now()); |
| | | |
| | | // è¯ä¼°äººä¿¡æ¯ |
| | | User assessorUser = userMapper.selectById(deviceAccidentReport.getAssessorUserId()); |
| | | accidentReport.setAssessorUserId(assessorUser.getId()); |
| | | accidentReport.setAssessorUser(assessorUser.getName()); |
| | | |
| | | baseMapper.insert(accidentReport); |
| | | break; |
| | | case 1: |
| | | accidentReport.setAccidentReportId(deviceAccidentReport.getAccidentReportId()); |
| | | // è¯ä¼° |
| | | accidentReport.setAssessorOpinion(deviceAccidentReport.getAssessorOpinion()); |
| | | accidentReport.setAssessorDate(LocalDate.now()); |
| | | |
| | | // é¨é¨è´è´£äºº |
| | | User departmentHeadUser = userMapper.selectById(deviceAccidentReport.getDepartmentHeadUserId()); |
| | | accidentReport.setDepartmentHeadUserId(departmentHeadUser.getId()); |
| | | accidentReport.setDepartmentHeadUser(departmentHeadUser.getName()); |
| | | |
| | | baseMapper.updateById(accidentReport); |
| | | |
| | | break; |
| | | case 2: |
| | | accidentReport.setAccidentReportId(deviceAccidentReport.getAccidentReportId()); |
| | | // é¨é¨è´è´£äººæè§ |
| | | accidentReport.setDepartmentHeadOpinion(deviceAccidentReport.getDepartmentHeadOpinion()); |
| | | accidentReport.setDepartmentHeadDate(LocalDate.now()); |
| | | |
| | | // ææ¯è´è´£äººä¿¡æ¯ |
| | | User technicalDirectorUser = userMapper.selectById(deviceAccidentReport.getTechnicalDirectorUserId()); |
| | | accidentReport.setTechnicalDirectorUserId(technicalDirectorUser.getId()); |
| | | accidentReport.setTechnicalDirectorUser(technicalDirectorUser.getName()); |
| | | |
| | | baseMapper.updateById(accidentReport); |
| | | |
| | | break; |
| | | case 3: |
| | | accidentReport.setAccidentReportId(deviceAccidentReport.getAccidentReportId()); |
| | | // ææ¯è´è´£äººæè§ |
| | | accidentReport.setTechnicalDirectorOpinion(deviceAccidentReport.getTechnicalDirectorOpinion()); |
| | | accidentReport.setTechnicalDirectorDate(LocalDate.now()); |
| | | |
| | | // ä¸»ä»»ä¿¡æ¯ |
| | | User directorHeadUser = userMapper.selectById(deviceAccidentReport.getDirectorHeadUserId()); |
| | | accidentReport.setDirectorHeadUserId(directorHeadUser.getId()); |
| | | accidentReport.setDirectorHeadUser(directorHeadUser.getName()); |
| | | |
| | | baseMapper.updateById(accidentReport); |
| | | |
| | | break; |
| | | case 4: |
| | | accidentReport.setAccidentReportId(deviceAccidentReport.getAccidentReportId()); |
| | | // 主任æè§ |
| | | accidentReport.setDirectorHeadOpinion(deviceAccidentReport.getDirectorHeadOpinion()); |
| | | accidentReport.setDirectorHeadDate(LocalDate.now()); |
| | | |
| | | accidentReport.setIsFinish(1); |
| | | baseMapper.updateById(accidentReport); |
| | | break; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤äºæ
æ¥å |
| | | * @param accidentReportId 设å¤äºæ
æ¥åid |
| | | * @param response ååº |
| | | */ |
| | | @Override |
| | | public void exportDeviceAccidentReport(Integer accidentReportId, HttpServletResponse response) { |
| | | // æ¥è¯¢äºæ
æ¥å |
| | | DeviceAccidentReportDto deviceAccidentReport = baseMapper.selectDeviceAccidentReportById(accidentReportId); |
| | | |
| | | Device device = deivceMapper.selectById(deviceAccidentReport.getDeviceId()); |
| | | device = device == null ? new Device() : device; |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-accident-report.docx"); |
| | | Configure configure = Configure.builder() |
| | | .build(); |
| | | Device finalDevice = device; |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceAccidentReport", deviceAccidentReport); |
| | | put("device", finalDevice); |
| | | // æ¥å人ç¾å |
| | | put("reportUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getReportUserId())); |
| | | // è¯ä¼°äººç¾å |
| | | put("assessorUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getAssessorUserId())); |
| | | // é¨é¨è´è´£äººç¾å |
| | | put("departmentHeadUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getDepartmentHeadUserId())); |
| | | // ææ¯è´è´£äººç¾å |
| | | put("technicalDirectorUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getTechnicalDirectorUserId())); |
| | | // 主任ç¾å |
| | | put("directorHeadUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getDepartmentHeadUserId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String deviceName = device.getDeviceName() == null ? "" : device.getDeviceName(); |
| | | String fileName = URLEncoder.encode( |
| | | deviceName + "设å¤äºæ
æ¥åå", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.numgen.NumberGenerator; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.mapper.DeviceBorrowMapper; |
| | | import com.ruoyi.device.mapper.DeviceLogMapper; |
| | | import com.ruoyi.device.pojo.DeviceBorrow; |
| | | import com.ruoyi.device.pojo.DeviceLog; |
| | | import com.ruoyi.device.service.DeviceBorrowService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDateTime; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 10:53:51 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DeviceBorrowServiceImpl extends ServiceImpl<DeviceBorrowMapper, DeviceBorrow> implements DeviceBorrowService { |
| | | |
| | | @Resource |
| | | private DeviceBorrowMapper deviceBorrowMapper; |
| | | |
| | | @Resource |
| | | private DeviceLogMapper deviceLogMapper; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Autowired |
| | | private NumberGenerator<DeviceBorrow> numberGenerator; |
| | | |
| | | @Override |
| | | public IPage<DeviceBorrow> deviceBorrowPage(Page page, DeviceBorrow deviceBorrow) { |
| | | return deviceBorrowMapper.deviceBorrowPage(page, QueryWrappers.queryWrappers(deviceBorrow)); |
| | | } |
| | | |
| | | @Override |
| | | public int saveDeviceBorrow(DeviceBorrow deviceBorrow) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | //æ°å¢çæ¶åæ·»å æ°å»ºæµç¨ |
| | | if (ObjectUtils.isEmpty(deviceBorrow.getId())) { |
| | | deviceBorrow.setSubmitUser(user.getName()); |
| | | String year = new SimpleDateFormat("yy", Locale.CHINESE).format(new Date()); |
| | | String month = new SimpleDateFormat("MM", Locale.CHINESE).format(new Date()); |
| | | String processNumber = numberGenerator.generateNumberWithPrefix(3, "DG-TC-23FM " + month + "-" + year + month, DeviceBorrow::getProcessNumber); |
| | | deviceBorrow.setProcessNumber(processNumber); |
| | | deviceBorrowMapper.insert(deviceBorrow); |
| | | DeviceLog deviceLog = new DeviceLog(); |
| | | deviceLog.setOperator(user.getName()); |
| | | deviceLog.setOperationTime(LocalDateTime.now()); |
| | | deviceLog.setOperationType("æ°å»º"); |
| | | deviceLog.setOperationContent("æ°å»ºæµç¨"); |
| | | deviceLog.setRelevanceForm("device_borrow"); |
| | | deviceLog.setRelevanceId(deviceBorrow.getId()); |
| | | deviceLogMapper.insert(deviceLog); |
| | | } else { |
| | | DeviceBorrow borrow = deviceBorrowMapper.selectById(deviceBorrow.getId()); |
| | | deviceBorrowMapper.updateById(deviceBorrow); |
| | | //éè¿æè
驳åå¢å æµç¨è·è¸ª |
| | | if (deviceBorrow.getNowState().equals("å
³é")) { |
| | | DeviceLog deviceLog = new DeviceLog(); |
| | | deviceLog.setOperator(user.getName()); |
| | | deviceLog.setOperationTime(LocalDateTime.now()); |
| | | deviceLog.setOperationType("æ¥æ¶éè¿"); |
| | | deviceLog.setRelevanceForm("device_borrow"); |
| | | deviceLog.setRelevanceId(deviceBorrow.getId()); |
| | | deviceLogMapper.insert(deviceLog); |
| | | } |
| | | else if (deviceBorrow.getNowState().equals("æäº¤") && borrow.getNowState().equals("æ¥æ¶")) { |
| | | DeviceLog deviceLog = new DeviceLog(); |
| | | deviceLog.setOperator(user.getName()); |
| | | deviceLog.setOperationTime(LocalDateTime.now()); |
| | | deviceLog.setOperationType("æ¥æ¶é©³å"); |
| | | deviceLog.setRelevanceForm("device_borrow"); |
| | | deviceLog.setRelevanceId(deviceBorrow.getId()); |
| | | deviceLogMapper.insert(deviceLog); |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | @Override |
| | | public DeviceBorrow getDeviceBorrow(Integer id) { |
| | | List<DeviceLog> deviceLogs = deviceLogMapper.selectList(Wrappers.<DeviceLog>lambdaQuery() |
| | | .eq(DeviceLog::getRelevanceForm, "device_borrow") |
| | | .eq(DeviceLog::getRelevanceId, id)); |
| | | DeviceBorrow deviceBorrow = deviceBorrowMapper.selectById(id); |
| | | deviceBorrow.setDeviceLogs(deviceLogs); |
| | | return deviceBorrow; |
| | | } |
| | | |
| | | @Override |
| | | public List<DeviceBorrow> getDeviceBorrowBydeviceId(Integer deviceId) { |
| | | return deviceBorrowMapper.getDeviceBorrowBydeviceId(deviceId); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.dto.DeviceBreakdownMaintenance; |
| | | import com.ruoyi.device.mapper.DeviceBreakdownMaintenanceMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.service.DeviceBreakdownMaintenanceService; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDate; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ
é维修表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 04:50:57 |
| | | */ |
| | | @Service |
| | | public class DeviceBreakdownMaintenanceServiceImpl extends ServiceImpl<DeviceBreakdownMaintenanceMapper, DeviceBreakdownMaintenance> implements DeviceBreakdownMaintenanceService { |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Resource |
| | | private DeviceMapper deivceMapper; |
| | | |
| | | /** |
| | | * è®¾å¤æ
éç»´ä¿®å表 |
| | | * @param page |
| | | * @param deviceBreakdownMaintenance |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceBreakdownMaintenance> pageDeviceBreakdownMaintenance(Page page, DeviceBreakdownMaintenance deviceBreakdownMaintenance) { |
| | | return baseMapper.pageDeviceBreakdownMaintenance(page, QueryWrappers.queryWrappers(deviceBreakdownMaintenance)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ
éç»´ä¿® |
| | | * @param deviceBreakdownMaintenance |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addDeviceBreakdownMaintenance(DeviceBreakdownMaintenance deviceBreakdownMaintenance) { |
| | | DeviceBreakdownMaintenance breakdownMaintenance = new DeviceBreakdownMaintenance(); |
| | | //å½åç»å½ç¨æ· |
| | | User user = userMapper.selectById(SecurityUtils.getUserId().intValue()); |
| | | |
| | | switch (deviceBreakdownMaintenance.getFlowType()) { |
| | | case 0: |
| | | BeanUtils.copyProperties(deviceBreakdownMaintenance, breakdownMaintenance); |
| | | // ç³è¯· |
| | | breakdownMaintenance.setDamageOrMalfunction(deviceBreakdownMaintenance.getDamageOrMalfunction()); |
| | | breakdownMaintenance.setApplicantUserId(user.getId()); |
| | | breakdownMaintenance.setApplicantUser(user.getName()); |
| | | breakdownMaintenance.setRepairDate(deviceBreakdownMaintenance.getRepairDate()); |
| | | |
| | | // å¤çäººä¿¡æ¯ |
| | | User departmentHeadUser = userMapper.selectById(deviceBreakdownMaintenance.getDepartmentHeadUserId()); |
| | | breakdownMaintenance.setApplicantUserId(departmentHeadUser.getId()); |
| | | breakdownMaintenance.setApplicantUser(departmentHeadUser.getName()); |
| | | |
| | | baseMapper.insert(breakdownMaintenance); |
| | | break; |
| | | case 1: |
| | | breakdownMaintenance.setMaintenanceId(deviceBreakdownMaintenance.getMaintenanceId()); |
| | | // ç³è¯·é¨é¨è´è´£äººæè§ |
| | | breakdownMaintenance.setDepartmentHeadOpinion(deviceBreakdownMaintenance.getDepartmentHeadOpinion()); |
| | | breakdownMaintenance.setDepartmentHeadDate(LocalDate.now()); |
| | | |
| | | baseMapper.updateById(breakdownMaintenance); |
| | | break; |
| | | case 2: |
| | | breakdownMaintenance.setMaintenanceId(deviceBreakdownMaintenance.getMaintenanceId()); |
| | | // 计é室æè§ |
| | | breakdownMaintenance.setMaintenanceRecord(deviceBreakdownMaintenance.getMaintenanceRecord()); |
| | | breakdownMaintenance.setMaintenanceUser(deviceBreakdownMaintenance.getMaintenanceUser()); |
| | | breakdownMaintenance.setMaintenanceDate(deviceBreakdownMaintenance.getMaintenanceDate()); |
| | | |
| | | breakdownMaintenance.setIsFinish(1); |
| | | |
| | | baseMapper.updateById(breakdownMaintenance); |
| | | break; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ
éç»´ä¿® |
| | | * @param maintenanceId è®¾å¤æ
éç»´ä¿®id |
| | | * @param response ååº |
| | | */ |
| | | @Override |
| | | public void exportDeviceBreakdownMaintenance(Integer maintenanceId, HttpServletResponse response) { |
| | | // æ¥è¯¢å¤é¨è®¾å¤ç³è¯· |
| | | DeviceBreakdownMaintenance deviceBreakdownMaintenance = baseMapper.selectById(maintenanceId); |
| | | |
| | | Device device = null; |
| | | if (deviceBreakdownMaintenance.getDeviceId() != null) { |
| | | device = deivceMapper.selectById(deviceBreakdownMaintenance.getDeviceId()); |
| | | device = device == null ? new Device() : device; |
| | | } |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-breakdown-maintenance.docx"); |
| | | Configure configure = Configure.builder() |
| | | .build(); |
| | | Device finalDevice = device; |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceBreakdownMaintenance", deviceBreakdownMaintenance); |
| | | put("device", finalDevice); |
| | | // ç³è¯·äººç¾å |
| | | put("applicantUrl", UserUtils.getFinalUserSignatureUrl(deviceBreakdownMaintenance.getApplicantUserId())); |
| | | // é¨é¨è´è´£äººç¾å |
| | | put("headUrl", UserUtils.getFinalUserSignatureUrl(deviceBreakdownMaintenance.getDepartmentHeadUserId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String deviceName = device.getDeviceName() == null ? "" : device.getDeviceName(); |
| | | String fileName = URLEncoder.encode( |
| | | deviceName + "è®¾å¤æ
éç»´ä¿®ç³è¯·è¡¨", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceCalibrationPlanDetailMapper; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlanDetail; |
| | | import com.ruoyi.device.service.DeviceCalibrationPlanDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å详æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:29 |
| | | */ |
| | | @Service |
| | | public class DeviceCalibrationPlanDetailServiceImpl extends ServiceImpl<DeviceCalibrationPlanDetailMapper, DeviceCalibrationPlanDetail> implements DeviceCalibrationPlanDetailService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.constant.MenuJumpPathConstants; |
| | | import com.ruoyi.common.core.domain.entity.InformationNotification; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.WxCpUtils; |
| | | import com.ruoyi.device.dto.DeviceCalibrationPlanDetailDto; |
| | | import com.ruoyi.device.dto.DeviceCalibrationPlanDto; |
| | | import com.ruoyi.device.excel.upload.DeviceCalibrationPlanDetailUpload; |
| | | import com.ruoyi.device.mapper.DeviceCalibrationPlanDetailMapper; |
| | | import com.ruoyi.device.mapper.DeviceCalibrationPlanMapper; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlan; |
| | | import com.ruoyi.device.pojo.DeviceCalibrationPlanDetail; |
| | | import com.ruoyi.device.service.DeviceCalibrationPlanDetailService; |
| | | import com.ruoyi.device.service.DeviceCalibrationPlanService; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.system.service.InformationNotificationService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å计å主表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 03:58:17 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DeviceCalibrationPlanServiceImpl extends ServiceImpl<DeviceCalibrationPlanMapper, DeviceCalibrationPlan> implements DeviceCalibrationPlanService { |
| | | |
| | | @Resource |
| | | private DeviceCalibrationPlanDetailMapper deviceCalibrationPlanDetailMapper; |
| | | @Resource |
| | | private DeviceCalibrationPlanDetailService deviceCalibrationPlanDetailService; |
| | | @Resource |
| | | private ThreadPoolTaskExecutor threadPoolTaskExecutor; |
| | | @Resource |
| | | private InformationNotificationService informationNotificationService; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ ¡å计å |
| | | * @param calibrationPlanDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addDeviceCalibrationPlan(DeviceCalibrationPlanDto calibrationPlanDto) { |
| | | // å½åç»å½ç¨æ· |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // ç¼å¶æ¥æ |
| | | calibrationPlanDto.setWriteUserId(userId); |
| | | calibrationPlanDto.setWriteTime(LocalDateTime.now()); |
| | | baseMapper.insert(calibrationPlanDto); |
| | | |
| | | // æ·»å 详æ
|
| | | if (CollectionUtils.isNotEmpty(calibrationPlanDto.getCalibrationPlanDetailList())) { |
| | | for (DeviceCalibrationPlanDetail calibrationPlanDetail : calibrationPlanDto.getCalibrationPlanDetailList()) { |
| | | calibrationPlanDetail.setPlanId(calibrationPlanDto.getPlanId()); |
| | | } |
| | | deviceCalibrationPlanDetailService.saveBatch(calibrationPlanDto.getCalibrationPlanDetailList()); |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导å
¥è®¾å¤æ ¡å计å |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean importDeviceCalibrationPlan(MultipartFile file, String planYear) { |
| | | // å½åç»å½ç¨æ· |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // æä»¶åç§° |
| | | String fileName = file.getOriginalFilename().substring(0, file.getOriginalFilename().lastIndexOf(".")); |
| | | DeviceCalibrationPlan calibrationPlan = new DeviceCalibrationPlan(); |
| | | calibrationPlan.setPlanName(fileName); |
| | | calibrationPlan.setPlanYear(planYear); |
| | | calibrationPlan.setWriteUserId(userId); |
| | | calibrationPlan.setWriteTime(LocalDateTime.now()); |
| | | baseMapper.insert(calibrationPlan); |
| | | |
| | | List<DeviceCalibrationPlanDetail> detailsUploadList = new ArrayList<>(); |
| | | // 导å
¥éä»¶å
容 |
| | | try { |
| | | // excelè§£æ |
| | | EasyExcel.read(file.getInputStream(), DeviceCalibrationPlanDetailUpload.class, new AnalysisEventListener<DeviceCalibrationPlanDetailUpload>() { |
| | | @Override |
| | | public void invoke(DeviceCalibrationPlanDetailUpload detailsUpload, AnalysisContext analysisContext) { |
| | | // 夿æ¯å¦ä¸ºç©º |
| | | if (StringUtils.isNotBlank(detailsUpload.getDeviceName()) && |
| | | StringUtils.isNotBlank(detailsUpload.getDeviceNumber())) { |
| | | // 对象å¤å¶ |
| | | DeviceCalibrationPlanDetail calibrationPlanDetail = new DeviceCalibrationPlanDetail(); |
| | | BeanUtils.copyProperties(detailsUpload, calibrationPlanDetail); |
| | | // æ ¼å¼è¯æè¿æ£å®æ¶é´åæ¬å¹´è®¡åæ ¡åæ¶é´ |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd"); |
| | | calibrationPlanDetail.setLastDate(LocalDate.parse(detailsUpload.getLastDate(), formatter)); |
| | | calibrationPlanDetail.setPlanDate(LocalDate.parse(detailsUpload.getLastDate(), formatter)); |
| | | |
| | | calibrationPlanDetail.setPlanId(calibrationPlan.getPlanId()); |
| | | detailsUploadList.add(calibrationPlanDetail); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext analysisContext) { |
| | | |
| | | } |
| | | }).sheet().doRead(); |
| | | deviceCalibrationPlanDetailService.saveBatch(detailsUploadList); |
| | | |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @param deviceCalibrationPlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean submiatRatifyDeviceCalibrationPlan(DeviceCalibrationPlan deviceCalibrationPlan) { |
| | | baseMapper.update(null, Wrappers.<DeviceCalibrationPlan>lambdaUpdate() |
| | | .eq(DeviceCalibrationPlan::getPlanId, deviceCalibrationPlan.getPlanId()) |
| | | .set(DeviceCalibrationPlan::getRatifyUserId, deviceCalibrationPlan.getRatifyUserId()) |
| | | .set(DeviceCalibrationPlan::getRatifyRemark, null) |
| | | .set(DeviceCalibrationPlan::getRatifyStatus, null) |
| | | .set(DeviceCalibrationPlan::getRatifyTime, null) |
| | | ); |
| | | |
| | | DeviceCalibrationPlan calibrationPlan = baseMapper.selectById(deviceCalibrationPlan.getPlanId()); |
| | | |
| | | // åéæ¶æ¯ |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | // æ¶æ¯åé |
| | | InformationNotification info = new InformationNotification(); |
| | | // åé人 |
| | | info.setCreateUser(user.getName()); |
| | | info.setMessageType("6"); |
| | | info.setTheme("CNASè®¾å¤æ ¡åè®¡åæ¹åéç¥"); |
| | | info.setContent(calibrationPlan.getPlanName() + "çè®¾å¤æ ¡å计åå¾
æ¹å"); |
| | | info.setSenderId(userId); |
| | | // æ¥æ¶äºº |
| | | info.setConsigneeId(deviceCalibrationPlan.getRatifyUserId()); |
| | | info.setJumpPath(MenuJumpPathConstants.DEVICE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // åéä¼ä¸å¾®ä¿¡éç¥ |
| | | threadPoolTaskExecutor.execute(() -> { |
| | | // æ¥è¯¢æ¥æ¶äºº |
| | | User personnel = userMapper.selectById(deviceCalibrationPlan.getPlanId()); |
| | | |
| | | String message = ""; |
| | | message += "CNASè®¾å¤æ ¡åè®¡åæ¹åéç¥"; |
| | | message += "\n请å»èµæºç®¡ç-设å¤ä¸å±ç®å½-è®¾å¤æ ¡å计åå¡«å"; |
| | | message += "\n" + calibrationPlan.getPlanName() + "çæ ¡å计åå¾
æ¹å"; |
| | | //åéä¼ä¸å¾®ä¿¡æ¶æ¯éç¥ |
| | | try { |
| | | WxCpUtils.inform(personnel.getAccount(), message, null); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | }); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡åè®¡åæ¹å |
| | | * @param deviceCalibrationPlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean ratifyDeviceCalibrationPlan(DeviceCalibrationPlan deviceCalibrationPlan) { |
| | | baseMapper.update(null, Wrappers.<DeviceCalibrationPlan>lambdaUpdate() |
| | | .eq(DeviceCalibrationPlan::getPlanId, deviceCalibrationPlan.getPlanId()) |
| | | .set(DeviceCalibrationPlan::getRatifyRemark, deviceCalibrationPlan.getRatifyRemark()) |
| | | .set(DeviceCalibrationPlan::getRatifyStatus, deviceCalibrationPlan.getRatifyStatus()) |
| | | .set(DeviceCalibrationPlan::getRatifyTime, LocalDateTime.now()) |
| | | ); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计åå表 |
| | | * @param page |
| | | * @param deviceCalibrationPlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceCalibrationPlanDto> pageDeviceCalibrationPlan(Page page, DeviceCalibrationPlan deviceCalibrationPlan) { |
| | | return baseMapper.pageDeviceCalibrationPlan(page, QueryWrappers.queryWrappers(deviceCalibrationPlan)); |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¡å计å详æ
å表 |
| | | * @param page |
| | | * @param deviceCalibrationPlanDetails |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceCalibrationPlanDetail> pageDeviceCalibrationPlanDetail(Page page, DeviceCalibrationPlanDetail deviceCalibrationPlanDetails) { |
| | | if (deviceCalibrationPlanDetails.getPlanId() == null) { |
| | | return new Page(); |
| | | } |
| | | return deviceCalibrationPlanDetailMapper.pageDeviceCalibrationPlanDetail(page, QueryWrappers.queryWrappers(deviceCalibrationPlanDetails)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ ¡å计å |
| | | * @param deviceCalibrationPlanId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportDeviceCalibrationPlanDetail(Integer deviceCalibrationPlanId, HttpServletResponse response) { |
| | | // æ¥è¯¢è®¾å¤æ ¡å计å |
| | | DeviceCalibrationPlan deviceCalibrationPlan = baseMapper.selectById(deviceCalibrationPlanId); |
| | | DeviceCalibrationPlanDto deviceCalibrationPlanDto = new DeviceCalibrationPlanDto(); |
| | | BeanUtils.copyProperties(deviceCalibrationPlan, deviceCalibrationPlanDto); |
| | | // 设置ç¼å¶åæ¹åæ¶é´æ ¼å¼ |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | deviceCalibrationPlanDto.setWriteTimeStr(deviceCalibrationPlan.getWriteTime() == null ? null : deviceCalibrationPlan.getWriteTime().format(formatter)); |
| | | deviceCalibrationPlanDto.setRatifyTimeStr(deviceCalibrationPlan.getRatifyTime() == null ? null : deviceCalibrationPlan.getRatifyTime().format(formatter)); |
| | | |
| | | // æ¥è¯¢è®¾å¤æ ¡å计å详æ
|
| | | List<DeviceCalibrationPlanDetail> deviceCalibrationPlanDetailList = deviceCalibrationPlanDetailMapper.selectList(Wrappers.<DeviceCalibrationPlanDetail>lambdaQuery() |
| | | .eq(DeviceCalibrationPlanDetail::getPlanId, deviceCalibrationPlanId) |
| | | .orderByAsc(DeviceCalibrationPlanDetail::getPlanDate)); |
| | | // 设置åºå· å æ¶é´ |
| | | ArrayList<DeviceCalibrationPlanDetailDto> deviceCalibrationPlanDetailDtoList = new ArrayList<>(); |
| | | deviceCalibrationPlanDetailList.forEach(deviceCalibrationPlanDetail -> { |
| | | DeviceCalibrationPlanDetailDto deviceCalibrationPlanDetailDto = new DeviceCalibrationPlanDetailDto(); |
| | | BeanUtils.copyProperties(deviceCalibrationPlanDetail, deviceCalibrationPlanDetailDto); |
| | | deviceCalibrationPlanDetailDto.setIndex(deviceCalibrationPlanDetailList.indexOf(deviceCalibrationPlanDetail) + 1); |
| | | deviceCalibrationPlanDetailDto.setLastDateStr(deviceCalibrationPlanDetail.getLastDate() == null ? null : deviceCalibrationPlanDetail.getLastDate().format(formatter)); |
| | | deviceCalibrationPlanDetailDto.setPlanDateStr(deviceCalibrationPlanDetail.getPlanDate() == null ? null : deviceCalibrationPlanDetail.getPlanDate().format(formatter)); |
| | | deviceCalibrationPlanDetailDtoList.add(deviceCalibrationPlanDetailDto); |
| | | }); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-calibration-plan.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceCalibrationPlanDetailDtoList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceCalibrationPlan", deviceCalibrationPlanDto); |
| | | put("deviceCalibrationPlanDetailDtoList", deviceCalibrationPlanDetailDtoList); |
| | | //è·åç¼å¶äººçç¾åå°å |
| | | put("organizationUrl", UserUtils.getFinalUserSignatureUrl(deviceCalibrationPlan.getRatifyUserId())); |
| | | //è·åæ¹å人çç¾åå°å |
| | | put("approvedUrl", UserUtils.getFinalUserSignatureUrl(deviceCalibrationPlan.getWriteUserId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "è®¾å¤æ ¡å计å表", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ¹éç¼è¾è®¾å¤æ ¡å |
| | | * @param calibrationPlanDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean updateDeviceCalibrationPlan(DeviceCalibrationPlanDto calibrationPlanDto) { |
| | | // å½åç»å½ç¨æ· |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // ç¼å¶æ¥æ |
| | | calibrationPlanDto.setWriteUserId(userId); |
| | | calibrationPlanDto.setWriteTime(LocalDateTime.now()); |
| | | baseMapper.updateById(calibrationPlanDto); |
| | | |
| | | // å é¤åæ¬ç详æ
|
| | | deviceCalibrationPlanDetailService.remove(Wrappers.<DeviceCalibrationPlanDetail>lambdaQuery().eq(DeviceCalibrationPlanDetail::getPlanId, calibrationPlanDto.getPlanId())); |
| | | |
| | | // æ·»å 详æ
|
| | | if (CollectionUtils.isNotEmpty(calibrationPlanDto.getCalibrationPlanDetailList())) { |
| | | for (DeviceCalibrationPlanDetail calibrationPlanDetail : calibrationPlanDto.getCalibrationPlanDetailList()) { |
| | | calibrationPlanDetail.setPlanId(calibrationPlanDto.getPlanId()); |
| | | } |
| | | deviceCalibrationPlanDetailService.saveBatch(calibrationPlanDto.getCalibrationPlanDetailList()); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ ¡å详æ
|
| | | * @param planId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public DeviceCalibrationPlanDto getDeviceCalibrationPlan(Integer planId) { |
| | | DeviceCalibrationPlan calibrationPlan = baseMapper.selectById(planId); |
| | | DeviceCalibrationPlanDto deviceCalibrationPlanDto = new DeviceCalibrationPlanDto(); |
| | | BeanUtils.copyProperties(calibrationPlan, deviceCalibrationPlanDto); |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<DeviceCalibrationPlanDetail> list = deviceCalibrationPlanDetailService.list(Wrappers.<DeviceCalibrationPlanDetail>lambdaQuery() |
| | | .eq(DeviceCalibrationPlanDetail::getPlanId, planId) |
| | | .orderByAsc(DeviceCalibrationPlanDetail::getPlanDate)); |
| | | |
| | | deviceCalibrationPlanDto.setCalibrationPlanDetailList(list); |
| | | return deviceCalibrationPlanDto; |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceDocumentsMapper; |
| | | import com.ruoyi.device.pojo.DeviceDocuments; |
| | | import com.ruoyi.device.service.DeviceDocumentsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * è®¾å¤æ¡£æ¡ |
| | | */ |
| | | @Service |
| | | public class DeviceDocumentsServiceImpl extends ServiceImpl<DeviceDocumentsMapper, DeviceDocuments> implements DeviceDocumentsService { |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceExaminePlanDetailsMapper; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import com.ruoyi.device.service.DeviceExaminePlanDetailsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å详æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:16 |
| | | */ |
| | | @Service |
| | | public class DeviceExaminePlanDetailsServiceImpl extends ServiceImpl<DeviceExaminePlanDetailsMapper, DeviceExaminePlanDetails> implements DeviceExaminePlanDetailsService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.constant.MenuJumpPathConstants; |
| | | import com.ruoyi.common.core.domain.entity.InformationNotification; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.WxCpUtils; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceExaminePlanDto; |
| | | import com.ruoyi.device.excel.upload.DeviceExaminePlanUpload; |
| | | import com.ruoyi.device.mapper.DeviceExaminePlanDetailsMapper; |
| | | import com.ruoyi.device.mapper.DeviceExaminePlanMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlan; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import com.ruoyi.device.service.DeviceExaminePlanDetailsService; |
| | | import com.ruoyi.device.service.DeviceExaminePlanService; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.system.service.InformationNotificationService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®¡å主表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:04 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DeviceExaminePlanServiceImpl extends ServiceImpl<DeviceExaminePlanMapper, DeviceExaminePlan> implements DeviceExaminePlanService { |
| | | |
| | | @Resource |
| | | private DeviceExaminePlanDetailsMapper deviceExaminePlanDetailsMapper; |
| | | @Resource |
| | | private DeviceExaminePlanDetailsService deviceExaminePlanDetailsService; |
| | | @Resource |
| | | private ThreadPoolTaskExecutor threadPoolTaskExecutor; |
| | | @Resource |
| | | private InformationNotificationService informationNotificationService; |
| | | @Resource |
| | | private DeviceMapper deviceMapper; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ ¸æ¥è®¡å |
| | | * @param examinePlanDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addDeviceExaminePlan(DeviceExaminePlanDto examinePlanDto) { |
| | | // å½åç»å½ç¨æ· |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // æä»¶åç§° |
| | | examinePlanDto.setWriteUserId(userId); |
| | | examinePlanDto.setWriteTime(LocalDateTime.now()); |
| | | baseMapper.insert(examinePlanDto); |
| | | |
| | | // æ·»å 详æ
|
| | | if (CollectionUtils.isNotEmpty(examinePlanDto.getExaminePlanDetailsList())) { |
| | | for (DeviceExaminePlanDetails deviceExaminePlanDetails : examinePlanDto.getExaminePlanDetailsList()) { |
| | | deviceExaminePlanDetails.setPlanId(examinePlanDto.getPlanId()); |
| | | } |
| | | deviceExaminePlanDetailsService.saveBatch(examinePlanDto.getExaminePlanDetailsList()); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导å
¥è®¾å¤æ ¸æ¥è®¡å |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean importDeviceExaminePlan(MultipartFile file) { |
| | | // å½åç»å½ç¨æ· |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // æä»¶åç§° |
| | | String fileName = file.getOriginalFilename().substring(0, file.getOriginalFilename().lastIndexOf(".")); |
| | | DeviceExaminePlan examinePlan = new DeviceExaminePlan(); |
| | | examinePlan.setPlanName(fileName); |
| | | examinePlan.setWriteUserId(userId); |
| | | examinePlan.setWriteTime(LocalDateTime.now()); |
| | | baseMapper.insert(examinePlan); |
| | | |
| | | List<DeviceExaminePlanDetails> examinePlanDetails = new ArrayList<>(); |
| | | // 导å
¥éä»¶å
容 |
| | | try { |
| | | // excelè§£æ |
| | | EasyExcel.read(file.getInputStream(), DeviceExaminePlanUpload.class, new AnalysisEventListener<DeviceExaminePlanUpload>() { |
| | | @Override |
| | | public void invoke(DeviceExaminePlanUpload detailsUpload, AnalysisContext analysisContext) { |
| | | // 夿æ¯å¦ä¸ºç©º |
| | | if (StringUtils.isNotBlank(detailsUpload.getDeviceName()) && |
| | | StringUtils.isNotBlank(detailsUpload.getDeviceNumber())) { |
| | | // 对象å¤å¶ |
| | | DeviceExaminePlanDetails planDetails = new DeviceExaminePlanDetails(); |
| | | BeanUtils.copyProperties(detailsUpload, planDetails); |
| | | |
| | | planDetails.setPlanId(examinePlan.getPlanId()); |
| | | examinePlanDetails.add(planDetails); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext analysisContext) { |
| | | |
| | | } |
| | | }).sheet().doRead(); |
| | | for (DeviceExaminePlanDetails examinePlanDetail : examinePlanDetails) { |
| | | Device device = deviceMapper.selectOne(Wrappers.<Device>lambdaQuery() |
| | | .eq(Device::getManagementNumber, examinePlanDetail.getDeviceNumber().trim())); |
| | | if (device == null) { |
| | | throw new ErrorException("设å¤ç¼å·" + examinePlanDetail.getDeviceNumber() + "æªæ¥è¯¢å°è®¾å¤, è¯·éæ°å¯¼å
¥"); |
| | | } |
| | | User user = userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, examinePlanDetail.getCheckChargerUser())); |
| | | if (user == null) { |
| | | throw new ErrorException("设å¤ç¼å·" + examinePlanDetail.getDeviceNumber() + "æªæ¥è¯¢å°æ ¸æ¥äºº"); |
| | | } |
| | | examinePlanDetail.setDeviceId(device.getId()); |
| | | examinePlanDetail.setCheckChargerUserId(user.getId()); |
| | | } |
| | | |
| | | deviceExaminePlanDetailsService.saveBatch(examinePlanDetails); |
| | | |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @param deviceExaminePlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean submitRatifyDeviceExaminePlan(DeviceExaminePlan deviceExaminePlan) { |
| | | baseMapper.update(null, Wrappers.<DeviceExaminePlan>lambdaUpdate() |
| | | .eq(DeviceExaminePlan::getPlanId, deviceExaminePlan.getPlanId()) |
| | | .set(DeviceExaminePlan::getRatifyUserId, deviceExaminePlan.getRatifyUserId()) |
| | | .set(DeviceExaminePlan::getRatifyRemark, null) |
| | | .set(DeviceExaminePlan::getRatifyStatus, null) |
| | | .set(DeviceExaminePlan::getRatifyTime, null) |
| | | ); |
| | | |
| | | DeviceExaminePlan examinePlan = baseMapper.selectById(deviceExaminePlan.getPlanId()); |
| | | |
| | | // åéæ¶æ¯ |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | // æ¶æ¯åé |
| | | InformationNotification info = new InformationNotification(); |
| | | // åé人 |
| | | info.setCreateUser(user.getName()); |
| | | info.setMessageType("6"); |
| | | info.setTheme("CNASè®¾å¤æ ¸æ¥è®¡åæ¹åéç¥"); |
| | | info.setContent(examinePlan.getPlanName() + "çè®¾å¤æ ¸æ¥è®¡åå¾
æ¹å"); |
| | | info.setSenderId(userId); |
| | | // æ¥æ¶äºº |
| | | info.setConsigneeId(examinePlan.getRatifyUserId()); |
| | | info.setJumpPath(MenuJumpPathConstants.DEVICE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // åéä¼ä¸å¾®ä¿¡éç¥ |
| | | threadPoolTaskExecutor.execute(() -> { |
| | | // æ¥è¯¢æ¥æ¶äºº |
| | | User personnel = userMapper.selectById(examinePlan.getRatifyUserId()); |
| | | |
| | | String message = ""; |
| | | message += "CNASè®¾å¤æ ¸æ¥è®¡åæ¹åéç¥"; |
| | | message += "\n请å»èµæºç®¡ç-设å¤ä¸å±ç®å½-è®¾å¤æ ¸æ¥è®¡åå¡«å"; |
| | | message += "\n" + examinePlan.getPlanName() + "çæ ¡åæ ¸æ¥åå¾
æ¹å"; |
| | | //åéä¼ä¸å¾®ä¿¡æ¶æ¯éç¥ |
| | | try { |
| | | WxCpUtils.inform(personnel.getAccount(), message, null); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | }); |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åæ¹å |
| | | * @param deviceExaminePlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean ratifyDeviceExaminePlan(DeviceExaminePlan deviceExaminePlan) { |
| | | // å½åç»å½ç¨æ· |
| | | baseMapper.update(null, Wrappers.<DeviceExaminePlan>lambdaUpdate() |
| | | .eq(DeviceExaminePlan::getPlanId, deviceExaminePlan.getPlanId()) |
| | | .set(DeviceExaminePlan::getRatifyRemark, deviceExaminePlan.getRatifyRemark()) |
| | | .set(DeviceExaminePlan::getRatifyStatus, deviceExaminePlan.getRatifyStatus()) |
| | | .set(DeviceExaminePlan::getRatifyTime, LocalDateTime.now()) |
| | | ); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡åå表 |
| | | * @param page |
| | | * @param deviceExaminePlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceExaminePlanDto> pageDeviceExaminePlan(Page page, DeviceExaminePlan deviceExaminePlan) { |
| | | return baseMapper.deviceExaminePlanDetailsMapper(page, QueryWrappers.queryWrappers(deviceExaminePlan)); |
| | | } |
| | | |
| | | /** |
| | | * è®¾å¤æ ¸æ¥è®¡å详æ
å表 |
| | | * @param page |
| | | * @param deviceExaminePlanDetails |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceExaminePlanDetailsDto> pageDeviceExaminePlanDetail(Page page, DeviceExaminePlanDetails deviceExaminePlanDetails) { |
| | | if (deviceExaminePlanDetails.getPlanId() == null) { |
| | | return new Page(); |
| | | } |
| | | return deviceExaminePlanDetailsMapper.pageDeviceExaminePlanDetail(page, QueryWrappers.queryWrappers(deviceExaminePlanDetails)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ ¸æ¥è®¡å |
| | | * @param deviceExaminePlanId è®¾å¤æ ¸æ¥è®¡åid |
| | | * @param response ååºä½ |
| | | */ |
| | | @Override |
| | | public void exportDeviceExaminePlanDetail(Integer deviceExaminePlanId, HttpServletResponse response) { |
| | | // æ¥è¯¢è®¾å¤æ ¸æ¥è®¡å |
| | | DeviceExaminePlanDto deviceExaminePlanDto = baseMapper.selectExamineExaminePlanDto(deviceExaminePlanId); |
| | | |
| | | // æ¥è¯¢è®¾å¤æ ¸æ¥è®¡å详æ
|
| | | List<DeviceExaminePlanDetails> deviceExaminePlanDetailsList = deviceExaminePlanDetailsMapper.selectList(Wrappers.<DeviceExaminePlanDetails>lambdaQuery().eq(DeviceExaminePlanDetails::getPlanId, deviceExaminePlanId) |
| | | .orderByAsc(DeviceExaminePlanDetails::getCheckTime)); |
| | | // 设置åºå· |
| | | ArrayList<DeviceExaminePlanDetailsDto> deviceExaminePlanDetailsDtoList = new ArrayList<>(); |
| | | deviceExaminePlanDetailsList.forEach(deviceExamineRecordContrastDetail -> { |
| | | DeviceExaminePlanDetailsDto deviceExaminePlanDetailsDto = new DeviceExaminePlanDetailsDto(); |
| | | BeanUtils.copyProperties(deviceExamineRecordContrastDetail, deviceExaminePlanDetailsDto); |
| | | deviceExaminePlanDetailsDto.setIndex(deviceExaminePlanDetailsList.indexOf(deviceExamineRecordContrastDetail) + 1); |
| | | deviceExaminePlanDetailsDtoList.add(deviceExaminePlanDetailsDto); |
| | | }); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/examine-plan-detail.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceExaminePlanDetailsDtoList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceExaminePlan", deviceExaminePlanDto); |
| | | put("deviceExaminePlanDetailsDtoList", deviceExaminePlanDetailsDtoList); |
| | | //è·åæ ¸æ¥äººçç¾åå°å |
| | | put("writeUserUrl", UserUtils.getFinalUserSignatureUrl(deviceExaminePlanDto.getWriteUserId())); |
| | | //è·å审æ¥äººçç¾åå°å |
| | | put("reviewUserUrl", UserUtils.getFinalUserSignatureUrl(deviceExaminePlanDto.getRatifyUserId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "è®¾å¤æ ¸æ¥è®¡å", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateDeviceExaminePlan(DeviceExaminePlanDto examinePlanDto) { |
| | | // å½åç»å½ç¨æ· |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // æä»¶åç§° |
| | | examinePlanDto.setWriteUserId(userId); |
| | | examinePlanDto.setWriteTime(LocalDateTime.now()); |
| | | baseMapper.updateById(examinePlanDto); |
| | | |
| | | deviceExaminePlanDetailsService.remove(Wrappers.<DeviceExaminePlanDetails>lambdaQuery() |
| | | .eq(DeviceExaminePlanDetails::getPlanId, examinePlanDto.getPlanId())); |
| | | |
| | | // æ·»å 详æ
|
| | | if (CollectionUtils.isNotEmpty(examinePlanDto.getExaminePlanDetailsList())) { |
| | | for (DeviceExaminePlanDetails deviceExaminePlanDetails : examinePlanDto.getExaminePlanDetailsList()) { |
| | | deviceExaminePlanDetails.setPlanId(examinePlanDto.getPlanId()); |
| | | } |
| | | deviceExaminePlanDetailsService.saveBatch(examinePlanDto.getExaminePlanDetailsList()); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public DeviceExaminePlanDto getDeviceExaminePlan(Integer planId) { |
| | | DeviceExaminePlan examinePlan = baseMapper.selectById(planId); |
| | | DeviceExaminePlanDto deviceExaminePlanDto = new DeviceExaminePlanDto(); |
| | | BeanUtils.copyProperties(examinePlan, deviceExaminePlanDto); |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<DeviceExaminePlanDetails> list = deviceExaminePlanDetailsService.list(Wrappers.<DeviceExaminePlanDetails>lambdaQuery() |
| | | .eq(DeviceExaminePlanDetails::getPlanId, planId) |
| | | .orderByAsc(DeviceExaminePlanDetails::getCheckTime)); |
| | | deviceExaminePlanDto.setExaminePlanDetailsList(list); |
| | | |
| | | return deviceExaminePlanDto; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceExamineRecordContrastDetailsMapper; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrastDetails; |
| | | import com.ruoyi.device.service.DeviceExamineRecordContrastDetailsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¯¦æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:57 |
| | | */ |
| | | @Service |
| | | public class DeviceExamineRecordContrastDetailsServiceImpl extends ServiceImpl<DeviceExamineRecordContrastDetailsMapper, DeviceExamineRecordContrastDetails> implements DeviceExamineRecordContrastDetailsService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordContrastDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordContrastDto; |
| | | import com.ruoyi.device.mapper.DeviceExaminePlanDetailsMapper; |
| | | import com.ruoyi.device.mapper.DeviceExamineRecordContrastMapper; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrast; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordContrastDetails; |
| | | import com.ruoyi.device.service.DeviceExamineRecordContrastDetailsService; |
| | | import com.ruoyi.device.service.DeviceExamineRecordContrastService; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½å¯¹æ¯è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:43 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DeviceExamineRecordContrastServiceImpl extends ServiceImpl<DeviceExamineRecordContrastMapper, DeviceExamineRecordContrast> implements DeviceExamineRecordContrastService { |
| | | |
| | | @Resource |
| | | private DeviceExamineRecordContrastDetailsService deviceExamineRecordContrastDetailsService; |
| | | @Resource |
| | | private DeviceExaminePlanDetailsMapper deviceExaminePlanDetailsMapper; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | /** |
| | | * æ¥è¯¢æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public DeviceExamineRecordContrastDto getExamineRecordContrast(Integer planDetailsId) { |
| | | DeviceExamineRecordContrastDto contrastDto = baseMapper.getExamineRecordContrast(planDetailsId); |
| | | // 夿æ¯å¦ä¸ºç©º |
| | | if (contrastDto == null) { |
| | | contrastDto = new DeviceExamineRecordContrastDto(); |
| | | // æ¥è¯¢è®¾å¤è¯¦æ
|
| | | DeviceExaminePlanDetails deviceExaminePlanDetails = deviceExaminePlanDetailsMapper.selectById(planDetailsId); |
| | | contrastDto.setPlanDetailsId(deviceExaminePlanDetails.getPlanDetailsId()); |
| | | |
| | | } else { |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<DeviceExamineRecordContrastDetails> list = deviceExamineRecordContrastDetailsService.list(Wrappers.<DeviceExamineRecordContrastDetails>lambdaQuery() |
| | | .eq(DeviceExamineRecordContrastDetails::getRecordContrastId, contrastDto.getRecordContrastId())); |
| | | contrastDto.setRecordContrastDetailsList(list); |
| | | } |
| | | |
| | | return contrastDto; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addExamineRecordContrast(DeviceExamineRecordContrastDto dto) { |
| | | if (dto.getPlanDetailsId() == null) { |
| | | throw new ErrorException("缺å°è®¡å详ç»ä¿¡æ¯id"); |
| | | } |
| | | if (dto.getRecordContrastId() == null) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | dto.setCheckerUserId(userId); |
| | | dto.setCheckerUser(user.getName()); |
| | | |
| | | // æ¥è¯¢å®¡æ¥äººid |
| | | if (dto.getReviewUserId() != null) { |
| | | User reviewUser = userMapper.selectById(dto.getReviewUserId()); |
| | | dto.setReviewUser(reviewUser.getName()); |
| | | } |
| | | } |
| | | this.saveOrUpdate(dto); |
| | | |
| | | // å é¤å
¨é¨è¯¦æ
|
| | | deviceExamineRecordContrastDetailsService.remove(Wrappers.<DeviceExamineRecordContrastDetails>lambdaQuery() |
| | | .eq(DeviceExamineRecordContrastDetails::getRecordContrastId, dto.getRecordContrastId())); |
| | | //æ·»å 详æ
|
| | | if (CollectionUtils.isNotEmpty(dto.getRecordContrastDetailsList())) { |
| | | for (DeviceExamineRecordContrastDetails details : dto.getRecordContrastDetailsList()) { |
| | | details.setRecordContrastId(dto.getRecordContrastId()); |
| | | } |
| | | deviceExamineRecordContrastDetailsService.saveBatch(dto.getRecordContrastDetailsList()); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean reviewExamineRecordContrast(DeviceExamineRecordContrastDto dto) { |
| | | if (dto.getPlanDetailsId() == null) { |
| | | throw new ErrorException("缺å°è®¡å详ç»ä¿¡æ¯id"); |
| | | } |
| | | LambdaUpdateWrapper<DeviceExamineRecordContrast> wrapper = Wrappers.<DeviceExamineRecordContrast>lambdaUpdate() |
| | | .eq(DeviceExamineRecordContrast::getPlanDetailsId, dto.getPlanDetailsId()) |
| | | .set(DeviceExamineRecordContrast::getReviewStatus, dto.getReviewStatus()) |
| | | .set(DeviceExamineRecordContrast::getReviewRemark, dto.getReviewRemark()) |
| | | .set(DeviceExamineRecordContrast::getReviewTime, LocalDateTime.now()); |
| | | // 为0æ¸
é¤å®¡æ ¸äºº |
| | | if (dto.getReviewStatus().equals(0)) { |
| | | wrapper.set(DeviceExamineRecordContrast::getReviewUserId, null) |
| | | .set(DeviceExamineRecordContrast::getReviewUser, null); |
| | | } |
| | | |
| | | this.update(wrapper); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºå®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½ |
| | | * |
| | | * @param planDetailsId 详æ
id |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportReviewExamineRecordContrast(Integer planDetailsId, HttpServletResponse response) { |
| | | // æ¥è¯¢å¯¹æ¯è®°å½ |
| | | DeviceExamineRecordContrastDto deviceExamineRecordContrast = baseMapper.selectExamineRecordContrastDto(planDetailsId); |
| | | |
| | | // æ¥è¯¢å¯¹æ¯è®°å½è¯¦æ
|
| | | List<DeviceExamineRecordContrastDetails> deviceExamineRecordContrastDetailList = deviceExamineRecordContrastDetailsService.list(Wrappers.<DeviceExamineRecordContrastDetails>lambdaQuery().eq(DeviceExamineRecordContrastDetails::getRecordContrastId, deviceExamineRecordContrast.getRecordContrastId())); |
| | | // 设置åºå· |
| | | ArrayList<DeviceExamineRecordContrastDetailsDto> deviceExamineRecordContrastDetailsDtoList = new ArrayList<>(); |
| | | deviceExamineRecordContrastDetailList.forEach(deviceExamineRecordContrastDetail -> { |
| | | DeviceExamineRecordContrastDetailsDto deviceExamineRecordContrastDetailsDto = new DeviceExamineRecordContrastDetailsDto(); |
| | | BeanUtils.copyProperties(deviceExamineRecordContrastDetail, deviceExamineRecordContrastDetailsDto); |
| | | deviceExamineRecordContrastDetailsDto.setIndex(deviceExamineRecordContrastDetailList.indexOf(deviceExamineRecordContrastDetail) + 1); |
| | | deviceExamineRecordContrastDetailsDtoList.add(deviceExamineRecordContrastDetailsDto); |
| | | }); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/review-examine-record-contrast.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceExamineRecordContrastDetailsDtoList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceExamineRecordContrast", deviceExamineRecordContrast); |
| | | put("deviceExamineRecordContrastDetailsDtoList", deviceExamineRecordContrastDetailsDtoList); |
| | | //è·åæ ¸æ¥äººçç¾åå°å |
| | | put("checkerUserUrl", UserUtils.getFinalUserSignatureUrl(deviceExamineRecordContrast.getCheckerUserId())); |
| | | //è·å审æ¥äººçç¾åå°å |
| | | put("reviewUserUrl", UserUtils.getFinalUserSignatureUrl(deviceExamineRecordContrast.getReviewUserId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "å®¡æ ¸æ ¸æ¥å¯¹æ¯è®°å½", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceExamineRecordDetailMapper; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordDetail; |
| | | import com.ruoyi.device.service.DeviceExamineRecordDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½è¯¦æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:15:11 |
| | | */ |
| | | @Service |
| | | public class DeviceExamineRecordDetailServiceImpl extends ServiceImpl<DeviceExamineRecordDetailMapper, DeviceExamineRecordDetail> implements DeviceExamineRecordDetailService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.constant.MenuJumpPathConstants; |
| | | import com.ruoyi.common.core.domain.entity.InformationNotification; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.WxCpUtils; |
| | | import com.ruoyi.device.dto.DeviceExamineRecordDto; |
| | | import com.ruoyi.device.mapper.DeviceExaminePlanDetailsMapper; |
| | | import com.ruoyi.device.mapper.DeviceExamineRecordMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceExaminePlanDetails; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecord; |
| | | import com.ruoyi.device.pojo.DeviceExamineRecordDetail; |
| | | import com.ruoyi.device.service.DeviceExamineRecordDetailService; |
| | | import com.ruoyi.device.service.DeviceExamineRecordService; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.system.service.InformationNotificationService; |
| | | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¸æ¥è®°å½è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 07:14:28 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DeviceExamineRecordServiceImpl extends ServiceImpl<DeviceExamineRecordMapper, DeviceExamineRecord> implements DeviceExamineRecordService { |
| | | |
| | | @Resource |
| | | private DeviceExamineRecordDetailService deviceExamineRecordDetailService; |
| | | @Resource |
| | | private DeviceExaminePlanDetailsMapper deviceExaminePlanDetailsMapper; |
| | | @Resource |
| | | private DeviceMapper deviceMapper; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Resource |
| | | private ThreadPoolTaskExecutor threadPoolTaskExecutor; |
| | | |
| | | @Resource |
| | | private InformationNotificationService informationNotificationService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸æ¥è®°å½ |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| | | public DeviceExamineRecordDto getExamineRecord(Integer planDetailsId) { |
| | | DeviceExamineRecordDto deviceExamineRecord = baseMapper.getExamineRecord(planDetailsId); |
| | | |
| | | // 夿æ¯å¦ä¸ºç©º |
| | | if (deviceExamineRecord == null) { |
| | | deviceExamineRecord = new DeviceExamineRecordDto(); |
| | | // æ¥è¯¢è®¾å¤è¯¦æ
|
| | | DeviceExaminePlanDetails deviceExaminePlanDetails = deviceExaminePlanDetailsMapper.selectById(planDetailsId); |
| | | Device device = deviceMapper.selectById(deviceExaminePlanDetails.getDeviceId()); |
| | | if (device != null) { |
| | | deviceExamineRecord.setDeviceName(device.getDeviceName()); |
| | | deviceExamineRecord.setDeviceNumber(device.getManagementNumber()); |
| | | deviceExamineRecord.setPlanDetailsId(deviceExaminePlanDetails.getPlanDetailsId()); |
| | | } |
| | | } else { |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<DeviceExamineRecordDetail> list = deviceExamineRecordDetailService.list(Wrappers.<DeviceExamineRecordDetail>lambdaQuery() |
| | | .eq(DeviceExamineRecordDetail::getRecordId, deviceExamineRecord.getRecordId())); |
| | | deviceExamineRecord.setRecordDetailList(list); |
| | | } |
| | | |
| | | return deviceExamineRecord; |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ ¸æ¥è®°å½ |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addExamineRecord(DeviceExamineRecordDto deviceExamineRecordDto) { |
| | | if (deviceExamineRecordDto.getPlanDetailsId() == null) { |
| | | throw new ErrorException("缺å°è®¡å详ç»ä¿¡æ¯id"); |
| | | } |
| | | if (deviceExamineRecordDto.getRecordId() == null) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(SecurityUtils.getUserId()); |
| | | deviceExamineRecordDto.setCheckerUserId(userId); |
| | | deviceExamineRecordDto.setCheckerUser(user.getName()); |
| | | |
| | | // æ¥è¯¢å®¡æ¥äººid |
| | | if (deviceExamineRecordDto.getReviewUserId() != null) { |
| | | User reviewUser = userMapper.selectById(deviceExamineRecordDto.getReviewUserId()); |
| | | deviceExamineRecordDto.setReviewUser(reviewUser.getName()); |
| | | |
| | | // æ¶æ¯åé |
| | | InformationNotification info = new InformationNotification(); |
| | | // åé人 |
| | | info.setCreateUser(user.getName()); |
| | | info.setMessageType("6"); |
| | | info.setTheme("CNASè®¾å¤æ ¸æ¥è®¡åå¾
æ¹å"); |
| | | info.setContent("设å¤ç¼å·ä¸º: " + deviceExamineRecordDto.getDeviceNumber() + " è®¾å¤æ ¸æ¥è®¡åå¾
审æ¹"); |
| | | info.setSenderId(userId); |
| | | // æ¥æ¶äºº |
| | | info.setConsigneeId(deviceExamineRecordDto.getReviewUserId()); |
| | | info.setJumpPath(MenuJumpPathConstants.DEVICE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // åéä¼ä¸å¾®ä¿¡éç¥ |
| | | threadPoolTaskExecutor.execute(() -> { |
| | | // æ¥è¯¢åé人 |
| | | User people = userMapper.selectById(deviceExamineRecordDto.getReviewUserId()); |
| | | String message = ""; |
| | | message += "CNASè®¾å¤æ ¸æ¥è®¡åå¾
æ¹å"; |
| | | message += "\n请å»èµæºè¦æ±-设å¤-è®¾å¤æ ¸æ¥è®¡å审æ¹"; |
| | | message += "\n" + "设å¤ç¼å·ä¸º: " + deviceExamineRecordDto.getDeviceNumber() + "è®¾å¤æ ¸æ¥è®¡åå¾
审æ¹"; |
| | | //åéä¼ä¸å¾®ä¿¡æ¶æ¯éç¥ |
| | | try { |
| | | WxCpUtils.inform(people.getAccount(), message, null); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | } |
| | | this.saveOrUpdate(deviceExamineRecordDto); |
| | | |
| | | // å é¤å
¨é¨è¯¦æ
|
| | | deviceExamineRecordDetailService.remove(Wrappers.<DeviceExamineRecordDetail>lambdaQuery() |
| | | .eq(DeviceExamineRecordDetail::getRecordId, deviceExamineRecordDto.getRecordId())); |
| | | //æ·»å 详æ
|
| | | if (CollectionUtils.isNotEmpty(deviceExamineRecordDto.getRecordDetailList())) { |
| | | for (DeviceExamineRecordDetail deviceExamineRecordDetail : deviceExamineRecordDto.getRecordDetailList()) { |
| | | deviceExamineRecordDetail.setRecordId(deviceExamineRecordDto.getRecordId()); |
| | | } |
| | | deviceExamineRecordDetailService.saveBatch(deviceExamineRecordDto.getRecordDetailList()); |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 夿 ¸æ ¸æ¥è®°å½ |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean reviewExamineRecord(DeviceExamineRecordDto dto) { |
| | | if (dto.getPlanDetailsId() == null) { |
| | | throw new ErrorException("缺å°è®¡å详ç»ä¿¡æ¯id"); |
| | | } |
| | | LambdaUpdateWrapper<DeviceExamineRecord> wrapper = Wrappers.<DeviceExamineRecord>lambdaUpdate() |
| | | .eq(DeviceExamineRecord::getPlanDetailsId, dto.getPlanDetailsId()) |
| | | .set(DeviceExamineRecord::getReviewStatus, dto.getReviewStatus()) |
| | | .set(DeviceExamineRecord::getReviewRemark, dto.getReviewRemark()); |
| | | |
| | | // 为0æ¸
é¤å®¡æ ¸äºº |
| | | if (dto.getReviewStatus().equals(0)) { |
| | | wrapper.set(DeviceExamineRecord::getReviewUserId, null) |
| | | .set(DeviceExamineRecord::getReviewUser, null); |
| | | } |
| | | |
| | | this.update(wrapper); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºå¤æ ¸æ ¸æ¥è®°å½ |
| | | * |
| | | * @param planDetailsId 夿 ¸æ ¸æ¥è®°å½id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public void exportReviewExamineRecordDetail(Integer planDetailsId, HttpServletResponse response) { |
| | | // æ¥è¯¢å¤æ ¸æ ¸æ¥è®°å½ |
| | | DeviceExamineRecordDto deviceExamineRecordDto = baseMapper.selectReviewExamineRecordDto(planDetailsId); |
| | | |
| | | // æ¥è¯¢å¤æ ¸æ ¸æ¥è®°å½è¯¦æ
|
| | | List<DeviceExamineRecordDetail> deviceExamineRecordDetailList = deviceExamineRecordDetailService.list(Wrappers.<DeviceExamineRecordDetail>lambdaQuery().eq(DeviceExamineRecordDetail::getRecordId, deviceExamineRecordDto.getRecordId())); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/examine-record.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceExamineRecordDetailList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceExamineRecordDto", deviceExamineRecordDto); |
| | | put("deviceExamineRecordDetailList", deviceExamineRecordDetailList); |
| | | //è·åæ ¸æ¥äººçç¾åå°å |
| | | put("checkerUserUrl", UserUtils.getFinalUserSignatureUrl(deviceExamineRecordDto.getCheckerUserId())); |
| | | //è·å审æ¥äººçç¾åå°å |
| | | put("reviewUserUrl", UserUtils.getFinalUserSignatureUrl(deviceExamineRecordDto.getReviewUserId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String deviceName = StringUtils.isNotEmpty(deviceExamineRecordDto.getDeviceName()) ? deviceExamineRecordDto.getDeviceName() : ""; |
| | | String fileName = URLEncoder.encode( |
| | | deviceName+ "æ ¸æ¥è®°å½", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.mapper.DeviceExternalApplyMapper; |
| | | import com.ruoyi.device.pojo.DeviceExternalApply; |
| | | import com.ruoyi.device.service.DeviceExternalApplyService; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDate; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * <p> |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 10:28:43 |
| | | */ |
| | | @Service |
| | | public class DeviceExternalApplyServiceImpl extends ServiceImpl<DeviceExternalApplyMapper, DeviceExternalApply> implements DeviceExternalApplyService { |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | /** |
| | | * å©ç¨å¤é¨è®¾å¤ç³è¯·å表 |
| | | * @param page |
| | | * @param deviceExternalApply |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceExternalApply> pageDeviceExternalApply(Page page, DeviceExternalApply deviceExternalApply) { |
| | | return baseMapper.pageDeviceExternalApply(page, QueryWrappers.queryWrappers(deviceExternalApply)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * @param deviceExternalApply |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addDeviceExternalApply(DeviceExternalApply deviceExternalApply) { |
| | | DeviceExternalApply apply = new DeviceExternalApply(); |
| | | // å½åç»å½ç¨æ·ä¿¡æ¯åé¨é¨ |
| | | User user = userMapper.selectById(SecurityUtils.getUserId().intValue()); |
| | | switch (deviceExternalApply.getFlowType()) { |
| | | case 0: |
| | | BeanUtils.copyProperties(deviceExternalApply, apply); |
| | | // ç³è¯· |
| | | apply.setUseReason(deviceExternalApply.getUseReason()); |
| | | apply.setApplicantUserId(user.getId()); |
| | | apply.setApplicantUser(user.getName()); |
| | | apply.setApplicantDate(LocalDate.now()); |
| | | |
| | | // å¤çäººä¿¡æ¯ |
| | | User departmentHeadUser = userMapper.selectById(deviceExternalApply.getDepartmentHeadUserId()); |
| | | apply.setApplicantUserId(departmentHeadUser.getId()); |
| | | apply.setApplicantUser(departmentHeadUser.getName()); |
| | | |
| | | baseMapper.insert(apply); |
| | | break; |
| | | case 1: |
| | | apply.setExternalApplyId(deviceExternalApply.getExternalApplyId()); |
| | | // ç³è¯·é¨é¨è´è´£äººæè§ |
| | | apply.setDepartmentHeadOpinion(deviceExternalApply.getDepartmentHeadOpinion()); |
| | | apply.setDepartmentHeadDate(LocalDate.now()); |
| | | |
| | | // 计éå®¤ä¿¡æ¯ |
| | | User meteringRoomUser = userMapper.selectById(deviceExternalApply.getMeteringRoomUserId()); |
| | | apply.setMeteringRoomUserId(meteringRoomUser.getId()); |
| | | apply.setMeteringRoomUser(meteringRoomUser.getName()); |
| | | |
| | | baseMapper.updateById(apply); |
| | | break; |
| | | case 2: |
| | | apply.setExternalApplyId(deviceExternalApply.getExternalApplyId()); |
| | | // 计é室æè§ |
| | | apply.setMeteringRoomOpinion(deviceExternalApply.getMeteringRoomOpinion()); |
| | | apply.setMeteringRoomDate(LocalDate.now()); |
| | | |
| | | // æ¹åäººä¿¡æ¯ |
| | | User approverUser = userMapper.selectById(deviceExternalApply.getApproverUserId()); |
| | | apply.setApproverUserId(approverUser.getId()); |
| | | apply.setApproverUser(approverUser.getName()); |
| | | |
| | | baseMapper.updateById(apply); |
| | | break; |
| | | case 3: |
| | | apply.setExternalApplyId(deviceExternalApply.getExternalApplyId()); |
| | | //æ¹å人 |
| | | apply.setApproverOpinion(deviceExternalApply.getApproverOpinion()); |
| | | apply.setApproverDate(LocalDate.now()); |
| | | |
| | | apply.setIsFinish(1); |
| | | baseMapper.updateById(apply); |
| | | break; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºå©ç¨å¤é¨è®¾å¤ç³è¯· |
| | | * |
| | | * @param externalApplyId å¤é¨è®¾å¤ç³è¯·id |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportDeviceExternalApply(Integer externalApplyId, HttpServletResponse response) { |
| | | // æ¥è¯¢å¤é¨è®¾å¤ç³è¯· |
| | | DeviceExternalApply deviceAccidentReport = baseMapper.selectDeviceExternalById(externalApplyId); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-external-apply.docx"); |
| | | Configure configure = Configure.builder() |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceAccidentReport", deviceAccidentReport); |
| | | // ç³è¯·äººç¾å |
| | | put("applicantUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getApplicantUserId())); |
| | | // é¨é¨è´è´£äººç¾å |
| | | put("departmentHeadUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getDepartmentHeadUserId())); |
| | | // 计é室人ç¾å |
| | | put("meteringRoomUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getMeteringRoomUserId())); |
| | | // æ¹å人ç¾å |
| | | put("approverUserUrl", UserUtils.getFinalUserSignatureUrl(deviceAccidentReport.getApproverUserId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "å©ç¨å¤é¨è®¾å¤ç³è¯·", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.ruoyi.device.pojo.DeviceImpowerDetails; |
| | | import com.ruoyi.device.mapper.DeviceImpowerDetailsMapper; |
| | | import com.ruoyi.device.service.DeviceImpowerDetailsService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å详æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:39 |
| | | */ |
| | | @Service |
| | | public class DeviceImpowerDetailsServiceImpl extends ServiceImpl<DeviceImpowerDetailsMapper, DeviceImpowerDetails> implements DeviceImpowerDetailsService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.constant.MenuJumpPathConstants; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.InformationNotification; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.WxCpUtils; |
| | | import com.ruoyi.device.dto.DeviceImpowerDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceImpowerDto; |
| | | import com.ruoyi.device.mapper.DeviceImpowerDetailsMapper; |
| | | import com.ruoyi.device.pojo.DeviceImpower; |
| | | import com.ruoyi.device.mapper.DeviceImpowerMapper; |
| | | import com.ruoyi.device.pojo.DeviceImpower; |
| | | import com.ruoyi.device.pojo.DeviceImpowerDetails; |
| | | import com.ruoyi.device.service.DeviceImpowerService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.service.DeviceImpowerDetailsService; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.system.service.InformationNotificationService; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä½¿ç¨è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2025-04-17 03:23:23 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DeviceImpowerServiceImpl extends ServiceImpl<DeviceImpowerMapper, DeviceImpower> implements DeviceImpowerService { |
| | | |
| | | |
| | | @Resource |
| | | private DeviceImpowerDetailsService deviceImpowerDetailsService; |
| | | |
| | | @Resource |
| | | private DeviceImpowerDetailsMapper deviceImpowerDetailsMapper; |
| | | @Resource |
| | | private ThreadPoolTaskExecutor threadPoolTaskExecutor; |
| | | @Resource |
| | | private InformationNotificationService informationNotificationService; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ä½¿ç¨ |
| | | * |
| | | * @param page |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result<IPage<DeviceImpower>> selectDeviceImpowerByPage(Page page, DeviceImpowerDto deviceImpowerDto) { |
| | | IPage<DeviceImpower> iPage = baseMapper.selectDeviceParameterPage(page, QueryWrappers.queryWrappers(deviceImpowerDto)); |
| | | return Result.success(iPage); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤ä½¿ç¨ |
| | | * |
| | | * @param deviceImpowerDto 设å¤ä½¿ç¨ |
| | | */ |
| | | @Override |
| | | public Result addImpower(DeviceImpowerDto deviceImpowerDto) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | deviceImpowerDto.setCompilerId(userId); |
| | | deviceImpowerDto.setCompiler(user.getName()); |
| | | deviceImpowerDto.setDatePreparation(LocalDateTime.now()); |
| | | |
| | | // æ¥è¯¢å®¡æ ¸äººid |
| | | if (deviceImpowerDto.getAuditId() != null) { |
| | | User auditUser = userMapper.selectById(deviceImpowerDto.getAuditId()); |
| | | deviceImpowerDto.setAudit(auditUser.getName()); |
| | | } |
| | | this.saveOrUpdate(deviceImpowerDto); |
| | | |
| | | // 详æ
èµå¼å¹¶ä¿å |
| | | List<DeviceImpowerDetailsDto> deviceImpowerDetails = deviceImpowerDto.getDeviceImpowerDetails(); |
| | | if (CollectionUtils.isNotEmpty(deviceImpowerDetails)) { // 详æ
ä¸ä¸ºç©º |
| | | List<DeviceImpowerDetails> collect = deviceImpowerDetails.stream().map(detailsDto -> { |
| | | detailsDto.setImpowerId(deviceImpowerDto.getImpowerId()); // 使ç¨ID |
| | | DeviceImpowerDetails details = new DeviceImpowerDetails(); |
| | | BeanUtils.copyProperties(detailsDto, details); |
| | | return details; |
| | | }).collect(Collectors.toList()); |
| | | deviceImpowerDetailsService.saveBatch(collect); |
| | | } |
| | | |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤ä½¿ç¨ |
| | | * |
| | | * @param deviceImpowerDto 设å¤ä½¿ç¨ |
| | | */ |
| | | @Override |
| | | public Result updateImpower(DeviceImpowerDto deviceImpowerDto) { |
| | | // æ¥è¯¢å®¡æ ¸äººid |
| | | if (deviceImpowerDto.getAuditId() != null) { |
| | | User auditUser = userMapper.selectById(deviceImpowerDto.getAuditId()); |
| | | deviceImpowerDto.setAudit(auditUser.getName()); |
| | | } |
| | | this.saveOrUpdate(deviceImpowerDto); |
| | | |
| | | // å é¤åæ¬ç详æ
|
| | | deviceImpowerDetailsService.remove(Wrappers.<DeviceImpowerDetails>lambdaQuery().eq(DeviceImpowerDetails::getImpowerId, deviceImpowerDto.getImpowerId())); |
| | | // 详æ
èµå¼å¹¶ä¿å |
| | | List<DeviceImpowerDetailsDto> deviceImpowerDetails = deviceImpowerDto.getDeviceImpowerDetails(); |
| | | if (CollectionUtils.isNotEmpty(deviceImpowerDetails)) { // 详æ
ä¸ä¸ºç©º |
| | | List<DeviceImpowerDetails> collect = deviceImpowerDetails.stream().map(detailsDto -> { |
| | | detailsDto.setImpowerId(deviceImpowerDto.getImpowerId()); // 使ç¨ID |
| | | DeviceImpowerDetails details = new DeviceImpowerDetails(); |
| | | BeanUtils.copyProperties(detailsDto, details); |
| | | return details; |
| | | }).collect(Collectors.toList()); |
| | | deviceImpowerDetailsService.saveBatch(collect); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤ä½¿ç¨ |
| | | * |
| | | * @param deviceImpowerDto 设å¤ä½¿ç¨ |
| | | */ |
| | | @Override |
| | | public Result deleteImpower(DeviceImpowerDto deviceImpowerDto) { |
| | | this.removeById(deviceImpowerDto); |
| | | deviceImpowerDetailsService.remove(Wrappers.<DeviceImpowerDetails>lambdaQuery().eq(DeviceImpowerDetails::getImpowerId, deviceImpowerDto.getImpowerId())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ä½¿ç¨è¯¦æ
|
| | | * |
| | | * @param impowerId 设å¤ä½¿ç¨id |
| | | */ |
| | | @Override |
| | | public Result<DeviceImpowerDto> getImpowerDetail(Integer impowerId) { |
| | | // æ¥è¯¢è®¾å¤ä½¿ç¨ |
| | | DeviceImpower deviceImpower = baseMapper.selectById(impowerId); |
| | | // æ¥è¯¢è¯¦æ
|
| | | DeviceImpowerDto deviceImpowerDto = new DeviceImpowerDto(); |
| | | BeanUtils.copyProperties(deviceImpower, deviceImpowerDto); |
| | | deviceImpowerDto.setDeviceImpowerDetails(deviceImpowerDetailsMapper.deviceImpowerDetailsList(impowerId)); |
| | | return Result.success(deviceImpowerDto); |
| | | } |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @param deviceImpowerDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result submitReviewImpowerStatus(DeviceImpowerDto deviceImpowerDto) { |
| | | User audit = userMapper.selectById(deviceImpowerDto.getAuditId()); |
| | | this.update(Wrappers.<DeviceImpower>lambdaUpdate() |
| | | .eq(DeviceImpower::getImpowerId, deviceImpowerDto.getImpowerId()) |
| | | .set(DeviceImpower::getAuditId, audit.getId()) |
| | | .set(DeviceImpower::getAudit, audit.getName()) |
| | | .set(DeviceImpower::getAuditDate, null) |
| | | .set(DeviceImpower::getStatus, null) |
| | | .set(DeviceImpower::getAuditRemark, null)); |
| | | |
| | | DeviceImpower deviceImpower = baseMapper.selectById(deviceImpowerDto.getImpowerId()); |
| | | |
| | | // // åéæ¶æ¯ |
| | | // Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // User user = userMapper.selectById(userId); |
| | | // // æ¶æ¯åé |
| | | // InformationNotification info = new InformationNotification(); |
| | | // // åé人 |
| | | // info.setCreateUser(user.getName()); |
| | | // info.setMessageType("6"); |
| | | // info.setTheme("CNAS设å¤ä½¿ç¨æ¹åéç¥"); |
| | | // info.setContent(deviceImpower.getPlanYear() + "å¹´ç设å¤ä½¿ç¨å¾
æ¹å"); |
| | | // info.setSenderId(userId); |
| | | // // æ¥æ¶äºº |
| | | // info.setConsigneeId(audit.getId()); |
| | | // info.setJumpPath(MenuJumpPathConstants.DEVICE); |
| | | // informationNotificationService.addInformationNotification(info); |
| | | // |
| | | // // åéä¼ä¸å¾®ä¿¡éç¥ |
| | | // threadPoolTaskExecutor.execute(() -> { |
| | | // String message = ""; |
| | | // message += "CNAS设å¤ä½¿ç¨æ ¸éç¥"; |
| | | // message += "\n请å»èµæºç®¡ç-设å¤ä¸å±ç®å½-设å¤ä½¿ç¨å¡«å"; |
| | | // message += "\n" + deviceImpower.getPlanYear() + "å¹´ç设å¤ä½¿ç¨å¾
æ¹å"; |
| | | // //åéä¼ä¸å¾®ä¿¡æ¶æ¯éç¥ |
| | | // try { |
| | | // WxCpUtils.inform(audit.getAccount(), message, null); |
| | | // } catch (Exception e) { |
| | | // throw new RuntimeException(e); |
| | | // } |
| | | // }); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param deviceImpowerDto |
| | | */ |
| | | @Override |
| | | public Result reviewImpowerStatus(DeviceImpowerDto deviceImpowerDto) { |
| | | LambdaUpdateWrapper<DeviceImpower> wrapper = Wrappers.<DeviceImpower>lambdaUpdate() |
| | | .eq(DeviceImpower::getImpowerId, deviceImpowerDto.getImpowerId()) |
| | | .set(DeviceImpower::getAuditDate, LocalDateTime.now()) |
| | | .set(DeviceImpower::getStatus, deviceImpowerDto.getStatus()) // å®¡æ ¸ç¶æ |
| | | .set(DeviceImpower::getAuditRemark, deviceImpowerDto.getAuditRemark());// å®¡æ ¸å¤æ³¨ |
| | | |
| | | this.update(wrapper); // æ´æ° |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ä½¿ç¨ |
| | | * |
| | | * @param impowerId 设å¤ä½¿ç¨id |
| | | */ |
| | | @Override |
| | | public void exportDeviceImpowerDto(Integer impowerId, HttpServletResponse response) { |
| | | // æ¥è¯¢è®¾å¤ä½¿ç¨ææè®¡å |
| | | DeviceImpower deviceImpower = baseMapper.selectById(impowerId); |
| | | DeviceImpowerDto deviceImpowerDto = new DeviceImpowerDto(); |
| | | BeanUtils.copyProperties(deviceImpower, deviceImpowerDto); |
| | | // æ ¼å¼åæ¥æä¸è±æ |
| | | DateTimeFormatter formatterCH = DateTimeFormatter.ofPattern("yyyy å¹´ MM æ dd æ¥"); |
| | | DateTimeFormatter formatterEN = DateTimeFormatter.ofPattern("yyyy 'Year' MM 'Month' dd 'Day'"); |
| | | deviceImpowerDto.setAuditDateCH(deviceImpower.getAuditDate() == null ? null : deviceImpower.getAuditDate().format(formatterCH)); |
| | | deviceImpowerDto.setAuditDateEN(deviceImpower.getAuditDate() == null ? null : deviceImpower.getAuditDate().format(formatterEN)); |
| | | |
| | | // æ¥è¯¢è®¾å¤ä¿å
»è®¡å详æ
|
| | | List<DeviceImpowerDetailsDto> deviceImpowerDetailsDtoList = deviceImpowerDetailsMapper.deviceImpowerDetailsList(impowerId); |
| | | // 设置åºå· |
| | | deviceImpowerDetailsDtoList.forEach(deviceImpowerDetails -> { |
| | | deviceImpowerDetails.setIndex(deviceImpowerDetailsDtoList.indexOf(deviceImpowerDetails) + 1); |
| | | }); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-impower.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceImpowerDetailsDtoList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceImpower", deviceImpowerDto); |
| | | put("deviceImpowerDetailsDtoList", deviceImpowerDetailsDtoList); |
| | | // ææäººå°å |
| | | put("auditUrl", UserUtils.getFinalUserSignatureUrl(deviceImpower.getAuditId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "设å¤ä½¿ç¨ææ", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceInspectionRecordDetailsMapper; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecordDetails; |
| | | import com.ruoyi.device.service.DeviceInspectionRecordDetailsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:27:32 |
| | | */ |
| | | @Service |
| | | public class DeviceInspectionRecordDetailsServiceImpl extends ServiceImpl<DeviceInspectionRecordDetailsMapper, DeviceInspectionRecordDetails> implements DeviceInspectionRecordDetailsService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.dto.DeviceInspectionRecordDto; |
| | | import com.ruoyi.device.mapper.DeviceInspectionRecordMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecord; |
| | | import com.ruoyi.device.pojo.DeviceInspectionRecordDetails; |
| | | import com.ruoyi.device.service.DeviceInspectionRecordDetailsService; |
| | | import com.ruoyi.device.service.DeviceInspectionRecordService; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ç¹æ£è®°å½è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 04:25:14 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DeviceInspectionRecordServiceImpl extends ServiceImpl<DeviceInspectionRecordMapper, DeviceInspectionRecord> implements DeviceInspectionRecordService { |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Resource |
| | | private DeviceMapper deviceMapper; |
| | | @Resource |
| | | private DeviceInspectionRecordDetailsService deviceInspectionRecordDetailsService; |
| | | @Resource |
| | | private DeviceInspectionRecordMapper deviceInspectionRecordMapper; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ç¹æ£è®°å½ |
| | | * |
| | | * @param page å½å页ç |
| | | */ |
| | | @Override |
| | | public Result<IPage<DeviceInspectionRecord>> getDeviceInspectionRecordByPage(Page page, DeviceInspectionRecordDto deviceInspectionRecordDto) { |
| | | IPage<DeviceInspectionRecord> iPage = deviceInspectionRecordMapper.selectDeviceParameterPage(page, QueryWrappers.queryWrappers(deviceInspectionRecordDto)); |
| | | return Result.success(iPage); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢ç¹æ£è¯¦æ
|
| | | * @param inspectionRecordId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result getDeviceInspectionRecord(Integer inspectionRecordId) { |
| | | DeviceInspectionRecord deviceInspectionRecord = baseMapper.selectById(inspectionRecordId); |
| | | DeviceInspectionRecordDto dto = new DeviceInspectionRecordDto(); |
| | | BeanUtils.copyProperties(deviceInspectionRecord, dto); |
| | | List<DeviceInspectionRecordDetails> list = deviceInspectionRecordDetailsService.list(Wrappers.<DeviceInspectionRecordDetails>lambdaQuery().eq(DeviceInspectionRecordDetails::getInspectionRecordId, inspectionRecordId)); |
| | | dto.setDetails(list); |
| | | return Result.success(dto); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤ç¹æ£è®°å½ |
| | | * |
| | | * @param deviceInspectionRecord 设å¤ç¹æ£è®°å½ |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result addDeviceInspectionRecord(DeviceInspectionRecordDto deviceInspectionRecord) { |
| | | |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | deviceInspectionRecord.setRecorderId(userId); |
| | | deviceInspectionRecord.setRecorder(user.getName()); |
| | | |
| | | // æ¥è¯¢å¤æ ¸äººid |
| | | if (deviceInspectionRecord.getReviewerId() != null) { |
| | | User reviewUser = userMapper.selectById(deviceInspectionRecord.getReviewerId()); |
| | | deviceInspectionRecord.setReviewer(reviewUser.getName()); |
| | | } |
| | | this.saveOrUpdate(deviceInspectionRecord); |
| | | if (CollectionUtils.isNotEmpty(deviceInspectionRecord.getDetails())) { |
| | | for (DeviceInspectionRecordDetails detail : deviceInspectionRecord.getDetails()) { |
| | | detail.setInspectionRecordId(deviceInspectionRecord.getInspectionRecordId()); |
| | | } |
| | | deviceInspectionRecordDetailsService.saveBatch( deviceInspectionRecord.getDetails()); |
| | | } |
| | | |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤ç¹æ£è®°å½ |
| | | * |
| | | * @param deviceInspectionRecord 设å¤ç¹æ£è®°å½ |
| | | */ |
| | | @Override |
| | | public Result updateInspectionRecordAndDetails(DeviceInspectionRecordDto deviceInspectionRecord) { |
| | | // æ¥è¯¢å¤æ ¸äººid |
| | | if (deviceInspectionRecord.getReviewerId() != null) { |
| | | User reviewUser = userMapper.selectById(deviceInspectionRecord.getReviewerId()); |
| | | deviceInspectionRecord.setReviewer(reviewUser.getName()); |
| | | } |
| | | this.saveOrUpdate(deviceInspectionRecord); |
| | | deviceInspectionRecordDetailsService.remove(Wrappers.<DeviceInspectionRecordDetails>lambdaQuery().eq(DeviceInspectionRecordDetails::getInspectionRecordId, deviceInspectionRecord.getInspectionRecordId())); |
| | | if (CollectionUtils.isNotEmpty(deviceInspectionRecord.getDetails())) { |
| | | for (DeviceInspectionRecordDetails detail : deviceInspectionRecord.getDetails()) { |
| | | detail.setInspectionRecordId(deviceInspectionRecord.getInspectionRecordId()); |
| | | } |
| | | deviceInspectionRecordDetailsService.saveBatch( deviceInspectionRecord.getDetails()); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤ç¹æ£è®°å½ |
| | | * |
| | | * @param deviceInspectionRecord 设å¤ç¹æ£è®°å½ |
| | | */ |
| | | @Override |
| | | public Result deleteDeviceInspectionRecordOrDetails(DeviceInspectionRecordDto deviceInspectionRecord) { |
| | | this.removeById(deviceInspectionRecord); |
| | | deviceInspectionRecordDetailsService.remove(Wrappers.<DeviceInspectionRecordDetails>lambdaQuery().eq(DeviceInspectionRecordDetails::getInspectionRecordId, deviceInspectionRecord.getInspectionRecordId())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * 夿 ¸ç¹æ£è®°å½ |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result reviewDeviceInspectionRecord(DeviceInspectionRecordDto dto) { |
| | | LambdaUpdateWrapper<DeviceInspectionRecord> wrapper = Wrappers.<DeviceInspectionRecord>lambdaUpdate() |
| | | .eq(DeviceInspectionRecord::getInspectionRecordId, dto.getInspectionRecordId()) |
| | | .set(DeviceInspectionRecord::getStatus, dto.getStatus()) |
| | | .set(DeviceInspectionRecord::getReviewerRemark, dto.getReviewerRemark()); |
| | | |
| | | // 为0æ¸
é¤å®¡æ ¸äºº |
| | | if (dto.getStatus().equals(0)) { |
| | | wrapper.set(DeviceInspectionRecord::getReviewerId, null) |
| | | .set(DeviceInspectionRecord::getReviewer, null); |
| | | } |
| | | this.update(wrapper); |
| | | |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ç¹æ£è®°å½ |
| | | * |
| | | * @param deviceInspectionRecordId 设å¤ç¹æ£è®°å½id |
| | | * @param response ååº |
| | | */ |
| | | @Override |
| | | public Result exportDeviceInspectionRecord(Integer deviceInspectionRecordId, HttpServletResponse response) { |
| | | DeviceInspectionRecord deviceInspectionRecord = baseMapper.selectById(deviceInspectionRecordId); |
| | | DeviceInspectionRecordDto deviceInspectionRecordDto = new DeviceInspectionRecordDto(); |
| | | BeanUtils.copyProperties(deviceInspectionRecord, deviceInspectionRecordDto); |
| | | DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | deviceInspectionRecordDto.setTestDateString(deviceInspectionRecord.getTestDate() == null ? null : deviceInspectionRecord.getTestDate().format(dateFormatter)); |
| | | |
| | | List<DeviceInspectionRecordDetails> deviceInspectionRecordDetailsList = deviceInspectionRecordDetailsService.list(Wrappers.<DeviceInspectionRecordDetails>lambdaQuery().eq(DeviceInspectionRecordDetails::getInspectionRecordId, deviceInspectionRecordId)); |
| | | |
| | | Integer deviceId = deviceInspectionRecord.getDeviceId(); |
| | | |
| | | Device device = deviceMapper.selectById(deviceId); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-inspection-record.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceInspectionRecordDetailsList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceInspectionRecord", deviceInspectionRecordDto); |
| | | put("deviceInspectionRecordDetailsList", deviceInspectionRecordDetailsList); |
| | | put("device", device); |
| | | put("recorderUrl", UserUtils.getFinalUserSignatureUrl(deviceInspectionRecordDto.getRecorderId())); |
| | | put("reviewerUrl", UserUtils.getFinalUserSignatureUrl(deviceInspectionRecordDto.getReviewerId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | device.getDeviceName() + "ç¹æ£è®°å½", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.numgen.NumberGenerator; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.dto.DeviceInstructionDto; |
| | | import com.ruoyi.device.dto.DeviceOperationInstructionDto; |
| | | import com.ruoyi.device.mapper.InstructionMapper; |
| | | import com.ruoyi.device.pojo.DeviceInstruction; |
| | | import com.ruoyi.device.service.DeviceInstructionService; |
| | | import com.ruoyi.device.service.DeviceOperationInstructionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | import java.util.Locale; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½ä¸æå¯¼ä¹¦æ·»å åæ§æä»¶è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:29:18 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DeviceInstructionServiceImpl extends ServiceImpl<InstructionMapper, DeviceInstruction> implements DeviceInstructionService { |
| | | |
| | | @Autowired |
| | | private DeviceOperationInstructionService operationInstructionService; |
| | | |
| | | @Autowired |
| | | private NumberGenerator<DeviceInstruction> numberGenerator; |
| | | |
| | | @Override |
| | | public IPage<DeviceOperationInstructionDto> pageByPageQueryOfHomeworkInstructions(Page page, DeviceOperationInstructionDto operationInstructionDto) { |
| | | return baseMapper.pageByPageQueryOfHomeworkInstructions(page, QueryWrappers.queryWrappers(operationInstructionDto)); |
| | | } |
| | | |
| | | @Override |
| | | public void newHomeworkGuidebookAdded(DeviceInstructionDto instructionDto) { |
| | | if (ObjectUtils.isEmpty(instructionDto.getApplicationNumber())) { |
| | | String year = new SimpleDateFormat("yy", Locale.CHINESE).format(new Date()); |
| | | String month = new SimpleDateFormat("MM", Locale.CHINESE).format(new Date()); |
| | | String day = new SimpleDateFormat("dd", Locale.CHINESE).format(new Date()); |
| | | String processNumber = numberGenerator.generateNumberWithPrefix(3, "WJSK" + year + month + day, DeviceInstruction::getApplicationNumber); |
| | | instructionDto.setApplicationNumber(processNumber); |
| | | } |
| | | saveOrUpdate(instructionDto); |
| | | if (ObjectUtils.isNotEmpty(instructionDto.getFeTempHumRecordList())) { |
| | | instructionDto.getFeTempHumRecordList().forEach(i -> { |
| | | i.setInstructionId(instructionDto.getId()); |
| | | i.setUploader(SecurityUtils.getUserId().intValue()); |
| | | i.setUpdateTime(LocalDateTime.now()); |
| | | }); |
| | | operationInstructionService.saveOrUpdateBatch(instructionDto.getFeTempHumRecordList()); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.device.dto.DeviceImpowerDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceImpowerDto; |
| | | import com.ruoyi.device.dto.DeviceMaintenanceDto; |
| | | import com.ruoyi.device.mapper.DeviceMaintenanceMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceImpower; |
| | | import com.ruoyi.device.pojo.DeviceMaintenance; |
| | | import com.ruoyi.device.service.DeviceMaintenanceService; |
| | | import com.ruoyi.device.service.DeviceService; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.service.ISysDictDataService; |
| | | import com.ruoyi.system.service.ISysDictTypeService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 设å¤ç»´æ¤ä¿å
» |
| | | */ |
| | | @Service |
| | | public class DeviceMaintenanceImpl extends ServiceImpl<DeviceMaintenanceMapper, DeviceMaintenance> implements DeviceMaintenanceService { |
| | | @Resource |
| | | private DeviceService deviceService; |
| | | @Resource |
| | | private ISysDictTypeService iSysDictTypeService; |
| | | |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | /** |
| | | * 设å¤ç»´æ¤å页æ¥è¯¢ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceMaintenanceDto> selectDeviceMaintenancePage(Page page, DeviceMaintenanceDto deviceMaintenance) { |
| | | if (deviceMaintenance.getDeviceId() == null) { |
| | | return new Page(); |
| | | } |
| | | return baseMapper.selectDeviceMaintenancePage(page, QueryWrappers.queryWrappers(deviceMaintenance)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ç»´æ¤ä¿å
» |
| | | * @param deviceId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportDeviceMaintenance(Integer deviceId, HttpServletResponse response) { |
| | | // æ¥è¯¢è®¾å¤ç»´æ¤ä¿å
» |
| | | List<DeviceMaintenance> deviceMaintenanceList = baseMapper.selectList(Wrappers.<DeviceMaintenance>lambdaQuery() |
| | | .eq(DeviceMaintenance::getDeviceId, deviceId)); |
| | | |
| | | // è·åå°ç¬¬ä¸ä¸ªè®¾å¤ä½¿ç¨ææ |
| | | DeviceMaintenanceDto deviceMaintenanceDto = new DeviceMaintenanceDto(); |
| | | |
| | | List<SysDictData> sysDictDataList = null; |
| | | if (CollectionUtils.isNotEmpty(deviceMaintenanceList)) { |
| | | BeanUtils.copyProperties(deviceMaintenanceList.get(0), deviceMaintenanceDto); |
| | | // æ¥è¯¢è®¾å¤ä¿¡æ¯ |
| | | Device device = deviceService.getById(deviceId); |
| | | deviceMaintenanceDto.setDeviceName(device.getDeviceName()); |
| | | deviceMaintenanceDto.setManagementNumber(device.getManagementNumber()); |
| | | |
| | | //æ¥è¯¢ç»´æ¤ä¿å
»å¯¼åºåå
¸å¼ |
| | | sysDictDataList = getDeviceMaintenanceDict(device); |
| | | } |
| | | |
| | | // æ·»å åå
¸æä¸¾å¼ |
| | | for (DeviceMaintenance deviceMaintenance : deviceMaintenanceList) { |
| | | StringBuilder maintenanceContent = new StringBuilder(deviceMaintenance.getMaintenanceContent()); |
| | | if (CollectionUtils.isNotEmpty(sysDictDataList) && StringUtils.isNotBlank(deviceMaintenance.getMaintenanceContent())) { |
| | | maintenanceContent = new StringBuilder(); |
| | | List<String> splitList = StrUtil.split(deviceMaintenance.getMaintenanceContent(), ','); |
| | | // 循ç¯å¤ææ¯å¦æä¸æ ·key |
| | | for (SysDictData sysDictData : sysDictDataList) { |
| | | if (splitList.contains(sysDictData.getDictLabel())) { |
| | | maintenanceContent.append("â").append(sysDictData.getDictLabel()).append(" "); |
| | | } else { |
| | | maintenanceContent.append("â¡").append(sysDictData.getDictLabel()).append(" "); |
| | | } |
| | | } |
| | | } |
| | | deviceMaintenance.setMaintenanceContent(maintenanceContent.toString()); |
| | | // æ·»å ç»´æ¤äººå¾ç |
| | | deviceMaintenance.setMaintenanceUserUrlRender(UserUtils.getFinalUserSignatureUrl(deviceMaintenance.getMaintenanceUserId())); |
| | | |
| | | } |
| | | |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-maintenance.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceMaintenances", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("device", deviceMaintenanceDto); |
| | | put("deviceMaintenances", deviceMaintenanceList); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "设å¤ä¿å
»ç»´æ¤", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * ****æ¥è¯¢ç»´æ¤ä¿å
»å¯¼åºåå
¸å¼*** |
| | | * @param device |
| | | */ |
| | | private List<SysDictData> getDeviceMaintenanceDict(Device device) { |
| | | List<SysDictData> sysDictDataList = new ArrayList<>(); |
| | | // æ¥è¯¢ç»´æ¤ä¿å
»å¯¼åºåå
¸å¼ |
| | | if (StringUtils.isNotBlank(device.getStoragePoint())) { |
| | | String dictType = null; |
| | | switch (device.getStoragePoint()) { |
| | | case "èå室": |
| | | dictType = "aging_maintenance_content"; |
| | | break; |
| | | case "èåå®éªå®¤": |
| | | dictType = "aging_maintenance_content"; |
| | | break; |
| | | case "çµæ§è½å®éªå®¤": |
| | | dictType = "electrical_maintenance_content"; |
| | | break; |
| | | case "ç¯å¢å®éªå®¤": |
| | | dictType = "environmental_maintenance_content"; |
| | | break; |
| | | case "çç§å®éªå®¤": |
| | | dictType = "burn_maintenance_content"; |
| | | break; |
| | | case "æ··ç¼å®éªå®¤": |
| | | dictType = "mixing_maintenance_content"; |
| | | break; |
| | | case "æ£æµä¸å¿çµæ§è½å®éªå®¤": |
| | | dictType = "center_electrical_maintenance_content"; |
| | | break; |
| | | case "ææ¸©äº": |
| | | dictType = "temperature2_maintenance_content"; |
| | | break; |
| | | case "ææ¸©ä¸": |
| | | dictType = "temperature1_maintenance_content"; |
| | | break; |
| | | case "åå¦å®éªå®¤": |
| | | dictType = "chemistry_maintenance_content"; |
| | | break; |
| | | case "å¶æ ·å®¤": |
| | | dictType = "sample_maintenance_content"; |
| | | break; |
| | | case "使¸©å®éªå®¤": |
| | | dictType = "hypothermia_maintenance_content"; |
| | | break; |
| | | } |
| | | sysDictDataList = iSysDictTypeService.selectDictDataByType(dictType); |
| | | } |
| | | return sysDictDataList; |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceMaintenancePlanDetailsMapper; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlanDetails; |
| | | import com.ruoyi.device.service.DeviceMaintenancePlanDetailsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å详æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:11:46 |
| | | */ |
| | | @Service |
| | | public class DeviceMaintenancePlanDetailsServiceImpl extends ServiceImpl<DeviceMaintenancePlanDetailsMapper, DeviceMaintenancePlanDetails> implements DeviceMaintenancePlanDetailsService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.constant.MenuJumpPathConstants; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.InformationNotification; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.WxCpUtils; |
| | | import com.ruoyi.device.dto.DeviceMaintenancePlanDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceMaintenancePlanDto; |
| | | import com.ruoyi.device.mapper.DeviceMaintenancePlanDetailsMapper; |
| | | import com.ruoyi.device.mapper.DeviceMaintenancePlanMapper; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlan; |
| | | import com.ruoyi.device.pojo.DeviceMaintenancePlanDetails; |
| | | import com.ruoyi.device.service.DeviceMaintenancePlanDetailsService; |
| | | import com.ruoyi.device.service.DeviceMaintenancePlanService; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.system.service.InformationNotificationService; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDateTime; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤ä¿å
»è®¡å表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-16 06:10:52 |
| | | */ |
| | | @Service |
| | | public class DeviceMaintenancePlanServiceImpl extends ServiceImpl<DeviceMaintenancePlanMapper, DeviceMaintenancePlan> implements DeviceMaintenancePlanService { |
| | | |
| | | @Resource |
| | | private DeviceMaintenancePlanDetailsService deviceMaintenancePlanDetailsService; |
| | | @Resource |
| | | private DeviceMaintenancePlanDetailsMapper deviceMaintenancePlanDetailsMapper; |
| | | @Resource |
| | | private ThreadPoolTaskExecutor threadPoolTaskExecutor; |
| | | @Resource |
| | | private InformationNotificationService informationNotificationService; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤ä¿å
»è®¡å |
| | | * |
| | | * @param page |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result<IPage<DeviceMaintenancePlan>> selectDeviceMaintenancePlanByPage(Page page, DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | IPage<DeviceMaintenancePlan> iPage = baseMapper.selectDeviceParameterPage(page, QueryWrappers.queryWrappers(deviceMaintenancePlanDto)); |
| | | return Result.success(iPage); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤ä¿å
»è®¡å |
| | | * |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | @Override |
| | | public Result addMaintenancePlan(DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | deviceMaintenancePlanDto.setCompilerId(userId); |
| | | deviceMaintenancePlanDto.setCompiler(user.getName()); |
| | | deviceMaintenancePlanDto.setDatePreparation(LocalDateTime.now()); |
| | | |
| | | // æ¥è¯¢å®¡æ ¸äººid |
| | | if (deviceMaintenancePlanDto.getAuditId() != null) { |
| | | User auditUser = userMapper.selectById(deviceMaintenancePlanDto.getAuditId()); |
| | | deviceMaintenancePlanDto.setAudit(auditUser.getName()); |
| | | } |
| | | this.saveOrUpdate(deviceMaintenancePlanDto); |
| | | |
| | | // 详æ
èµå¼å¹¶ä¿å |
| | | List<DeviceMaintenancePlanDetailsDto> deviceMaintenancePlanDetails = deviceMaintenancePlanDto.getDeviceMaintenancePlanDetails(); |
| | | if (CollectionUtils.isNotEmpty(deviceMaintenancePlanDetails)) { // 详æ
ä¸ä¸ºç©º |
| | | List<DeviceMaintenancePlanDetails> collect = deviceMaintenancePlanDetails.stream().map(deviceMaintenancePlanDetail -> { // éå详æ
|
| | | deviceMaintenancePlanDetail.setDeviceId(deviceMaintenancePlanDetail.getDeviceId()); // 设å¤ID |
| | | deviceMaintenancePlanDetail.setMaintenancePlanId(deviceMaintenancePlanDto.getMaintenancePlanId()); // ä¿å
»è®¡åID |
| | | DeviceMaintenancePlanDetails planDetails = new DeviceMaintenancePlanDetails(); |
| | | BeanUtils.copyProperties(deviceMaintenancePlanDetail, planDetails); |
| | | return planDetails; |
| | | }).collect(Collectors.toList()); |
| | | deviceMaintenancePlanDetailsService.saveBatch(collect); |
| | | } |
| | | |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤ä¿å
»è®¡å |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | @Override |
| | | public Result updateMaintenancePlan(DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | // æ¥è¯¢å®¡æ ¸äººid |
| | | if (deviceMaintenancePlanDto.getAuditId() != null) { |
| | | User auditUser = userMapper.selectById(deviceMaintenancePlanDto.getAuditId()); |
| | | deviceMaintenancePlanDto.setAudit(auditUser.getName()); |
| | | } |
| | | this.saveOrUpdate(deviceMaintenancePlanDto); |
| | | |
| | | // å é¤åæ¬ç详æ
|
| | | deviceMaintenancePlanDetailsService.remove(Wrappers.<DeviceMaintenancePlanDetails>lambdaQuery().eq(DeviceMaintenancePlanDetails::getMaintenancePlanId, deviceMaintenancePlanDto.getMaintenancePlanId())); |
| | | // 详æ
èµå¼å¹¶ä¿å |
| | | List<DeviceMaintenancePlanDetailsDto> deviceMaintenancePlanDetails = deviceMaintenancePlanDto.getDeviceMaintenancePlanDetails(); |
| | | if (CollectionUtils.isNotEmpty(deviceMaintenancePlanDetails)) { // 详æ
ä¸ä¸ºç©º |
| | | List<DeviceMaintenancePlanDetails> collect = deviceMaintenancePlanDetails.stream().map(deviceMaintenancePlanDetail -> { // éå详æ
|
| | | deviceMaintenancePlanDetail.setDeviceId(deviceMaintenancePlanDto.getDeviceId()); // 设å¤ID |
| | | deviceMaintenancePlanDetail.setMaintenancePlanId(deviceMaintenancePlanDto.getMaintenancePlanId()); // ä¿å
»è®¡åID |
| | | DeviceMaintenancePlanDetails planDetails = new DeviceMaintenancePlanDetails(); |
| | | BeanUtils.copyProperties(deviceMaintenancePlanDetail, planDetails); |
| | | return planDetails; |
| | | }).collect(Collectors.toList()); |
| | | deviceMaintenancePlanDetailsService.saveBatch(collect); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤ä¿å
»è®¡å |
| | | * |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | @Override |
| | | public Result deleteMaintenancePlan(DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | this.removeById(deviceMaintenancePlanDto); |
| | | deviceMaintenancePlanDetailsService.remove(Wrappers.<DeviceMaintenancePlanDetails>lambdaQuery().eq(DeviceMaintenancePlanDetails::getMaintenancePlanId, deviceMaintenancePlanDto.getMaintenancePlanId())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤ä¿å
»è®¡å |
| | | * |
| | | * @param maintenancePlanId 设å¤ä¿å
»è®¡åid |
| | | * @param response ååº |
| | | */ |
| | | @Override |
| | | public Result exportDeviceMaintenancePlanDto(Integer maintenancePlanId, HttpServletResponse response) { |
| | | // æ¥è¯¢è®¾å¤ä¿å
»è®¡å |
| | | DeviceMaintenancePlanDto deviceMaintenancePlan = baseMapper.selectMaintenancePlanById(maintenancePlanId); |
| | | |
| | | // æ¥è¯¢è®¾å¤ä¿å
»è®¡å详æ
|
| | | List<DeviceMaintenancePlanDetailsDto> deviceMaintenancePlanDetailsDtoList = deviceMaintenancePlanDetailsMapper.deviceInspectionRecordDetailsList(maintenancePlanId); |
| | | // 设置åºå· |
| | | deviceMaintenancePlanDetailsDtoList.forEach(deviceInspectionRecordDetails -> { |
| | | deviceInspectionRecordDetails.setIndex(deviceMaintenancePlanDetailsDtoList.indexOf(deviceInspectionRecordDetails) + 1); |
| | | }); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/maintenance-plan.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceMaintenancePlanDetailsDtoList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceMaintenancePlan", deviceMaintenancePlan); |
| | | put("deviceMaintenancePlanDetailsDtoList", deviceMaintenancePlanDetailsDtoList); |
| | | // ç¼å¶äººç¾åå°å |
| | | put("compilerUrl", UserUtils.getFinalUserSignatureUrl(deviceMaintenancePlan.getCompilerId())); |
| | | // å®¡æ ¸äººç¾åå°å |
| | | put("auditUrl", UserUtils.getFinalUserSignatureUrl(deviceMaintenancePlan.getAuditId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "设å¤ä¿å
»è®¡å表", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤ä¿å
»è®¡å详æ
|
| | | * |
| | | * @param maintenancePlanId 设å¤ä¿å
»è®¡åid |
| | | */ |
| | | @Override |
| | | public Result<DeviceMaintenancePlanDto> getMaintenancePlanDetail(Integer maintenancePlanId) { |
| | | // æ¥è¯¢è®¾å¤ä¿å
»è®¡å |
| | | DeviceMaintenancePlan deviceMaintenancePlan = baseMapper.selectById(maintenancePlanId); |
| | | // æ¥è¯¢è¯¦æ
|
| | | DeviceMaintenancePlanDto deviceMaintenancePlanDto = new DeviceMaintenancePlanDto(); |
| | | BeanUtils.copyProperties(deviceMaintenancePlan, deviceMaintenancePlanDto); |
| | | deviceMaintenancePlanDto.setDeviceMaintenancePlanDetails(deviceMaintenancePlanDetailsMapper.deviceInspectionRecordDetailsList(maintenancePlanId)); |
| | | return Result.success(deviceMaintenancePlanDto); |
| | | } |
| | | |
| | | /** |
| | | * æäº¤å®¡æ ¸ |
| | | * @param deviceMaintenancePlanDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result submitReviewMaintenancePlanStatus(DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | User audit = userMapper.selectById(deviceMaintenancePlanDto.getAuditId()); |
| | | this.update(Wrappers.<DeviceMaintenancePlan>lambdaUpdate() |
| | | .eq(DeviceMaintenancePlan::getMaintenancePlanId, deviceMaintenancePlanDto.getMaintenancePlanId()) |
| | | .set(DeviceMaintenancePlan::getAuditId, audit.getId()) |
| | | .set(DeviceMaintenancePlan::getAudit, audit.getName()) |
| | | .set(DeviceMaintenancePlan::getStatus, null) |
| | | .set(DeviceMaintenancePlan::getAuditRemark, null) |
| | | .set(DeviceMaintenancePlan::getAuditDate, null) |
| | | ); |
| | | |
| | | DeviceMaintenancePlan deviceMaintenancePlan = baseMapper.selectById(deviceMaintenancePlanDto.getMaintenancePlanId()); |
| | | |
| | | // åéæ¶æ¯ |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | // æ¶æ¯åé |
| | | InformationNotification info = new InformationNotification(); |
| | | // åé人 |
| | | info.setCreateUser(user.getName()); |
| | | info.setMessageType("6"); |
| | | info.setTheme("CNAS设å¤ä¿å
»è®¡åå®¡æ ¸éç¥"); |
| | | info.setContent(deviceMaintenancePlan.getPlanYear() + "å¹´ç设å¤ä¿å
»è®¡åå¾
å®¡æ ¸"); |
| | | info.setSenderId(userId); |
| | | // æ¥æ¶äºº |
| | | info.setConsigneeId(audit.getId()); |
| | | info.setJumpPath(MenuJumpPathConstants.DEVICE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // åéä¼ä¸å¾®ä¿¡éç¥ |
| | | threadPoolTaskExecutor.execute(() -> { |
| | | String message = ""; |
| | | message += "CNAS设å¤ä¿å
»è®¡åæ ¸éç¥"; |
| | | message += "\n请å»èµæºç®¡ç-设å¤ä¸å±ç®å½-设å¤ä¿å
»è®¡åå¡«å"; |
| | | message += "\n" + deviceMaintenancePlan.getPlanYear() + "å¹´ç设å¤ä¿å
»è®¡åå¾
æ ¸"; |
| | | //åéä¼ä¸å¾®ä¿¡æ¶æ¯éç¥ |
| | | try { |
| | | WxCpUtils.inform(audit.getAccount(), message, null); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | }); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * å®¡æ ¸è®¾å¤ä¿å
»è®¡å |
| | | * |
| | | * @param deviceMaintenancePlanDto 设å¤ä¿å
»è®¡å |
| | | */ |
| | | @Override |
| | | public Result reviewMaintenancePlanStatus(DeviceMaintenancePlanDto deviceMaintenancePlanDto) { |
| | | LambdaUpdateWrapper<DeviceMaintenancePlan> wrapper = Wrappers.<DeviceMaintenancePlan>lambdaUpdate() |
| | | .eq(DeviceMaintenancePlan::getMaintenancePlanId, deviceMaintenancePlanDto.getMaintenancePlanId()) |
| | | .set(DeviceMaintenancePlan::getStatus, deviceMaintenancePlanDto.getStatus()) |
| | | .set(DeviceMaintenancePlan::getAuditRemark, deviceMaintenancePlanDto.getAuditRemark()) |
| | | .set(DeviceMaintenancePlan::getAuditDate, LocalDateTime.now()); |
| | | |
| | | this.update(wrapper); // æ´æ° |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceMetricRecordMapper; |
| | | import com.ruoyi.device.pojo.DeviceMetricRecord; |
| | | import com.ruoyi.device.service.DeviceMetricRecordService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:01 |
| | | */ |
| | | @Service |
| | | public class DeviceMetricRecordServiceImpl extends ServiceImpl<DeviceMetricRecordMapper, DeviceMetricRecord> implements DeviceMetricRecordService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceMetricMapper; |
| | | import com.ruoyi.device.pojo.DeviceMetric; |
| | | import com.ruoyi.device.service.IDeviceMetricService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | public class DeviceMetricServiceImpl extends ServiceImpl<DeviceMetricMapper, DeviceMetric> implements IDeviceMetricService { |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceMetricsCopyMapper; |
| | | import com.ruoyi.device.pojo.DeviceMetricsCopy; |
| | | import com.ruoyi.device.service.DeviceMetricsCopyService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ ¡å - æ ¡åè®°å½ - æ ¡åæ¡ç® æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-27 10:20:11 |
| | | */ |
| | | @Service |
| | | public class DeviceMetricsCopyServiceImpl extends ServiceImpl<DeviceMetricsCopyMapper, DeviceMetricsCopy> implements DeviceMetricsCopyService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.dto.DeviceOperationInstructionDto; |
| | | import com.ruoyi.device.mapper.OperationInstructionMapper; |
| | | import com.ruoyi.device.pojo.OperationInstruction; |
| | | import com.ruoyi.device.service.DeviceOperationInstructionService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤ - ä½ä¸æå¯¼ä¹¦ æ·»å åæ§æä»¶ å æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-12-04 10:43:32 |
| | | */ |
| | | @Service |
| | | public class DeviceOperationInstructionServiceImpl extends ServiceImpl<OperationInstructionMapper, OperationInstruction> implements DeviceOperationInstructionService { |
| | | |
| | | @Override |
| | | public List<DeviceOperationInstructionDto> homeworkGuidebookEditor(Integer instructionId) { |
| | | return baseMapper.homeworkGuidebookEditor(instructionId); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.dto.DeviceRecordDto; |
| | | import com.ruoyi.device.excel.DeviceRecordExportWord; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.mapper.DeviceRecordMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceRecord; |
| | | import com.ruoyi.device.service.DeviceRecordService; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.system.domain.vo.SysRoleVo; |
| | | import com.ruoyi.system.mapper.SysRoleMenuMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * cnas设å¤ä½¿ç¨è®°å½è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-09-21 11:06:47 |
| | | */ |
| | | @Service |
| | | public class DeviceRecordServiceImpl extends ServiceImpl<DeviceRecordMapper, DeviceRecord> implements DeviceRecordService { |
| | | @Resource |
| | | private DeviceMapper deviceMapper; |
| | | |
| | | @Resource |
| | | private SysRoleMenuMapper sysRoleMenuMapper; |
| | | |
| | | @Override |
| | | public IPage<DeviceRecordDto> deviceRecordPage(Integer deviceId, Page page, String sampleCode, String managementNumber) { |
| | | // todo:ä»
çèªå·± |
| | | Long userId = SecurityUtils.getUserId(); |
| | | // è·åæé夿æ¯å¦æ¯ä»
çæ |
| | | SysRoleVo sysRoleVo = sysRoleMenuMapper.selectRoleMenu("get:device:record", userId); |
| | | |
| | | Integer testUserId = null; |
| | | //没æä»
çææéè·³è¿ |
| | | if (sysRoleVo != null && sysRoleVo.getIsRersonal() != null && sysRoleVo.getIsRersonal().equals(1)) { |
| | | testUserId = SecurityUtils.getUserId().intValue(); |
| | | } |
| | | |
| | | return baseMapper.deviceRecordPage(deviceId, page, sampleCode, managementNumber, testUserId); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void exportUseRecord(Integer deviceId, String exportDate, HttpServletResponse response) { |
| | | // æ¥è¯¢cnas设å¤ä½¿ç¨è®°å½ |
| | | List<DeviceRecord> deviceList = baseMapper.selectExportList(deviceId, exportDate); |
| | | // 设å¤ä¿¡æ¯ |
| | | Device device = deviceMapper.selectById(deviceId); |
| | | |
| | | |
| | | // æ¥è¯¢è®¾å¤å±äºåªä¸ªå®éªå®¤ |
| | | String laboratoryName = "è£
å¤çº¿ç¼å®éªå®¤"; |
| | | |
| | | // è¦æ å°å°wordæ°æ® |
| | | List<DeviceRecordExportWord> deviceExportList = new ArrayList<>(); |
| | | // deviceExportList èµå¼ |
| | | for (DeviceRecord deviceRecord : deviceList) { |
| | | // å¤çè®¾å¤ å¼å§ä½¿ç¨æ¶é´ å ç»ææ¶é´ |
| | | String startTime = ""; |
| | | String endTime = ""; |
| | | String operationDate = ""; |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"); |
| | | if (deviceRecord.getUseStartDate() != null) { |
| | | startTime = deviceRecord.getUseStartDate().format(formatter); |
| | | endTime = deviceRecord.getUseEndDate().format(formatter); |
| | | String[] startTimeSplit = startTime.split(" "); |
| | | String[] endTimeSplit = endTime.split(" "); |
| | | if (startTimeSplit[0].equals(endTimeSplit[0])) { |
| | | startTime = startTimeSplit[1]; |
| | | endTime = endTimeSplit[1]; |
| | | } else { |
| | | endTime = endTimeSplit[0] + '\n' + endTimeSplit[1]; |
| | | startTime = startTimeSplit[0] + '\n' + startTimeSplit[1]; |
| | | } |
| | | DateTimeFormatter formatter2 = DateTimeFormatter.ofPattern("yyyy.M.d"); |
| | | operationDate = deviceRecord.getUseStartDate().format(formatter2); |
| | | } |
| | | // å¤ç使ç¨åå使ç¨å |
| | | String useBeforeString = deviceRecord.getUseBefore() == 0? "å¼å¸¸" : "è¯å¥½"; |
| | | String useAfterString = deviceRecord.getUseAfter() == 0 ? "å¼å¸¸" : "è¯å¥½"; |
| | | |
| | | DeviceRecordExportWord deviceRecordExportWord = new DeviceRecordExportWord(); |
| | | // è¿è¡èµå¼ |
| | | BeanUtils.copyProperties(deviceRecord, deviceRecordExportWord); |
| | | deviceRecordExportWord.setUseBeforeString(useBeforeString); // 使ç¨å |
| | | deviceRecordExportWord.setUseAfterString(useAfterString); // 使ç¨å |
| | | deviceRecordExportWord.setOperationDate(operationDate); // è®¾å¤æä½æ¥æ |
| | | deviceRecordExportWord.setUseStartDateString(startTime); // å¼å§æ¶é´ |
| | | deviceRecordExportWord.setUseEndDateString(endTime); // ç»ææ¶é´ |
| | | deviceExportList.add(deviceRecordExportWord); |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/use-record.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("useRecord", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | String deviceName = device.getDeviceName(); |
| | | String managementNumber = device.getManagementNumber(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("useRecord", deviceExportList); |
| | | put("deviceName", deviceName); |
| | | put("managementNumber", managementNumber); |
| | | put("laboratory", laboratoryName); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "仪å¨ä½¿ç¨è®°å½è¡¨", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.device.dto.DeviceScrappedDto; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.mapper.DeviceScrappedMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceScrapped; |
| | | import com.ruoyi.device.service.DeviceScrappedService; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDate; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * <p> |
| | | * è®¾å¤æ¥åºç³è¯·è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-17 01:53:47 |
| | | */ |
| | | @Service |
| | | public class DeviceScrappedServiceImpl extends ServiceImpl<DeviceScrappedMapper, DeviceScrapped> implements DeviceScrappedService { |
| | | |
| | | @Resource |
| | | private DeviceMapper deivceMapper; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | |
| | | /** |
| | | * è®¾å¤æ¥åºç³è¯·å表 |
| | | * |
| | | * @param deviceScrapped |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<DeviceScrapped> pageDeviceScrapped(Page page, DeviceScrapped deviceScrapped) { |
| | | return baseMapper.pageDeviceScrapped(page, QueryWrappers.queryWrappers(deviceScrapped)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤æ¥åºç³è¯· |
| | | * |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addDeviceScrapped(DeviceScrapped deviceScrapped) { |
| | | DeviceScrapped scrapped = new DeviceScrapped(); |
| | | // å½åç»å½ç¨æ·ä¿¡æ¯åé¨é¨ |
| | | User user = userMapper.selectById(SecurityUtils.getUserId().intValue()); |
| | | switch (deviceScrapped.getFlowType()) { |
| | | case 0: |
| | | BeanUtils.copyProperties(deviceScrapped, scrapped); |
| | | // ç³è¯· |
| | | scrapped.setReasonsForScrap(deviceScrapped.getReasonsForScrap()); |
| | | scrapped.setApplicantUserId(user.getId()); |
| | | scrapped.setApplicantUser(user.getName()); |
| | | scrapped.setApplicantDate(LocalDate.now()); |
| | | |
| | | // å¤çäººä¿¡æ¯ |
| | | User departmentHeadUser = userMapper.selectById(deviceScrapped.getDepartmentHeadUserId()); |
| | | scrapped.setApplicantUserId(departmentHeadUser.getId()); |
| | | scrapped.setApplicantUser(departmentHeadUser.getName()); |
| | | |
| | | baseMapper.insert(scrapped); |
| | | break; |
| | | case 1: |
| | | scrapped.setScrappedId(deviceScrapped.getScrappedId()); |
| | | // ç³è¯·é¨é¨è´è´£äººæè§ |
| | | scrapped.setDepartmentHeadOpinion(deviceScrapped.getDepartmentHeadOpinion()); |
| | | scrapped.setDepartmentHeadDate(LocalDate.now()); |
| | | |
| | | // 计éå®¤ä¿¡æ¯ |
| | | User meteringRoomUser = userMapper.selectById(deviceScrapped.getMeteringRoomUserId()); |
| | | scrapped.setMeteringRoomUserId(meteringRoomUser.getId()); |
| | | scrapped.setMeteringRoomUser(meteringRoomUser.getName()); |
| | | |
| | | baseMapper.updateById(scrapped); |
| | | break; |
| | | case 2: |
| | | scrapped.setScrappedId(deviceScrapped.getScrappedId()); |
| | | // 计é室æè§ |
| | | scrapped.setMeteringRoomOpinion(deviceScrapped.getMeteringRoomOpinion()); |
| | | scrapped.setMeteringRoomDate(LocalDate.now()); |
| | | |
| | | // æ¹åäººä¿¡æ¯ |
| | | User approverUser = userMapper.selectById(deviceScrapped.getApproverUserId()); |
| | | scrapped.setApproverUserId(approverUser.getId()); |
| | | scrapped.setApproverUser(approverUser.getName()); |
| | | |
| | | baseMapper.updateById(scrapped); |
| | | break; |
| | | case 3: |
| | | scrapped.setScrappedId(deviceScrapped.getScrappedId()); |
| | | //æ¹å人 |
| | | scrapped.setApproverOpinion(deviceScrapped.getApproverOpinion()); |
| | | scrapped.setApproverDate(LocalDate.now()); |
| | | scrapped.setIsFinish(1); |
| | | baseMapper.updateById(scrapped); |
| | | break; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤æ¥åºç³è¯· |
| | | * |
| | | * @param scrappedId è®¾å¤æ¥åºç³è¯·id |
| | | * @param response ååº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public Result<?> exportDeviceScrapped(Integer scrappedId, HttpServletResponse response) { |
| | | // æ¥è¯¢æ¥åºæ°æ® |
| | | DeviceScrappedDto deviceScrapped = baseMapper.selectDeviceScrappedById(scrappedId); |
| | | if (deviceScrapped == null) { |
| | | return Result.fail("è®¾å¤æ¥åºç³è¯·ä¸åå¨"); |
| | | } |
| | | Device device = null; |
| | | if (deviceScrapped.getDeviceId() != null) { |
| | | device = deivceMapper.selectById(deviceScrapped.getDeviceId()); |
| | | device = device == null ? new Device() : device; |
| | | } |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-scrapped.docx"); |
| | | Configure configure = Configure.builder() |
| | | .build(); |
| | | Device finalDevice = device; |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceScrapped", deviceScrapped); |
| | | put("device", finalDevice); |
| | | // ç³è¯·äººç¾å |
| | | put("applicantUrl", UserUtils.getFinalUserSignatureUrl(deviceScrapped.getApplicantUserId())); |
| | | // é¨é¨è´è´£äººç¾å |
| | | put("headUrl", UserUtils.getFinalUserSignatureUrl(deviceScrapped.getDepartmentHeadUserId())); |
| | | // 计é室ç¾å |
| | | put("metrologyRoomUrl", UserUtils.getFinalUserSignatureUrl(deviceScrapped.getMeteringRoomUserId())); |
| | | // æ¹å人ç¾å |
| | | put("approverUrl", UserUtils.getFinalUserSignatureUrl(deviceScrapped.getApproverUserId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String deviceName = device.getDeviceName() == null ? "" : device.getDeviceName(); |
| | | String fileName = URLEncoder.encode( |
| | | deviceName + "è®¾å¤æ¥åºç³è¯·", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.json.JSONObject; |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.basic.mapper.StructureItemParameterMapper; |
| | | import com.ruoyi.basic.pojo.StructureItemParameter; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.device.dto.*; |
| | | import com.ruoyi.device.excel.upload.DeviceImport; |
| | | import com.ruoyi.device.mapper.CollectBridgeMapper; |
| | | import com.ruoyi.device.mapper.DeviceMaintenanceMapper; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.mapper.DeviceMetricRecordMapper; |
| | | import com.ruoyi.device.pojo.*; |
| | | import com.ruoyi.device.service.DataConfigService; |
| | | import com.ruoyi.device.service.DeviceService; |
| | | import com.ruoyi.device.service.DeviceDocumentsService; |
| | | import com.ruoyi.device.utils.DataAcquisition; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.mapper.InsSampleMapper; |
| | | import com.ruoyi.inspect.pojo.InsProduct; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.system.mapper.SysDictDataMapper; |
| | | import com.ruoyi.system.mapper.SysDeptMapper; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import jakarta.servlet.http.HttpServletRequest; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.math.BigDecimal; |
| | | import java.net.URLEncoder; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 设å¤(Device)表æå¡å®ç°ç±» |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> implements DeviceService { |
| | | |
| | | private DeviceMapper deviceMapper; |
| | | |
| | | private UserMapper userMapper; |
| | | |
| | | private SysDeptMapper sysDeptMapper; |
| | | |
| | | private SysDictDataMapper sysDictDataMapper; |
| | | |
| | | private StructureItemParameterMapper structureItemParameterMapper; |
| | | |
| | | private DataConfigService dataConfigService; |
| | | |
| | | private InsSampleMapper insSampleMapper; |
| | | |
| | | private DeviceDocumentsService documentService; |
| | | |
| | | private DeviceMetricRecordMapper deviceMetricRecordMapper; |
| | | |
| | | private DeviceMaintenanceMapper deviceMaintenanceMapper; |
| | | |
| | | private CollectBridgeMapper collectBridgeMapper; |
| | | |
| | | @Override |
| | | public IPage<DeviceDto> selectDeviceParameter(Page page, DeviceDto itemParameter, Boolean laboratoryNameIsNull) { |
| | | IPage<DeviceDto> iPage = deviceMapper.selectDeviceParameterPage(page, QueryWrappers.queryWrappers(itemParameter), laboratoryNameIsNull); |
| | | return iPage; |
| | | } |
| | | |
| | | @Override |
| | | public int addDeviceParameter(Device itemParameter) { |
| | | return deviceMapper.insert(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public int delDeviceParameter(Integer id) { |
| | | return deviceMapper.deleteById(id); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public int upDeviceParameter(Device itemParameter) { |
| | | |
| | | return deviceMapper.updateById(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> selectEquipmentOverview() { |
| | | return deviceMapper.selectEquipmentOverview(new Page(1, 10), QueryWrappers.queryWrappers(new Device())); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> authorizedPerson() { |
| | | return deviceMapper.authorizedPerson(); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> search(Integer status, String deviceName, String specificationModel, String largeCategory) { |
| | | return deviceMapper.search(status, deviceName, specificationModel, largeCategory); |
| | | } |
| | | |
| | | @Override |
| | | public List<Device> selectDeviceByCategory(String inspectionItem, String inspectionItemSubclass, String laboratory) { |
| | | List<Integer> id; |
| | | |
| | | try { |
| | | id = structureItemParameterMapper.selectList(Wrappers.<StructureItemParameter>lambdaQuery() |
| | | .eq(StructureItemParameter::getInspectionItem, inspectionItem) |
| | | .eq(ObjectUtils.isNotEmpty(inspectionItemSubclass), StructureItemParameter::getInspectionItemSubclass, inspectionItemSubclass) |
| | | .eq(ObjectUtils.isNotEmpty(laboratory), StructureItemParameter::getLaboratory, laboratory) |
| | | .select(StructureItemParameter::getId)).stream().map(StructureItemParameter::getId).collect(Collectors.toList()); |
| | | } catch (Exception e) { |
| | | return null; |
| | | } |
| | | List<Device> devices = deviceMapper.selectList(Wrappers.<Device>lambdaQuery() |
| | | .eq(Device::getDeviceStatus, 0) |
| | | .isNotNull(Device::getInsProductIds)); |
| | | List<Device> devices2 = new ArrayList<>(); |
| | | for (Device device : devices) { |
| | | String[] ids = device.getInsProductIds().split(","); |
| | | for (String i : ids) { |
| | | if (ObjectUtils.isNotEmpty(i)) { |
| | | if (id.contains(Integer.parseInt(i))) { |
| | | devices2.add(device); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | return devices2; |
| | | } |
| | | |
| | | @Override |
| | | public DeviceDto selectDeviceByCode(Integer id) { |
| | | DeviceDto deviceDto = deviceMapper.selectDeviceByCode(id); |
| | | List<Integer> ids = new ArrayList<>(); |
| | | if (Strings.isNotEmpty(deviceDto.getAuthorizedPerson())) { |
| | | if (deviceDto.getAuthorizedPerson().equals("null")) { |
| | | deviceDto.setAuthorizedPerson("[]"); |
| | | } |
| | | ids = JSON.parseArray(deviceDto.getAuthorizedPerson(), Integer.class); |
| | | } |
| | | String name = ""; |
| | | if (!ids.isEmpty()) { |
| | | name = userMapper.selectBatchIds(ids).stream().map(User::getName).collect(Collectors.joining(",")); |
| | | } |
| | | deviceDto.setAuthorizedPersonName(name); |
| | | //æ¥è¯¢è®¾å¤æ ¡åä¿¡æ¯ |
| | | DeviceMetricRecord calibrate = getDeviceMetricRecord(id, "calibrate"); |
| | | deviceDto.setCalibrateNo(calibrate.getCertificateSerialNumber()); |
| | | |
| | | // å°äºåç¨æ¥æï¼èªå¨å°ç¶ææ¹ä¸ºåç¨ |
| | | if (deviceDto.getNextCalibrationDate() != null) { |
| | | if (LocalDateTime.now().isAfter(deviceDto.getNextCalibrationDate())) { |
| | | // todo: 设å¤è¿è¡ç¶æåå
¸ |
| | | // List<Enums> enums = enumService.selectEnumByCategory("设å¤ç¶æ"); |
| | | // List<Enums> status = enums.stream().filter(item -> item.getLabel().equals("åç¨")).collect(Collectors.toList()); |
| | | // deviceDto.setDeviceStatus(Integer.parseInt(status.get(0).getValue())); |
| | | deviceMapper.updateById(deviceDto); |
| | | } |
| | | } |
| | | return deviceDto; |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤æ ¡å/æ ¸æ¥è®°å½ |
| | | * @param deviceId |
| | | * @param type |
| | | * @return |
| | | */ |
| | | public DeviceMetricRecord getDeviceMetricRecord(int deviceId, String type){ |
| | | return Optional.ofNullable( |
| | | deviceMetricRecordMapper.selectOne(Wrappers.<DeviceMetricRecord>lambdaQuery() |
| | | .eq(DeviceMetricRecord::getDeviceId, deviceId) |
| | | .eq(DeviceMetricRecord::getType, type) |
| | | .orderByDesc(DeviceMetricRecord::getCreateTime) |
| | | .last("limit 1"))).orElse(new DeviceMetricRecord()); |
| | | } |
| | | |
| | | @Override |
| | | public Result<?> dataAcquisition(HttpServletRequest request, DeviceCollectionDto dto) { |
| | | |
| | | // æ¥è¯¢æ£éªé¡¹ |
| | | List<Integer> itemIds = dto.getItemIds(); |
| | | if (CollectionUtils.isEmpty(itemIds)) { |
| | | throw new ErrorException("没æéè¦æ°éçæ£éªé¡¹"); |
| | | } |
| | | List<InsProduct> insProducts = insSampleMapper.selectProductResult(itemIds); |
| | | |
| | | // æ¥è¯¢æ£éªé¡¹ç»å®çid |
| | | List<Integer> itemParameterIds = insProducts.stream().map(InsProduct::getStructureItemParameterId).collect(Collectors.toList()); |
| | | |
| | | Set<String> deviceCodeSet = new LinkedHashSet<>(); |
| | | for (InsProduct product : insProducts) { |
| | | // æ¥è¯¢è®¾å¤ |
| | | // æ·»å 设å¤ç¼å· |
| | | if (product.getInsProductResult() != null) { |
| | | List<JSONObject> jsonObjects = JSON.parseArray(product.getInsProductResult().getEquipValue(), JSONObject.class); |
| | | for (JSONObject jsonObject : jsonObjects) { |
| | | if (!"".equals(jsonObject.get("v") + "")) { |
| | | List<String> v = StrUtil.split(jsonObject.get("v") + "", "ï¼"); |
| | | deviceCodeSet.addAll(v); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (CollectionUtils.isEmpty(deviceCodeSet)) { |
| | | throw new ErrorException("æªéæ©è®¾å¤ä¿¡æ¯"); |
| | | } |
| | | // è·å设å¤éå |
| | | List<Device> deviceList = baseMapper.selectList(Wrappers.<Device>lambdaQuery() |
| | | .in(Device::getManagementNumber, deviceCodeSet) |
| | | .isNotNull(Device::getIp) |
| | | .ne(Device::getIp, "")); |
| | | |
| | | if (CollectionUtils.isEmpty(deviceList)) { |
| | | throw new ErrorException("æ 设å¤é
ç½®ééç»å®ä¿¡æ¯"); |
| | | } |
| | | |
| | | // æ°éè¿åä¿¡æ¯ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | for (Device device : deviceList) { |
| | | String ip = device.getIp(); |
| | | // æ ¹æ®æ£éªé¡¹è·åconfig |
| | | List<DataConfig> list = dataConfigService.list(Wrappers.<DataConfig>lambdaQuery() |
| | | .in(DataConfig::getStructureItemParameterId, itemParameterIds) |
| | | .eq(DataConfig::getDeviceId, device.getId())); |
| | | |
| | | // è·å设å¤é
置类 |
| | | // å¤æè®¾å¤æ¯å¦æ¯æ°åç´æ¡¥ |
| | | if (device.getManagementNumber().equals("JCZX-ZB-ER02022")) { |
| | | map.putAll(dataCollectBridge(list, device, dto.getEntrustCode())); |
| | | } else { |
| | | map.putAll(DataAcquisition.dataAcquisitionEntrance(list, device, dto.getEntrustCode(), dto.getEntrustCode(), ip, insProducts.get(0).getCableTag())); |
| | | } |
| | | } |
| | | |
| | | |
| | | // 4ãé å¾ªç¯æ¬¡æ°ï¼åä¸å
¬å¼è®¡ç® |
| | | if (ObjectUtils.isNotEmpty(map)) { |
| | | Map<String, Object> frequency = DataAcquisition.createFrequency(dto.getEntrustCode(), dto.getEntrustCode(), map); |
| | | return Result.success(frequency); |
| | | } else { |
| | | return Result.success(null); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åæ°åç´æ¡¥æ£æµä¿¡æ¯ |
| | | * @return |
| | | */ |
| | | public Map<String, ?> dataCollectBridge(List<DataConfig> dataConfig, Device device, String entrustCode) { |
| | | // æ¼æ¥åå |
| | | Map<String, List<DataConfig>> userMap = dataConfig.stream() |
| | | .peek(i -> { |
| | | String itemName = i.getInspectionItem(); |
| | | if (StringUtils.isNotBlank(i.getInspectionItemClass())) { |
| | | itemName += "@" + i.getInspectionItemClass(); |
| | | } |
| | | String name = i.getInspectionItem().equals(i.getInspectionItemSubclass()) ? itemName + "," : itemName + "," + i.getInspectionItemSubclass(); |
| | | |
| | | // æ·»å æ£éªé¡¹åç§° |
| | | i.setInsProductItem(name); |
| | | }) |
| | | .collect(Collectors.groupingBy(DataConfig::getInsProductItem)); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | |
| | | userMap.forEach((k, v) -> { |
| | | List<String> resultValue = new ArrayList<>(); |
| | | // æ¥è¯¢ç´æ¡¥çµæµçµé»æ°éå¼ |
| | | List<CollectBridge> collectBridges = collectBridgeMapper.selectList(Wrappers.<CollectBridge>lambdaQuery() |
| | | .like(CollectBridge::getEntrustCode, entrustCode) |
| | | .orderByAsc(CollectBridge::getCollectDate)); |
| | | |
| | | resultValue = collectBridges.stream().map(CollectBridge::getCollectValue).collect(Collectors.toList()); |
| | | |
| | | Map<String, Object> hashMap = new HashMap<>(); |
| | | hashMap.put("equipName", device.getDeviceName()); |
| | | hashMap.put("equipValue", device.getManagementNumber()); |
| | | hashMap.put("result", resultValue); |
| | | map.put(k, hashMap); |
| | | }); |
| | | return map; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> treeDevice(String deviceName) { |
| | | List<Map<String, Object>> listMap = deviceMapper.treeDevice(deviceName); |
| | | return listMap; |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public void exportDeviceFile(Integer deviceId, HttpServletResponse response) { |
| | | |
| | | // 设å¤ä¿¡æ¯ |
| | | Device device = baseMapper.selectById(deviceId); |
| | | // è®¾å¤æ¡£æ¡ |
| | | List<DeviceDocuments> documentList = documentService.list(Wrappers.<DeviceDocuments>lambdaQuery().eq(DeviceDocuments::getDeviceId, deviceId)); |
| | | // è®¾å¤æ ¡å表 |
| | | List<DeviceMetricRecord> deviceMetricRecordList = deviceMetricRecordMapper.selectList(Wrappers.<DeviceMetricRecord>lambdaQuery().eq(DeviceMetricRecord::getDeviceId, deviceId)); |
| | | // 设å¤ç»´ä¿®è¡¨ |
| | | List<DeviceMaintenance> deviceMaintenanceList = deviceMaintenanceMapper.selectList(Wrappers.<DeviceMaintenance>lambdaQuery().eq(DeviceMaintenance::getDeviceId, deviceId)); |
| | | |
| | | |
| | | // è¿åç»wordçæ°æ®å表 å为左å³ä¸¤åæ°æ® |
| | | List<DocumentExportWordDto> documentExportWordDtoList = new ArrayList<>(); |
| | | // ç»æ¡£æ¡å åºå· å¹¶å·¦å³å为左å³ä¸¤åå¨word䏿¾ç¤º |
| | | extracted(documentList, documentExportWordDtoList); |
| | | |
| | | |
| | | // å°æ ¡å表å维修表æ¾å
¥ä¸ä¸ªå¯¹è±¡ä¸æ¹ä¾¿wordè¡¨æ ¼ä¸æ¾ç¤º |
| | | List<DeviceMetricRecordAndMaintenanceDto> deviceMetricRecordAndMaintenanceDtoList = getDeviceMetricRecordAndMaintenanceDtoList(deviceMetricRecordList, deviceMaintenanceList); |
| | | |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-document.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("document", new HackLoopTableRenderPolicy()) |
| | | .bind("deviceMetricRecordAndMaintenanceDtoList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("device", device); |
| | | put("document", documentExportWordDtoList); // æ¡£æ¡ |
| | | put("deviceMetricRecordAndMaintenanceDtoList", deviceMetricRecordAndMaintenanceDtoList); // æ ¡å表 å 维修表 |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | device.getDeviceName() + "æ¡£æ¡", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | private List<DeviceMetricRecordAndMaintenanceDto> getDeviceMetricRecordAndMaintenanceDtoList(List<DeviceMetricRecord> deviceMetricRecordList, List<DeviceMaintenance> deviceMaintenanceList) { |
| | | // è®¾å¤æ ¡å表å设å¤ç»´ä¿®è¡¨çéå |
| | | List<DeviceMetricRecordAndMaintenanceDto> deviceMetricRecordAndMaintenanceDtoList = new ArrayList<>(); |
| | | // è®¾å¤æ ¡å表å设å¤ç»´ä¿®è¡¨çé¿åº¦å¯è½ä¸ä¸æ · åæå¤§å¼ ä¸å¤çç¨ç©ºæ°æ®å¡«å
|
| | | int metricRecordSize = deviceMetricRecordList.size(); |
| | | int maintenanceSize = deviceMaintenanceList.size(); |
| | | int size = Math.max(metricRecordSize, maintenanceSize); |
| | | // ç» æ ¡éªå维修对象 èµå¼ |
| | | for (int i = 0; i < size; i++) { |
| | | // æ ¡éªå维修对象 |
| | | DeviceMetricRecordAndMaintenanceDto deviceMetricRecordAndMaintenanceDto = new DeviceMetricRecordAndMaintenanceDto(); |
| | | // 设置åºå· |
| | | deviceMetricRecordAndMaintenanceDto.setIndex(i + 1); |
| | | |
| | | // æ ¡åè¡¨æ°æ® |
| | | if (metricRecordSize > i) { |
| | | // è®¾ç½®æ¥ææ ¼å¼ |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | // è·åè®¾å¤æ ¡åè¡¨æ°æ® |
| | | DeviceMetricRecord deviceMetricRecord = deviceMetricRecordList.get(i); |
| | | // è®¾ç½®æ ¡åæ¥æ |
| | | deviceMetricRecordAndMaintenanceDto.setCalibrationDateString(sdf.format(deviceMetricRecord.getCalibrationDate())); |
| | | // 设置è¯ä¹¦ç¼å· |
| | | deviceMetricRecordAndMaintenanceDto.setCertificateNumber(deviceMetricRecord.getCertificateSerialNumber()); |
| | | // è®¾ç½®æææ |
| | | deviceMetricRecordAndMaintenanceDto.setValidityDateString(sdf.format(deviceMetricRecord.getNextCalibrationDate())); |
| | | // è®¾ç½®æ ¡åæææ¥æ |
| | | deviceMetricRecordAndMaintenanceDto.setValidityDateString(sdf.format(deviceMetricRecord.getConfirmDate())); |
| | | // 设置æ£éªç»æ |
| | | deviceMetricRecordAndMaintenanceDto.setJudgement(deviceMetricRecord.getStatus()); |
| | | } |
| | | |
| | | // ç»´ä¿®è¡¨æ°æ® |
| | | if (maintenanceSize > i) { |
| | | // è·å设å¤ç»´ä¿®è¡¨æ°æ® |
| | | DeviceMaintenance deviceMaintenance = deviceMaintenanceList.get(i); |
| | | DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | // ç»´ä¿®æ¥æ |
| | | deviceMetricRecordAndMaintenanceDto.setMaintenanceDateString(deviceMaintenance.getMaintenanceDate().format(dateTimeFormatter)); |
| | | // å¤çæ¹æ³ |
| | | deviceMetricRecordAndMaintenanceDto.setHandlingMethod(deviceMaintenance.getMaintenanceContent()); |
| | | // 夿³¨ |
| | | deviceMetricRecordAndMaintenanceDto.setComments(deviceMaintenance.getRemark()); |
| | | } |
| | | |
| | | deviceMetricRecordAndMaintenanceDtoList.add(deviceMetricRecordAndMaintenanceDto); |
| | | } |
| | | return deviceMetricRecordAndMaintenanceDtoList; |
| | | } |
| | | |
| | | /** |
| | | * ç»æ¡£æ¡å åºå· å¹¶å·¦å³å为左å³ä¸¤åå¨word䏿¾ç¤º |
| | | * |
| | | * @param documentList æ¡£æ¡å表 |
| | | * @param documentExportWordDtoList è¿åç»wordçæ°æ®å表 |
| | | */ |
| | | private static void extracted(List<DeviceDocuments> documentList, List<DocumentExportWordDto> documentExportWordDtoList) { |
| | | // ç»æ¡£æ¡å åºå· å¹¶ä¸å为左å³ä¸¤ä¸ªå表å¨word䏿¾ç¤º |
| | | for (int i = 0; i < documentList.size(); i++) { |
| | | // å建wordè¡¨æ ¼ä¸ä¸è¡çæ°æ®å¯¹è±¡ |
| | | DocumentExportWordDto documentExportWordDto = new DocumentExportWordDto(); |
| | | // è·åæ¡£æ¡ä¿¡æ¯ |
| | | DeviceDocuments document = documentList.get(i); |
| | | // æ ¼å¼åæ¥æ |
| | | DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | // æ ¹æ®åºå· åå«å å
¥ä¸¤ä¸ªå表 |
| | | if (i % 2 == 0) { |
| | | // 奿°å¨å·¦å |
| | | documentExportWordDto.setIndex1(i + 1); |
| | | documentExportWordDto.setName1(document.getName()); |
| | | documentExportWordDto.setQuantity1(document.getQuantity()); |
| | | documentExportWordDto.setPageCount1(document.getPageCount()); |
| | | documentExportWordDto.setArchiveDateString1(document.getProvideDate().format(dateTimeFormatter)); |
| | | } else { |
| | | // å¶æ°å¨å³å |
| | | documentExportWordDto.setIndex2(i + 1); |
| | | documentExportWordDto.setName2(document.getName()); |
| | | documentExportWordDto.setQuantity2(document.getQuantity()); |
| | | documentExportWordDto.setPageCount2(document.getPageCount()); |
| | | documentExportWordDto.setArchiveDateString2(document.getProvideDate().format(dateTimeFormatter)); |
| | | } |
| | | // æä¸è¡æ°æ®å¯¹è±¡å å
¥å表 |
| | | documentExportWordDtoList.add(documentExportWordDto); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void exportEquipmentDetails(HttpServletResponse response) { |
| | | List<Device> deviceList = baseMapper.selectList(null); |
| | | List<DeviceExport> deviceExportList = new ArrayList<>(); |
| | | |
| | | int index = 1; |
| | | for (Device device : deviceList) { |
| | | Integer equipmentManager = device.getEquipmentManager(); |
| | | String equipmentManagerName = null; |
| | | if (equipmentManager != null) { |
| | | User user = userMapper.selectById(equipmentManager); |
| | | if (user != null) { |
| | | equipmentManagerName = user.getName(); |
| | | } |
| | | } |
| | | DeviceExport deviceExport = new DeviceExport(); |
| | | BeanUtils.copyProperties(device, deviceExport); |
| | | deviceExport.setIndex(index); |
| | | deviceExport.setEquipmentManagerName(equipmentManagerName); |
| | | deviceExportList.add(deviceExport); |
| | | index++; |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/quipment-details.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceList", deviceExportList); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "仪å¨è®¾å¤ä¸è§è¡¨", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void downloadImportTemplate(HttpServletResponse response) { |
| | | response.reset(); |
| | | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
| | | response.setHeader("Access-Control-Expose-Headers", "Content-Disposition"); |
| | | try { |
| | | String fileName = URLEncoder.encode("设å¤å¯¼å
¥æ¨¡æ¿.xlsx", "UTF-8"); |
| | | response.setHeader("Content-Disposition", "attachment;filename=" + fileName); |
| | | EasyExcel.write(response.getOutputStream(), DeviceImport.class) |
| | | .sheet("设å¤å¯¼å
¥æ¨¡æ¿") |
| | | .doWrite(Collections.emptyList()); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("设å¤å¯¼å
¥æ¨¡æ¿ä¸è½½å¤±è´¥", e); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int importDevice(org.springframework.web.multipart.MultipartFile file) { |
| | | if (file == null || file.isEmpty()) { |
| | | throw new RuntimeException("è¯·éæ©éè¦å¯¼å
¥çExcelæä»¶"); |
| | | } |
| | | String fileName = file.getOriginalFilename(); |
| | | if (fileName == null || !fileName.toLowerCase(Locale.ROOT).endsWith(".xlsx")) { |
| | | throw new RuntimeException("ä»
æ¯æ.xlsxæ ¼å¼æä»¶"); |
| | | } |
| | | |
| | | final List<DeviceImport> rows; |
| | | try { |
| | | rows = EasyExcel.read(file.getInputStream()) |
| | | .head(DeviceImport.class) |
| | | .sheet() |
| | | .doReadSync(); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("Excelè§£æå¤±è´¥ï¼è¯·ä½¿ç¨ä¸è½½ç导å
¥æ¨¡æ¿", e); |
| | | } |
| | | if (CollectionUtils.isEmpty(rows)) { |
| | | throw new RuntimeException("导å
¥æä»¶æ²¡æè®¾å¤æ°æ®"); |
| | | } |
| | | |
| | | Set<String> fileKeys = new HashSet<>(); |
| | | for (int i = 0; i < rows.size(); i++) { |
| | | String managementNumber = required(rows.get(i).getManagementNumber(), i + 2, "管çç¼å·"); |
| | | String deviceName = required(rows.get(i).getDeviceName(), i + 2, "仪å¨åç§°"); |
| | | String specificationModel = required(rows.get(i).getSpecificationModel(), i + 2, "è§æ ¼åå·"); |
| | | if (!fileKeys.add(deviceKey(deviceName, specificationModel, managementNumber))) { |
| | | throw new RuntimeException("第" + (i + 2) + "è¡ï¼ä»ªå¨åç§°+è§æ ¼åå·+管çç¼å·å¨æä»¶ä¸éå¤"); |
| | | } |
| | | } |
| | | Set<String> existingKeys = baseMapper.selectList(Wrappers.<Device>lambdaQuery() |
| | | .select(Device::getDeviceName, Device::getSpecificationModel, Device::getManagementNumber)) |
| | | .stream().map(d -> deviceKey(d.getDeviceName(), d.getSpecificationModel(), d.getManagementNumber())).collect(Collectors.toSet()); |
| | | |
| | | Map<String, List<SysDept>> departmentMap = sysDeptMapper.selectDeptList(new SysDept()).stream() |
| | | .filter(item -> StringUtils.isNotBlank(item.getDeptName())) |
| | | .collect(Collectors.groupingBy(item -> item.getDeptName().trim())); |
| | | Map<String, List<User>> userMap = userMapper.selectList(Wrappers.<User>lambdaQuery() |
| | | .isNotNull(User::getName).select(User::getId, User::getName)) |
| | | .stream().collect(Collectors.groupingBy(item -> item.getName().trim())); |
| | | Map<String, String> statusMap = dictMap("device_status"); |
| | | Map<String, String> typeMap = dictMap("device_type"); |
| | | |
| | | List<Device> devices = new ArrayList<>(); |
| | | for (int i = 0; i < rows.size(); i++) { |
| | | int rowNumber = i + 2; |
| | | DeviceImport row = rows.get(i); |
| | | String managementNumber = required(row.getManagementNumber(), rowNumber, "管çç¼å·"); |
| | | String deviceName = required(row.getDeviceName(), rowNumber, "仪å¨åç§°"); |
| | | String specificationModel = required(row.getSpecificationModel(), rowNumber, "è§æ ¼åå·"); |
| | | if (existingKeys.contains(deviceKey(deviceName, specificationModel, managementNumber))) { |
| | | throw new RuntimeException("第" + rowNumber + "è¡ï¼ä»ªå¨åç§°â" + deviceName + "â+è§æ ¼åå·â" + specificationModel + "â+管çç¼å·â" + managementNumber + "âå·²åå¨"); |
| | | } |
| | | |
| | | String laboratoryName = required(row.getLaboratoryName(), rowNumber, "æå±é¨é¨"); |
| | | List<SysDept> departments = departmentMap.get(laboratoryName); |
| | | if (CollectionUtils.isEmpty(departments) || departments.size() > 1) { |
| | | throw new RuntimeException("第" + rowNumber + "è¡ï¼æå±é¨é¨â" + laboratoryName + "âä¸å卿ä¸å¯ä¸"); |
| | | } |
| | | |
| | | Device device = new Device(); |
| | | device.setDeviceName(deviceName); |
| | | device.setSpecificationModel(specificationModel); |
| | | device.setManagementNumber(managementNumber); |
| | | device.setActivationDate(parseDate(row.getActivationDate())); |
| | | device.setSubordinateDepartmentsId(departments.get(0).getDeptId().intValue()); |
| | | device.setDeviceStatus(Integer.valueOf(dictValue(statusMap, row.getDeviceStatus(), rowNumber, "å½åç¶æ", true))); |
| | | device.setCalibrationDate(required(row.getCalibrationDate(), rowNumber, "æ ¡å卿(æ)")); |
| | | device.setEnDeviceName(trim(row.getEnDeviceName())); |
| | | device.setManufacturer(trim(row.getManufacturer())); |
| | | device.setFactoryNo(trim(row.getFactoryNo())); |
| | | device.setAssetCode(trim(row.getAssetCode())); |
| | | device.setOrigin(trim(row.getOrigin())); |
| | | device.setAcquisitionDate(parseDate(row.getAcquisitionDate())); |
| | | device.setStoragePoint(trim(row.getStoragePoint())); |
| | | device.setTechnicalIndicators(trim(row.getTechnicalIndicators())); |
| | | device.setCalibrationServices(trim(row.getCalibrationServices())); |
| | | device.setLastCalibrationDate(parseDate(row.getLastCalibrationDate())); |
| | | device.setNextCalibrationDate(parseDate(row.getNextCalibrationDate())); |
| | | device.setLargeCategory(dictValue(typeMap, row.getLargeCategory(), rowNumber, "设å¤ç±»å", false)); |
| | | device.setUnitPrice(parseDecimal(row.getUnitPrice(), rowNumber, "åä»·(ä¸å
)")); |
| | | |
| | | String managerName = trim(row.getEquipmentManagerName()); |
| | | if (StringUtils.isNotBlank(managerName)) { |
| | | List<User> users = userMap.get(managerName); |
| | | if (CollectionUtils.isEmpty(users) || users.size() > 1) { |
| | | throw new RuntimeException("第" + rowNumber + "è¡ï¼è´è´£äººâ" + managerName + "âä¸å卿ä¸å¯ä¸"); |
| | | } |
| | | device.setEquipmentManager(users.get(0).getId()); |
| | | } |
| | | devices.add(device); |
| | | } |
| | | saveBatch(devices); |
| | | return devices.size(); |
| | | } |
| | | |
| | | private Map<String, String> dictMap(String dictType) { |
| | | return sysDictDataMapper.selectDictDataByType(dictType).stream() |
| | | .collect(Collectors.toMap(item -> item.getDictLabel().trim(), SysDictData::getDictValue, (first, second) -> first)); |
| | | } |
| | | |
| | | private String dictValue(Map<String, String> values, String input, int rowNumber, String column, boolean required) { |
| | | String text = trim(input); |
| | | if (StringUtils.isBlank(text)) { |
| | | if (required) { |
| | | throw new RuntimeException("第" + rowNumber + "è¡ï¼" + column + "ä¸è½ä¸ºç©º"); |
| | | } |
| | | return null; |
| | | } |
| | | String value = values.get(text); |
| | | if (value == null && values.containsValue(text)) { |
| | | value = text; |
| | | } |
| | | if (value == null) { |
| | | throw new RuntimeException("第" + rowNumber + "è¡ï¼" + column + "â" + text + "âä¸å¨ç³»ç»åå
¸ä¸"); |
| | | } |
| | | return value; |
| | | } |
| | | |
| | | private LocalDateTime parseDate(String input) { |
| | | String text = trim(input); |
| | | if (StringUtils.isBlank(text)) { |
| | | return null; |
| | | } |
| | | String datePart = text.replace('/', '-').split("\\s+")[0]; |
| | | try { |
| | | return LocalDate.parse(datePart, DateTimeFormatter.ofPattern("yyyy-M-d")).atStartOfDay(); |
| | | } catch (Exception e) { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | private BigDecimal parseDecimal(String input, int rowNumber, String column) { |
| | | String text = trim(input); |
| | | if (StringUtils.isBlank(text)) { |
| | | return null; |
| | | } |
| | | try { |
| | | return new BigDecimal(text); |
| | | } catch (NumberFormatException e) { |
| | | throw new RuntimeException("第" + rowNumber + "è¡ï¼" + column + "å¿
é¡»æ¯æ°å", e); |
| | | } |
| | | } |
| | | |
| | | private String required(String input, int rowNumber, String column) { |
| | | String value = trim(input); |
| | | if (StringUtils.isBlank(value)) { |
| | | throw new RuntimeException("第" + rowNumber + "è¡ï¼" + column + "ä¸è½ä¸ºç©º"); |
| | | } |
| | | return value; |
| | | } |
| | | |
| | | private String deviceKey(String deviceName, String specificationModel, String managementNumber) { |
| | | return (deviceName == null ? "" : deviceName.trim()) + "|" |
| | | + (specificationModel == null ? "" : specificationModel.trim()) + "|" |
| | | + (managementNumber == null ? "" : managementNumber.trim()); |
| | | } |
| | | |
| | | private String trim(String value) { |
| | | return value == null ? null : value.trim(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.basic.mapper.LaboratoryMapper; |
| | | import com.ruoyi.basic.pojo.Laboratory; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.device.dto.DeviceStateDto; |
| | | import com.ruoyi.device.mapper.DeviceStateMapper; |
| | | import com.ruoyi.device.pojo.DeviceState; |
| | | import com.ruoyi.device.service.DeviceStateService; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤åç¨/å¯ç¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-09-26 09:51:40 |
| | | */ |
| | | @Service |
| | | public class DeviceStateServiceImpl extends ServiceImpl<DeviceStateMapper, DeviceState> implements DeviceStateService { |
| | | |
| | | @Resource |
| | | private LaboratoryMapper laboratoryMapper; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | @Override |
| | | public IPage<DeviceStateDto> getDeviceStatePage(Integer deviceId, Page page, String processNumber) { |
| | | return baseMapper.getDeviceStatePage(deviceId, page, processNumber); |
| | | } |
| | | |
| | | @Override |
| | | public void exportDeviceStatus(Integer deviceId, String processNumber, HttpServletResponse response) { |
| | | // æ ¹æ®æµç¨ç¼å· æ¥è¯¢cnas设å¤ç¶æ |
| | | DeviceStateDto deviceStateDto = baseMapper.getDeviceStatePage(deviceId,new Page<DeviceStateDto>(1,1), processNumber).getRecords().get(0); |
| | | |
| | | // 对æ¶é´è¿è¡ä¿®æ¹ |
| | | DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyyå¹´MMæddæ¥"); |
| | | deviceStateDto.setSubmitDateString(deviceStateDto.getSubmitDate() != null ? deviceStateDto.getSubmitDate().format(format) : " å¹´ æ æ¥"); |
| | | deviceStateDto.setDepartmentDateString(deviceStateDto.getDepartmentDate() != null? deviceStateDto.getDepartmentDate().format(format) : " å¹´ æ æ¥"); |
| | | deviceStateDto.setMeasuringRoomDateString(deviceStateDto.getMeasuringRoomDate() != null? deviceStateDto.getMeasuringRoomDate().format(format) : " å¹´ æ æ¥"); |
| | | deviceStateDto.setApprovalDateString(deviceStateDto.getApprovalDate() != null? deviceStateDto.getApprovalDate().format(format) : " å¹´ æ æ¥"); |
| | | |
| | | // æ¥è¯¢è®¾å¤å±äºåªä¸ªå®éªå®¤ |
| | | String laboratoryName; |
| | | String largeCategory = deviceStateDto.getLargeCategory(); |
| | | if (StringUtils.isNotBlank(largeCategory)) { |
| | | largeCategory = largeCategory.substring(0, 1); |
| | | Laboratory laboratory = laboratoryMapper.selectOne(Wrappers.<Laboratory>lambdaQuery() |
| | | .eq(Laboratory::getLaboratoryNumber, largeCategory) |
| | | .select(Laboratory::getLaboratoryName)); |
| | | laboratoryName = laboratory.getLaboratoryName(); |
| | | } else { |
| | | laboratoryName = ""; |
| | | } |
| | | |
| | | //todo: 设å¤ç¶ææ¥è¯¢ç¾åå°å ææ¶äººåæ¥è¯¢ |
| | | //è·åç³è¯·äººçç¾åå°å |
| | | String applicantUrl = null; |
| | | if (deviceStateDto.getSubmitOperatingPersonnel() != null) { |
| | | applicantUrl = userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, deviceStateDto.getSubmitOperatingPersonnel())) |
| | | .getSignatureUrl(); |
| | | if (StringUtils.isBlank(applicantUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°ç³è¯·äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | //è·åé¨é¨è´è´£äººçç¾åå°å |
| | | String headOfDepartmentUrl = null; |
| | | if (deviceStateDto.getDepartmentNextPesponsible() != null) { |
| | | headOfDepartmentUrl = userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, deviceStateDto.getDepartmentNextPesponsible())) |
| | | .getSignatureUrl(); |
| | | if (StringUtils.isBlank(headOfDepartmentUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°é¨é¨è´è´£äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | //è·å计é室夿µäººçç¾åå°å |
| | | String measurementRoomUrl = null; |
| | | if (deviceStateDto.getMeasuringRoomNextPesponsible() != null) { |
| | | measurementRoomUrl = userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, deviceStateDto.getMeasuringRoomNextPesponsible())) |
| | | .getSignatureUrl(); |
| | | if (StringUtils.isBlank(measurementRoomUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°è®¡é室夿µäººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | //è·åæ¹å人çç¾åå°å |
| | | String approvedUrl = null; |
| | | if (deviceStateDto.getApprovalNextPesponsible() != null) { |
| | | approvedUrl = userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, deviceStateDto.getApprovalNextPesponsible())) |
| | | .getSignatureUrl(); |
| | | if (StringUtils.isBlank(approvedUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ¹å人çç¾å"); |
| | | } |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/device-status.docx"); |
| | | Configure configure = Configure.builder() |
| | | .build(); |
| | | String finalApplicantUrl = applicantUrl; // ç³è¯·äººçç¾åå°å |
| | | String finalHeadOfDepartmentUrl = headOfDepartmentUrl; // é¨é¨è´è´£äººçç¾åå°å |
| | | String finalMeasurementRoomUrl = measurementRoomUrl; // 计é室夿µäººçç¾åå°å |
| | | String finalApprovedUrl = approvedUrl; // æ¹å人çç¾åå°å |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceStateDto", deviceStateDto); |
| | | put("submitOperatingPersonnelUrl", StringUtils.isNotBlank(finalApplicantUrl) ? Pictures.ofLocal(imgUrl + "/" + finalApplicantUrl).create() : null); |
| | | put("departmentNextPesponsibleUrl", StringUtils.isNotBlank(finalHeadOfDepartmentUrl) ? Pictures.ofLocal(imgUrl + "/" + finalHeadOfDepartmentUrl).create() : null); |
| | | put("measuringRoomNextPesponsibleUrl", StringUtils.isNotBlank(finalMeasurementRoomUrl) ? Pictures.ofLocal(imgUrl + "/" + finalMeasurementRoomUrl).create() : null); |
| | | put("approvalNextPesponsibleUrl", StringUtils.isNotBlank(finalApprovedUrl) ? Pictures.ofLocal(imgUrl + "/" + finalApprovedUrl).create() : null); |
| | | put("laboratory", laboratoryName); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "设å¤ç»´æ¤ä¿å
»è®°å½", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.device.mapper.DeviceTraceabilityManagementDetailsMapper; |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagementDetails; |
| | | import com.ruoyi.device.service.DeviceTraceabilityManagementDetailsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å详æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:58 |
| | | */ |
| | | @Service |
| | | public class DeviceTraceabilityManagementDetailsServiceImpl extends ServiceImpl<DeviceTraceabilityManagementDetailsMapper, DeviceTraceabilityManagementDetails> implements DeviceTraceabilityManagementDetailsService { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.constant.MenuJumpPathConstants; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.InformationNotification; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.WxCpUtils; |
| | | import com.ruoyi.device.dto.DeviceTraceabilityManagementDetailsDto; |
| | | import com.ruoyi.device.dto.DeviceTraceabilityManagementDto; |
| | | import com.ruoyi.device.mapper.DeviceTraceabilityManagementDetailsMapper; |
| | | import com.ruoyi.device.mapper.DeviceTraceabilityManagementMapper; |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagement; |
| | | import com.ruoyi.device.pojo.DeviceTraceabilityManagementDetails; |
| | | import com.ruoyi.device.service.DeviceTraceabilityManagementDetailsService; |
| | | import com.ruoyi.device.service.DeviceTraceabilityManagementService; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.inspect.util.UserUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.system.service.InformationNotificationService; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDateTime; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设å¤é弿º¯æºè®¡å表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author æ±èéµ·éç½ç»ç§ææéå
¬å¸ |
| | | * @since 2024-12-20 02:27:44 |
| | | */ |
| | | @Service |
| | | public class DeviceTraceabilityManagementServiceImpl extends ServiceImpl<DeviceTraceabilityManagementMapper, DeviceTraceabilityManagement> implements DeviceTraceabilityManagementService { |
| | | |
| | | @Resource |
| | | private DeviceTraceabilityManagementDetailsService deviceTraceabilityManagementDetailsService; |
| | | |
| | | @Resource |
| | | private DeviceTraceabilityManagementDetailsMapper deviceTraceabilityManagementDetailsMapper; |
| | | @Resource |
| | | private ThreadPoolTaskExecutor threadPoolTaskExecutor; |
| | | @Resource |
| | | private InformationNotificationService informationNotificationService; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | /** |
| | | * å页æ¥è¯¢è®¾å¤é弿º¯æºè®¡å |
| | | * |
| | | * @param page |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result<IPage<DeviceTraceabilityManagement>> selectDeviceTraceabilityManagementByPage(Page page, DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | IPage<DeviceTraceabilityManagement> iPage = baseMapper.selectDeviceParameterPage(page, QueryWrappers.queryWrappers(deviceTraceabilityManagementDto)); |
| | | return Result.success(iPage); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ°å¢è®¾å¤é弿º¯æºè®¡å |
| | | * |
| | | * @param deviceTraceabilityManagementDto 设å¤é弿º¯æºè®¡å |
| | | */ |
| | | @Override |
| | | public Result addTraceabilityManagement(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | deviceTraceabilityManagementDto.setCompilerId(userId); |
| | | deviceTraceabilityManagementDto.setCompiler(user.getName()); |
| | | deviceTraceabilityManagementDto.setDatePreparation(LocalDateTime.now()); |
| | | |
| | | // æ¥è¯¢å®¡æ ¸äººid |
| | | if (deviceTraceabilityManagementDto.getAuditId() != null) { |
| | | User auditUser = userMapper.selectById(deviceTraceabilityManagementDto.getAuditId()); |
| | | deviceTraceabilityManagementDto.setAudit(auditUser.getName()); |
| | | } |
| | | this.saveOrUpdate(deviceTraceabilityManagementDto); |
| | | |
| | | // 详æ
èµå¼å¹¶ä¿å |
| | | List<DeviceTraceabilityManagementDetailsDto> deviceTraceabilityManagementDetails = deviceTraceabilityManagementDto.getDeviceTraceabilityManagementDetails(); |
| | | if (CollectionUtils.isNotEmpty(deviceTraceabilityManagementDetails)) { // 详æ
ä¸ä¸ºç©º |
| | | List<DeviceTraceabilityManagementDetails> collect = deviceTraceabilityManagementDetails.stream().map(detailsDto -> { |
| | | detailsDto.setTraceabilityManagementId(deviceTraceabilityManagementDto.getTraceabilityManagementId()); // é弿º¯æºè®¡åID |
| | | DeviceTraceabilityManagementDetails details = new DeviceTraceabilityManagementDetails(); |
| | | BeanUtils.copyProperties(detailsDto, details); |
| | | return details; |
| | | }).collect(Collectors.toList()); |
| | | deviceTraceabilityManagementDetailsService.saveBatch(collect); |
| | | } |
| | | |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤é弿º¯æºè®¡å |
| | | * |
| | | * @param deviceTraceabilityManagementDto 设å¤é弿º¯æºè®¡å |
| | | */ |
| | | @Override |
| | | public Result updateTraceabilityManagement(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | // æ¥è¯¢å®¡æ ¸äººid |
| | | if (deviceTraceabilityManagementDto.getAuditId() != null) { |
| | | User auditUser = userMapper.selectById(deviceTraceabilityManagementDto.getAuditId()); |
| | | deviceTraceabilityManagementDto.setAudit(auditUser.getName()); |
| | | } |
| | | this.saveOrUpdate(deviceTraceabilityManagementDto); |
| | | |
| | | // å é¤åæ¬ç详æ
|
| | | deviceTraceabilityManagementDetailsService.remove(Wrappers.<DeviceTraceabilityManagementDetails>lambdaQuery().eq(DeviceTraceabilityManagementDetails::getTraceabilityManagementId, deviceTraceabilityManagementDto.getTraceabilityManagementId())); |
| | | // 详æ
èµå¼å¹¶ä¿å |
| | | List<DeviceTraceabilityManagementDetailsDto> deviceTraceabilityManagementDetails = deviceTraceabilityManagementDto.getDeviceTraceabilityManagementDetails(); |
| | | if (CollectionUtils.isNotEmpty(deviceTraceabilityManagementDetails)) { // 详æ
ä¸ä¸ºç©º |
| | | List<DeviceTraceabilityManagementDetails> collect = deviceTraceabilityManagementDetails.stream().map(detailsDto -> { |
| | | detailsDto.setTraceabilityManagementId(deviceTraceabilityManagementDto.getTraceabilityManagementId()); // é弿º¯æºè®¡åID |
| | | DeviceTraceabilityManagementDetails details = new DeviceTraceabilityManagementDetails(); |
| | | BeanUtils.copyProperties(detailsDto, details); |
| | | return details; |
| | | }).collect(Collectors.toList()); |
| | | deviceTraceabilityManagementDetailsService.saveBatch(collect); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è®¾å¤é弿º¯æºè®¡å |
| | | * |
| | | * @param deviceTraceabilityManagementDto 设å¤é弿º¯æºè®¡å |
| | | */ |
| | | @Override |
| | | public Result deleteTraceabilityManagement(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | this.removeById(deviceTraceabilityManagementDto); |
| | | deviceTraceabilityManagementDetailsService.remove(Wrappers.<DeviceTraceabilityManagementDetails>lambdaQuery().eq(DeviceTraceabilityManagementDetails::getTraceabilityManagementId, deviceTraceabilityManagementDto.getTraceabilityManagementId())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤é弿º¯æºè®¡å详æ
|
| | | * |
| | | * @param traceabilityManagementId 设å¤é弿º¯æºè®¡åid |
| | | */ |
| | | @Override |
| | | public Result<DeviceTraceabilityManagementDto> getTraceabilityManagementDetail(Integer traceabilityManagementId) { |
| | | // æ¥è¯¢è®¾å¤é弿º¯æºè®¡å |
| | | DeviceTraceabilityManagement deviceTraceabilityManagement = baseMapper.selectById(traceabilityManagementId); |
| | | // æ¥è¯¢è¯¦æ
|
| | | DeviceTraceabilityManagementDto deviceTraceabilityManagementDto = new DeviceTraceabilityManagementDto(); |
| | | BeanUtils.copyProperties(deviceTraceabilityManagement, deviceTraceabilityManagementDto); |
| | | deviceTraceabilityManagementDto.setDeviceTraceabilityManagementDetails(deviceTraceabilityManagementDetailsMapper.deviceTraceabilityManagementDetailsList(traceabilityManagementId)); |
| | | return Result.success(deviceTraceabilityManagementDto); |
| | | } |
| | | |
| | | /** |
| | | * æäº¤æ¹å |
| | | * @param deviceTraceabilityManagementDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result submitReviewTraceabilityManagementStatus(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | User audit = userMapper.selectById(deviceTraceabilityManagementDto.getAuditId()); |
| | | this.update(Wrappers.<DeviceTraceabilityManagement>lambdaUpdate() |
| | | .eq(DeviceTraceabilityManagement::getTraceabilityManagementId, deviceTraceabilityManagementDto.getTraceabilityManagementId()) |
| | | .set(DeviceTraceabilityManagement::getAuditId, audit.getId()) |
| | | .set(DeviceTraceabilityManagement::getAudit, audit.getName()) |
| | | .set(DeviceTraceabilityManagement::getAuditDate, null) |
| | | .set(DeviceTraceabilityManagement::getStatus, null) |
| | | .set(DeviceTraceabilityManagement::getAuditRemark, null)); |
| | | |
| | | DeviceTraceabilityManagement deviceTraceabilityManagement = baseMapper.selectById(deviceTraceabilityManagementDto.getTraceabilityManagementId()); |
| | | |
| | | // åéæ¶æ¯ |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | // æ¶æ¯åé |
| | | InformationNotification info = new InformationNotification(); |
| | | // åé人 |
| | | info.setCreateUser(user.getName()); |
| | | info.setMessageType("6"); |
| | | info.setTheme("CNAS设å¤é弿º¯æºè®¡åæ¹åéç¥"); |
| | | info.setContent(deviceTraceabilityManagement.getPlanYear() + "å¹´ç设å¤é弿º¯æºè®¡åå¾
æ¹å"); |
| | | info.setSenderId(userId); |
| | | // æ¥æ¶äºº |
| | | info.setConsigneeId(audit.getId()); |
| | | info.setJumpPath(MenuJumpPathConstants.DEVICE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // åéä¼ä¸å¾®ä¿¡éç¥ |
| | | threadPoolTaskExecutor.execute(() -> { |
| | | String message = ""; |
| | | message += "CNAS设å¤é弿º¯æºè®¡åæ ¸éç¥"; |
| | | message += "\n请å»èµæºç®¡ç-设å¤ä¸å±ç®å½-设å¤é弿º¯æºè®¡åå¡«å"; |
| | | message += "\n" + deviceTraceabilityManagement.getPlanYear() + "å¹´ç设å¤é弿º¯æºè®¡åå¾
æ¹å"; |
| | | //åéä¼ä¸å¾®ä¿¡æ¶æ¯éç¥ |
| | | try { |
| | | WxCpUtils.inform(audit.getAccount(), message, null); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | }); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * å®¡æ ¸è®¾å¤é弿º¯æºè®¡å |
| | | * |
| | | * @param deviceTraceabilityManagementDto 设å¤é弿º¯æºè®¡å |
| | | */ |
| | | @Override |
| | | public Result reviewTraceabilityManagementStatus(DeviceTraceabilityManagementDto deviceTraceabilityManagementDto) { |
| | | LambdaUpdateWrapper<DeviceTraceabilityManagement> wrapper = Wrappers.<DeviceTraceabilityManagement>lambdaUpdate() |
| | | .eq(DeviceTraceabilityManagement::getTraceabilityManagementId, deviceTraceabilityManagementDto.getTraceabilityManagementId()) |
| | | .set(DeviceTraceabilityManagement::getAuditDate, LocalDateTime.now()) |
| | | .set(DeviceTraceabilityManagement::getStatus, deviceTraceabilityManagementDto.getStatus()) // å®¡æ ¸ç¶æ |
| | | .set(DeviceTraceabilityManagement::getAuditRemark, deviceTraceabilityManagementDto.getAuditRemark());// å®¡æ ¸å¤æ³¨ |
| | | |
| | | this.update(wrapper); // æ´æ° |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * 导åºè®¾å¤é弿º¯æºè®¡å |
| | | * |
| | | * @param traceabilityManagementId 设å¤é弿º¯æºè®¡åid |
| | | */ |
| | | @Override |
| | | public Result exportDeviceTraceabilityManagementDto(Integer traceabilityManagementId, HttpServletResponse response) { |
| | | // æ¥è¯¢è®¾å¤ä¿å
»è®¡å |
| | | DeviceTraceabilityManagementDto deviceTraceabilityManagement = baseMapper.selectDeviceTraceabilityManagementById(traceabilityManagementId); |
| | | |
| | | // æ¥è¯¢è®¾å¤ä¿å
»è®¡å详æ
|
| | | List<DeviceTraceabilityManagementDetailsDto> deviceTraceabilityManagementDetailsDtoList = deviceTraceabilityManagementDetailsMapper.deviceTraceabilityManagementDetailsList(traceabilityManagementId); |
| | | // 设置åºå· |
| | | deviceTraceabilityManagementDetailsDtoList.forEach(deviceTraceabilityManagementDetails -> { |
| | | deviceTraceabilityManagementDetails.setIndex(deviceTraceabilityManagementDetailsDtoList.indexOf(deviceTraceabilityManagementDetails) + 1); |
| | | }); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/word/traceability-management-details.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("deviceTraceabilityManagementDetailsDtoList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("deviceTraceabilityManagement", deviceTraceabilityManagement); |
| | | put("deviceTraceabilityManagementDetailsDtoList", deviceTraceabilityManagementDetailsDtoList); |
| | | // ç¼å¶äººç¾åå°å |
| | | put("compilerUrl", UserUtils.getFinalUserSignatureUrl(deviceTraceabilityManagement.getCompilerId())); |
| | | // å®¡æ ¸äººç¾åå°å |
| | | put("auditUrl", UserUtils.getFinalUserSignatureUrl(deviceTraceabilityManagement.getAuditId())); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String finalFileName = deviceTraceabilityManagement.getFileName() == null ? "" : deviceTraceabilityManagement.getFileName() + "_"; |
| | | String fileName = URLEncoder.encode( |
| | | finalFileName+ "设å¤é弿º¯æºè®¡å", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.task; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.WxCpUtils; |
| | | import com.ruoyi.device.dto.DeviceRecordDto; |
| | | import com.ruoyi.device.mapper.DeviceMapper; |
| | | import com.ruoyi.device.mapper.DeviceRecordMapper; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.device.pojo.DeviceRecord; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 设å¤ä½¿ç¨è®°å½æé |
| | | */ |
| | | @Component |
| | | public class DeviceRecordSchedule { |
| | | |
| | | @Resource |
| | | private DeviceMapper deviceMapper; |
| | | @Resource |
| | | private DeviceRecordMapper deviceRecordMapper; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Resource |
| | | private ThreadPoolTaskExecutor threadPoolTaskExecutor; |
| | | |
| | | /** |
| | | * æéå¡«å设å¤ä½¿ç¨è®°å½ |
| | | */ |
| | | // @Scheduled(cron = "0/5 * * * * *") |
| | | @Scheduled(cron = "0 0 9 * * 6") // æ¯å¨å
æ§è¡ä¸æ¬¡ |
| | | public void task1() { |
| | | // æ¥è¯¢æªå¡«åç设å¤ä½¿ç¨è®°å½ |
| | | List<DeviceRecordDto> deviceRecords = deviceRecordMapper.selectNotFilled(); |
| | | Map<Integer, List<DeviceRecordDto>> userPersonIdMap = deviceRecords.stream().collect(Collectors.groupingBy(DeviceRecord::getUsePersonId)); |
| | | userPersonIdMap.forEach((userId, recordList) -> { |
| | | threadPoolTaskExecutor.execute(() -> { |
| | | // ä¼ä¸å¾®ä¿¡éç¥å¡«å设å¤ä½¿ç¨è®°å½ |
| | | User user = userMapper.selectById(userId); |
| | | String message = ""; |
| | | message += "设å¤ä½¿ç¨è®°å½æªå¡«åæééç¥"; |
| | | for (DeviceRecordDto deviceRecord : recordList) { |
| | | message += "\n设å¤åç§°ç¼å·: " + deviceRecord.getDeviceName() + "-" + deviceRecord.getManagementNumber(); |
| | | message += "\nå§æç¼å·: " + deviceRecord.getSampleCode(); |
| | | message += "\n"; |
| | | } |
| | | message += "\n请å»å¡«å设å¤ä½¿ç¨è®°å½"; |
| | | |
| | | //åéä¼ä¸å¾®ä¿¡æ¶æ¯éç¥ |
| | | try { |
| | | WxCpUtils.inform(user.getAccount(), message, null); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¯å¤©9ç¹æ§è¡ä¸æ¬¡ é¤äºææå¤© |
| | | * 夿æ¯å¦æè®¾å¤å°è¾¾æ ¡åæææ |
| | | */ |
| | | // @Scheduled(cron = "0/10 * * * * *") |
| | | @Scheduled(cron = "0 0 9 * * 1-6") // æ¯å¤©9ç¹æ§è¡ä¸æ¬¡ é¤äºææå¤© |
| | | public void task2() { |
| | | // æ¥è¯¢å°è¾¾æ ¡åæææç设å¤-æå5天 |
| | | List<Device> deviceList = deviceMapper.selectOverdueDevice(); |
| | | Map<Integer, List<Device>> userPersonIdMap = deviceList.stream().collect(Collectors.groupingBy(Device::getEquipmentManager)); |
| | | userPersonIdMap.forEach((userId, recordList) -> { |
| | | threadPoolTaskExecutor.execute(() -> { |
| | | // ä¼ä¸å¾®ä¿¡éç¥å¡«å设å¤ä½¿ç¨è®°å½ |
| | | User user = userMapper.selectById(userId); |
| | | String message = ""; |
| | | message += "设å¤å°è¾¾æ ¡åæææ"; |
| | | for (Device deviceRecord : recordList) { |
| | | message += "\n设å¤åç§°: " + deviceRecord.getDeviceName(); |
| | | message += "\n设å¤ç¼å·: " + deviceRecord.getManagementNumber(); |
| | | message += "\næ ¡åæææ: " + deviceRecord.getActivationDate(); |
| | | message += "\n"; |
| | | } |
| | | message += "\n请å»è¿è¡è®¾å¤æ ¡å"; |
| | | |
| | | //åéä¼ä¸å¾®ä¿¡æ¶æ¯éç¥ |
| | | try { |
| | | WxCpUtils.inform(user.getAccount(), message, null); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.device.utils; |
| | | |
| | | import cn.hutool.core.io.IORuntimeException; |
| | | import cn.hutool.http.HttpUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.ruoyi.device.pojo.DataConfig; |
| | | import com.ruoyi.device.pojo.Device; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | |
| | | import javax.script.ScriptEngine; |
| | | import javax.script.ScriptEngineManager; |
| | | import jakarta.servlet.http.HttpServletRequest; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | import java.util.concurrent.atomic.AtomicInteger; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | public class DataAcquisition { |
| | | |
| | | private static final String HTTP = "http://"; |
| | | |
| | | private static final String GETFILE = ":9527/lims/getFile"; // è·åæä»¶æ¥å£ |
| | | |
| | | private static final String MOVEFILE = ":9527/lims/moveFile"; // æä»¶ç§»å¨å°å |
| | | |
| | | private static final String splitIdentifier = "@-@"; // èªå®ä¹å¯ä¸æ è¯åå²ç¬¦ |
| | | |
| | | public static final String frequency = "frequency"; |
| | | |
| | | /** |
| | | * æ°éå
¥å£ |
| | | * |
| | | * @param dataConfig |
| | | * @param device |
| | | * @return |
| | | */ |
| | | public static Map<String, Object> dataAcquisitionEntrance(List<DataConfig> dataConfig, Device device, String entrustCode, String sampleCode, String ip, String cableTag) { |
| | | // 夿æ¯å¦æ¯å½±åæµé仪 |
| | | if (device.getManagementNumber().equals("JCZX-ZB-OP07001")) { |
| | | if (device.getFileType().equals(".xlsx")) { |
| | | String url = device.getCollectUrl() + "\\" + sampleCode.replace("/", ""); |
| | | if (StringUtils.isNotBlank(dataConfig.get(0).getAnotherName())) { |
| | | url += dataConfig.get(0).getAnotherName() ; |
| | | } |
| | | url += ".xlsx"; |
| | | device.setCollectUrl(url); |
| | | } |
| | | } |
| | | // 夿æ¯å¦æ¯çµç¼çç§çå¯åº¦æµéç³»ç» |
| | | if (device.getManagementNumber().equals("JCZX-ZB-ZT03002")) { |
| | | if (device.getFileType().equals(".txt")) { |
| | | device.setCollectUrl(device.getCollectUrl() + "\\-" + sampleCode.replace("/", "")); |
| | | } |
| | | } |
| | | /** |
| | | * filePath æä»¶ééè·¯å¾ |
| | | * fileExtension æä»¶åç¼ |
| | | * entrustCode å§æç¼å· |
| | | * sampleCode æ ·åç¼å· |
| | | * mdbEntrustCode mdbæä»¶éè¦ï¼å§æç¼å·å段 为ä»ä¹æ²¡æå»è¿ä¸ªmdbåç¼å¢ï¼å 为已ç»ç»å®¢æ·çé¨åçµèä¸å®è£
äºééå¨ï¼èç¨æ·ä¸æ¥åéæ°å®è£
ééå¨ï¼æä»¥å°±æ²¡æå»é¤ |
| | | * mdbSampleCode mdbæä»¶éè¦ï¼æ ·åç¼å·å段 |
| | | */ |
| | | String http = HTTP + ip + GETFILE + |
| | | "?filePath=" + device.getCollectUrl() + |
| | | "&fileExtension=" + device.getFileType() + |
| | | "&entrustCode=" + entrustCode + |
| | | "&sampleCode=" + sampleCode + |
| | | "&mdbEntrustCode=" + device.getEntrustCode() + |
| | | "&mdbSampleCode=" + device.getSampleCode() + |
| | | "&dbFileName=" + device.getDbFileName(); |
| | | String result = null; |
| | | try { |
| | | result = HttpUtil.get(http); |
| | | } catch (IORuntimeException e) { |
| | | e.printStackTrace(); |
| | | throw new ErrorException("æå¨çµèæªå®è£
ææªå¯å¨ï¼LIMSæä»¶ééå¨ï¼"); |
| | | } |
| | | JSONObject jsonObject = JSON.parseObject(result); |
| | | if (Objects.equals(jsonObject.get("code"), 1)) { |
| | | if (ObjectUtils.isEmpty(jsonObject.get("msg"))) { |
| | | throw new ErrorException("æªæ¥è¯¢å°æä»¶ï¼å¯è½è¯¥è·¯å¾ï¼" + device.getCollectUrl() + "ï¼ä¸å¹¶æ²¡ææé(" + device.getFileType() +")æä»¶ï¼"); |
| | | } else { |
| | | throw new ErrorException(jsonObject.get("msg") + ""); |
| | | } |
| | | } else { |
| | | String data = jsonObject.get("data") + ""; |
| | | // èèå°ä¸ä¸ªæ£æµé¡¹å¯è½ä¼åå¨å¤ä¸ªæ°éé
ç½®ï¼æä»¥éè¦è¿è¡åç» |
| | | Map<String, List<DataConfig>> userMap = dataConfig.stream() |
| | | .peek(i -> { |
| | | String itemName = i.getInspectionItem(); |
| | | if (StringUtils.isNotBlank(i.getInspectionItemClass())) { |
| | | itemName += "@" + i.getInspectionItemClass(); |
| | | } |
| | | String name = i.getInspectionItem().equals(i.getInspectionItemSubclass()) ? itemName + "," : itemName + "," + i.getInspectionItemSubclass(); |
| | | |
| | | // æ·»å æ£éªé¡¹åç§° |
| | | i.setInsProductItem(name); |
| | | }) |
| | | .collect(Collectors.groupingBy(DataConfig::getInsProductItem)); |
| | | Map<String, Object> map; |
| | | switch (device.getFileType()) { |
| | | case ".docx": |
| | | map = analysisString(data, userMap, device, entrustCode, sampleCode); |
| | | break; |
| | | case ".xlsx": |
| | | map = analysisList(data, userMap, device, entrustCode, sampleCode); |
| | | break; |
| | | case ".txt": |
| | | map = analysisTxt(data, userMap, device, entrustCode, sampleCode); |
| | | break; |
| | | case ".csv": |
| | | map = analysisList(data, userMap, device, entrustCode, sampleCode); |
| | | break; |
| | | case ".mdb": |
| | | // 夿æ¯å¦æ¯æåæº |
| | | if (device.getManagementNumber().equals("JCZX-ZB-FF01014")) { |
| | | map = analysisMdbByPull(data, userMap, device, cableTag); |
| | | } else { |
| | | map = analysisMdb(data, userMap, device); |
| | | } |
| | | break; |
| | | case ".db": |
| | | map = analysisDb(data, userMap, device); |
| | | break; |
| | | case ".png": |
| | | map = readPngString(data, userMap, device); |
| | | break; |
| | | default: |
| | | map = null; |
| | | break; |
| | | } |
| | | // 妿åå¨åå¨å°åï¼åç§»å¨å°å |
| | | if (ObjectUtils.isNotEmpty(device.getStorageUrl())) { |
| | | String s = HTTP + ip + MOVEFILE + "?startFilePath=" + device.getCollectUrl() + "&endFilePath=" + device.getStorageUrl() + "&fileType=" + device.getFileType(); |
| | | HttpUtil.get(s); |
| | | } |
| | | return map; |
| | | } |
| | | } |
| | | |
| | | public static Map<String, Object> createFrequency(String entrustCode, String sampleCode, Map<String, Object> map) { |
| | | Set<String> set = new LinkedHashSet<>(); |
| | | map.forEach((key, value) -> { |
| | | String[] split = key.split(","); |
| | | String inspectionItem = split[0]; |
| | | // åªè¦æä¸ä¸ªä¸ä¸ºç©ºå°±setè¿å» |
| | | if (ObjectUtils.isNotEmpty(value)) { |
| | | set.add(inspectionItem); |
| | | } |
| | | }); |
| | | Map<String, Object> result = new HashMap<>(); |
| | | for (String inspectionItemKey : set) { |
| | | Map<String, Object> hashMap = new HashMap<>(); |
| | | map.forEach((key, value) -> { |
| | | String[] split = key.split(","); |
| | | String inspectionItem = split[0]; |
| | | if (inspectionItemKey.equals(inspectionItem)) { |
| | | if (split.length > 1) { |
| | | hashMap.put(split[1], value); |
| | | } else { |
| | | hashMap.put("", value); |
| | | } |
| | | } |
| | | }); |
| | | String frequency = createKey(entrustCode, sampleCode, inspectionItemKey); |
| | | hashMap.put("frequency", frequency); |
| | | result.put(inspectionItemKey, hashMap); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | public static String createKey(String entrustCode, String sampleCode, String inspectionItemKey) { |
| | | |
| | | return "1"; |
| | | } |
| | | |
| | | /** |
| | | * éè¦éè¿X,Yè½´å®ä½ |
| | | * |
| | | * @param data |
| | | * @param dataConfig |
| | | * @return |
| | | */ |
| | | private static Map<String, Object> analysisDb(String data, Map<String, List<DataConfig>> dataConfig, Device device) { |
| | | JSONObject jsonObject = JSON.parseObject(data); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | if (jsonObject.isEmpty()) { |
| | | return map; |
| | | } |
| | | JSONArray dataList = JSONArray.parseArray(jsonObject.get("data").toString()); |
| | | dataConfig.forEach((k, v) -> { |
| | | AtomicInteger numberOfDataEntries = new AtomicInteger(); |
| | | List<Object> list = new ArrayList<>(); |
| | | for (int config = 0; config < v.size(); config++) { |
| | | String refery = getRefer(v.get(config).getRefery()); |
| | | for (int i = 0; i < dataList.size(); i++) { |
| | | JSONObject jsonObject1 = JSON.parseObject(dataList.get(i).toString()); |
| | | Object o = jsonObject1.get(refery); |
| | | if (ObjectUtils.isNotEmpty(o)) { |
| | | numberOfDataEntries.addAndGet(1); |
| | | list.add(o); |
| | | } |
| | | } |
| | | } |
| | | // æ¼æ¥æ°éé
ç½® |
| | | List<Object> result = new ArrayList<>(); |
| | | for (int i = 0; i < numberOfDataEntries.get(); i++) { |
| | | String aggregate = ""; |
| | | for (int j = 0; j < v.size(); j++) { |
| | | int index; |
| | | if (j == 0) { |
| | | index = i; |
| | | } else { |
| | | index = numberOfDataEntries.get() + i; |
| | | } |
| | | aggregate += list.get(index).toString() + ","; |
| | | } |
| | | int lastIndex = aggregate.lastIndexOf(","); |
| | | String substring = aggregate.substring(0, lastIndex); |
| | | result.add(substring); |
| | | } |
| | | // è¿è¡å
¬å¼è®¡ç® |
| | | Object resultValue = calculationFormula(result, v.get(0), k, device); |
| | | map.put(k, resultValue); |
| | | }); |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * @param data |
| | | * @param dataConfig |
| | | * @return |
| | | */ |
| | | private static Map<String, Object> analysisMdb(String data, Map<String, List<DataConfig>> dataConfig, Device device) { |
| | | JSONObject jsonObject = JSON.parseObject(data); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | if (jsonObject.isEmpty()) { |
| | | return map; |
| | | } |
| | | JSONArray dataList = JSONArray.parseArray(jsonObject.get("data").toString()); |
| | | dataConfig.forEach((k, v) -> { |
| | | DataConfig configVo = v.get(0); |
| | | AtomicInteger numberOfDataEntries = new AtomicInteger(); |
| | | List<Object> list = new ArrayList<>(); |
| | | for (int config = 0; config < v.size(); config++) { |
| | | String refery = getRefer(v.get(config).getRefery()); |
| | | for (int i = 0; i < dataList.size(); i++) { |
| | | JSONObject jsonObject1 = JSON.parseObject(dataList.get(i).toString()); |
| | | Object o = jsonObject1.get(refery); |
| | | if (ObjectUtils.isNotEmpty(o)) { |
| | | numberOfDataEntries.addAndGet(1); |
| | | list.add(o); |
| | | } |
| | | } |
| | | } |
| | | // æ¼æ¥æ°éé
ç½® |
| | | List<Object> result = new ArrayList<>(); |
| | | for (int i = 0; i < numberOfDataEntries.get(); i++) { |
| | | String aggregate = ""; |
| | | for (int j = 0; j < v.size(); j++) { |
| | | int index; |
| | | if (j == 0) { |
| | | index = i; |
| | | } else { |
| | | index = numberOfDataEntries.get() + i; |
| | | } |
| | | aggregate += list.get(index).toString() + ","; |
| | | } |
| | | int lastIndex = aggregate.lastIndexOf(","); |
| | | String substring = aggregate.substring(0, lastIndex); |
| | | result.add(substring); |
| | | |
| | | } |
| | | // è¿è¡å
¬å¼è®¡ç® |
| | | Object resultValue = calculationFormula(result, v.get(0), k, device); |
| | | map.put(k, resultValue); |
| | | }); |
| | | return map; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æåæºæ°é |
| | | * |
| | | * @param data |
| | | * @param dataConfig |
| | | * @return |
| | | */ |
| | | private static Map<String, Object> analysisMdbByPull(String data, Map<String, List<DataConfig>> dataConfig, Device device, String cableTag) { |
| | | JSONObject jsonObject = JSON.parseObject(data); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | if (jsonObject.isEmpty()) { |
| | | return map; |
| | | } |
| | | JSONArray dataList = JSONArray.parseArray(jsonObject.get("data").toString()); |
| | | |
| | | dataConfig.forEach((k, v) -> { |
| | | List<Map<String, String>> resultValue = new ArrayList<>(); |
| | | |
| | | DataConfig configVo = v.get(0); |
| | | for (int i = 0; i < dataList.size(); i++) { |
| | | JSONObject jsonObject1 = JSON.parseObject(dataList.get(i).toString()); |
| | | // è·åæ¶é´ |
| | | String dDate = jsonObject1.getString("dDate"); |
| | | String dTime = jsonObject1.getString("dTime"); |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSSSSS"); |
| | | |
| | | // è§£æç¬¬ä¸ä¸ªæ¥ææ¶é´å符串 |
| | | LocalDateTime dateTime1 = LocalDateTime.parse(dDate, formatter); |
| | | // è·åå¹´ææ¥ |
| | | String yearMonthDay = dateTime1.toLocalDate().toString(); |
| | | |
| | | // è§£æç¬¬äºä¸ªæ¥ææ¶é´å符串 |
| | | LocalDateTime dateTime2 = LocalDateTime.parse(dTime, formatter); |
| | | // è·åæ¶å |
| | | String hourMinute = dateTime2.toLocalTime().toString(); |
| | | // æ¼æ¥å¹´ææ¥åæ¶å |
| | | String mergedDateTime = yearMonthDay + " " + hourMinute; |
| | | |
| | | // è·åå度 |
| | | String report = jsonObject1.getString("Report"); |
| | | String thickness = extractValue(report, "å度:\\s*(\\S*?)~"); |
| | | |
| | | // è·åæä¼¸å¼ºåº¦ä¼¸é¿ç |
| | | String result = ""; |
| | | if (StringUtils.isNotBlank(configVo.getMatchingName()) && configVo.getMatchingName().contains("æä¼¸å¼ºåº¦")) { |
| | | result = extractValue(report, "æä¼¸å¼ºåº¦:\\s*(\\S*?)~"); |
| | | |
| | | } |
| | | //夿æ£éªå项æ¯å¦æ¯æä¼¸å¼ºåº¦ |
| | | if (StringUtils.isNotBlank(configVo.getMatchingName()) && configVo.getMatchingName().contains("伸é¿ç")) { |
| | | result = extractValue(report, "伸é¿ç:\\s*(\\S*?)~"); |
| | | } |
| | | Map<String, String> reportMap = new HashMap<>(); |
| | | reportMap.put("mergedDateTime", mergedDateTime); |
| | | reportMap.put("thickness", thickness); |
| | | reportMap.put("result", result); |
| | | resultValue.add(reportMap); |
| | | } |
| | | Map<String, Object> hashMap = new HashMap<>(); |
| | | hashMap.put("equipName", device.getDeviceName()); |
| | | hashMap.put("equipValue", device.getManagementNumber()); |
| | | hashMap.put("result", resultValue); |
| | | map.put(k, hashMap); |
| | | }); |
| | | return map; |
| | | } |
| | | |
| | | private static String extractValue(String input, String regex) { |
| | | Pattern pattern = Pattern.compile(regex); |
| | | Matcher matcher = pattern.matcher(input); |
| | | return matcher.find() ? matcher.group(1) : null; |
| | | } |
| | | |
| | | private static Pattern SPATTERN = Pattern.compile("([-+])?\\d+(\\.\\d+)?"); |
| | | |
| | | /** |
| | | * åªéXè½´ |
| | | * |
| | | * @param data ééå°çæä»¶å符串 |
| | | * @param dataConfig ç¨æ·é
置好çx,yè½´å®ä½æ°æ®ä¸åç
§ç© |
| | | * @return |
| | | */ |
| | | private static Map<String, Object> readPngString(String data, Map<String, List<DataConfig>> dataConfig, Device device) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | dataConfig.forEach((k, v) -> { |
| | | List<Object> list = new ArrayList<>(); |
| | | for (int config = 0; config < v.size(); config++) { |
| | | String referx = getRefer(v.get(config).getReferx()); |
| | | String result = null; |
| | | // éè¿\nå°å符串åå²ä¸ºè¡ |
| | | String[] aColumnY = data.split("\n"); |
| | | List<String> list1 = new ArrayList<>(); |
| | | // 该循ç¯å¾åºç¨æ·é
ç½®çyè½´ |
| | | for (int i = 0; i < aColumnY.length; i++) { |
| | | String addDataWithSpaces = referx.replaceAll("", " "); |
| | | int x = getXOrY(v.get(config).getX(), k, "X"); |
| | | if (aColumnY[i].contains(addDataWithSpaces)) { |
| | | Matcher matcher = SPATTERN.matcher(aColumnY[i]); |
| | | while (matcher.find()) { |
| | | String group = matcher.group(); |
| | | list1.add(group); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(list1)) { |
| | | result = list1.get(x); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(result)) { |
| | | list.add(result); |
| | | } |
| | | } |
| | | // è¿è¡å
¬å¼è®¡ç® |
| | | Object resultValue = calculationFormula(list, v.get(0), k, device); |
| | | map.put(k, resultValue); |
| | | }); |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * 仿件䏿ååºæ¥çæåï¼å¦ææå
¬å¼ï¼è¿è¡å
¬å¼è®¡ç®ï¼å¦ååå表第ä¸ä¸ªå¼ |
| | | * |
| | | * @param list æååºçæ°å |
| | | * @param dataConfig åå¨å
¬å¼ç对象 |
| | | * @return |
| | | */ |
| | | private static Object calculationFormula(List<Object> list, DataConfig dataConfig, String insProductItem, Device device) { |
| | | if (list.size() == 0) { |
| | | Map<String, Object> hashMap = new HashMap<>(); |
| | | hashMap.put("equipName", device.getDeviceName()); |
| | | hashMap.put("equipValue", device.getManagementNumber()); |
| | | hashMap.put("result", null); |
| | | return hashMap; |
| | | } |
| | | ArrayList<Object> listResult = new ArrayList<>(); |
| | | Map<String, Object> hashMap = new HashMap<>(); |
| | | // 妿ä¸ä¸ºç©ºï¼è¿è¡å
¬å¼è®¡ç® |
| | | if (ObjectUtils.isNotEmpty(dataConfig.getFormula())) { |
| | | // å¦åï¼æ²¡æå
¬å¼ä»£è¡¨ä¸éè¦è®¡ç®ï¼ç´æ¥æåListéé¢çæ°æ® |
| | | if (ObjectUtils.isEmpty(device.getEntrustCode()) && ObjectUtils.isEmpty(device.getSampleCode())) { |
| | | String s = calculationFormulaList(list, dataConfig.getFormula()); |
| | | listResult.add(s); |
| | | } else { |
| | | list.forEach(i -> { |
| | | List<Object> strings = Arrays.asList(i.toString().split(",")); |
| | | String s = calculationFormulaList(strings, dataConfig.getFormula()); |
| | | listResult.add(s); |
| | | }); |
| | | } |
| | | } else { |
| | | listResult.addAll(list); |
| | | } |
| | | // 为äºç»åç«¯åæ°æ®åºå |
| | | if (listResult.size() > 1) { |
| | | hashMap.put("result", listResult); |
| | | } else { |
| | | hashMap.put("result", listResult.get(0).toString()); |
| | | } |
| | | hashMap.put("equipName", device.getDeviceName()); |
| | | hashMap.put("equipValue", device.getManagementNumber()); |
| | | return hashMap; |
| | | } |
| | | |
| | | /** |
| | | * è§£æStringæ°æ® |
| | | * |
| | | * @param data ééå°çæä»¶å符串 |
| | | * @param dataConfig ç¨æ·é
置好çx,yè½´å®ä½æ°æ®ä¸åç
§ç© |
| | | * @return |
| | | */ |
| | | private static Map<String, Object> analysisTxt(String data, Map<String, List<DataConfig>> dataConfig, |
| | | Device device, String entrustCode, String sampleCode) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | dataConfig.forEach((k, v) -> { |
| | | List<Object> list = new ArrayList<>(); |
| | | // å§æç¼å·ä¸æ ·åç¼å·ä¸åå¨ï¼å®ï¼1ãYå®èå´ï¼X宿¨ªåæ ï¼2ãåªåå¨Yï¼3ãåªåå¨X |
| | | if (ObjectUtils.isEmpty(device.getEntrustCode()) && ObjectUtils.isEmpty(device.getSampleCode())) { |
| | | // 夿æ¯å¦æ¯çå¯åº¦ |
| | | if (device.getManagementNumber().equals("JCZX-ZB-ZT03002")) { |
| | | // æè¡å岿°æ® |
| | | String[] lines = data.split("\n"); |
| | | |
| | | // æåæåä¸è¡ç第ä¸ä¸ªæ°å |
| | | String lastLine = lines[lines.length - 1]; |
| | | String firstNumber = lastLine.split("\t")[0]; |
| | | list.add(firstNumber); |
| | | } else { |
| | | list = analyzeData(data, v, k, ","); |
| | | } |
| | | // å§æç¼å·ä¸æ ·åç¼å·åå¨ |
| | | } else if (ObjectUtils.isNotEmpty(device.getEntrustCode()) && ObjectUtils.isNotEmpty(device.getSampleCode())) { |
| | | list = analyzeDataEntrustCodAndSampleCode(data, v, k, ",", device, entrustCode, sampleCode); |
| | | } |
| | | // è¿è¡å
¬å¼è®¡ç® |
| | | Object resultValue = calculationFormula(list, v.get(0), k, device); |
| | | map.put(k, resultValue); |
| | | }); |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * @param data ééå°çæä»¶å符串 |
| | | * @param dataConfig ç¨æ·é
置好çx,yè½´å®ä½æ°æ®ä¸åç
§ç© |
| | | * @return |
| | | */ |
| | | private static Map<String, Object> analysisString(String data, Map<String, List<DataConfig>> dataConfig, Device device, |
| | | String entrustCode, String sampleCode) { |
| | | String processingDataAfterSpaces = data |
| | | .replaceAll(" +", splitIdentifier) |
| | | .replaceAll("\r", "") |
| | | .replaceAll(" ", ""); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | dataConfig.forEach((k, v) -> { |
| | | List<Object> list = new ArrayList<>(); |
| | | // å§æç¼å·ä¸æ ·åç¼å·ä¸åå¨ï¼å®ï¼1ãYå®èå´ï¼X宿¨ªåæ ï¼2ãåªåå¨Yï¼3ãåªåå¨X |
| | | if (ObjectUtils.isEmpty(device.getEntrustCode()) && ObjectUtils.isEmpty(device.getSampleCode())) { |
| | | list = analyzeData(processingDataAfterSpaces, v, k, splitIdentifier); |
| | | // å§æç¼å·ä¸æ ·åç¼å·åå¨ |
| | | } else if (ObjectUtils.isNotEmpty(device.getEntrustCode()) && ObjectUtils.isNotEmpty(device.getSampleCode())) { |
| | | list = analyzeDataEntrustCodAndSampleCode(processingDataAfterSpaces, v, k, splitIdentifier, device, entrustCode, sampleCode); |
| | | } |
| | | // è¿è¡å
¬å¼è®¡ç® |
| | | Object resultValue = calculationFormula(list, v.get(0), k, device); |
| | | map.put(k, resultValue); |
| | | }); |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * åXï¼Y两个å®ä½ |
| | | * |
| | | * @param data ééå°çæä»¶å符串 |
| | | * @param dataConfig ç¨æ·é
置好çx,yè½´å®ä½æ°æ®ä¸åç
§ç© |
| | | * @return |
| | | */ |
| | | public static Map<String, Object> analysisList(String data, Map<String, List<DataConfig>> dataConfig, |
| | | Device device, String entrustCode, String sampleCode) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | dataConfig.forEach((k, v) -> { |
| | | List<Object> list = new ArrayList<>(); |
| | | // å§æç¼å·ä¸æ ·åç¼å·ä¸åå¨ï¼å®ï¼1ãYå®èå´ï¼X宿¨ªåæ ï¼2ãåªåå¨Yï¼3ãåªåå¨X |
| | | if (ObjectUtils.isEmpty(device.getEntrustCode()) && ObjectUtils.isEmpty(device.getSampleCode())) { |
| | | list = analyzeData(data, v, k, splitIdentifier); |
| | | // å§æç¼å·ä¸æ ·åç¼å·åå¨ |
| | | } else if (ObjectUtils.isNotEmpty(device.getEntrustCode()) && ObjectUtils.isNotEmpty(device.getSampleCode())) { |
| | | list = analyzeDataEntrustCodAndSampleCode(data, v, k, splitIdentifier, device, entrustCode, sampleCode); |
| | | } |
| | | // è¿è¡å
¬å¼è®¡ç® |
| | | Object resultValue = calculationFormula(list, v.get(0), k, device); |
| | | map.put(k, resultValue); |
| | | }); |
| | | return map; |
| | | } |
| | | |
| | | private static List<Object> analyzeDataEntrustCodAndSampleCode(String data, List<DataConfig> v, String k, String splitIdentifier, |
| | | Device device, String entrustCodeValue, String sampleCodeValue) { |
| | | entrustCodeValue = entrustCodeValue.replaceAll(" ", ""); |
| | | sampleCodeValue = sampleCodeValue.replaceAll(" ", ""); |
| | | // æç»ç»æ |
| | | List<Object> list = new ArrayList<>(); |
| | | int numberOfDataEntries = 0; |
| | | // åentrustCodeä¸sampleCodeæå¨ä½ |
| | | for (int config = 0; config < v.size(); config++) { |
| | | numberOfDataEntries = 0; |
| | | Integer entrustCodeY = null; |
| | | Integer sampleCodeY = null; |
| | | Integer referYCoordinate = null; |
| | | String refery = getRefer(v.get(config).getRefery()); |
| | | String entrustCode = getRefer(device.getEntrustCode()); // å§æç¼å·å段 |
| | | String sampleCode = getRefer(device.getSampleCode()); // æ ·åç¼å·å段 |
| | | if (ObjectUtils.isEmpty(refery)) { |
| | | continue; |
| | | } |
| | | // å»é¤ææçç©ºæ ¼ï¼éè¿\nå°å符串åå²ä¸ºè¡ |
| | | String[] aColumnY = data.replaceAll(" ", "").split("\n"); |
| | | for (int i = 0; i < aColumnY.length; i++) { |
| | | // 妿éè¿å¤æï¼å®ä½å°Yè½´ |
| | | if (aColumnY[i].contains(entrustCode) && aColumnY[i].contains(sampleCode)) { |
| | | String[] aLine = aColumnY[i].split(splitIdentifier); |
| | | for (int j = 0; j < aLine.length; j++) { |
| | | if (aLine[j].contains(entrustCode)) { |
| | | entrustCodeY = j; |
| | | } |
| | | if (aLine[j].contains(sampleCode) ) { |
| | | sampleCodeY = j; |
| | | } |
| | | if (aLine[j].contains(refery)) { |
| | | referYCoordinate = j; |
| | | } |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(entrustCodeY) && ObjectUtils.isNotEmpty(sampleCodeY) && ObjectUtils.isNotEmpty(referYCoordinate)) { |
| | | String[] aLine = aColumnY[i].split(splitIdentifier); |
| | | try { |
| | | if (aLine[entrustCodeY].contains(entrustCodeValue) && aLine[sampleCodeY].contains(sampleCodeValue)) { |
| | | String result = aLine[referYCoordinate]; |
| | | // 鲿¢è®¡ç®å
¬å¼çæ¶ååºç°ï¼[null] è¿ç§æ°æ® |
| | | if (ObjectUtils.isNotEmpty(result)) { |
| | | numberOfDataEntries += 1; |
| | | list.add(result); |
| | | } |
| | | } |
| | | } catch (Exception e) {} |
| | | } |
| | | } |
| | | } |
| | | // æ¼æ¥æ°éé
ç½® |
| | | List<Object> result = new ArrayList<>(); |
| | | for (int i = 0; i < numberOfDataEntries; i++) { |
| | | String aggregate = ""; |
| | | for (int j = 0; j < v.size(); j++) { |
| | | int index; |
| | | if (j == 0) { |
| | | index = i; |
| | | } else { |
| | | index = numberOfDataEntries + i; |
| | | } |
| | | aggregate += list.get(index).toString() + ","; |
| | | } |
| | | int lastIndex = aggregate.lastIndexOf(","); |
| | | String substring = aggregate.substring(0, lastIndex); |
| | | result.add(substring); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | // ç±äºå¨æ¹æ³ä¸ä¼å¤§éçå¤æï¼æä»¥åä¸ä¸ªæ¹æ³ |
| | | private static int getXOrY(String value, String k, String tips) { |
| | | try { |
| | | return Integer.parseInt(value); |
| | | } catch (NumberFormatException e) { |
| | | throw new ErrorException(k + "ï¼æªé
ç½®" + tips + "åæ è½´çå¼ï¼"); |
| | | } |
| | | } |
| | | |
| | | // 鲿¢åç
§ç©ä¸ºç©ºæ¥éï¼è¿è¡å¤æå¦æä¸ºç©ºèµå¼ç©ºå符 |
| | | private static String getRefer(String refer) { |
| | | return ObjectUtils.isNotEmpty(refer) ? refer.replaceAll(" ", "") : ""; |
| | | } |
| | | |
| | | /** |
| | | * å§æç¼å·ä¸æ ·åç¼å·é½ä¸ºç©ºæ§è¡ |
| | | * |
| | | * @param data |
| | | * @param v |
| | | * @param k |
| | | * @param split |
| | | * @return |
| | | */ |
| | | public static List<Object> analyzeData(String data, List<DataConfig> v, String k, String split) { |
| | | List<Object> list = new ArrayList<>(); |
| | | for (int config = 0; config < v.size(); config++) { |
| | | // åä¸¤ä¸ªç¨æ·é
ç½®çåç
§ç© |
| | | String referx = getRefer(v.get(config).getReferx()); |
| | | String refery = getRefer(v.get(config).getRefery()); |
| | | if (ObjectUtils.isEmpty(refery) && ObjectUtils.isEmpty(referx)) { |
| | | continue; |
| | | } |
| | | // æç»ç»æ |
| | | List<Object> result = new ArrayList<>(); |
| | | // éè¿\nå°å符串åå²ä¸ºè¡ |
| | | String[] aColumnY = data.replaceAll(" ", "").split("\n"); |
| | | Integer end = null; |
| | | // ééæ°æ®ï¼Yè½´ |
| | | for (int i = 0; i < aColumnY.length; i++) { |
| | | // 妿Yåç
§ä¸ä¸ºç©ºä¸Xåç
§ä¸ºç©ºåæ§è¡ï¼åæ¶è¯¥è¡å
å«Yåç
§ |
| | | if (ObjectUtils.isNotEmpty(refery) && ObjectUtils.isEmpty(referx) && aColumnY[i].contains(refery)) { |
| | | // åYåæ å¼ |
| | | int y = getXOrY(v.get(config).getY(), k, "Y"); |
| | | String[] aLineX = aColumnY[i].split(split); |
| | | for (int j = 0; j < aLineX.length; j++) { |
| | | if (aLineX[j].contains(refery)) { |
| | | String[] split1 = new String[0]; |
| | | try { |
| | | split1 = aColumnY[i + y].split(split); |
| | | } catch (Exception e) { |
| | | throw new ErrorException(k + "ï¼Yè½´å®ä½è¶
åºï¼"); |
| | | } |
| | | try { |
| | | result.add(split1[j]); |
| | | } catch (Exception e) { |
| | | throw new ErrorException(k + "ï¼Xè½´å®ä½è¶
åºï¼"); |
| | | } |
| | | } |
| | | } |
| | | // 妿Yåç
§ä¸ä¸ºç©ºä¸Xåç
§ä¸ä¸ºç©ºåæ§è¡,æ¤å¤Yå®åºå |
| | | } else if (ObjectUtils.isNotEmpty(refery) && ObjectUtils.isNotEmpty(referx)) { |
| | | // åxçå¼ï¼é²æ¢æ¥é |
| | | int x = getXOrY(v.get(config).getX(), k, "X"); |
| | | // åYåæ å¼ |
| | | int y = getXOrY(v.get(config).getY(), k, "Y"); |
| | | // ç¼åYçç»æå¼ |
| | | if (ObjectUtils.isEmpty(end) && aColumnY[i].contains(refery)) { |
| | | end = i + y; |
| | | } |
| | | // 夿æ¯å¦å¨åç
§ç©ä¸ºèµ·å°ï¼Yåæ å¼ä¸ºæç»èå´ |
| | | if (ObjectUtils.isNotEmpty(end) && i <= end) { |
| | | String[] aLineX = aColumnY[i].split(split); |
| | | for (int j = 0; j < aLineX.length; j++) { |
| | | if (aLineX[j].contains(referx)) { |
| | | try { |
| | | result.add(aLineX[j + x]); |
| | | } catch (Exception e) { |
| | | throw new ErrorException(k + "ï¼Xè½´å®ä½è¶
åºï¼"); |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | // 妿Xåç
§ä¸ä¸ºç©ºåæ¶è¯¥è¡å
å«Xåç
§ï¼åæ§è¡ä¸é¢ç代ç |
| | | } else if (aColumnY[i].contains(referx) && ObjectUtils.isEmpty(refery)) { |
| | | String[] aLineX = aColumnY[i].split(split); |
| | | // åxçå¼ï¼é²æ¢æ¥é |
| | | int x = getXOrY(v.get(config).getX(), k, "X"); |
| | | for (int j = 0; j < aLineX.length; j++) { |
| | | if (aLineX[j].contains(referx)) { |
| | | try { |
| | | result.add(aLineX[j + x]); |
| | | } catch (Exception e) { |
| | | throw new ErrorException(k + "ï¼Xè½´å®ä½è¶
åºï¼"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // 鲿¢è®¡ç®å
¬å¼çæ¶ååºç°ï¼[null] è¿ç§æ°æ® |
| | | if (ObjectUtils.isNotEmpty(result)) { |
| | | // String formatProcessing = getFormatProcessing(result); |
| | | list.addAll(result); |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | public static String getFormatProcessing(String value) { |
| | | value = value.replaceAll("%", ""); |
| | | if (value.contains("=")) { |
| | | String[] split = value.split("="); |
| | | return split[split.length - 1]; |
| | | } else if (value.contains(":")) { |
| | | String[] split = value.split(":"); |
| | | return split[split.length - 1]; |
| | | } else { |
| | | return value; |
| | | } |
| | | } |
| | | |
| | | public static String getIp(HttpServletRequest request) { |
| | | String ipAddress = request.getRemoteAddr(); |
| | | // 鲿¢åç¯å°åå为IPv6 |
| | | return ipAddress.equals("0:0:0:0:0:0:0:1") ? "127.0.0.1" : ipAddress; |
| | | } |
| | | |
| | | public static String calculationFormulaList(List<Object> list, String formula) { |
| | | //é¦å
å°list转æ¢ä¸ºbigdecmic |
| | | List<BigDecimal> bigDecimalList = list.stream() |
| | | .map(obj -> { |
| | | return new BigDecimal((obj).toString()); |
| | | }).collect(Collectors.toList()); |
| | | |
| | | //å°ä¸æç(转æ¢è±æç()) |
| | | formula = formula.replace("ï¼", "(") |
| | | .replace("ï¼", ")") |
| | | .replace("ï¼", ","); |
| | | //ç¶åæåå
¬å¼ |
| | | String strs = formula.substring(0, formula.indexOf("(")); |
| | | String upperStr = strs.toUpperCase(); |
| | | if (upperStr.matches(".*\\d.*")) { |
| | | upperStr = ""; |
| | | } |
| | | //ç¶åè·åæå¤é¢æ¬å·éé¢çå¼,åæ ¹æ®","åå² |
| | | int start = formula.indexOf("("); |
| | | int end = -1; |
| | | int a = 0; |
| | | for (int i = start; i < formula.length(); i++) { |
| | | char c = formula.charAt(i); |
| | | if (c == '(') { |
| | | a++; |
| | | } else if (c == ')') { |
| | | a--; |
| | | if (a == 0) { |
| | | end = i; |
| | | } |
| | | } |
| | | } |
| | | if (start == -1 || end == -1) { |
| | | throw new ErrorException("å
¬å¼æ¬å·ä¸å¹é
: " + formula); |
| | | } |
| | | |
| | | String argumentsStr = formula.substring(start + 1, end); |
| | | List<String> arguments = new ArrayList<>(); |
| | | int bracketCount = 0; |
| | | StringBuilder currentArgument = new StringBuilder(); |
| | | for (char c : argumentsStr.toCharArray()) { |
| | | if (c == ',' && bracketCount == 0) { |
| | | arguments.add(currentArgument.toString()); |
| | | currentArgument.setLength(0); |
| | | } else { |
| | | if (c == '(') bracketCount++; |
| | | if (c == ')') bracketCount--; |
| | | currentArgument.append(c); |
| | | } |
| | | } |
| | | arguments.add(currentArgument.toString()); |
| | | String[] bracketStrs = arguments.toArray(new String[0]); |
| | | List<BigDecimal> results = new ArrayList<>(); |
| | | for (String expr : bracketStrs) { |
| | | Pattern pattern = Pattern.compile("([A-Z])(\\d+)"); |
| | | Matcher matcher = pattern.matcher(expr); |
| | | StringBuffer sb = new StringBuffer(); |
| | | while (matcher.find()) { |
| | | String letter = matcher.group(1); |
| | | int index = Integer.parseInt(matcher.group(2)) - 1; // å°1-based转为0-based |
| | | if (index < bigDecimalList.size()) { |
| | | matcher.appendReplacement(sb, bigDecimalList.get(index).toString()); |
| | | } else { |
| | | throw new RuntimeException("å
¬å¼ä¸ç䏿 " + index + " è¶
åºèå´"); |
| | | } |
| | | } |
| | | matcher.appendTail(sb); |
| | | |
| | | // 计ç®è¡¨è¾¾å¼ |
| | | ScriptEngine engine = new ScriptEngineManager().getEngineByName("JavaScript"); |
| | | try { |
| | | Object result = engine.eval(sb.toString()); |
| | | results.add(new BigDecimal(result.toString())); |
| | | } catch (Exception e) { |
| | | throw new IllegalArgumentException("æ æ³è®¡ç®å
¬å¼: " + sb, e); |
| | | } |
| | | } |
| | | // æ ¹æ®å½æ°åç§°è¿è¡ç¸åºè®¡ç® |
| | | BigDecimal finalResult; |
| | | if (upperStr.equals("") || upperStr == null) { |
| | | finalResult = results.get(0); |
| | | } else { |
| | | switch (upperStr) { |
| | | case "MAX": |
| | | finalResult = results.stream().max(BigDecimal::compareTo) |
| | | .orElseThrow(() -> new IllegalArgumentException("æ æ³è®¡ç®MAXå¼")); |
| | | break; |
| | | case "MIN": |
| | | finalResult = results.stream().min(BigDecimal::compareTo) |
| | | .orElseThrow(() -> new IllegalArgumentException("æ æ³è®¡ç®MINå¼")); |
| | | break; |
| | | case "SUM": |
| | | finalResult = results.stream().reduce(BigDecimal.ZERO, BigDecimal::add); |
| | | break; |
| | | case "ABS": |
| | | finalResult = results.stream().map(BigDecimal::abs).reduce(BigDecimal.ZERO, BigDecimal::add); |
| | | break; |
| | | case "AVERAGE": |
| | | finalResult = results.stream().reduce(BigDecimal.ZERO, BigDecimal::divide) |
| | | .divide(BigDecimal.valueOf(results.size()), 2, BigDecimal.ROUND_HALF_UP); |
| | | break; |
| | | case "MEDIAN": |
| | | int size = results.size(); |
| | | if (size % 2 == 1) { |
| | | finalResult = results.get(size / 2); |
| | | } else { |
| | | BigDecimal sum = results.get(size / 2 - 1).add(results.get(size / 2)); |
| | | finalResult = sum.divide(BigDecimal.valueOf(2), 2, BigDecimal.ROUND_HALF_UP); |
| | | } |
| | | break; |
| | | default: |
| | | throw new UnsupportedOperationException("æä¸æ¯æå½æ°: " + upperStr); |
| | | } |
| | | } |
| | | |
| | | return finalResult.toString(); |
| | | // å¦åï¼æ²¡æå
¬å¼ä»£è¡¨ä¸éè¦è®¡ç®ï¼ç´æ¥æåListéé¢çæ°æ® |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DataConfigMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.device.pojo.DataConfig"> |
| | | <id column="id" property="id" /> |
| | | <result column="formula" property="formula" /> |
| | | <result column="referx" property="referx" /> |
| | | <result column="refery" property="refery" /> |
| | | <result column="x" property="x" /> |
| | | <result column="y" property="y" /> |
| | | </resultMap> |
| | | |
| | | <select id="selectDataConfigList" resultType="com.ruoyi.device.dto.DeviceConfigDtoPage"> |
| | | SELECT ddc.*, |
| | | d.device_name, |
| | | sip.sample |
| | | FROM device_data_config ddc |
| | | left join device d on ddc.device_id = d.id |
| | | left join structure_item_parameter sip on sip.id = ddc.structure_item_parameter_id |
| | | where d.id = #{deviceId} |
| | | order by ddc.id desc |
| | | </select> |
| | | |
| | | <select id="deleteDataConfig" resultType="integer"> |
| | | SELECT ddc.id |
| | | FROM device d |
| | | left join structure_item_parameter ip on not FIND_IN_SET(ip.id, d.ins_product_ids) |
| | | inner join device_data_config ddc on ddc.device_id = d.id and ddc.structure_item_parameter_id = ip.id |
| | | </select> |
| | | <select id="getNoConfigProduct" resultType="com.ruoyi.device.pojo.DataConfig"> |
| | | SELECT d.id device_id, |
| | | ip.inspection_item, |
| | | ip.inspection_item_class, |
| | | ip.inspection_item_subclass , |
| | | ip.sample, |
| | | ip.id structureItemParameterId, |
| | | ddc.id |
| | | FROM structure_item_parameter ip |
| | | left join device d on FIND_IN_SET(d.id, ip.device_ids) |
| | | left join device_data_config ddc on ddc.device_id = d.id and ddc.structure_item_parameter_id = ip.id |
| | | where d.id = #{deviceId} |
| | | and ddc.id is null |
| | | order by ip.sample |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceAcceptanceMapper"> |
| | | |
| | | <!-- 设å¤éªæ¶å表 --> |
| | | <select id="pageDeviceAcceptance" resultType="com.ruoyi.device.pojo.DeviceAcceptance"> |
| | | select * from ( |
| | | select * |
| | | from device_acceptance |
| | | order by create_time desc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceAccidentReportMapper"> |
| | | |
| | | <!-- 设å¤äºæ
æ¥åå表 --> |
| | | <select id="pageDeviceAccidentReport" resultType="com.ruoyi.device.pojo.DeviceAccidentReport"> |
| | | select * from ( |
| | | select * |
| | | from device_accident_report |
| | | order by create_time desc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectDeviceAccidentReportById" resultType="com.ruoyi.device.dto.DeviceAccidentReportDto"> |
| | | select |
| | | d.*, |
| | | date_format(d.accident_date,'%Y-%m-%d') accidentDateStr, -- æ¶é´ |
| | | date_format(d.report_date,'%Y-%m-%d') reportDateStr, -- æ¥åäººå¡«åæ¶é´ |
| | | date_format(d.assessor_date,'%Y-%m-%d') assessorDateStr, -- è¯ä¼°äººå¡«åæ¶é´ |
| | | date_format(d.department_head_date,'%Y-%m-%d') departmentHeadDateStr, -- é¨é¨è´è´£äººå¡«åæ¶é´ |
| | | date_format(d.technical_director_date,'%Y-%m-%d') technicalDirectorDateStr, -- ææ¯è´è´£äººå¡«åæ¶é´ |
| | | date_format(d.director_head_date,'%Y-%m-%d') directorHeadDateStr -- ä¸»ä»»å¡«åæ¶é´ |
| | | from device_accident_report d |
| | | where d.accident_report_id = #{accidentReportId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceBorrowMapper"> |
| | | |
| | | <select id="deviceBorrowPage" resultType="com.ruoyi.device.pojo.DeviceBorrow"> |
| | | select * from ( |
| | | select db.*,device_name |
| | | from device_borrow db |
| | | left join device on db.device_id=device.id |
| | | )a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="getDeviceBorrowBydeviceId" resultType="com.ruoyi.device.pojo.DeviceBorrow"> |
| | | select db.*,device_name |
| | | from device_borrow db |
| | | left join device on db.device_id=device.id |
| | | where device_id=#{deviceId} |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceBreakdownMaintenanceMapper"> |
| | | |
| | | <!--è®¾å¤æ
éç»´ä¿®å表--> |
| | | <select id="pageDeviceBreakdownMaintenance" resultType="com.ruoyi.device.dto.DeviceBreakdownMaintenance"> |
| | | select * from ( |
| | | select * |
| | | from device_breakdown_maintenance |
| | | order by create_time desc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceCalibrationPlanDetailMapper"> |
| | | |
| | | <!-- è®¾å¤æ ¡å计å详æ
å表 --> |
| | | <select id="pageDeviceCalibrationPlanDetail" resultType="com.ruoyi.device.pojo.DeviceCalibrationPlanDetail"> |
| | | select * from ( |
| | | select * |
| | | from device_calibration_plan_detail |
| | | order by plan_date asc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceCalibrationPlanMapper"> |
| | | |
| | | <!-- è®¾å¤æ ¡å计åå表 --> |
| | | <select id="pageDeviceCalibrationPlan" resultType="com.ruoyi.device.dto.DeviceCalibrationPlanDto"> |
| | | select * |
| | | from (select cqm.*, |
| | | u1.name write_name, |
| | | u3.name ratify_name |
| | | from device_calibration_plan cqm |
| | | left join user u1 on u1.id = cqm.write_user_id |
| | | left join user u3 on u3.id = cqm.ratify_user_id |
| | | order by cqm.create_time desc) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceExaminePlanDetailsMapper"> |
| | | |
| | | |
| | | <!--è®¾å¤æ ¸æ¥è®¡å详æ
å表--> |
| | | <select id="pageDeviceExaminePlanDetail" resultType="com.ruoyi.device.dto.DeviceExaminePlanDetailsDto"> |
| | | select * from ( |
| | | select |
| | | d.plan_details_id, |
| | | d.plan_id, |
| | | d.device_id, |
| | | d.device_number, |
| | | d.device_name, |
| | | d.check_time, |
| | | d.check_index, |
| | | d.check_method, |
| | | d.how_results, |
| | | d.check_charger_user_id, |
| | | CASE WHEN d.check_charger_user='' or d.check_charger_user is null THEN u.name |
| | | ELSE d.check_charger_user END AS check_charger_user, |
| | | d.remark, |
| | | d.create_user, |
| | | d.create_time, |
| | | d.update_user, |
| | | d.update_time, |
| | | CASE |
| | | WHEN dc.review_status = 0 THEN 3 |
| | | WHEN dc.review_status = 1 THEN 2 |
| | | WHEN dc.record_id IS NOT NULL THEN 1 |
| | | ELSE 0 END record_status, |
| | | CASE |
| | | WHEN dd.review_status = 0 THEN 3 |
| | | WHEN dd.review_status = 1 THEN 2 |
| | | WHEN dd.record_contrast_id IS NOT NULL THEN 1 |
| | | ELSE 0 END record_contrast_status |
| | | from device_examine_plan_details d |
| | | left join user u on u.id = d.check_charger_user_id |
| | | left join device_examine_record dc on d.plan_details_id = dc.plan_details_id |
| | | left join device_examine_record_contrast dd on dd.plan_details_id = dc.plan_details_id |
| | | order by check_time asc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceExaminePlanMapper"> |
| | | |
| | | <!-- è®¾å¤æ ¸æ¥è®¡åå表 --> |
| | | <select id="deviceExaminePlanDetailsMapper" resultType="com.ruoyi.device.dto.DeviceExaminePlanDto"> |
| | | select * |
| | | from (select cqm.*, |
| | | u1.name write_name, |
| | | u3.name ratify_name |
| | | from device_examine_plan cqm |
| | | left join user u1 on u1.id = cqm.write_user_id |
| | | left join user u3 on u3.id = cqm.ratify_user_id |
| | | order by cqm.create_time desc) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectExamineExaminePlanDto" resultType="com.ruoyi.device.dto.DeviceExaminePlanDto"> |
| | | select |
| | | cqm.*, |
| | | date_format(cqm.write_time, '%Y-%m-%d') writeTimeStr, |
| | | date_format(cqm.ratify_time, '%Y-%m-%d') ratifyTimeStr, |
| | | date_format(cqm.create_time, '%Y') year, |
| | | u1.name write_name, |
| | | u3.name ratify_name |
| | | from device_examine_plan cqm |
| | | left join user u1 on u1.id = cqm.write_user_id |
| | | left join user u3 on u3.id = cqm.ratify_user_id |
| | | where cqm.plan_id = #{deviceExaminePlanId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceExamineRecordContrastMapper"> |
| | | |
| | | <!-- æ¥è¯¢æ ¸æ¥å¯¹æ¯è®°å½ --> |
| | | <select id="getExamineRecordContrast" resultType="com.ruoyi.device.dto.DeviceExamineRecordContrastDto"> |
| | | select derc.*, |
| | | d1.device_name aDeviceName, |
| | | d1.management_number aDeviceNumber, |
| | | d2.device_name bDeviceName, |
| | | d2.management_number bDeviceNumber, |
| | | d3.device_name cDeviceName, |
| | | d3.management_number cDeviceNumber |
| | | from device_examine_record_contrast derc |
| | | left join device d1 on d1.id = derc.a_device_id |
| | | left join device d2 on d2.id = derc.a_device_id |
| | | left join device d3 on d3.id = derc.a_device_id |
| | | where derc.plan_details_id = #{planDetailsId} |
| | | </select> |
| | | <select id="selectExamineRecordContrastDto" |
| | | resultType="com.ruoyi.device.dto.DeviceExamineRecordContrastDto"> |
| | | select derc.*, |
| | | d1.device_name aDeviceName, |
| | | d1.management_number aDeviceNumber, |
| | | d2.device_name bDeviceName, |
| | | d2.management_number bDeviceNumber, |
| | | d3.device_name cDeviceName, |
| | | d3.management_number cDeviceNumber, |
| | | DATE_FORMAT(derc.create_time, '%Y-%m-%d') checkerTimeStr, |
| | | DATE_FORMAT(derc.review_time, '%Y-%m-%d') reviewTimeStr, |
| | | d1.storage_point labName |
| | | from device_examine_record_contrast derc |
| | | left join device d1 on d1.id = derc.a_device_id |
| | | left join device d2 on d2.id = derc.a_device_id |
| | | left join device d3 on d3.id = derc.a_device_id |
| | | where derc.plan_details_id = #{planDetailsId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceExamineRecordMapper"> |
| | | |
| | | <select id="getExamineRecord" resultType="com.ruoyi.device.dto.DeviceExamineRecordDto"> |
| | | select der.*, |
| | | d.device_name, |
| | | d.management_number deviceNumber |
| | | from device_examine_record der |
| | | left join device_examine_plan_details depd on depd.plan_details_id = der.plan_details_id |
| | | left join device d on d.id = depd.device_id |
| | | where der.plan_details_id = #{planDetailsId} |
| | | </select> |
| | | <select id="selectReviewExamineRecordDto" resultType="com.ruoyi.device.dto.DeviceExamineRecordDto"> |
| | | select der.*, |
| | | Date_Format(der.update_time, '%Y-%m-%d') updateTimeStr, |
| | | d.device_name, |
| | | d.management_number deviceNumber |
| | | from device_examine_record der |
| | | left join device_examine_plan_details depd on depd.plan_details_id = der.plan_details_id |
| | | left join device d on d.id = depd.device_id |
| | | where der.plan_details_id = #{planDetailsId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceExternalApplyMapper"> |
| | | |
| | | <!--å©ç¨å¤é¨è®¾å¤ç³è¯·å表--> |
| | | <select id="pageDeviceExternalApply" resultType="com.ruoyi.device.pojo.DeviceExternalApply"> |
| | | select * from ( |
| | | select * |
| | | from device_external_apply |
| | | order by create_time desc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectDeviceExternalById" resultType="com.ruoyi.device.pojo.DeviceExternalApply"> |
| | | select |
| | | dea.* |
| | | from device_external_apply dea |
| | | where dea.external_apply_id = #{externalApplyId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceImpowerDetailsMapper"> |
| | | |
| | | <!-- æ¥è¯¢è®¾å¤ä½¿ç¨è¯¦æ
--> |
| | | <select id="deviceImpowerDetailsList" resultType="com.ruoyi.device.dto.DeviceImpowerDetailsDto"> |
| | | select |
| | | did.*, |
| | | d.device_name, |
| | | d.specification_model, |
| | | d.management_number |
| | | from device_impower_details did |
| | | left join device d on did.device_id = d.id |
| | | where did.impower_id = #{impowerId} |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceImpowerMapper"> |
| | | |
| | | |
| | | <select id="selectDeviceParameterPage" resultType="com.ruoyi.device.pojo.DeviceImpower"> |
| | | select |
| | | * |
| | | from device_impower |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceInspectionRecordMapper"> |
| | | |
| | | |
| | | <select id="selectDeviceParameterPage" resultType="com.ruoyi.device.pojo.DeviceInspectionRecord"> |
| | | select * from ( SELECT * |
| | | from device_inspection_record ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceMaintenanceMapper"> |
| | | |
| | | |
| | | <!-- 设å¤ç»´æ¤å页æ¥è¯¢ --> |
| | | <select id="selectDeviceMaintenancePage" resultType="com.ruoyi.device.dto.DeviceMaintenanceDto"> |
| | | select * from ( |
| | | select db.*, |
| | | d.device_name, |
| | | d.management_number |
| | | from device_maintenance db |
| | | left join device d on db.device_id = d.id)a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | order by maintenance_date desc |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceMaintenancePlanDetailsMapper"> |
| | | |
| | | |
| | | <select id="deviceInspectionRecordDetailsList" |
| | | resultType="com.ruoyi.device.dto.DeviceMaintenancePlanDetailsDto"> |
| | | select |
| | | dmpd.*, |
| | | d.device_name, |
| | | d.management_number device_number, |
| | | d.specification_model, |
| | | d.management_number, |
| | | d.storage_point |
| | | from device_maintenance_plan_details dmpd |
| | | left join device d on dmpd.device_id = d.id |
| | | where dmpd.maintenance_plan_id = #{maintenancePlanId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceMaintenancePlanMapper"> |
| | | |
| | | <!-- æ ¹æ®è®¾å¤idæ¥è¯¢è®¾å¤çä¿å
»è®¡å --> |
| | | <select id="selectDeviceParameterPage" resultType="com.ruoyi.device.pojo.DeviceMaintenancePlan"> |
| | | select |
| | | * |
| | | from device_maintenance_plan |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectMaintenancePlanById" resultType="com.ruoyi.device.dto.DeviceMaintenancePlanDto"> |
| | | select |
| | | dmp.*, |
| | | date_format(dmp.date_preparation, '%Y-%m-%d') as datePreparationStr, |
| | | date_format(dmp.audit_date, '%Y-%m-%d') as auditDateStr |
| | | from device_maintenance_plan dmp |
| | | where dmp.maintenance_plan_id = #{maintenancePlanId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceMapper"> |
| | | <select id="selectDeviceParameter" resultType="com.ruoyi.device.pojo.Device"> |
| | | select * from( |
| | | select id, |
| | | large_category, |
| | | date_production, |
| | | equipment_manager, |
| | | authorized_person, |
| | | device_name, |
| | | internal_code, |
| | | asset_code, |
| | | calibration_date, |
| | | scrap_time, |
| | | acceptance_records, |
| | | subclass, |
| | | factory_no, |
| | | acquisition_date, |
| | | accurate_measurement, |
| | | specification_model, |
| | | device_status, |
| | | storage_point, |
| | | activation_date, |
| | | latest_traceability, |
| | | down_time, |
| | | maintenance_records, |
| | | manufacturer, |
| | | detection_type, |
| | | _costs, |
| | | calibration_certicate, |
| | | create_user, |
| | | create_time, |
| | | update_user, |
| | | update_time, |
| | | status |
| | | from device |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectEquipmentOverview" resultType="com.ruoyi.device.pojo.Device"> |
| | | select * from( |
| | | select id, |
| | | device_name, |
| | | specification_model, |
| | | device_status, |
| | | create_user, |
| | | status, |
| | | update_time |
| | | from device |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="authorizedPerson" resultType="com.ruoyi.device.pojo.Device"> |
| | | select id, |
| | | authorized_person |
| | | from device |
| | | </select> |
| | | <select id="search" resultType="com.ruoyi.device.pojo.Device"> |
| | | select * |
| | | from device |
| | | <where> |
| | | <if test="deviceName!=null and deviceName!=''"> |
| | | and device_name like concat('%',#{deviceName},'%') |
| | | </if> |
| | | <if test="status!=null and status!=''"> |
| | | and device_status = status |
| | | </if> |
| | | <if test="specificationModel!=null and specificationModel!= ''"> |
| | | and specification_model = #{specificationModel} |
| | | </if> |
| | | <if test="largeCategory!=null"> |
| | | and large_category = #{largeCategory} |
| | | </if> |
| | | <if test="largeCategory == 'null'"> |
| | | and (large_category = '' or large_category is null) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDeviceImage" resultType="com.ruoyi.device.pojo.Device"> |
| | | select (image_upload, create_user, create_time) values (#{image_upload} |
| | | , #{createUser} |
| | | , #{createTime}) |
| | | </select> |
| | | |
| | | <select id="selectDeviceParameterPage" resultType="com.ruoyi.device.dto.DeviceDto"> |
| | | select * from( |
| | | SELECT |
| | | d.*, |
| | | cmr.calibration_date as last_calibration_date_two, |
| | | cmr.next_calibration_date as next_calibration_date_two, |
| | | GROUP_CONCAT(distinct inspection_item SEPARATOR ';') AS insProductItem, |
| | | u.name , |
| | | sd.dept_name AS laboratory_name |
| | | FROM |
| | | device d |
| | | LEFT JOIN `user` u ON u.id = d.equipment_manager |
| | | LEFT JOIN sys_dept sd ON sd.dept_id = d.subordinate_departments_id AND sd.del_flag = '0' |
| | | LEFT JOIN device_metric_record cmr ON d.id = cmr.device_id |
| | | LEFT JOIN structure_item_parameter sip ON FIND_IN_SET(sip.id, d.ins_product_ids) |
| | | <where> |
| | | <if test="laboratoryNameIsNull != null and laboratoryNameIsNull == true"> |
| | | sd.dept_name is null |
| | | </if> |
| | | AND cmr.type = 'calibrate' or cmr.type is null or cmr.type = '' |
| | | </where> |
| | | GROUP BY |
| | | d.id, |
| | | u.name, sd.dept_name |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getInspectionItemSubclass" resultType="map"> |
| | | SELECT ip.inspection_item, |
| | | if(ip.inspection_item_subclass is not null and ip.inspection_item_subclass != '', |
| | | ip.inspection_item_subclass, ip.inspection_item) inspection_item_subclass |
| | | FROM ins_product ip |
| | | where ip.ins_sample_id = #{id} |
| | | </select> |
| | | <resultMap id="treeDeviceDto" type="map"> |
| | | <result property="label" column="laboratory_name"/> |
| | | <result property="value" column="value" /> |
| | | <collection property="children" resultMap="storagePointMap" javaType="List"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="storagePointMap" type="map"> |
| | | <result property="value" column="value"/> |
| | | <result property="label" column="storage_point"/> |
| | | <collection property="children" resultMap="deviceNameMap" javaType="List"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="deviceNameMap" type="map"> |
| | | <result property="value" column="id"/> |
| | | <result property="label" column="device_name"/> |
| | | <result property="activationDate" column="activation_date"/> |
| | | <result property="managementNumber" column="management_number"/> |
| | | </resultMap> |
| | | |
| | | <select id="treeDevice" resultMap="treeDeviceDto"> |
| | | select |
| | | d.id, |
| | | case when sd.dept_name is null || sd.dept_name ='' then 'å
¶ä»' else sd.dept_name end as laboratory_name, |
| | | case when d.storage_point is null || d.storage_point ='' then 'å
¶ä»' else d.storage_point end as storage_point, |
| | | d.device_name, |
| | | d.management_number, |
| | | null as value, |
| | | d.activation_date |
| | | from device d |
| | | LEFT JOIN sys_dept sd ON sd.dept_id = d.subordinate_departments_id AND sd.del_flag = '0' |
| | | <where> |
| | | <if test="deviceName!=null and deviceName!=''"> |
| | | and device_name like concat('%',#{deviceName},'%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDeviceByCode" resultType="com.ruoyi.device.dto.DeviceDto"> |
| | | SELECT d.*, |
| | | GROUP_CONCAT(DISTINCT inspection_item SEPARATOR ';') AS ins_product_item, |
| | | sd.dept_name AS laboratory_name, |
| | | u1.name equipmentManager_name, |
| | | u2.name authorized_person_name |
| | | FROM device d |
| | | LEFT JOIN structure_item_parameter sip ON FIND_IN_SET(sip.id, d.ins_product_ids) |
| | | LEFT JOIN sys_dept sd ON d.subordinate_departments_id = sd.dept_id AND sd.del_flag = '0' |
| | | LEFT JOIN user u1 ON u1.id = d.equipment_manager |
| | | LEFT JOIN user u2 ON u2.id = d.authorized_person |
| | | WHERE d.id = #{id} |
| | | |
| | | GROUP BY d.id, |
| | | sd.dept_name, |
| | | u1.name, |
| | | u2.name |
| | | </select> |
| | | |
| | | <!-- æ¥è¯¢å°è¾¾æ ¡åæææç设å¤-æå5天 --> |
| | | <select id="selectOverdueDevice" resultType="com.ruoyi.device.pojo.Device"> |
| | | SELECT * |
| | | FROM device |
| | | WHERE |
| | | -- çéåº activation_date å¨å½åæ¥æåäºå¤©å
çæ°æ® |
| | | activation_date BETWEEN now() AND now() + INTERVAL 5 DAY |
| | | -- çéåº activation_date å·²ç»è¶
è¿å½åæ¥æçæ°æ® |
| | | OR activation_date < now() |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceScrappedMapper"> |
| | | |
| | | <!-- è®¾å¤æ¥åºç³è¯·å表 --> |
| | | <select id="pageDeviceScrapped" resultType="com.ruoyi.device.pojo.DeviceScrapped"> |
| | | select * from ( |
| | | select * |
| | | from device_scrapped |
| | | order by create_time desc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectDeviceScrappedById" resultType="com.ruoyi.device.dto.DeviceScrappedDto"> |
| | | select |
| | | *, |
| | | date_format(applicant_date,'%Yå¹´%mæ%dæ¥') as applicantDateStr, |
| | | date_format(department_head_date,'%Yå¹´%mæ%dæ¥') as departmentHeadDateStr, |
| | | date_format(metering_room_date,'%Yå¹´%mæ%dæ¥') as meteringRoomDateStr, |
| | | date_format(approver_date,'%Yå¹´%mæ%dæ¥') as approverDateStr |
| | | from device_scrapped |
| | | where scrapped_id = #{scrappedId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceStateMapper"> |
| | | |
| | | |
| | | <select id="getDeviceStatePage" resultType="com.ruoyi.device.dto.DeviceStateDto"> |
| | | select ds.*, |
| | | d.device_name, |
| | | d.management_number, |
| | | d.specification_model, |
| | | d.large_category |
| | | from device_state ds |
| | | left join device d on d.id = ds.device_id |
| | | where ds.device_id = #{deviceId} |
| | | <if test="processNumber != '' and processNumber != null"> |
| | | and ds.process_number like concat('%', #{processNumber}, '%') |
| | | </if> |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceTraceabilityManagementDetailsMapper"> |
| | | |
| | | <select id="deviceTraceabilityManagementDetailsList" |
| | | resultType="com.ruoyi.device.dto.DeviceTraceabilityManagementDetailsDto"> |
| | | select |
| | | dtmd.*, |
| | | d.device_name, |
| | | d.specification_model, |
| | | d.management_number |
| | | from device_traceability_management_details dtmd |
| | | left join device d on dtmd.device_id = d.id |
| | | where dtmd.traceability_management_id = #{traceabilityManagementId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceTraceabilityManagementMapper"> |
| | | |
| | | <select id="selectDeviceParameterPage" resultType="com.ruoyi.device.pojo.DeviceTraceabilityManagement"> |
| | | select |
| | | * |
| | | from device_traceability_management |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectDeviceTraceabilityManagementById" |
| | | resultType="com.ruoyi.device.dto.DeviceTraceabilityManagementDto"> |
| | | select |
| | | dtm.*, |
| | | date_format(dtm.date_preparation, '%Y-%m-%d') as datePreparationStr, |
| | | date_format(dtm.audit_date, '%Y-%m-%d') as auditDateStr |
| | | from device_traceability_management dtm |
| | | where dtm.traceability_management_id = #{traceabilityManagementId} |
| | | </select> |
| | | |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.DeviceRecordMapper"> |
| | | |
| | | <select id="deviceRecordPage" resultType="com.ruoyi.device.dto.DeviceRecordDto"> |
| | | select dr.*, |
| | | d.device_name, |
| | | d.management_number |
| | | from device_record dr |
| | | left join device d on d.id = dr.device_id |
| | | where 1=1 |
| | | <if test="deviceId != null"> |
| | | and dr.device_id = #{deviceId} |
| | | </if> |
| | | <if test="sampleCode != '' and sampleCode != null"> |
| | | and dr.sample_code like concat('%', #{sampleCode}, '%') |
| | | </if> |
| | | <if test="managementNumber != '' and managementNumber != null"> |
| | | and d.management_number like concat('%', #{managementNumber}, '%') |
| | | </if> |
| | | <if test="userId != null"> |
| | | and dr.use_person_id = #{userId} |
| | | and dr.use_start_date is null |
| | | </if> |
| | | ORDER BY (dr.use_start_date IS NULL) desc , dr.use_start_date DESC |
| | | </select> |
| | | |
| | | |
| | | <select id="selectNotFilled" resultType="com.ruoyi.device.dto.DeviceRecordDto"> |
| | | select dr.*, |
| | | d.device_name, |
| | | d.management_number |
| | | from device_record dr |
| | | left join device d on d.id = dr.device_id |
| | | where dr.use_start_date is null |
| | | </select> |
| | | |
| | | <!-- æ¥è¯¢å¯¼åºè®¾å¤ä½¿ç¨è®°å½ --> |
| | | <select id="selectExportList" resultType="com.ruoyi.device.dto.DeviceRecordDto"> |
| | | select dr.* |
| | | from device_record dr |
| | | where dr.use_start_date is not null |
| | | <if test="deviceId != null"> |
| | | and dr.device_id = #{deviceId} |
| | | </if> |
| | | <if test="exportDate != '' and exportDate != null"> |
| | | and DATE_FORMAT(dr.use_start_date, '%Y-%m') = #{exportDate} |
| | | </if> |
| | | ORDER BY dr.use_start_date asc |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.InstructionMapper"> |
| | | <select id="pageByPageQueryOfHomeworkInstructions" resultType="com.ruoyi.device.dto.DeviceOperationInstructionDto"> |
| | | SELECT |
| | | doi.*,di.*, |
| | | d.device_name deviceName, |
| | | d.management_number deviceNumber, |
| | | d.specification_model deviceModel, |
| | | u.name uploaderName, |
| | | u1.name approverName |
| | | FROM |
| | | device_operation_instruction doi |
| | | LEFT JOIN device_instruction di ON di.id = doi.instruction_id |
| | | left join device d on d.id = doi.device_id |
| | | left join user u on u.id = doi.uploader |
| | | left join user u1 on u1.id = doi.approver_id |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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"> |
| | | <mapper namespace="com.ruoyi.device.mapper.OperationInstructionMapper"> |
| | | |
| | | <select id="homeworkGuidebookEditor" resultType="com.ruoyi.device.dto.DeviceOperationInstructionDto"> |
| | | SELECT |
| | | doi.*,d.device_name, d.management_number device_number, d.specification_model device_model |
| | | FROM |
| | | device_operation_instruction doi |
| | | left join device d on d.id = doi.device_id |
| | | where doi.instruction_id = #{instructionId} |
| | | </select> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.mapper.ClientSatisfactionAnalyseFileMapper; |
| | | import com.ruoyi.manage.pojo.ClientSatisfaction; |
| | | import com.ruoyi.manage.pojo.ClientSatisfactionAnalyseFile; |
| | | import com.ruoyi.manage.service.ClientSatisfactionService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Tag(name = "å®¢æ·æ»¡æåº¦è°æ¥") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/clientSatisfaction") |
| | | public class ClientSatisfactionController { |
| | | |
| | | private ClientSatisfactionService clientSatisfactionService; |
| | | private ClientSatisfactionAnalyseFileMapper clientSatisfactionAnalyseFileMapper; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥å表 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å®¢æ·æ»¡æåº¦è°æ¥å表") |
| | | @GetMapping("/pageClientSatisfaction") |
| | | public Result<IPage<ClientSatisfaction>> pageClientSatisfaction(Page page,ClientSatisfaction clientSatisfaction) throws Exception { |
| | | return Result.success(clientSatisfactionService.pageClientSatisfaction(page, clientSatisfaction)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥æ°å¢ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å®¢æ·æ»¡æåº¦è°æ¥æ°å¢") |
| | | @PostMapping("/addClientSatisfaction") |
| | | public Result addClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction){ |
| | | return Result.success(clientSatisfactionService.save(clientSatisfaction)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å®¢æ·æ»¡æåº¦è°æ¥æ°å¢") |
| | | @PostMapping("/updateClientSatisfaction") |
| | | public Result updateClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction){ |
| | | return Result.success(clientSatisfactionService.updateById(clientSatisfaction)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å®¢æ·æ»¡æåº¦è°æ¥æ°å¢") |
| | | @DeleteMapping("/delClientSatisfaction") |
| | | public Result updateClientSatisfaction(Integer clientSatisfactionId){ |
| | | return Result.success(clientSatisfactionService.removeById(clientSatisfactionId)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦å¯¼åº |
| | | * @param clientSatisfactionId |
| | | * @param response |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å®¢æ·æ»¡æå¯¼åº") |
| | | @GetMapping("/exportWordClientSatisfaction") |
| | | public Result exportWordClientSatisfaction(Integer clientSatisfactionId, HttpServletResponse response){ |
| | | clientSatisfactionService.exportWordClientSatisfaction(clientSatisfactionId, response); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * ç¡®è®¤å®¢æ·æ»¡æåº¦ |
| | | * @param clientSatisfaction è¦ä¿®æ¹å®¢æ·æ»¡æåº¦çç¶æå¯¹è±¡ |
| | | * @param userId ä¿®æ¹äººid |
| | | */ |
| | | |
| | | @Operation(summary = "ç¡®è®¤å®¢æ·æ»¡æåº¦") |
| | | @PostMapping("/confirmClientSatisfaction") |
| | | public void confirmClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction, Integer userId){ |
| | | clientSatisfactionService.confirmClientSatisfaction(clientSatisfaction, userId); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å®¢æ·åæéä»¶ |
| | | * @param file |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "æ°å¢æ·åæéä»¶") |
| | | @PostMapping("/uploadAnalyseFile") |
| | | public Result<?> uploadAnalyseFile(MultipartFile file) { |
| | | return Result.success(clientSatisfactionService.uploadAnalyseFile(file)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ·åæéä»¶ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "æ¥è¯¢æ·åæéä»¶") |
| | | @GetMapping("/pageAnalyseFile") |
| | | public Result<IPage<ClientSatisfactionAnalyseFile>> pageAnalyseFile(Page page, ClientSatisfactionAnalyseFile analyseFile) { |
| | | return Result.success(clientSatisfactionService.pageAnalyseFile(page, analyseFile)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿·åæéä»¶ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å 餿·åæéä»¶") |
| | | @DeleteMapping("/delAnalyseFile") |
| | | public Result delAnalyseFile(Integer analyseFileId){ |
| | | return Result.success(clientSatisfactionAnalyseFileMapper.deleteById(analyseFileId)); |
| | | } |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.dto.InternalCheckDto; |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | import com.ruoyi.manage.service.InternalCheckService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Tag(name = "å
å®¡æ£æ¥") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalCheck") |
| | | public class InternalCheckController { |
| | | |
| | | private InternalCheckService internalCheckService; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
å®¡æ£æ¥å页æ¥è¯¢") |
| | | @GetMapping("/pageInternalCheck") |
| | | public Result<IPage<InternalCheckDto>> pageInternalCheck(Page page,InternalCheck internalCheck) throws Exception { |
| | | return Result.success(internalCheckService.pageInternalCheck(page, internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ°å¢ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
å®¡æ£æ¥æ°å¢") |
| | | @PostMapping("/addInternalCheck") |
| | | public Result addInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.addInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
å®¡æ£æ¥ä¿®æ¹") |
| | | @PostMapping("/updateInternalCheck") |
| | | public Result updateInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.updateInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å é¤ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
å®¡æ£æ¥å é¤") |
| | | @DeleteMapping("/delInternalCheck") |
| | | public Result delInternalCheck(Integer checkId){ |
| | | return Result.success(internalCheckService.delInternalCheck(checkId)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¥ç详æ
|
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
å®¡æ£æ¥æ¥ç详æ
") |
| | | @GetMapping("/getInternalCheckOne") |
| | | public Result<InternalCheckDto> getInternalCheckOne(Integer checkId){ |
| | | return Result.success(internalCheckService.getInternalCheckOne(checkId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¹å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å
å®¡æ£æ¥æ¹å") |
| | | @PostMapping("/ratifyInternalCheck") |
| | | public Result ratifyInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.ratifyInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
å®¡æ£æ¥ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "导åºå
å®¡æ£æ¥") |
| | | @GetMapping("/exportInternalCheck") |
| | | public void exportInternalCheck(Integer checkId, HttpServletResponse response){ |
| | | internalCheckService.exportInternalCheck(checkId, response); |
| | | } |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.mapper.InternalCorrectFileMapper; |
| | | import com.ruoyi.manage.pojo.InternalCorrect; |
| | | import com.ruoyi.manage.pojo.InternalCorrectFile; |
| | | import com.ruoyi.manage.service.InternalCorrectService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£å¤ç表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 04:00:15 |
| | | */ |
| | | @Tag(name = "å
å®¡çº æ£æªæ½") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalCorrect") |
| | | public class InternalCorrectController { |
| | | |
| | | private InternalCorrectService internalCorrectService; |
| | | private InternalCorrectFileMapper internalCorrectFileMapper; |
| | | |
| | | /** |
| | | * æ°å¢å
审管ççº æ£å¤çä¿¡æ¯ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "æ°å¢å
审管ççº æ£å¤ç") |
| | | @PostMapping("/addInternalCorrect") |
| | | public Result addInternalCorrect(@RequestBody InternalCorrect internalCorrect){ |
| | | return Result.success(internalCorrectService.addInternalCorrect(internalCorrect)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£å¤ç |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "æ¥è¯¢å
审管ççº æ£å¤ç") |
| | | @GetMapping("/getInternalCorrect") |
| | | public Result<InternalCorrect> getInternalCorrect(Integer correctId){ |
| | | return Result.success(internalCorrectService.getInternalCorrect(correctId)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£æªæ½å表 |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "æ¥è¯¢å
审管ççº æ£æªæ½å表") |
| | | @GetMapping("/pageInternalCorrect") |
| | | public Result<IPage<InternalCorrect>> pageInternalCorrect(Page page, InternalCorrect detailsCorrect) { |
| | | return Result.success(internalCorrectService.pageInternalCorrect(page, detailsCorrect)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å
审管ççº æ£æªæ½éä»¶ |
| | | * @param correctId |
| | | * @param file |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "æ°å¢å
审管ççº æ£æªæ½éä»¶") |
| | | @PostMapping("/uploadInternalCorrectFile") |
| | | public Result<?> uploadInternalCorrectFile(Integer correctId, MultipartFile file) { |
| | | return Result.success(internalCorrectService.uploadInternalCorrectFile(correctId, file)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£æªæ½éä»¶ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "æ¥è¯¢å
审管ççº æ£æªæ½éä»¶") |
| | | @GetMapping("/getInternalCorrectFileList") |
| | | public Result<List<InternalCorrectFile>> getInternalCorrectFileList(Integer correctId){ |
| | | return Result.success(internalCorrectService.getInternalCorrectFileList(correctId)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å
审管ççº æ£æªæ½éä»¶ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å é¤å
审管ççº æ£æªæ½éä»¶") |
| | | @DeleteMapping("/delInternalCorrectFile") |
| | | public Result delInternalCorrectFile(Integer correctFileId){ |
| | | return Result.success(internalCorrectFileMapper.deleteById(correctFileId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºçº æ£æªæ½ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "导åºçº æ£æªæ½") |
| | | @GetMapping("/exportInternalCorrect") |
| | | public void exportInternalCorrect(Integer correctId, HttpServletResponse response){ |
| | | internalCorrectService.exportInternalCorrect(correctId, response); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | |
| | | import com.ruoyi.manage.dto.InternalImplementDto; |
| | | import com.ruoyi.manage.pojo.InternalImplement; |
| | | import com.ruoyi.manage.service.InternalImplementService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * å
审宿½è®¡å |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Tag(name = "å
审宿½è®¡å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalImplement") |
| | | public class InternalImplementController { |
| | | |
| | | private InternalImplementService internalImplementService; |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审宿½è®¡åå页æ¥è¯¢") |
| | | @GetMapping("/pageInternalImplement") |
| | | public Result<IPage<InternalImplementDto>> pageInternalImplement(Page page,InternalImplement internalImplement) throws Exception { |
| | | return Result.success(internalImplementService.pageInternalImplement(page, internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ°å¢ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审宿½è®¡åæ°å¢") |
| | | @PostMapping("/addInternalImplement") |
| | | public Result addInternalImplement(@RequestBody InternalImplementDto internalImplement){ |
| | | return Result.success(internalImplementService.addInternalImplement(internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åä¿®æ¹ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审宿½è®¡åä¿®æ¹") |
| | | @PostMapping("/updateInternalImplement") |
| | | public Result updateInternalImplement(@RequestBody InternalImplementDto internalImplement){ |
| | | return Result.success(internalImplementService.updateInternalImplement(internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå é¤ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审宿½è®¡åå é¤") |
| | | @DeleteMapping("/delInternalImplement") |
| | | public Result delInternalImplement(Integer implementId){ |
| | | return Result.success(internalImplementService.delInternalImplement(implementId)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ¥ç详æ
|
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审宿½è®¡åæ¥ç详æ
") |
| | | @GetMapping("/getInternalImplementOne") |
| | | public Result<InternalImplementDto> getInternalImplementOne(Integer implementId){ |
| | | return Result.success(internalImplementService.getInternalImplementOne(implementId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ¹å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å
审宿½è®¡åæ¹å") |
| | | @PostMapping("/ratifyInternalImplement") |
| | | public Result ratifyInternalImplement(@RequestBody InternalImplementDto internalImplement){ |
| | | return Result.success(internalImplementService.ratifyInternalImplement(internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审宿½è®¡å |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "导åºå
审宿½è®¡å") |
| | | @GetMapping("/exportInternalImplement") |
| | | public void exportInternalImplement(Integer implementId, HttpServletResponse response){ |
| | | internalImplementService.exportInternalImplement(implementId, response); |
| | | } |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.dto.InternalMeetingDto; |
| | | import com.ruoyi.manage.pojo.InternalMeeting; |
| | | import com.ruoyi.manage.service.InternalMeetingService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 02:50:44 |
| | | */ |
| | | @Tag(name = "å
审ä¼è®®") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalMeeting") |
| | | public class InternalMeetingController { |
| | | |
| | | private InternalMeetingService internalMeetingService; |
| | | |
| | | /** |
| | | * å
审ä¼è®®å页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审ä¼è®®å页æ¥è¯¢") |
| | | @GetMapping("/pageInternalMeeting") |
| | | public Result<IPage<InternalMeetingDto>> pageInternalMeeting(Page page,InternalMeeting internalMeeting) throws Exception { |
| | | return Result.success(internalMeetingService.pageInternalMeeting(page, internalMeeting)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®æ°å¢ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审ä¼è®®æ°å¢") |
| | | @PostMapping("/addInternalMeeting") |
| | | public Result addInternalMeeting(@RequestBody InternalMeetingDto internalMeeting){ |
| | | return Result.success(internalMeetingService.addInternalMeeting(internalMeeting)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审ä¼è®®ä¿®æ¹") |
| | | @PostMapping("/updateInternalMeeting") |
| | | public Result updateInternalMeeting(@RequestBody InternalMeetingDto internalMeeting){ |
| | | return Result.success(internalMeetingService.updateInternalMeeting(internalMeeting)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®å é¤ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审ä¼è®®å é¤") |
| | | @DeleteMapping("/delInternalMeeting") |
| | | public Result delInternalMeeting(Integer meetingId){ |
| | | return Result.success(internalMeetingService.delInternalMeeting(meetingId)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®æ¥ç详æ
|
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审ä¼è®®æ¥ç详æ
") |
| | | @GetMapping("/getInternalMeetingOne") |
| | | public Result<InternalMeetingDto> getInternalMeetingOne(Integer meetingId){ |
| | | return Result.success(internalMeetingService.getInternalMeetingOne(meetingId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审ä¼è®® |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "导åºå
审ä¼è®®") |
| | | @GetMapping("/exportInternalMeeting") |
| | | public void exportInternalMeeting(Integer meetingId, HttpServletResponse response){ |
| | | internalMeetingService.exportInternalMeeting(meetingId, response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.dto.InternalPlanDto; |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | import com.ruoyi.manage.service.InternalPlanService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 03:27:47 |
| | | */ |
| | | @Tag(name = "å
审年度计å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalPlan") |
| | | public class InternalPlanController { |
| | | |
| | | |
| | | private InternalPlanService internalPlanService; |
| | | |
| | | /** |
| | | * å
审年度计åå页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审年度计åå页æ¥è¯¢") |
| | | @GetMapping("/pageInternalPlan") |
| | | public Result<IPage<InternalPlanDto>> pageInternalPlan(Page page,InternalPlan internalPlan) throws Exception { |
| | | return Result.success(internalPlanService.pageInternalPlan(page, internalPlan)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ°å¢ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
å®¡å¹´åº¦è®¡åæ°å¢") |
| | | @PostMapping("/addInternalPlan") |
| | | public Result addInternalPlan(@RequestBody InternalPlanDto internalPlan){ |
| | | return Result.success(internalPlanService.addInternalPlan(internalPlan)); |
| | | } |
| | | |
| | | /** |
| | | * å
审年度计åä¿®æ¹ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审年度计åä¿®æ¹") |
| | | @PostMapping("/updateInternalPlan") |
| | | public Result updateInternalPlan(@RequestBody InternalPlanDto internalPlan){ |
| | | return Result.success(internalPlanService.updateInternalPlan(internalPlan)); |
| | | } |
| | | |
| | | /** |
| | | * å
审年度计åå é¤ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审年度计åå é¤") |
| | | @DeleteMapping("/delInternalPlan") |
| | | public Result delInternalPlan(Integer planId){ |
| | | return Result.success(internalPlanService.delInternalPlan(planId)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ¥ç详æ
|
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
å®¡å¹´åº¦è®¡åæ¥ç详æ
") |
| | | @GetMapping("/getInternalPlanOne") |
| | | public Result<InternalPlanDto> getInternalPlanOne(Integer planId){ |
| | | return Result.success(internalPlanService.getInternalPlanOne(planId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å
审年度计åå®¡æ ¸ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å
审年度计åå®¡æ ¸") |
| | | @PostMapping("/examineInternalPlan") |
| | | public Result examineInternalPlan(@RequestBody InternalPlanDto internalPlanDto){ |
| | | return Result.success(internalPlanService.examineInternalPlan(internalPlanDto)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ¹å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å
审宿½è®¡åæ¹å") |
| | | @PostMapping("/ratifyInternalPlan") |
| | | public Result ratifyInternalPlan(@RequestBody InternalPlanDto internalPlanDto){ |
| | | return Result.success(internalPlanService.ratifyInternalPlan(internalPlanDto)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审年度计å |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "导åºå
审年度计å") |
| | | @GetMapping("/exportInternalPlan") |
| | | public void exportInternalPlan(Integer planId, HttpServletResponse response){ |
| | | internalPlanService.exportInternalImplement(planId, response); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.InternalReport; |
| | | import com.ruoyi.manage.service.InternalReportService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author makejava |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Tag(name = "å
审æ¥å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalReport") |
| | | public class InternalReportController { |
| | | |
| | | private InternalReportService internalReportService; |
| | | |
| | | /** |
| | | * å
审æ¥åå页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审æ¥åå页æ¥è¯¢") |
| | | @GetMapping("/pageInternalReport") |
| | | public Result<IPage<InternalReport>> pageInternalReport(Page page,InternalReport internalReport) throws Exception { |
| | | return Result.success(internalReportService.pageInternalReport(page, internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åæ°å¢ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审æ¥åæ°å¢") |
| | | @PostMapping("/addInternalReport") |
| | | public Result addInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.save(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åä¿®æ¹ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审æ¥åä¿®æ¹") |
| | | @PostMapping("/updateInternalReport") |
| | | public Result updateInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.updateById(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åå é¤ |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审æ¥åå é¤") |
| | | @DeleteMapping("/delInternalReport") |
| | | public Result delInternalReport(Integer reportId){ |
| | | return Result.success(internalReportService.removeById(reportId)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åæ¥ç详æ
|
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "å
审æ¥åæ¥ç详æ
") |
| | | @GetMapping("/getInternalReportOne") |
| | | public Result<InternalReport> getInternalReportOne(Integer reportId){ |
| | | return Result.success(internalReportService.getById(reportId)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å®¡æ ¸ |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å
å®¡æ£æ¥å®¡æ ¸") |
| | | @PostMapping("/examineInternalReport") |
| | | public Result examineInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.ratifyInternalCheck(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åè´¨éè´è´£äººå¡«å |
| | | * @return |
| | | */ |
| | | @Operation(summary = "å
审æ¥åè´¨éè´è´£äººå¡«å") |
| | | @PostMapping("/qualityInternalReport") |
| | | public Result qualityInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.qualityInternalReport(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审æ¥å |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "导åºå
审æ¥å") |
| | | @GetMapping("/exportInternalReport") |
| | | public void exportInternalReport(Integer reportId, HttpServletResponse response){ |
| | | internalReportService.exportInternalReport(reportId, response); |
| | | } |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.alibaba.excel.read.listener.PageReadListener; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.pojo.ManageControlPlanList; |
| | | import com.ruoyi.manage.service.ManageControlPlanListService; |
| | | import com.ruoyi.manage.vo.ManageControlPlanListVo; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-15 02:58:30 |
| | | */ |
| | | @Tag(name = "é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å") |
| | | @RestController |
| | | @RequestMapping("/manageControlPlanList") |
| | | public class ManageControlPlanListController { |
| | | |
| | | |
| | | @Resource |
| | | private ManageControlPlanListService manageControlPlanListService; |
| | | |
| | | |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @GetMapping("/getPageList") |
| | | public Result<IPage<ManageControlPlanListVo>> getPageList(Page page) { |
| | | return Result.success(manageControlPlanListService.getPageList(page)); |
| | | } |
| | | |
| | | @Operation(summary = "æ¹å") |
| | | @PostMapping("/approvalOfControlPlanChecklist") |
| | | public Result<?> approvalOfControlPlanChecklist(@RequestBody Map<String, Integer> param){ |
| | | Integer approve = param.get("approve"); |
| | | Integer status= param.get("status"); |
| | | manageControlPlanListService.update(Wrappers.<ManageControlPlanList>lambdaUpdate() |
| | | .set(ManageControlPlanList::getApprove, approve) |
| | | .set(ManageControlPlanList::getApproveStatus, status) |
| | | .set(ManageControlPlanList::getApproveDate, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "审æ¹") |
| | | @PostMapping("/riskAnalysisApprovalOfControlPlanChecklist") |
| | | public Result<?> riskAnalysisApprovalOfControlPlanChecklist(@RequestBody Map<String, Integer> param){ |
| | | Integer approval = param.get("approval"); |
| | | Integer status= param.get("status"); |
| | | manageControlPlanListService.update(Wrappers.<ManageControlPlanList>lambdaUpdate() |
| | | .set(ManageControlPlanList::getApproval, approval) |
| | | .set(ManageControlPlanList::getApprovalStatus, status) |
| | | .set(ManageControlPlanList::getApprovalDate, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @PostMapping("/importControlPlanList") |
| | | public void importControlPlanList(MultipartFile file) throws IOException { |
| | | boolean excelFile = isExcelFile(file); |
| | | if (!excelFile) { |
| | | throw new ErrorException("请导å
¥excelæä»¶ï¼"); |
| | | } |
| | | EasyExcel.read(file.getInputStream(), ManageControlPlanList.class, new PageReadListener<ManageControlPlanList>(dataList -> { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | dataList.forEach(i -> { |
| | | i.setEditor(userId); |
| | | i.setEditorDate(LocalDateTime.now()); |
| | | i.setApproveStatus(0); |
| | | i.setApprovalStatus(0); |
| | | }); |
| | | manageControlPlanListService.saveOrUpdateBatch(dataList); |
| | | })).sheet().doRead(); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢") |
| | | @PostMapping("/analysisOfMajorRiskFactorsAdded") |
| | | public void analysisOfMajorRiskFactorsAdded(@RequestBody ManageControlPlanList manageControlPlanList) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | manageControlPlanList.setEditor(userId); |
| | | manageControlPlanList.setEditorDate(LocalDateTime.now()); |
| | | manageControlPlanListService.saveOrUpdate(manageControlPlanList); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤") |
| | | @DeleteMapping("/deleteSignificantRiskFactorAnalysis") |
| | | public void deleteSignificantRiskFactorAnalysis(Integer id) { |
| | | manageControlPlanListService.removeById(id); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @return |
| | | */ |
| | | |
| | | @Operation(summary = "é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å") |
| | | @GetMapping("/exportSignificantRiskFactors") |
| | | public void exportSignificantRiskFactors(HttpServletResponse response){ |
| | | manageControlPlanListService.exportPersonTraining(response); |
| | | } |
| | | |
| | | public static boolean isExcelFile(MultipartFile file) { |
| | | if (file.isEmpty()) { |
| | | return false; |
| | | } |
| | | String originalFilename = file.getOriginalFilename(); |
| | | if (originalFilename == null) { |
| | | return false; |
| | | } |
| | | String[] parts = originalFilename.split("\\."); |
| | | if (parts.length == 0) { |
| | | return false; |
| | | } |
| | | String fileExtension = parts[parts.length - 1].toLowerCase(); |
| | | return fileExtension.equals("xls") || fileExtension.equals("xlsx"); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.manage.pojo.ManageDocumentAlter; |
| | | import com.ruoyi.manage.service.ManageDocumentAlterService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ´ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-11 11:04:01 |
| | | */ |
| | | @Tag(name = "管çä½ç³»æä»¶çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageDocumentAlter") |
| | | public class ManageDocumentAlterController { |
| | | |
| | | @Resource |
| | | private ManageDocumentAlterService manageDocumentAlterService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æä»¶åæ´") |
| | | @GetMapping("/pageManageDocumentAlter") |
| | | public Result pageManageDocumentAlter(Page page,ManageDocumentAlter manageDocumentAlter) throws Exception { |
| | | return Result.success(manageDocumentAlterService.pageManageDocumentAlter(page, manageDocumentAlter)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿件忴") |
| | | @DeleteMapping("/delManageDocumentAlter") |
| | | public Result delManageDocumentAlter(Integer id){ |
| | | return Result.success(manageDocumentAlterService.delManageDocumentAlter(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "æ¥çæä»¶åæ´") |
| | | @GetMapping("/getManageDocumentAlter") |
| | | public Result getManageDocumentAlter(Integer id){ |
| | | return Result.success(manageDocumentAlterService.getManageDocumentAlter(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢æä»¶åæ´") |
| | | @PostMapping("/addManageDocumentAlter") |
| | | public Result addManageDocumentAlter(ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.addManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾æä»¶åæ´") |
| | | @PostMapping("/doManageDocumentAlter") |
| | | public Result doManageDocumentAlter(ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.doManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "å®¡æ ¸æä»¶åæ´") |
| | | @PostMapping("/checkManageDocumentAlter") |
| | | public Result checkManageDocumentAlter(ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.checkManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "å®¡æ ¸æ¥çéä»¶") |
| | | @GetMapping("/checkManageDocumentAlterPdf") |
| | | public void checkManageDocumentAlterPdf(Long id, HttpServletResponse response)throws Exception { |
| | | manageDocumentAlterService.checkManageDocumentAlterPdf(id,response); |
| | | } |
| | | |
| | | @Operation(summary = "å¯¼åºæä»¶åæ´") |
| | | @GetMapping("/exportManageDocumentAlter") |
| | | public void exportManageDocumentAlter(ManageDocumentAlter manageDocumentAlter,HttpServletResponse response) throws Exception { |
| | | manageDocumentAlterService.exportManageDocumentAlter(manageDocumentAlter,response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageDocumentCancel; |
| | | import com.ruoyi.manage.service.ManageDocumentCancelService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä½åº å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-09 02:37:35 |
| | | */ |
| | | @Tag(name = "管çä½ç³»æä»¶çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageDocumentCancel") |
| | | public class ManageDocumentCancelController { |
| | | |
| | | @Resource |
| | | private ManageDocumentCancelService manageDocumentCancelService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æä»¶ä½åº") |
| | | @GetMapping("/pageManageDocumentCancel") |
| | | public Result pageManageDocumentCancel(Page page,ManageDocumentCancel manageDocumentCancel) throws Exception { |
| | | return Result.success(manageDocumentCancelService.pageManageDocumentCancel(page, manageDocumentCancel)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢æä»¶ä½åº") |
| | | @PostMapping("/addManageDocumentCancel") |
| | | public Result addManageDocumentCancel(@RequestBody ManageDocumentCancel manageDocumentCancel) { |
| | | return Result.success(manageDocumentCancelService.addManageDocumentCancel(manageDocumentCancel)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "å®¡æ ¸æä»¶ä½åº") |
| | | @PostMapping("/checkManageDocumentCancel") |
| | | public Result checkManageDocumentCancel(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String state = (String) param.get("state"); |
| | | return Result.success(manageDocumentCancelService.checkManageDocumentCancel(id, state)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿件ä½åº") |
| | | @DeleteMapping("/delManageDocumentCancel") |
| | | public Result delManageDocumentCancel(Integer id) { |
| | | return Result.success(manageDocumentCancelService.delManageDocumentCancel(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "æ¥çæä»¶ä½åº") |
| | | @GetMapping("/getManageDocumentCancel") |
| | | public Result getManageDocumentCancel(Integer id) { |
| | | return Result.success(manageDocumentCancelService.getManageDocumentCancel(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾æä»¶ä½åº") |
| | | @PostMapping("/doManageDocumentCancel") |
| | | public Result doManageDocumentCancel(@RequestBody ManageDocumentCancel manageDocumentCancel) { |
| | | return Result.success(manageDocumentCancelService.doManageDocumentCancel(manageDocumentCancel)); |
| | | } |
| | | |
| | | @Operation(summary = "å¯¼åºæä»¶ä½åº") |
| | | @GetMapping("/exportManageDocumentCancel") |
| | | public void exportManageDocumentCancel(ManageDocumentCancel manageDocumentCancel,HttpServletResponse response) throws Exception { |
| | | manageDocumentCancelService.exportManageDocumentCancel(manageDocumentCancel,response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageDocumentControlled; |
| | | import com.ruoyi.manage.service.ManageDocumentControlledService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ§ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-08 02:54:44 |
| | | */ |
| | | @Tag(name = "管çä½ç³»æä»¶çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageDocumentControlled") |
| | | public class ManageDocumentControlledController { |
| | | |
| | | @Resource |
| | | private ManageDocumentControlledService manageDocumentControlledService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æä»¶åæ§") |
| | | @GetMapping("/pageManageDocumentControlled") |
| | | public Result pageManageDocumentControlled(Page page,ManageDocumentControlled manageDocumentControlled) throws Exception { |
| | | return Result.success(manageDocumentControlledService.pageManageDocumentControlled(page, manageDocumentControlled)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢æä»¶åæ§") |
| | | @PostMapping("/addManageDocumentControlled") |
| | | public Result addManageDocumentControlled(ManageDocumentControlled manageDocumentControlled){ |
| | | return Result.success(manageDocumentControlledService.addManageDocumentControlled(manageDocumentControlled)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "æ¥çæä»¶åæ§") |
| | | @GetMapping("/getManageDocumentControlled") |
| | | public Result getManageDocumentControlled(Long id){ |
| | | return Result.success(manageDocumentControlledService.getManageDocumentControlled(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾æä»¶åæ§") |
| | | @PostMapping("/doManageDocumentControlled") |
| | | public Result doManageDocumentControlled(ManageDocumentControlled manageDocumentControlled){ |
| | | return Result.success(manageDocumentControlledService.doManageDocumentControlled(manageDocumentControlled)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿件忧") |
| | | @DeleteMapping("/delManageDocumentControlled") |
| | | public Result delManageDocumentControlled(Long id){ |
| | | return Result.success(manageDocumentControlledService.delManageDocumentControlled(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "å®¡æ ¸æä»¶åæ§") |
| | | @PostMapping("/checkManageDocumentControlled") |
| | | public Result checkManageDocumentControlled(ManageDocumentControlled manageDocumentControlled){ |
| | | return Result.success(manageDocumentControlledService.checkManageDocumentControlled(manageDocumentControlled)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "å®¡æ ¸æ¥çéä»¶") |
| | | @GetMapping("/checkManageDocumentControlledPdf") |
| | | public void checkManageDocumentControlledPdf(Long id, HttpServletResponse response)throws Exception { |
| | | manageDocumentControlledService.checkManageDocumentControlledPdf(id,response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.dto.ManageDocumentIssueRecycleDto; |
| | | import com.ruoyi.manage.pojo.ManageDocumentIssueRecycle; |
| | | import com.ruoyi.manage.service.ManageDocumentIssueRecycleService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ¾åæ¶ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-09 09:18:24 |
| | | */ |
| | | @Tag(name = "管çä½ç³»æä»¶çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageDocumentIssueRecycle") |
| | | public class ManageDocumentIssueRecycleController { |
| | | |
| | | @Resource |
| | | private ManageDocumentIssueRecycleService manageDocumentIssueRecycleService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æä»¶åæ¾åæ¶") |
| | | @GetMapping("/pageManageDocumentIssueRecycle") |
| | | public Result pageManageDocumentIssueRecycle(Page page,ManageDocumentIssueRecycleDto manageDocumentIssueRecycleDto) throws Exception { |
| | | return Result.success(manageDocumentIssueRecycleService.pageManageDocumentIssueRecycle(page, manageDocumentIssueRecycleDto)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢æä»¶åæ¾åæ¶") |
| | | @PostMapping("/addManageDocumentIssueRecycle") |
| | | public Result addManageDocumentIssueRecycle(ManageDocumentIssueRecycle manageDocumentIssueRecycle){ |
| | | return Result.success(manageDocumentIssueRecycleService.addManageDocumentIssueRecycle(manageDocumentIssueRecycle)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿件忾忶") |
| | | @DeleteMapping("/delManageDocumentIssueRecycle") |
| | | public Result delManageDocumentIssueRecycle(Long id){ |
| | | return Result.success(manageDocumentIssueRecycleService.delManageDocumentIssueRecycle(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "æ¥çæä»¶åæ¾åæ¶") |
| | | @GetMapping("/getManageDocumentIssueRecycle") |
| | | public Result getManageDocumentIssueRecycle(Long id){ |
| | | return Result.success(manageDocumentIssueRecycleService.getManageDocumentIssueRecycle(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾æä»¶åæ¾åæ¶") |
| | | @PostMapping("/doManageDocumentIssueRecycle") |
| | | public Result doManageDocumentIssueRecycle(@RequestBody ManageDocumentIssueRecycle manageDocumentIssueRecycle){ |
| | | return Result.success(manageDocumentIssueRecycleService.doManageDocumentIssueRecycle(manageDocumentIssueRecycle)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "å®¡æ ¸æä»¶åæ¾åæ¶") |
| | | @PostMapping("/checkManageDocumentIssueRecycle") |
| | | public Result checkManageDocumentIssueRecycle(@RequestBody ManageDocumentIssueRecycle manageDocumentIssueRecycle){ |
| | | return Result.success(manageDocumentIssueRecycleService.checkManageDocumentIssueRecycle(manageDocumentIssueRecycle.getId(),manageDocumentIssueRecycle.getDocumentState())); |
| | | } |
| | | |
| | | @Operation(summary = "å¯¼åºæä»¶åæ¾åæ¶") |
| | | @GetMapping("/exportManageDocumentIssueRecycle") |
| | | public void exportManageDocumentIssueRecycle(ManageDocumentIssueRecycleDto manageDocumentIssueRecycleDto, HttpServletResponse response) throws Exception { |
| | | manageDocumentIssueRecycleService.exportManageDocumentIssueRecycle(manageDocumentIssueRecycleDto,response); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.read.builder.ExcelReaderBuilder; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.excel.ManageDocumentListListener; |
| | | import com.ruoyi.manage.pojo.ManageDocumentList; |
| | | import com.ruoyi.manage.service.ManageDocumentListService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶æ¸
å |
| | | å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-08 11:08:11 |
| | | */ |
| | | @Tag(name = "管çä½ç³»æä»¶çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageDocumentList") |
| | | public class ManageDocumentListController { |
| | | |
| | | @Resource |
| | | private ManageDocumentListService manageDocumentListService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æä»¶æ¸
å") |
| | | @GetMapping("/pageManageDocumentList") |
| | | public Result pageManageDocumentList(Page page,ManageDocumentList manageDocumentList) throws Exception { |
| | | return Result.success(manageDocumentListService.pageManageDocumentList(page, manageDocumentList)); |
| | | } |
| | | |
| | | @Operation(summary = "ç¼è¾æä»¶æ¸
å") |
| | | @PostMapping("/doManageDocumentList") |
| | | public Result doManageDocumentList(@RequestBody ManageDocumentList manageDocumentList) { |
| | | return Result.success(manageDocumentListService.updateById(manageDocumentList)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿件æ¸
å") |
| | | @DeleteMapping("/delManageDocumentList") |
| | | public Result delManageDocumentList(Integer id) { |
| | | return Result.success(manageDocumentListService.removeById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¸ä¼ éä»¶-æä»¶æ¸
å") |
| | | @PostMapping("/uploadFileManageDocumentList") |
| | | public Result uploadFileManageDocumentList(Integer id, MultipartFile file) { |
| | | return Result.success(manageDocumentListService.uploadFile(id,file)); |
| | | } |
| | | |
| | | @Operation(summary = "导å
¥æä»¶æ¸
åå表") |
| | | @PostMapping("/exportManageDocumentList") |
| | | public Result exportManageDocumentList(MultipartFile file) { |
| | | try { |
| | | // è¡¨å¤´æ ¡éªæ¨¡æ¿æ¯å¦æ£ç¡® |
| | | EasyExcel.read(file.getInputStream(), ManageDocumentList.class, new ManageDocumentListListener(manageDocumentListService)).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.dto.ManageMeetingDto; |
| | | import com.ruoyi.manage.service.ManageMeetingService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-11 09:33:47 |
| | | */ |
| | | @Tag(name = "管çè¯å®¡ä¼è®®") |
| | | @RestController |
| | | @RequestMapping("/manageMeeting") |
| | | public class ManageMeetingController { |
| | | |
| | | @Resource |
| | | private ManageMeetingService manageMeetingService; |
| | | |
| | | @Operation(summary = "管çè¯å®¡ä¼è®®è®°å½æ¥è¯¢") |
| | | @GetMapping("/getPageMeeting") |
| | | public Result<IPage<ManageMeetingDto>> getPageMeeting(Page page, String startTime, String endTime, String place) throws Exception { |
| | | IPage<ManageMeetingDto> ipage = manageMeetingService.page(page,startTime,endTime,place); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢ä¼è®®è®°å½") |
| | | @PostMapping("/addMeeting") |
| | | public Result addMeeting(@RequestBody ManageMeetingDto dto){ |
| | | manageMeetingService.addMeeting(dto); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "ç¼è¾ä¼è®®è®°å½") |
| | | @PostMapping("/modifyMeeting") |
| | | public Result modifyMeeting(@RequestBody ManageMeetingDto manageMeetingDto){ |
| | | return Result.success(manageMeetingService.modifyMeeting(manageMeetingDto)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤ä¼è®®è®°å½") |
| | | @DeleteMapping("/deleteMeeting") |
| | | public Result deleteMeeting(Integer id){ |
| | | return Result.success(manageMeetingService.removeById(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ä¸è½½ä¼è®®è®°å½") |
| | | @GetMapping("/exportMeeting") |
| | | public void exportMeeting(Integer id, HttpServletResponse response){ |
| | | manageMeetingService.exportMeeting(id,response); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | import com.ruoyi.manage.service.ManageMeetingParticipantsService; |
| | | import com.ruoyi.manage.vo.MeetingParticipantsDetailsVo; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-11 09:34:27 |
| | | */ |
| | | @Tag(name = "管çè¯å®¡ä¼è®®") |
| | | @RestController |
| | | @RequestMapping("/manageMeetingParticipants") |
| | | public class ManageMeetingParticipantsController { |
| | | |
| | | @Resource |
| | | private ManageMeetingParticipantsService manageMeetingParticipantsService; |
| | | |
| | | |
| | | @Operation(summary = "æ¥è¯¢ä¼è®®è®°å½åä¼äººå") |
| | | @GetMapping("/getParticipants") |
| | | public Result<MeetingParticipantsDetailsVo> getParticipants(Integer id){ |
| | | return Result.success(manageMeetingParticipantsService.getParticipants(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢ä¼è®®è®°å½åä¼äººå") |
| | | @PostMapping("/add") |
| | | public Result addParticipants(@RequestBody List<ManageMeetingParticipants> list){ |
| | | manageMeetingParticipantsService.saveBatch(list); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤ä¼è®®è®°å½åä¼äººå") |
| | | @DeleteMapping("/delete") |
| | | public Result deleteParticipants(List<Integer> ids){ |
| | | manageMeetingParticipantsService.removeByIds(ids); |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordAudit; |
| | | import com.ruoyi.manage.service.ManageRecordAuditService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-14 10:29:18 |
| | | */ |
| | | @Tag(name = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordAudit") |
| | | public class ManageRecordAuditController { |
| | | |
| | | @Resource |
| | | private ManageRecordAuditService manageRecordAuditService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @GetMapping("/pageManageRecordAudit") |
| | | public Result pageManageRecordAudit(Page page,ManageRecordAudit manageRecordAudit) throws Exception { |
| | | return Result.success(manageRecordAuditService.pageManageRecordAudit(page, manageRecordAudit)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/addManageRecordAudit") |
| | | public Result addManageRecordAudit(ManageRecordAudit manageRecordAudit){ |
| | | return Result.success(manageRecordAuditService.addManageRecordAudit(manageRecordAudit)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/doManageRecordAudit") |
| | | public Result doManageRecordAudit(ManageRecordAudit manageRecordAudit){ |
| | | return Result.success(manageRecordAuditService.doManageRecordAudit(manageRecordAudit)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @DeleteMapping("/delManageRecordAudit") |
| | | public Result delManageRecordAudit(Integer id){ |
| | | return Result.success(manageRecordAuditService.removeById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ¹åæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/ratifyManageRecordAudit") |
| | | public Result ratifyManageRecordAudit(@RequestBody Map<String, Integer> param){ |
| | | Integer id = param.get("id"); |
| | | return Result.success(manageRecordAuditService.ratifyManageRecordAudit(id)); |
| | | } |
| | | |
| | | @Operation(summary = "å¯¼åºæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @GetMapping("/exportOutManageRecordAudit") |
| | | public Result exportOutManageRecordAudit(ManageRecordAudit manageRecordAudit, HttpServletResponse response) { |
| | | return Result.success(manageRecordAuditService.exportOutManageRecordAudit(manageRecordAudit,response)); |
| | | } |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordCancel; |
| | | import com.ruoyi.manage.service.ManageRecordCancelService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDate; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½åºæä»¶ééè®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 01:27:22 |
| | | */ |
| | | @Tag(name = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordCancel") |
| | | public class ManageRecordCancelController { |
| | | |
| | | @Resource |
| | | private ManageRecordCancelService manageRecordCancelService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢ä½åºæä»¶éæ¯è®°å½") |
| | | @GetMapping("/pageManageRecordCancel") |
| | | public Result pageManageRecordCancel(Page page,ManageRecordCancel manageRecordCancel) throws Exception { |
| | | return Result.success(manageRecordCancelService.pageManageRecordCancel(page, manageRecordCancel)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/addManageRecordCancel") |
| | | public Result addManageRecordCancel(@RequestBody ManageRecordCancel manageRecordCancel){ |
| | | manageRecordCancel.setCreateTime(LocalDate.now()); |
| | | return Result.success(manageRecordCancelService.save(manageRecordCancel)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/doManageRecordCancel") |
| | | public Result doManageRecordCancel(@RequestBody ManageRecordCancel manageRecordCancel){ |
| | | return Result.success(manageRecordCancelService.updateById(manageRecordCancel)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤ä½åºæä»¶éæ¯è®°å½") |
| | | @DeleteMapping("/delManageRecordCancel") |
| | | public Result delManageRecordCancel(Integer id){ |
| | | return Result.success(manageRecordCancelService.removeById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ¹åä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/ratifyManageRecordCancel") |
| | | public Result ratifyManageRecordCancel(@RequestBody Map<String, Object> param){ |
| | | Integer id = (Integer) param.get("id"); |
| | | String ratifyState = (String) param.get("ratifyState"); |
| | | return Result.success(manageRecordCancelService.ratifyManageRecordCancel(id,ratifyState)); |
| | | } |
| | | |
| | | @Operation(summary = "导åºä½åºæä»¶éæ¯è®°å½") |
| | | @GetMapping("/exportOutManageRecordCancel") |
| | | public Result exportOutManageRecordCancel(ManageRecordCancel manageRecordCancel, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordCancelService.exportOutManageRecordCancel(manageRecordCancel,response)); |
| | | } |
| | | |
| | | @Operation(summary = "导å
¥ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/exportInManageRecordCancel") |
| | | public Result exportInManageRecordCancel(MultipartFile file){ |
| | | try { |
| | | return Result.success(manageRecordCancelService.exportInManageRecordCancel(file)); |
| | | }catch (Exception e){ |
| | | return Result.fail(e.getMessage()); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordCheck; |
| | | import com.ruoyi.manage.service.ManageRecordCheckService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®¡æ¹è®°å½(å«ä¿®è®¢å忬¡å®¡æ¹è®°å½) å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 02:31:36 |
| | | */ |
| | | @Tag(name = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordCheck") |
| | | public class ManageRecordCheckController { |
| | | |
| | | @Resource |
| | | private ManageRecordCheckService manageRecordCheckService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æä»¶å®¡æ¹è®°å½") |
| | | @GetMapping("/pageManageRecordCheck") |
| | | public Result pageManageRecordCheck(Page page,ManageRecordCheck manageRecordCheck) throws Exception { |
| | | return Result.success(manageRecordCheckService.pageManageRecordCheck(page, manageRecordCheck)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢æä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/addManageRecordCheck") |
| | | public Result addManageRecordCheck(@RequestBody ManageRecordCheck manageRecordCheck) { |
| | | return Result.success(manageRecordCheckService.save(manageRecordCheck)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾æä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/doManageRecordCheck") |
| | | public Result doManageRecordCheck(@RequestBody ManageRecordCheck manageRecordCheck) { |
| | | return Result.success(manageRecordCheckService.updateById(manageRecordCheck)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿件审æ¹è®°å½") |
| | | @DeleteMapping("/delManageRecordCheck") |
| | | public Result delManageRecordCheck(Integer id) { |
| | | return Result.success(manageRecordCheckService.removeById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "å®¡æ ¸æä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/checkManageRecordCheck") |
| | | public Result checkManageRecordCheck(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String checkState = (String) param.get("checkState"); |
| | | return Result.success(manageRecordCheckService.checkManageRecordCheck(id,checkState)); |
| | | } |
| | | |
| | | @Operation(summary = "æ¹åæä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/ratifyManageRecordCheck") |
| | | public Result ratifyManageRecordCheck(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String ratifyState = (String) param.get("ratifyState"); |
| | | return Result.success(manageRecordCheckService.ratifyManageRecordCheck(id,ratifyState)); |
| | | } |
| | | |
| | | @Operation(summary = "å¯¼åºæä»¶å®¡æ¹è®°å½") |
| | | @GetMapping("/exportOutManageRecordCheck") |
| | | public Result exportOutManageRecordCheck(ManageRecordCheck manageRecordCheck, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordCheckService.exportOutManageRecordCheck(manageRecordCheck,response)); |
| | | } |
| | | |
| | | @Operation(summary = "导å
¥æä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/exportInManageRecordCheck") |
| | | public Result exportInManageRecordCheck(MultipartFile file){ |
| | | return Result.success(manageRecordCheckService.exportInManageRecordCheck(file)); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervals; |
| | | import com.ruoyi.manage.service.ManageRecordIntervalsService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 10:54:31 |
| | | */ |
| | | @Tag(name = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordIntervals") |
| | | public class ManageRecordIntervalsController { |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsService manageRecordIntervalsService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æä»¶å®æå®¡æ¥è®°å½") |
| | | @GetMapping("/pageManageRecordIntervals") |
| | | public Result pageManageRecordIntervals(Page page,ManageRecordIntervals manageRecordIntervals) throws Exception { |
| | | return Result.success(manageRecordIntervalsService.pageManageRecordIntervals(page, manageRecordIntervals)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢æä»¶å®æå®¡æ¥è®°å½") |
| | | @PostMapping("/addManageRecordIntervals") |
| | | public Result addManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { |
| | | return Result.success(manageRecordIntervalsService.addManageRecordIntervals(manageRecordIntervals)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾æä»¶å®æå®¡æ¥è®°å½") |
| | | @PostMapping("/doManageRecordIntervals") |
| | | public Result doManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { |
| | | return Result.success(manageRecordIntervalsService.updateById(manageRecordIntervals)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿件宿审æ¥è®°å½") |
| | | @DeleteMapping("/delManageRecordIntervals") |
| | | public Result delManageRecordIntervals(Integer id) { |
| | | return Result.success(manageRecordIntervalsService.delManageRecordIntervals(id)); |
| | | } |
| | | |
| | | @Operation(summary = "å¯¼åºæä»¶å®æå®¡æ¥è®°å½") |
| | | @GetMapping("/exportOutManageRecordIntervals") |
| | | public Result exportOutManageRecordIntervals(ManageRecordIntervals manageRecordIntervals, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordIntervalsService.exportOutManageRecordIntervals(manageRecordIntervals,response)); |
| | | } |
| | | |
| | | @Operation(summary = "导å
¥æä»¶å®æå®¡æ¥è®°å½") |
| | | @PostMapping("/exportInManageRecordIntervals") |
| | | public Result exportInManageRecordIntervals(MultipartFile file){ |
| | | return Result.success(manageRecordIntervalsService.exportInManageRecordIntervals(file)); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervalsTotal; |
| | | import com.ruoyi.manage.service.ManageRecordIntervalsTotalService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½æ»åå²è®°å½è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-15 01:12:11 |
| | | */ |
| | | @Tag(name = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordIntervalsTotal") |
| | | public class ManageRecordIntervalsTotalController { |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsTotalService manageRecordIntervalsTotalService; |
| | | |
| | | @Operation(summary = "æ¥è¯¢æä»¶å®æå®¡æ¥è®°å½åå²å表") |
| | | @GetMapping("/pageManageRecordIntervalsTotal") |
| | | public Result pageManageRecordIntervalsTotal(Page page,ManageRecordIntervalsTotal manageRecordIntervalsTotal) throws Exception { |
| | | return Result.success(manageRecordIntervalsTotalService.pageManageRecordIntervalsTotal(page, manageRecordIntervalsTotal)); |
| | | } |
| | | |
| | | @Operation(summary = "æäº¤æä»¶å®æå®¡æ¥è®°å½åå²å表") |
| | | @PostMapping("/submitManageRecordIntervalsTotal") |
| | | public Result submitManageRecordIntervalsTotal(@RequestBody Map<String, Integer> param) { |
| | | Integer id = param.get("id"); |
| | | return Result.success(manageRecordIntervalsTotalService.submitManageRecordIntervalsTotal(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ¹åæä»¶å®æå®¡æ¥è®°å½åå²å表") |
| | | @PostMapping("/ratifyManageRecordIntervalsTotal") |
| | | public Result ratifyManageRecordIntervalsTotal(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String ratifyState = (String) param.get("ratifyState"); |
| | | return Result.success(manageRecordIntervalsTotalService.ratifyManageRecordIntervalsTotal(id, ratifyState)); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordIssueRecycle; |
| | | import com.ruoyi.manage.service.ManageRecordIssueRecycleService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æææä»¶(å
ãå¤é¨æä»¶)çåæ¾ä¸åæ¶è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 09:11:05 |
| | | */ |
| | | @Tag(name = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordIssueRecycle") |
| | | public class ManageRecordIssueRecycleController { |
| | | |
| | | @Resource |
| | | private ManageRecordIssueRecycleService manageRecordIssueRecycleService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢æææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @GetMapping("/pageManageRecordIssueRecycle") |
| | | public Result pageManageRecordIssueRecycle(Page page,ManageRecordIssueRecycle manageRecordIssueRecycle) throws Exception { |
| | | return Result.success(manageRecordIssueRecycleService.pageManageRecordIssueRecycle(page, manageRecordIssueRecycle)); |
| | | } |
| | | |
| | | @Operation(summary = "å 餿ææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @DeleteMapping("/delManageRecordIssueRecycle") |
| | | public Result delManageRecordIssueRecycle(Integer id){ |
| | | return Result.success(manageRecordIssueRecycleService.removeById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢æææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @PostMapping("/addManageRecordIssueRecycle") |
| | | public Result addManageRecordIssueRecycle(@RequestBody ManageRecordIssueRecycle manageRecordIssueRecycle){ |
| | | return Result.success(manageRecordIssueRecycleService.addManageRecordIssueRecycle(manageRecordIssueRecycle)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ç¼è¾æææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @PostMapping("/doManageRecordIssueRecycle") |
| | | public Result doManageRecordIssueRecycle(@RequestBody ManageRecordIssueRecycle manageRecordIssueRecycle){ |
| | | return Result.success(manageRecordIssueRecycleService.doManageRecordIssueRecycle(manageRecordIssueRecycle)); |
| | | } |
| | | |
| | | @Operation(summary = "å¯¼åºæææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @GetMapping("/exportOutManageRecordIssueRecycle") |
| | | public Result exportOutManageRecordIssueRecycle(ManageRecordIssueRecycle manageRecordIssueRecycle, HttpServletResponse response) { |
| | | return Result.success(manageRecordIssueRecycleService.exportOutManageRecordIssueRecycle(manageRecordIssueRecycle,response)); |
| | | } |
| | | |
| | | @Operation(summary = "导å
¥æææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @PostMapping("/exportInManageRecordIssueRecycle") |
| | | public Result exportInManageRecordIssueRecycle(MultipartFile file){ |
| | | return Result.success(manageRecordIssueRecycleService.exportInManageRecordIssueRecycle(file)); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordTotal; |
| | | import com.ruoyi.manage.service.ManageRecordTotalService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½æ»åå²è®°å½è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 10:30:08 |
| | | */ |
| | | @Tag(name = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordTotal") |
| | | public class ManageRecordTotalController { |
| | | |
| | | @Resource |
| | | private ManageRecordTotalService manageRecordTotalService; |
| | | |
| | | @Operation(summary = "æ¥è¯¢å¤æ¥æä»¶ç¡®è®¤è®°å½åå²å表") |
| | | @GetMapping("/pageManageRecordTotal") |
| | | public Result pageManageRecordTotal(Page page, ManageRecordTotal manageRecordTotal) throws Exception { |
| | | return Result.success(manageRecordTotalService.pageManageRecordTotal(page, manageRecordTotal)); |
| | | } |
| | | |
| | | @Operation(summary = "æäº¤å¤æ¥æä»¶ç¡®è®¤è®°å½åå²å表") |
| | | @PostMapping("/submitManageRecordTotal") |
| | | public Result submitManageRecordTotal(@RequestBody Map<String, Integer> param) { |
| | | Integer id = param.get("id"); |
| | | return Result.success(manageRecordTotalService.submitManageRecordTotal(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ¹å夿¥æä»¶ç¡®è®¤è®°å½åå²å表") |
| | | @PostMapping("/ratifyManageRecordTotal") |
| | | public Result ratifyManageRecordTotal(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String ratifyState = (String) param.get("ratifyState"); |
| | | return Result.success(manageRecordTotalService.ratifyManageRecordTotal(id, ratifyState)); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordVerify; |
| | | import com.ruoyi.manage.service.ManageRecordVerifyService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 10:29:44 |
| | | */ |
| | | @Tag(name = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordVerify") |
| | | public class ManageRecordVerifyController { |
| | | |
| | | @Resource |
| | | private ManageRecordVerifyService manageRecordVerifyService; |
| | | |
| | | |
| | | @Operation(summary = "æ¥è¯¢å¤æ¥æä»¶ç¡®è®¤è®°å½è¯¦æ
") |
| | | @GetMapping("/pageManageRecordVerify") |
| | | public Result pageManageRecordVerify(Page page,ManageRecordVerify manageRecordVerify) throws Exception { |
| | | return Result.success(manageRecordVerifyService.pageManageRecordVerify(page, manageRecordVerify)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢å¤æ¥æä»¶ç¡®è®¤è®°å½") |
| | | @PostMapping("/addManageRecordVerify") |
| | | public Result addManageRecordVerify(@RequestBody ManageRecordVerify manageRecordVerify) { |
| | | return Result.success(manageRecordVerifyService.addManageRecordVerify(manageRecordVerify)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤å¤æ¥æä»¶ç¡®è®¤è®°å½") |
| | | @DeleteMapping("/delManageRecordVerify") |
| | | public Result delManageRecordVerify(Integer id) { |
| | | return Result.success(manageRecordVerifyService.delManageRecordVerify(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ä¿®æ¹å¤æ¥æä»¶ç¡®è®¤è®°å½") |
| | | @PostMapping("/doManageRecordVerify") |
| | | public Result doManageRecordVerify(@RequestBody ManageRecordVerify manageRecordVerify) { |
| | | return Result.success(manageRecordVerifyService.updateById(manageRecordVerify)); |
| | | } |
| | | |
| | | @Operation(summary = "导å
¥å¤æ¥æä»¶ç¡®è®¤è®°å½") |
| | | @PostMapping("/exportManageRecordVerify") |
| | | public Result exportManageRecordVerify(MultipartFile file) { |
| | | return Result.success(manageRecordVerifyService.exportManageRecordVerify(file)); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.pojo.ManageReviewProgram; |
| | | import com.ruoyi.manage.service.ManageReviewProgramService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-09 03:05:42 |
| | | */ |
| | | @Tag(name = "管çè¯å®¡è®¡å") |
| | | @RestController |
| | | @RequestMapping("/manageReviewProgram") |
| | | public class ManageReviewProgramController { |
| | | @Resource |
| | | private ManageReviewProgramService manageReviewProgramService; |
| | | |
| | | |
| | | @Operation(summary = "æ¥è¯¢è¯å®¡è®¡å") |
| | | @GetMapping("/getPageReviewProgram") |
| | | public Result<IPage<ManageReviewProgram>> getPageReviewProgram(Page page, String startTime,String endTime, String judgingLocation) { |
| | | IPage<ManageReviewProgram> ipage = manageReviewProgramService.page(page,startTime,endTime,judgingLocation); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "æ°å¢è¯å®¡è®¡å") |
| | | @PostMapping("/addReviewProgram") |
| | | public Result addReviewProgram(@RequestBody ManageReviewProgram manageReviewProgram){ |
| | | return Result.success(manageReviewProgramService.addReviewProgram(manageReviewProgram)); |
| | | } |
| | | |
| | | @Operation(summary = "ç¼è¾è¯å®¡è®¡å") |
| | | @PostMapping("/modifyReviewProgram") |
| | | public Result modifyReviewProgram(@RequestBody ManageReviewProgram manageReviewProgram){ |
| | | return Result.success(manageReviewProgramService.updateById(manageReviewProgram)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤è¯å®¡è®¡å") |
| | | @DeleteMapping("/deleteReviewProgram") |
| | | public Result deleteReviewProgram( Integer id){ |
| | | return Result.success(manageReviewProgramService.removeById(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "ä¸è½½è¯å®¡è®¡å") |
| | | @GetMapping("/exportReviewProgram") |
| | | public void exportReviewProgram(Integer id, HttpServletResponse response){ |
| | | manageReviewProgramService.exportReviewProgram(id,response); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.service.ManageReviewProgramFileService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-09 04:15:47 |
| | | */ |
| | | @Tag(name = "管çè¯å®¡è®¡åæä»¶") |
| | | @RestController |
| | | @RequestMapping("/manageReviewProgramFile") |
| | | public class ManageReviewProgramFileController { |
| | | |
| | | @Resource |
| | | private ManageReviewProgramFileService manageReviewProgramFileService; |
| | | |
| | | @Operation(summary = "æ¥è¯¢è¯å®¡è®¡åæä»¶") |
| | | @GetMapping("/selectReviewProgramFile") |
| | | public Result selectReviewProgramFile(Integer id){ |
| | | return Result.success(manageReviewProgramFileService.selectFile(id)); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "æ°å¢è¯å®¡è®¡åæä»¶") |
| | | @PostMapping("/addReviewProgramFile") |
| | | public Result addReviewProgramFile(MultipartFile file,Integer id){ |
| | | manageReviewProgramFileService.addFile(file,id); |
| | | return Result.success(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.pojo.ManageReviewReport; |
| | | import com.ruoyi.manage.service.ManageReviewReportService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 管çè¯å®¡æ¥å å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 04:44:39 |
| | | */ |
| | | @Tag(name = "管çè¯å®¡æ¥å") |
| | | @RestController |
| | | @RequestMapping("/manageReviewReport") |
| | | public class ManageReviewReportController { |
| | | |
| | | @Resource |
| | | private ManageReviewReportService manageReviewReportService; |
| | | |
| | | @Operation(summary = "æ¥è¯¢ç®¡çè¯å®¡æ¥å") |
| | | @GetMapping("/getPageReviewReport") |
| | | public Result<IPage<ManageReviewReport>> getPageReviewReport(Page page, String startTime, String endTime, String place) { |
| | | IPage<ManageReviewReport> ipage = manageReviewReportService.page(page,startTime,endTime,place); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢ç®¡çè¯å®¡æ¥å") |
| | | @PostMapping("/addReviewReport") |
| | | public Result addReviewReport(@RequestBody ManageReviewReport manageReviewReport){ |
| | | return Result.success(manageReviewReportService.save(manageReviewReport)); |
| | | } |
| | | |
| | | @Operation(summary = "ç¼è¾ç®¡çè¯å®¡æ¥å") |
| | | @PostMapping("/modifyReviewReport") |
| | | public Result modifyReviewReport(@RequestBody ManageReviewReport manageReviewReport){ |
| | | return Result.success(manageReviewReportService.updateById(manageReviewReport)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤ç®¡çè¯å®¡æ¥å") |
| | | @DeleteMapping("/deleteReviewReport") |
| | | public Result deleteReviewReport(Integer id){ |
| | | return Result.success(manageReviewReportService.removeById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¸è½½ç®¡çè¯å®¡æ¥å") |
| | | @GetMapping("/exportReviewReport") |
| | | public void exportReviewReport(Integer id , HttpServletResponse response){ |
| | | manageReviewReportService.exportReviewReport(id,response); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.enums.CellExtraTypeEnum; |
| | | import com.alibaba.excel.read.listener.PageReadListener; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.pojo.ManageRiskAssessmentResults; |
| | | import com.ruoyi.manage.service.ManageRiskAssessmentResultsService; |
| | | import com.ruoyi.manage.vo.ManageRiskAssessmentResultsVo; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-15 02:58:51 |
| | | */ |
| | | @Tag(name = "å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨") |
| | | @RestController |
| | | @RequestMapping("/manageRiskAssessmentResults") |
| | | public class ManageRiskAssessmentResultsController { |
| | | |
| | | @Resource |
| | | private ManageRiskAssessmentResultsService manageRiskAssessmentResultsService; |
| | | |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @GetMapping("/getPageResults") |
| | | public Result<IPage<ManageRiskAssessmentResultsVo>> getPageResults(Page page) { |
| | | IPage<ManageRiskAssessmentResultsVo> ipage = manageRiskAssessmentResultsService.getPageResults(page); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @Operation(summary = "æ¹å") |
| | | @PostMapping("/hazardIdentificationAndRiskApproval") |
| | | public Result<?> hazardIdentificationAndRiskApproval(@RequestBody Map<String, Integer> param) { |
| | | Integer approve = param.get("approve"); |
| | | Integer status = param.get("status"); |
| | | manageRiskAssessmentResultsService.update(Wrappers.<ManageRiskAssessmentResults>lambdaUpdate() |
| | | .set(ManageRiskAssessmentResults::getApprove, approve) |
| | | .set(ManageRiskAssessmentResults::getApproveStatus, status) |
| | | .set(ManageRiskAssessmentResults::getApproveDate, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "审æ¹") |
| | | @PostMapping("/dangerousRiskApproval") |
| | | public Result<?> dangerousRiskApproval(@RequestBody Map<String, Integer> param) { |
| | | Integer approval = param.get("approval"); |
| | | Integer status = param.get("status"); |
| | | manageRiskAssessmentResultsService.update(Wrappers.<ManageRiskAssessmentResults>lambdaUpdate() |
| | | .set(ManageRiskAssessmentResults::getApproval, approval) |
| | | .set(ManageRiskAssessmentResults::getApprovalStatus, status) |
| | | .set(ManageRiskAssessmentResults::getApprovalDate, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @Operation(summary = "导å
¥") |
| | | @PostMapping("/riskAssessmentImport") |
| | | public void riskAssessmentImport(MultipartFile file) throws IOException { |
| | | boolean excelFile = isExcelFile(file); |
| | | if (!excelFile) { |
| | | throw new ErrorException("请导å
¥excelæä»¶ï¼"); |
| | | } |
| | | EasyExcel.read(file.getInputStream(), ManageRiskAssessmentResults.class, new PageReadListener<ManageRiskAssessmentResults>(dataList -> { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | dataList.forEach(i -> { |
| | | i.setEditor(userId); |
| | | i.setEditorDate(LocalDateTime.now()); |
| | | i.setApproveStatus(0); |
| | | i.setApprovalStatus(0); |
| | | }); |
| | | manageRiskAssessmentResultsService.saveOrUpdateBatch(dataList); |
| | | })).extraRead(CellExtraTypeEnum.MERGE).sheet().doRead(); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢") |
| | | @PostMapping("/addNewRiskFactors") |
| | | public void addNewRiskFactors(@RequestBody ManageRiskAssessmentResults manageRiskAssessmentResults) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | manageRiskAssessmentResults.setEditor(userId); |
| | | manageRiskAssessmentResults.setEditorDate(LocalDateTime.now()); |
| | | manageRiskAssessmentResultsService.saveOrUpdate(manageRiskAssessmentResults); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤") |
| | | @DeleteMapping("/removeRiskFactors") |
| | | public void removeRiskFactors(Integer id) { |
| | | manageRiskAssessmentResultsService.removeById(id); |
| | | } |
| | | |
| | | |
| | | @Operation(summary = "导åºå±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§") |
| | | @GetMapping("/exportHazardFactorIdentification") |
| | | public void exportPersonTraining(HttpServletResponse response){ |
| | | manageRiskAssessmentResultsService.exportPersonTraining(response); |
| | | } |
| | | |
| | | public static boolean isExcelFile(MultipartFile file) { |
| | | if (file.isEmpty()) { |
| | | return false; |
| | | } |
| | | String originalFilename = file.getOriginalFilename(); |
| | | if (originalFilename == null) { |
| | | return false; |
| | | } |
| | | String[] parts = originalFilename.split("\\."); |
| | | if (parts.length == 0) { |
| | | return false; |
| | | } |
| | | String fileExtension = parts[parts.length - 1].toLowerCase(); |
| | | return fileExtension.equals("xls") || fileExtension.equals("xlsx"); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.ClientSatisfaction; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-16 ææä¸ 10:38:30 |
| | | * Description: å®¢æ·æ»¡æåº¦è°æ¥å¯¼åºWord |
| | | */ |
| | | @Data |
| | | public class ClientSatisfactionDto extends ClientSatisfaction { |
| | | |
| | | @Schema(description = "æå¡æåº¦, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String serviceAttitude0; |
| | | |
| | | @Schema(description = "æå¡æåº¦, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String serviceAttitude1; |
| | | |
| | | @Schema(description = "æå¡æåº¦, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String serviceAttitude2; |
| | | |
| | | @Schema(description = "ææ¯è½å, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String technicalCompetence0; |
| | | |
| | | @Schema(description = "ææ¯è½å, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String technicalCompetence1; |
| | | |
| | | @Schema(description = "ææ¯è½å, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String technicalCompetence2; |
| | | |
| | | @Schema(description = "æ£æµå·¥ä½, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String inspectionWork0; |
| | | |
| | | @Schema(description = "æ£æµå·¥ä½, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String inspectionWork1; |
| | | |
| | | @Schema(description = "æ£æµå·¥ä½, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String inspectionWork2; |
| | | |
| | | @Schema(description = "æ¶è´¹åçæ§, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String reasonableFees0; |
| | | |
| | | @Schema(description = "æ¶è´¹åçæ§, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String reasonableFees1; |
| | | |
| | | @Schema(description = "æ¶è´¹åçæ§, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String reasonableFees2; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | import com.ruoyi.manage.pojo.InternalCheckDetail; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/11 |
| | | */ |
| | | @Data |
| | | public class InternalCheckDto extends InternalCheck { |
| | | |
| | | @Schema(description = "æ£æ¥è¯¦æ
") |
| | | private List<InternalCheckDetail> checkDetailList; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalCorrect; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/19 |
| | | */ |
| | | @Data |
| | | public class InternalCorrectDto extends InternalCorrect { |
| | | |
| | | @Schema(description = "æåºæ¶é´") |
| | | private String raiseTimeString; |
| | | |
| | | @Schema(description = "åå åææ¶é´") |
| | | private String causeTimeString; |
| | | |
| | | @Schema(description = "çº æ£æ¶é´") |
| | | private String correctTimeString; |
| | | |
| | | @Schema(description = "éªè¯æ¶é´") |
| | | private String validationTimeString; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalImplement; |
| | | import com.ruoyi.manage.pojo.InternalImplementDetail; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/11 |
| | | */ |
| | | @Data |
| | | public class InternalImplementDto extends InternalImplement { |
| | | |
| | | @Schema(description = "计å详æ
") |
| | | private List<InternalImplementDetail> implementDetailList; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalMeeting; |
| | | import com.ruoyi.manage.pojo.InternalMeetingDetail; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/12 |
| | | */ |
| | | @Data |
| | | public class InternalMeetingDto extends InternalMeeting { |
| | | |
| | | @Schema(description = "åå 人") |
| | | private List<InternalMeetingDetail> meetingDetailList; |
| | | |
| | | @Schema(description = "åå 人信æ¯") |
| | | private String participantName; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * åå 人å对象 |
| | | * |
| | | * @Author zhuo |
| | | * @Date 2024/11/19 |
| | | */ |
| | | @Data |
| | | public class InternalMeetingParticipantDto { |
| | | |
| | | @Schema(description = "åå 人å1") |
| | | private String userName1; |
| | | |
| | | @Schema(description = "é¨é¨1") |
| | | private String department1; |
| | | |
| | | @Schema(description = "åå 人å2") |
| | | private String userName2; |
| | | |
| | | @Schema(description = "é¨é¨2") |
| | | private String department2; |
| | | |
| | | @Schema(description = "åå 人å3") |
| | | private String userName3; |
| | | |
| | | @Schema(description = "é¨é¨3") |
| | | private String department3; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | import com.ruoyi.manage.pojo.InternalPlanDetail; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/13 |
| | | */ |
| | | @Data |
| | | public class InternalPlanDto extends InternalPlan { |
| | | |
| | | @Schema(description = "计å详æ
") |
| | | private List<InternalPlanDetail> planDetailList; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | |
| | | import com.ruoyi.manage.pojo.ManageDocumentIssueRecycle; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class ManageDocumentIssueRecycleDto extends ManageDocumentIssueRecycle { |
| | | |
| | | @Schema(description = "åæ¾äºº") |
| | | @ExcelProperty(value = "åæ¾äºº") |
| | | private String issueUserName; |
| | | |
| | | @Schema(description = "åæ¶äºº") |
| | | @ExcelProperty(value = "åæ¶äºº") |
| | | private String recycleUserName; |
| | | |
| | | @Schema(description = "æ¥æ¶äºº") |
| | | @ExcelProperty(value = "æ¥æ¶äºº") |
| | | private String receiveUserName; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.ManageMeeting; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class ManageMeetingDto extends ManageMeeting { |
| | | |
| | | private List<ManageMeetingParticipants> list; |
| | | |
| | | private String participant; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ManageMeetingParticipantsDto { |
| | | |
| | | @Schema(description = "åå 人å1") |
| | | private String userName1; |
| | | |
| | | @Schema(description = "é¨é¨1") |
| | | private String department1; |
| | | |
| | | @Schema(description = "åå 人å2") |
| | | private String userName2; |
| | | |
| | | @Schema(description = "é¨é¨2") |
| | | private String department2; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.excel; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.manage.pojo.ManageDocumentList; |
| | | import com.ruoyi.manage.service.ManageDocumentListService; |
| | | import lombok.Data; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.*; |
| | | |
| | | @Data |
| | | public class ManageDocumentListListener extends AnalysisEventListener<ManageDocumentList> { |
| | | private static final int BATCH_COUNT = 1000; |
| | | List<ManageDocumentList> list = new ArrayList<>(); |
| | | |
| | | private ManageDocumentListService manageDocumentListService; |
| | | |
| | | public ManageDocumentListListener(ManageDocumentListService manageDocumentListService) { |
| | | this.manageDocumentListService = manageDocumentListService; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(ManageDocumentList data, AnalysisContext analysisContext) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | save(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext analysisContext) { |
| | | int size = list.size(); |
| | | if(size == 0){ |
| | | throw new BaseException("导å
¥æ°æ®ä¸å¾ä¸ºç©º"); |
| | | }else { |
| | | save(); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) { |
| | | // è·åè¡¨å¤´ä¿¡æ¯ |
| | | if(CollectionUtils.isEmpty(headMap) || headMap.size() != 8){ |
| | | throw new RuntimeException("导å
¥æ¨¡æ¿æè¯¯"); |
| | | } |
| | | List<String> colums = Arrays.asList( |
| | | "åºå·", "æä»¶ç¼å·", "ç±»å«", "åç§°", |
| | | "æä»¶çæ¬", "ä½è
", "çææ¥æ", "æä»¶ç¶æ" |
| | | ); |
| | | for (int i = 0; i < colums.size(); i++) { |
| | | if(!headMap.get(i).equals(colums.get(i))){ |
| | | throw new BaseException("导å
¥æ¨¡æ¿æè¯¯"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void save() { |
| | | manageDocumentListService.importExcel(list); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ClientSatisfactionAnalyseFile; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦åæéä»¶ |
| | | * |
| | | * @author makejava |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Mapper |
| | | public interface ClientSatisfactionAnalyseFileMapper extends BaseMapper<ClientSatisfactionAnalyseFile> { |
| | | |
| | | /** |
| | | * 客æ·åæéä»¶å表 |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<ClientSatisfactionAnalyseFile> pageAnalyseFile(Page page, @Param("ew") QueryWrapper<ClientSatisfactionAnalyseFile> ew); |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.dto.ClientSatisfactionDto; |
| | | import com.ruoyi.manage.pojo.ClientSatisfaction; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Mapper |
| | | public interface ClientSatisfactionMapper extends BaseMapper<ClientSatisfaction> { |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥å表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<ClientSatisfaction> pageClientSatisfaction(Page page, @Param("ew") QueryWrapper<ClientSatisfaction> ew); |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦å¯¼åº |
| | | * @param clientSatisfactionId |
| | | * @return |
| | | */ |
| | | ClientSatisfactionDto exportWordClientSatisfaction(Integer clientSatisfactionId); |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalCheckDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¯¦æ
表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalCheckDetailMapper extends BaseMapper<InternalCheckDetail> { |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.dto.InternalCheckDto; |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalCheckMapper extends BaseMapper<InternalCheck> { |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å页æ¥è¯¢ |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<InternalCheckDto> pageInternalCheck(Page page, @Param("ew") QueryWrapper<InternalCheck> ew); |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalCorrectFile; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£æªæ½é件表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 04:00:38 |
| | | */ |
| | | @Mapper |
| | | public interface InternalCorrectFileMapper extends BaseMapper<InternalCorrectFile> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.InternalCorrect; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£å¤ç表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 04:00:15 |
| | | */ |
| | | @Mapper |
| | | public interface InternalCorrectMapper extends BaseMapper<InternalCorrect> { |
| | | |
| | | IPage<InternalCorrect> pageInternalAccording(Page page, @Param("ew") QueryWrapper<InternalCorrect> ew); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalImplementDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å详æ
|
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalImplementDetailMapper extends BaseMapper<InternalImplementDetail> { |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.dto.InternalImplementDto; |
| | | import com.ruoyi.manage.pojo.InternalImplement; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalImplementMapper extends BaseMapper<InternalImplement> { |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå页æ¥è¯¢ |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<InternalImplementDto> pageInternalImplement(Page page, @Param("ew") QueryWrapper<InternalImplement> ew); |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalMeetingDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¯¦æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 02:56:13 |
| | | */ |
| | | public interface InternalMeetingDetailMapper extends BaseMapper<InternalMeetingDetail> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.dto.InternalMeetingDto; |
| | | import com.ruoyi.manage.pojo.InternalMeeting; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 02:50:44 |
| | | */ |
| | | public interface InternalMeetingMapper extends BaseMapper<InternalMeeting> { |
| | | |
| | | /** |
| | | * å
审ä¼è®®å页æ¥è¯¢ |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<InternalMeetingDto> pageInternalMeeting(Page page, @Param("ew") QueryWrapper<InternalMeeting> ew); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalPlanDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å详æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 03:28:48 |
| | | */ |
| | | @Mapper |
| | | public interface InternalPlanDetailMapper extends BaseMapper<InternalPlanDetail> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.dto.InternalPlanDto; |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 03:27:47 |
| | | */ |
| | | @Mapper |
| | | public interface InternalPlanMapper extends BaseMapper<InternalPlan> { |
| | | |
| | | /** |
| | | * å
审年度计åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<InternalPlanDto> pageInternalPlan(Page page, @Param("ew") QueryWrapper<InternalPlan> ew); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.InternalReport; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalReportMapper extends BaseMapper<InternalReport> { |
| | | |
| | | /** |
| | | * å
审æ¥åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalReportQueryWrapper |
| | | * @return |
| | | */ |
| | | IPage<InternalReport> pageInternalReport(Page page, @Param("ew") QueryWrapper<InternalReport> internalReportQueryWrapper); |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageControlPlanList; |
| | | import com.ruoyi.manage.vo.ManageControlPlanListVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-15 02:58:30 |
| | | */ |
| | | public interface ManageControlPlanListMapper extends BaseMapper<ManageControlPlanList> { |
| | | |
| | | IPage<ManageControlPlanListVo> getPageList(Page page, @Param("itSExporting") Boolean itSExporting); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageDocumentAlter; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ´ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-11 11:04:01 |
| | | */ |
| | | public interface ManageDocumentAlterMapper extends BaseMapper<ManageDocumentAlter> { |
| | | |
| | | IPage<ManageDocumentAlter> pageManageDocumentAlter(Page page, @Param("ew") QueryWrapper<ManageDocumentAlter> queryWrappers); |
| | | |
| | | ManageDocumentAlter getManageDocumentAlter(Integer id); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageDocumentCancel; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä½åº Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-09 02:37:35 |
| | | */ |
| | | public interface ManageDocumentCancelMapper extends BaseMapper<ManageDocumentCancel> { |
| | | |
| | | IPage<ManageDocumentCancel> pageManageDocumentCancel(Page page, @Param("ew") QueryWrapper<ManageDocumentCancel> queryWrappers); |
| | | |
| | | ManageDocumentCancel getManageDocumentCancel(Integer id); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageDocumentControlled; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ§ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-08 02:54:44 |
| | | */ |
| | | public interface ManageDocumentControlledMapper extends BaseMapper<ManageDocumentControlled> { |
| | | |
| | | IPage<ManageDocumentControlled> pageManageDocumentControlled(Page page, @Param("ew") QueryWrapper<ManageDocumentControlled> queryWrappers); |
| | | |
| | | ManageDocumentControlled getManageDocumentControlled(Long id); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.dto.ManageDocumentIssueRecycleDto; |
| | | import com.ruoyi.manage.pojo.ManageDocumentIssueRecycle; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ¾åæ¶ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-09 09:18:24 |
| | | */ |
| | | public interface ManageDocumentIssueRecycleMapper extends BaseMapper<ManageDocumentIssueRecycle> { |
| | | |
| | | IPage<ManageDocumentIssueRecycleDto> pageManageDocumentIssueRecycle(Page page, @Param("ew") QueryWrapper<ManageDocumentIssueRecycleDto> queryWrappers); |
| | | |
| | | ManageDocumentIssueRecycleDto getManageDocumentIssueRecycle(Long id); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageDocumentList; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶æ¸
å |
| | | Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-08 11:08:11 |
| | | */ |
| | | public interface ManageDocumentListMapper extends BaseMapper<ManageDocumentList> { |
| | | |
| | | IPage<ManageDocumentList> pageManageDocumentList(Page page, @Param("ew") QueryWrapper<ManageDocumentList> queryWrappers); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.dto.ManageMeetingDto; |
| | | import com.ruoyi.manage.pojo.ManageMeeting; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-11 09:33:47 |
| | | */ |
| | | public interface ManageMeetingMapper extends BaseMapper<ManageMeeting> { |
| | | |
| | | |
| | | IPage<ManageMeetingDto> page(Page page, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("place") String place); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-11 09:34:27 |
| | | */ |
| | | public interface ManageMeetingParticipantsMapper extends BaseMapper<ManageMeetingParticipants> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRecordAudit; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-14 10:29:18 |
| | | */ |
| | | public interface ManageRecordAuditMapper extends BaseMapper<ManageRecordAudit> { |
| | | |
| | | IPage<ManageRecordAudit> pageManageRecordAudit(Page page, @Param("ew") QueryWrapper<ManageRecordAudit> queryWrappers); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRecordCancel; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½åºæä»¶ééè®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 01:27:22 |
| | | */ |
| | | public interface ManageRecordCancelMapper extends BaseMapper<ManageRecordCancel> { |
| | | |
| | | IPage<ManageRecordCancel> pageManageRecordCancel(Page page, @Param("ew") QueryWrapper<ManageRecordCancel> queryWrappers); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRecordCheck; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®¡æ¹è®°å½(å«ä¿®è®¢å忬¡å®¡æ¹è®°å½) Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 02:31:36 |
| | | */ |
| | | public interface ManageRecordCheckMapper extends BaseMapper<ManageRecordCheck> { |
| | | |
| | | IPage<ManageRecordCheck> pageManageRecordCheck(Page page, @Param("ew") QueryWrapper<ManageRecordCheck> queryWrappers); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervals; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 10:54:31 |
| | | */ |
| | | public interface ManageRecordIntervalsMapper extends BaseMapper<ManageRecordIntervals> { |
| | | |
| | | IPage<ManageRecordIntervals> pageManageRecordIntervals(Page page, @Param("ew") QueryWrapper<ManageRecordIntervals> queryWrappers); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervalsTotal; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½æ»åå²è®°å½è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-15 01:12:11 |
| | | */ |
| | | public interface ManageRecordIntervalsTotalMapper extends BaseMapper<ManageRecordIntervalsTotal> { |
| | | |
| | | IPage<ManageRecordIntervalsTotal> pageManageRecordIntervalsTotal(Page page, @Param("ew") QueryWrapper<ManageRecordIntervalsTotal> queryWrappers); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRecordIssueRecycle; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æææä»¶(å
ãå¤é¨æä»¶)çåæ¾ä¸åæ¶è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 09:11:05 |
| | | */ |
| | | public interface ManageRecordIssueRecycleMapper extends BaseMapper<ManageRecordIssueRecycle> { |
| | | |
| | | IPage<ManageRecordIssueRecycle> pageManageRecordIssueRecycle(Page page, @Param("ew") QueryWrapper<ManageRecordIssueRecycle> queryWrappers); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRecordTotal; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½æ»åå²è®°å½è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 10:30:08 |
| | | */ |
| | | public interface ManageRecordTotalMapper extends BaseMapper<ManageRecordTotal> { |
| | | |
| | | IPage<ManageRecordTotal> pageProcessTotaldeal(Page page, @Param("ew") QueryWrapper<ManageRecordTotal> queryWrappers); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRecordVerify; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 10:29:44 |
| | | */ |
| | | public interface ManageRecordVerifyMapper extends BaseMapper<ManageRecordVerify> { |
| | | |
| | | IPage<ManageRecordVerify> pageManageRecordVerify(Page page, @Param("ew") QueryWrapper<ManageRecordVerify> queryWrappers); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.ManageReviewProgramFile; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-09 04:15:47 |
| | | */ |
| | | public interface ManageReviewProgramFileMapper extends BaseMapper<ManageReviewProgramFile> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageReviewProgram; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-09 03:05:42 |
| | | */ |
| | | public interface ManageReviewProgramMapper extends BaseMapper<ManageReviewProgram> { |
| | | |
| | | |
| | | IPage<ManageReviewProgram> page(Page page, @Param("startTime") String startTime,@Param("endTime") String endTime,@Param("judgingLocation") String judgingLocation); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageReviewReport; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 管çè¯å®¡æ¥å Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 04:44:39 |
| | | */ |
| | | public interface ManageReviewReportMapper extends BaseMapper<ManageReviewReport> { |
| | | |
| | | IPage<ManageReviewReport> page(Page page, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("place") String place); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.pojo.ManageRiskAssessmentResults; |
| | | import com.ruoyi.manage.vo.ManageRiskAssessmentResultsVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-15 02:58:51 |
| | | */ |
| | | public interface ManageRiskAssessmentResultsMapper extends BaseMapper<ManageRiskAssessmentResults> { |
| | | |
| | | IPage<ManageRiskAssessmentResultsVo> getPageResults(Page page, @Param("itSExporting") Boolean itSExporting); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_client_satisfaction") |
| | | public class ClientSatisfaction { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer clientSatisfactionId; |
| | | |
| | | @Schema(description = "åä½åç§°") |
| | | private String unitName; |
| | | |
| | | @Schema(description = "å§å") |
| | | private String userName; |
| | | |
| | | @Schema(description = "填忥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate fillDate; |
| | | |
| | | @Schema(description = "é¨é¨") |
| | | private String department; |
| | | |
| | | @Schema(description = "èç³»çµè¯") |
| | | private String contactNumber; |
| | | |
| | | @Schema(description = "æå¡æåº¦, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private Integer serviceAttitude; |
| | | |
| | | @Schema(description = "æå¡æåº¦å»ºè®®") |
| | | private String serviceAttitudeSuggestion; |
| | | |
| | | @Schema(description = "ææ¯è½å, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private Integer technicalCompetence; |
| | | |
| | | @Schema(description = "ææ¯è½å建议") |
| | | private String technicalCompetenceSuggestion; |
| | | |
| | | @Schema(description = "æ£æµå·¥ä½, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private Integer inspectionWork; |
| | | |
| | | @Schema(description = "æ£æµå·¥ä½å»ºè®®") |
| | | private String inspectionWorkSuggestion; |
| | | |
| | | @Schema(description = "æ¶è´¹åçæ§, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private Integer reasonableFees; |
| | | |
| | | @Schema(description = "æ¶è´¹åçæ§å»ºè®®") |
| | | private String reasonableFeesSuggestion; |
| | | |
| | | @Schema(description = "确认人") |
| | | private String confirmPerson; |
| | | |
| | | @Schema(description = "确认人Id") |
| | | private Integer confirmPersonId; |
| | | |
| | | @Schema(description = "ç¡®è®¤ç¶æ, 0:æªç¡®è®¤, 1:确认") |
| | | private Integer confirmStatus; |
| | | |
| | | @Schema(description = "夿³¨(对æä»¬ç叿)") |
| | | private String remark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦åæéä»¶ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_client_satisfaction_analyse_file") |
| | | public class ClientSatisfactionAnalyseFile { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer analyseFileId; |
| | | |
| | | @Schema(description = "ç±»å:1å¾ç/2æä»¶") |
| | | private Integer type; |
| | | |
| | | @Schema(description = "éä»¶è·¯å¾") |
| | | private String fileUrl; |
| | | |
| | | @Schema(description = "éä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Schema(description = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(select = false,exist = false) |
| | | private String userName; |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_check") |
| | | public class InternalCheck { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer checkId; |
| | | |
| | | @Schema(description = "é¨é¨") |
| | | private String department; |
| | | |
| | | @Schema(description = "é¨é¨è´è´£äºº") |
| | | private String departmentHead; |
| | | |
| | | @Schema(description = "å®¡æ ¸å") |
| | | private String auditor; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥æ") |
| | | private String reviewDate; |
| | | |
| | | @Schema(description = "ç¼å¶äººid") |
| | | private Integer writeUserId; |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private String writeUserName; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime writeTime; |
| | | |
| | | @Schema(description = "æ¹å人id") |
| | | private Integer ratifyUserId; |
| | | |
| | | @Schema(description = "æ¹å人") |
| | | private String ratifyUserName; |
| | | |
| | | @Schema(description = "æ¹åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime ratifyTime; |
| | | |
| | | @Schema(description = "æ¹åç¶æ, 0 ä¸éè¿, 1éè¿") |
| | | private Integer ratifyStatus; |
| | | |
| | | @Schema(description = "æ¹åå
容") |
| | | private String ratifyRemark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¯¦æ
表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_check_detail") |
| | | public class InternalCheckDetail { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer checkDetailId; |
| | | |
| | | @Schema(description = "æ£æ¥ä¸»è¡¨id") |
| | | private Integer checkId; |
| | | |
| | | @Schema(description = "è¦ç´ æ¡æ¬¾") |
| | | private String element; |
| | | |
| | | @Schema(description = "å®¡æ ¸å
容") |
| | | private String content; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¹å¼") |
| | | private String method; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç»æè®°å½") |
| | | private String resultRecords; |
| | | |
| | | @Schema(description = "ä¸ç¬¦åæ§è´¨") |
| | | private String nonNature; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | // 导åºä½¿ç¨ |
| | | @TableField(select = false, exist = false) |
| | | private Integer index; |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£å¤ç表 |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 04:00:15 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_correct") |
| | | @Schema(description = "å
审管ççº æ£å¤ç表") |
| | | public class InternalCorrect { |
| | | |
| | | @TableId(value = "correct_id", type = IdType.AUTO) |
| | | private Integer correctId; |
| | | |
| | | @Schema(description = "ä¸åæ ¼æè¿°") |
| | | private String raiseResult; |
| | | |
| | | @Schema(description = "vdeä¸å®¶åç°") |
| | | private String vdeRaiseResult; |
| | | |
| | | @Schema(description = "æåºé¨é¨") |
| | | private String raiseDepartment; |
| | | |
| | | @Schema(description = "æåºäººid") |
| | | private Integer raiseUserId; |
| | | |
| | | @Schema(description = "æåºäºº") |
| | | private String raiseUserName; |
| | | |
| | | @Schema(description = "æåºæ¶é´") |
| | | private LocalDate raiseTime; |
| | | |
| | | @Schema(description = "åå åæ") |
| | | private String causeResult; |
| | | |
| | | @Schema(description = "åå åæè´£ä»»é¨é¨") |
| | | private String causeDepartment; |
| | | |
| | | @Schema(description = "åå åæäººid") |
| | | private Integer causeUserId; |
| | | |
| | | @Schema(description = "åå åæäºº") |
| | | private String causeUserName; |
| | | |
| | | @Schema(description = "åå åææ¶é´") |
| | | private LocalDate causeTime; |
| | | |
| | | @Schema(description = "çº æ£æªæ½") |
| | | private String correctResult; |
| | | |
| | | @Schema(description = "æåºé¨é¨ç¡®è®¤") |
| | | private String raiseDepartmentAffirm; |
| | | |
| | | @Schema(description = "çº æ£è´£ä»»é¨é¨") |
| | | private String correctDepartment; |
| | | |
| | | @Schema(description = "çº æ£äººid") |
| | | private Integer correctUserId; |
| | | |
| | | @Schema(description = "çº æ£") |
| | | private String correctUserName; |
| | | |
| | | @Schema(description = "çº æ£æ¶é´") |
| | | private LocalDate correctTime; |
| | | |
| | | @Schema(description = "éªè¯ç»æ") |
| | | private String validationResult; |
| | | |
| | | @Schema(description = "éªè¯é¨é¨") |
| | | private String validationDepartment; |
| | | |
| | | @Schema(description = "éªè¯äººid") |
| | | private Integer validationUserId; |
| | | |
| | | @Schema(description = "éªè¯äºº") |
| | | private String validationUserName; |
| | | |
| | | @Schema(description = "éªè¯æ¶é´") |
| | | private LocalDate validationTime; |
| | | |
| | | @Schema(description = "æ¯å¦ç»æ, 0: æªç»æ, 1:å·²ç»æ") |
| | | private Integer isFinish; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(exist = false,select = false) |
| | | @Schema(description = "æµç¨, 0:ä¸ç¬¦å工使
åµè®°å½, 1å¤çæªæ½, 2:çº æ£æªæ½, 3:æ¯å¦éç¥å®¢æ·å¯æ¢å¤å·¥ä½") |
| | | private Integer flowType; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£æªæ½é件表 |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 04:00:38 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_correct_file") |
| | | @Schema(description = "å
审管ççº æ£æªæ½é件表") |
| | | public class InternalCorrectFile { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer correctFileId; |
| | | |
| | | @Schema(description = "å
å®¡çº æ£æªæ½id") |
| | | private Integer correctId; |
| | | |
| | | @Schema(description = "ç±»å:1å¾ç/2æä»¶") |
| | | private Integer type; |
| | | |
| | | @Schema(description = "éä»¶è·¯å¾") |
| | | private String fileUrl; |
| | | |
| | | @Schema(description = "éä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_implement") |
| | | public class InternalImplement { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer implementId; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç®ç") |
| | | private String purposes; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ§è´¨") |
| | | private String nature; |
| | | |
| | | @Schema(description = "å®¡æ ¸èå´") |
| | | private String scope; |
| | | |
| | | @Schema(description = "å®¡æ ¸ä¾æ®") |
| | | private String basis; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç»é¿") |
| | | private String teamLeader; |
| | | |
| | | @Schema(description = "å
审å") |
| | | private String internalAuditor; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¶é´") |
| | | private String reviewDate; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¹æ³") |
| | | private String auditMethod; |
| | | |
| | | @Schema(description = "ä¼è®®å¼å§æ¶é´") |
| | | private String firstMeetingTime; |
| | | |
| | | @Schema(description = "æ«æ¬¡ä¼è®®æ¶é´") |
| | | private String lastMeetingTime; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥åæäº¤æ¥æ") |
| | | private String submitTime; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥ååæ¾èå´") |
| | | private String submitScope; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "ç¼å¶äººid") |
| | | private Integer writeUserId; |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private String writeUserName; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime writeTime; |
| | | |
| | | @Schema(description = "æ¹å人id") |
| | | private Integer ratifyUserId; |
| | | |
| | | @Schema(description = "æ¹å人") |
| | | private String ratifyUserName; |
| | | |
| | | @Schema(description = "æ¹åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime ratifyTime; |
| | | |
| | | @Schema(description = "æ¹åç¶æ, 0 ä¸éè¿, 1éè¿") |
| | | private Integer ratifyStatus; |
| | | |
| | | @Schema(description = "æ¹åå
容") |
| | | private String ratifyRemark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å详æ
|
| | | * |
| | | * @author makejava |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_implement_detail") |
| | | public class InternalImplementDetail { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer implementDetailId; |
| | | |
| | | @Schema(description = "宿½è®¡å主表id") |
| | | private Integer implementId; |
| | | |
| | | @Schema(description = "æ¶é´") |
| | | private String implement; |
| | | |
| | | @Schema(description = "é¨é¨") |
| | | private String department; |
| | | |
| | | @Schema(description = "责任人") |
| | | private String responsible; |
| | | |
| | | @Schema(description = "å®¡æ ¸å") |
| | | private String auditor; |
| | | |
| | | @Schema(description = "å®¡æ ¸å
容") |
| | | private String reviewContent; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | // 导åºä½¿ç¨ |
| | | @TableField(select = false, exist = false) |
| | | private Integer index; |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¡¨ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 02:50:44 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_meeting") |
| | | @Schema(description = "å
审ä¼è®®è¡¨") |
| | | public class InternalMeeting { |
| | | |
| | | @TableId(value = "meeting_id", type = IdType.AUTO) |
| | | private Integer meetingId; |
| | | |
| | | @Schema(description = "æ¶é´") |
| | | private String meetingDate; |
| | | |
| | | @Schema(description = "主æäºº") |
| | | private String compere; |
| | | |
| | | @Schema(description = "å°ç¹") |
| | | private String place; |
| | | |
| | | @Schema(description = "ä¼è®®ä¸»é¢") |
| | | private String subject; |
| | | |
| | | @Schema(description = "åå 人å") |
| | | private String participant; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¯¦æ
表 |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-12 02:56:13 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_meeting_detail") |
| | | @Schema(description = "å
审ä¼è®®è¯¦æ
表") |
| | | public class InternalMeetingDetail { |
| | | |
| | | @TableId(value = "meeting_detail_id", type = IdType.AUTO) |
| | | private Integer meetingDetailId; |
| | | |
| | | @Schema(description = "ä¼è®®ä¸»è¡¨id") |
| | | private Integer meetingId; |
| | | |
| | | @Schema(description = "åå 人åid") |
| | | private Integer userId; |
| | | |
| | | @Schema(description = "åå 人å") |
| | | private String userName; |
| | | |
| | | @Schema(description = "é¨é¨") |
| | | private String department; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 03:27:47 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_plan") |
| | | @Schema(description = "å
审年度计å") |
| | | public class InternalPlan { |
| | | |
| | | @TableId(value = "plan_id", type = IdType.AUTO) |
| | | private Integer planId; |
| | | |
| | | @Schema(description = "å
审ç®ç") |
| | | private String purpose; |
| | | |
| | | @Schema(description = "å
çèå´") |
| | | private String scope; |
| | | |
| | | @Schema(description = "å
审便®") |
| | | private String basis; |
| | | |
| | | @Schema(description = "ç»é¿") |
| | | private String leader; |
| | | |
| | | @Schema(description = "ç»å") |
| | | private String crew; |
| | | |
| | | @Schema(description = "ç¼å¶äººid") |
| | | private Integer writeUserId; |
| | | |
| | | @Schema(description = "ç¼å¶äºº") |
| | | private String writeUserName; |
| | | |
| | | @Schema(description = "ç¼å¶æ¶é´") |
| | | private LocalDateTime writeTime; |
| | | |
| | | @Schema(description = "å®¡æ ¸äººid") |
| | | private Integer examineUserId; |
| | | |
| | | @Schema(description = "å®¡æ ¸äºº") |
| | | private String examineUserName; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¶é´") |
| | | private LocalDateTime examineTime; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç¶æ,0 ä¸éè¿, 1 éè¿") |
| | | private Integer examineStatus; |
| | | |
| | | @Schema(description = "å®¡æ ¸ä¿¡æ¯") |
| | | private String examineRemark; |
| | | |
| | | @Schema(description = "æ¹å人id") |
| | | private Integer ratifyUserId; |
| | | |
| | | @Schema(description = "æ¹å人") |
| | | private String ratifyUserName; |
| | | |
| | | @Schema(description = "æ¹åæ¶é´") |
| | | private LocalDateTime ratifyTime; |
| | | |
| | | @Schema(description = "æ¹åç¶æ,0 ä¸éè¿, 1 éè¿") |
| | | private Integer ratifyStatus; |
| | | |
| | | @Schema(description = "æ¹åä¿¡æ¯") |
| | | private String ratifyRemark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å详æ
表 |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-13 03:28:48 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_plan_detail") |
| | | @Schema(description = "å
审年度计å详æ
表") |
| | | public class InternalPlanDetail { |
| | | |
| | | @TableId(value = "plan_detail_id", type = IdType.AUTO) |
| | | private Integer planDetailId; |
| | | |
| | | @Schema(description = "å
审年度计åid") |
| | | private Integer planId; |
| | | |
| | | @Schema(description = "é¨é¨") |
| | | private String department; |
| | | |
| | | @Schema(description = "䏿") |
| | | private String january; |
| | | |
| | | @Schema(description = "äºæ") |
| | | private String february; |
| | | |
| | | @Schema(description = "䏿") |
| | | private String march; |
| | | |
| | | @Schema(description = "åæ") |
| | | private String april; |
| | | |
| | | @Schema(description = "äºæ") |
| | | private String may; |
| | | |
| | | @Schema(description = "å
æ") |
| | | private String june; |
| | | |
| | | @Schema(description = "䏿") |
| | | private String july; |
| | | |
| | | @Schema(description = "å
«æ") |
| | | private String august; |
| | | |
| | | @Schema(description = "乿") |
| | | private String september; |
| | | |
| | | @Schema(description = "åæ") |
| | | private String october; |
| | | |
| | | @Schema(description = "å䏿") |
| | | private String november; |
| | | |
| | | @Schema(description = "åäºæ") |
| | | private String december; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_report") |
| | | public class InternalReport { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer reportId; |
| | | |
| | | @Schema(description = "å®¡æ ¸ä¾æ®") |
| | | private String purposes; |
| | | |
| | | @Schema(description = "å®¡æ ¸ä¾æ®") |
| | | private String basis; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¥æ") |
| | | private String reviewDate; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¹æ³") |
| | | private String method; |
| | | |
| | | @Schema(description = "å®¡æ ¸èå´") |
| | | private String scope; |
| | | |
| | | @Schema(description = "å®¡æ ¸è´£ä»»å¶") |
| | | private String responsible; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç»é¿") |
| | | private String leader; |
| | | |
| | | @Schema(description = "å®¡æ ¸å") |
| | | private String auditor; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç»åå·¥æ
åµ") |
| | | private String division; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¦åµ") |
| | | private String overview; |
| | | |
| | | @Schema(description = "ç»è®ºæ§è¯ä»·") |
| | | private String conclusion; |
| | | |
| | | @Schema(description = "æ¹è¿å»ºè®®") |
| | | private String suggest; |
| | | |
| | | @Schema(description = "å®æçº æ£æªæ½æéæ¶é´") |
| | | private String actionDate; |
| | | |
| | | @Schema(description = "æ»ä½è·è¿ç¡®è®¤äºº") |
| | | private String followUser; |
| | | |
| | | @Schema(description = "æ»ä½è·è¿ç¡®è®¤è®°å½") |
| | | private String followRecord; |
| | | |
| | | @Schema(description = "æ¬æ¥ååæ¾èå´") |
| | | private String reportScope; |
| | | |
| | | @Schema(description = "å®¡æ ¸äººid") |
| | | private Integer examineUserId; |
| | | |
| | | @Schema(description = "å®¡æ ¸äºº") |
| | | private String examineUserName; |
| | | |
| | | @Schema(description = "å®¡æ ¸æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime examineTime; |
| | | |
| | | @Schema(description = "å®¡æ ¸ç¶æ,0 ä¸éè¿, 1 éè¿") |
| | | private Integer examineStatus; |
| | | |
| | | @Schema(description = "å®¡æ ¸ä¿¡æ¯") |
| | | private String examineRemark; |
| | | |
| | | @Schema(description = "è´¨éè´è´£äººid") |
| | | private Integer qualityUserId; |
| | | |
| | | @Schema(description = "è´¨éè´è´£äºº") |
| | | private String qualityUserName; |
| | | |
| | | @Schema(description = "è´¨éè´è´£äººå¡«åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime qualityTime; |
| | | |
| | | @Schema(description = "è´¨éè´è´£äººç¶æ, 0 ä¸éè¿, 1éè¿") |
| | | private Integer qualityStatus; |
| | | |
| | | @Schema(description = "è´¨éè´è´£äººæè§") |
| | | private String qualityRemark; |
| | | |
| | | @Schema(description = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @Schema(description = "ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-15 02:58:30 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_control_plan_list") |
| | | @Schema(description = "é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å") |
| | | public class ManageControlPlanList implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "ä½ä¸æ´»å¨") |
| | | @ExcelProperty("ä½ä¸æ´»å¨") |
| | | private String jobActivity; |
| | | |
| | | @Schema(description = "é£é©å ç´ ç±»å«") |
| | | @ExcelProperty("é£é©å ç´ ç±»å«") |
| | | private String category; |
| | | |
| | | @Schema(description = "é£é©å ç´ æè¿°") |
| | | @ExcelProperty("é£é©å ç´ æè¿°") |
| | | private String description; |
| | | |
| | | @Schema(description = "å¯å¯¼è´çäºæ
") |
| | | @ExcelProperty("å¯å¯¼è´çäºæ
") |
| | | private String result; |
| | | |
| | | @Schema(description = "æ¯å¦ä¸å¯æ¿åé£é©") |
| | | @ExcelProperty("æ¯å¦ä¸å¯æ¿åé£é©") |
| | | private String intolerable; |
| | | |
| | | @Schema(description = "æ§å¶è®¡å") |
| | | @ExcelProperty("æ§å¶è®¡å") |
| | | private String plan; |
| | | |
| | | @Schema(description = "ç¼å¶id") |
| | | private Integer editor; |
| | | |
| | | @Schema(description = "æ¥æ") |
| | | private LocalDateTime editorDate; |
| | | |
| | | @Schema(description = "审æ¹id") |
| | | private Integer approval; |
| | | |
| | | @Schema(description = "æ¥æ") |
| | | private LocalDateTime approvalDate; |
| | | |
| | | @Schema(description = "æ¹åid") |
| | | private Integer approve; |
| | | |
| | | @Schema(description = "æ¹åæ¥æ") |
| | | private LocalDateTime approveDate; |
| | | |
| | | @Schema(description = "æ¹åç¶æ1ï¼éè¿ï¼2ï¼ä¸éè¿") |
| | | private Integer approveStatus; |
| | | |
| | | @Schema(description = "审æ¹ç¶æ1ï¼éè¿ï¼2ï¼ä¸éè¿") |
| | | private Integer approvalStatus; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ´ |
| | | * </p> |
| | | * |
| | | * @author |
| | | * @since 2024-11-11 11:04:01 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_document_alter") |
| | | @Schema(description = "æä»¶åæ´") |
| | | @ExcelIgnoreUnannotated |
| | | public class ManageDocumentAlter implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "ç³è¯·ç¼å·") |
| | | @ExcelProperty("ç³è¯·ç¼å·") |
| | | private String code; |
| | | |
| | | @Schema(description = "ç³è¯·äºº") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | @ExcelProperty("ç³è¯·äºº") |
| | | private String createUserName; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | @Schema(description = "ç³è¯·é¨é¨") |
| | | private String createUserDepartLims; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "ææåæ´æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ExcelProperty("ææåæ´æ¶é´") |
| | | private LocalDate expectAlterDate; |
| | | |
| | | @Schema(description = "å®é
åæ´æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ExcelProperty("å®é
åæ´æ¶é´") |
| | | private LocalDate actuallyAlterDate; |
| | | |
| | | @Schema(description = "ç¶æ") |
| | | @ExcelProperty("ç¶æ") |
| | | private String state; |
| | | |
| | | @Schema(description = "审æ¹äºº") |
| | | private Integer checkUser; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | @ExcelProperty("审æ¹äºº") |
| | | private String checkUserName; |
| | | |
| | | @Schema(description = "åæ´è¯´æ") |
| | | @ExcelProperty("åæ´è¯´æ") |
| | | private String alterNote; |
| | | |
| | | @Schema(description = "åæ´åç¼å·") |
| | | private String alterBeforeCode; |
| | | |
| | | @Schema(description = "åæ´ååç§°") |
| | | private String alterBeforeName; |
| | | |
| | | @Schema(description = "åæ´åçæ¬") |
| | | private String alterBeforeVersion; |
| | | |
| | | @Schema(description = "åæ´åç¼å·") |
| | | private String alterAfterCode; |
| | | |
| | | @Schema(description = "åæ´ååç§°") |
| | | private String alterAfterName; |
| | | |
| | | @Schema(description = "åæ´åçæ¬") |
| | | private String alterAfterVersion; |
| | | |
| | | @Schema(description = "åæ´åéä»¶") |
| | | private String alterAfterUrl; |
| | | |
| | | @Schema(description = "åæ´åéä»¶") |
| | | @TableField(select = false,exist = false) |
| | | private MultipartFile file; |
| | | |
| | | @Schema(description = "åä¸çæ¬å¤çæ¹å¼") |
| | | private String method; |
| | | } |
| cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageDocumentCancel.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageDocumentControlled.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageDocumentIssueRecycle.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageDocumentList.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageMeeting.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageMeetingParticipants.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRecordAudit.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRecordCancel.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRecordCheck.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRecordIntervals.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRecordIntervalsTotal.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRecordIssueRecycle.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRecordTotal.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRecordVerify.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageReviewProgram.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageReviewProgramFile.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageReviewReport.java
cnas-manage/src/main/java/com/ruoyi/manage/pojo/ManageRiskAssessmentResults.java
cnas-manage/src/main/java/com/ruoyi/manage/schedule/ManageRecordTotalSchedule.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ClientSatisfactionService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalCheckDetailService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalCheckService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalCorrectFileService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalCorrectService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalImplementDetailService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalImplementService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalMeetingDetailService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalMeetingService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalPlanDetailService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalPlanService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/InternalReportService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageControlPlanListService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageDocumentAlterService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageDocumentCancelService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageDocumentControlledService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageDocumentIssueRecycleService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageDocumentListService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageMeetingParticipantsService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageMeetingService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRecordAuditService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRecordCancelService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRecordCheckService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRecordIntervalsService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRecordIntervalsTotalService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRecordIssueRecycleService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRecordTotalService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRecordVerifyService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageReviewProgramFileService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageReviewProgramService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageReviewReportService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/ManageRiskAssessmentResultsService.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ClientSatisfactionServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalCheckDetailServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalCheckServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalCorrectFileServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalCorrectServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalImplementDetailServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalImplementServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalMeetingDetailServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalMeetingServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalPlanDetailServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalPlanServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/InternalReportServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageControlPlanListServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentAlterServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentCancelServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentControlledServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentIssueRecycleServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageDocumentListServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageMeetingParticipantsServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageMeetingServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordAuditServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordCancelServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordCheckServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordIntervalsServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordIntervalsTotalServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordIssueRecycleServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordTotalServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordVerifyServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageReviewProgramFileServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageReviewProgramServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageReviewReportServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRiskAssessmentResultsServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/vo/ManageControlPlanListVo.java
cnas-manage/src/main/java/com/ruoyi/manage/vo/ManageRiskAssessmentResultsVo.java
cnas-manage/src/main/java/com/ruoyi/manage/vo/MeetingParticipantsDetailsVo.java
cnas-manage/src/main/java/com/ruoyi/manage/vo/ReviewProgramDetailsVo.java
cnas-manage/src/main/resources/lib/license.xml
cnas-manage/src/main/resources/mapper/ClientSatisfactionAnalyseFileMapper.xml
cnas-manage/src/main/resources/mapper/ClientSatisfactionMapper.xml
cnas-manage/src/main/resources/mapper/InternalCheckMapper.xml
cnas-manage/src/main/resources/mapper/InternalCorrectFileMapper.xml
cnas-manage/src/main/resources/mapper/InternalCorrectMapper.xml
cnas-manage/src/main/resources/mapper/InternalImplementMapper.xml
cnas-manage/src/main/resources/mapper/InternalMeetingDetailMapper.xml
cnas-manage/src/main/resources/mapper/InternalMeetingMapper.xml
cnas-manage/src/main/resources/mapper/InternalPlanDetailMapper.xml
cnas-manage/src/main/resources/mapper/InternalPlanMapper.xml
cnas-manage/src/main/resources/mapper/InternalReportMapper.xml
cnas-manage/src/main/resources/mapper/ManageControlPlanListMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentAlterMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentCancelMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentControlledMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentIssueRecycleMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentListMapper.xml
cnas-manage/src/main/resources/mapper/ManageMeetingMapper.xml
cnas-manage/src/main/resources/mapper/ManageMeetingParticipantsMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordAuditMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordCancelMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordCheckMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordIntervalsMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordIntervalsTotalMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordIssueRecycleMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordTotalMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordVerifyMapper.xml
cnas-manage/src/main/resources/mapper/ManageReviewProgramFileMapper.xml
cnas-manage/src/main/resources/mapper/ManageReviewProgramMapper.xml
cnas-manage/src/main/resources/mapper/ManageReviewReportMapper.xml
cnas-manage/src/main/resources/mapper/ManageRiskAssessmentResultsMapper.xml
cnas-manage/src/main/resources/static/analysis-risk-factors.docx
cnas-manage/src/main/resources/static/audit-deal.docx
cnas-manage/src/main/resources/static/cancel-deal.docx
cnas-manage/src/main/resources/static/check-deal.docx
cnas-manage/src/main/resources/static/customer-satisfaction-questionnaire.docx
cnas-manage/src/main/resources/static/internal-check.docx
cnas-manage/src/main/resources/static/internal-correct.docx
cnas-manage/src/main/resources/static/internal-implement.docx
cnas-manage/src/main/resources/static/internal-meeting.docx
cnas-manage/src/main/resources/static/internal-plan.docx
cnas-manage/src/main/resources/static/internal-report.docx
cnas-manage/src/main/resources/static/intervals-deal.docx
cnas-manage/src/main/resources/static/recycle-deal.docx
cnas-manage/src/main/resources/static/review-meet.docx
cnas-manage/src/main/resources/static/review-program.docx
cnas-manage/src/main/resources/static/review-report.docx
cnas-manage/src/main/resources/static/risk-factor-identification-risk.docx
cnas-manage/src/main/resources/static/verify-deal.docx
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonBasicInfoController.java
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonCommunicationAbilityController.java
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonJobResponsibilitiesController.java
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonPersonnelCapacityController.java
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonPostAuthorizationRecordController.java
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonRewardPunishmentRecordController.java
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonTrainingController.java
cnas-personnel/src/main/java/com/ruoyi/personnel/controller/PersonTrainingRecordController.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonBasicInfoDetailsDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonBasicInfoDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonBasicInfoWorkDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonCommunicationAbilityDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonJobResponsibilitiesDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonPersonnelCapacityDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonPersonnelCapacityExportDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonPostAuthorizationRecordDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonRewardPunishmentRecordDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonTrainingDetailedDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonTrainingDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonTrainingRecordDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonTrainingRecordListDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/PersonTrainingRecordSubmitDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/TrainingRecordExportDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/TrainingRecordPersonDetailedDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/dto/UserPageDto.java
cnas-personnel/src/main/java/com/ruoyi/personnel/excel/PersonRewardPunishmentRecordExcel.java
cnas-personnel/src/main/java/com/ruoyi/personnel/excel/PersonTrainingDetailedListener.java
cnas-personnel/src/main/java/com/ruoyi/personnel/excel/PersonTrainingDetailedUpload.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/AnnexMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonBasicInfoFileMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonBasicInfoMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonBasicInfoWorkMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonCommunicationAbilityMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonJobResponsibilitiesMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonPersonnelCapacityMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonPostAuthorizationRecordMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonRewardPunishmentRecordMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonTrainingDetailedFileMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonTrainingDetailedMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonTrainingMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/mapper/PersonTrainingRecordMapper.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/Annex.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonBasicInfo.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonBasicInfoFile.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonBasicInfoWork.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonCommunicationAbility.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonJobResponsibilities.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonPersonnelCapacity.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonPostAuthorizationRecord.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonRewardPunishmentRecord.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonTraining.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonTrainingDetailed.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonTrainingDetailedFile.java
cnas-personnel/src/main/java/com/ruoyi/personnel/pojo/PersonTrainingRecord.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/AnnexService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonBasicInfoFileService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonBasicInfoService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonBasicInfoWorkService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonCommunicationAbilityService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonJobResponsibilitiesService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonPersonnelCapacityService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonPostAuthorizationRecordService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonRewardPunishmentRecordService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonTrainingDetailedService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonTrainingRecordService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/PersonTrainingService.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/AnnexServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonBasicInfoFileServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonBasicInfoServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonBasicInfoWorkServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonCommunicationAbilityServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonJobResponsibilitiesServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonPersonnelCapacityServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonPostAuthorizationRecordServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonRewardPunishmentRecordServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonTrainingDetailedServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonTrainingRecordServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/service/impl/PersonTrainingServiceImpl.java
cnas-personnel/src/main/java/com/ruoyi/personnel/task/PersonTrainingSchedule.java
cnas-personnel/src/main/resources/mapper/PersonBasicInfoMapper.xml
cnas-personnel/src/main/resources/mapper/PersonCommunicationAbilityMapper.xml
cnas-personnel/src/main/resources/mapper/PersonJobResponsibilitiesMapper.xml
cnas-personnel/src/main/resources/mapper/PersonPersonnelCapacityMapper.xml
cnas-personnel/src/main/resources/mapper/PersonPostAuthorizationRecordMapper.xml
cnas-personnel/src/main/resources/mapper/PersonRewardPunishmentRecordMapper.xml
cnas-personnel/src/main/resources/mapper/PersonTrainingDetailedMapper.xml
cnas-personnel/src/main/resources/mapper/PersonTrainingMapper.xml
cnas-personnel/src/main/resources/mapper/PersonTrainingRecordMapper.xml
cnas-personnel/src/main/resources/static/communication-deal.docx
cnas-personnel/src/main/resources/static/credentials-deal.docx
cnas-personnel/src/main/resources/static/explain-deal.docx
cnas-personnel/src/main/resources/static/person-basic-info.docx
cnas-personnel/src/main/resources/static/person-training-record.docx
cnas-personnel/src/main/resources/static/person-training.docx
cnas-personnel/src/main/resources/static/personnel-capacity.docx
cnas-personnel/src/main/resources/static/super-vise-plan.docx
cnas-personnel/src/main/resources/static/supervision-control-sheet.docx
cnas-personnel/src/main/resources/static/supervision-processing-sheet.docx
cnas-personnel/src/main/resources/static/supervision-record.docx
cnas-personnel/src/main/resources/static/training-record.docx
cnas-process/src/main/java/com/ruoyi/process/controller/InconsistentDistributionController.java
cnas-process/src/main/java/com/ruoyi/process/controller/InspectionOrderController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessComplainController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessDealController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessEvaluateController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessMethodSearchNewController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessMethodVerifyController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessOrderDeviceController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessReportController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessSampleController.java
cnas-process/src/main/java/com/ruoyi/process/controller/ProcessTotaldealController.java
cnas-process/src/main/java/com/ruoyi/process/controller/QualityMonitorController.java
cnas-process/src/main/java/com/ruoyi/process/controller/QualitySuperviseController.java
cnas-process/src/main/java/com/ruoyi/process/controller/QualitySuperviseManagementReviewController.java
cnas-process/src/main/java/com/ruoyi/process/dto/ImageDemoData.java
cnas-process/src/main/java/com/ruoyi/process/dto/InconsistentDistributionDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/InconsistentDistributionProportionDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/InspectionOrderDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/InspectionOrderExportDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/ProcessComplainDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/ProcessDealDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/ProcessMethodSearchNewArchivedDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/ProcessMethodSearchNewBackupsDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/ProcessMethodVerifyCalibrationsFileDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/ProcessMethodVerifyDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/ProcessMethodVerifyExportWordDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/ProcessReportDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/QualityMonitorDetailsDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/QualityMonitorDetailsEvaluateDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/QualityMonitorDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/QualitySuperviseDetailsAccordingDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/QualitySuperviseDetailsCorrectDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/QualitySuperviseDetailsDto.java
cnas-process/src/main/java/com/ruoyi/process/dto/SampleItemDto.java
cnas-process/src/main/java/com/ruoyi/process/excel/QualityMonitorDetailsUpload.java
cnas-process/src/main/java/com/ruoyi/process/excel/QualitySuperviseDetailsUpload.java
cnas-process/src/main/java/com/ruoyi/process/listener/NewJuOrderInspectionListener.java
cnas-process/src/main/java/com/ruoyi/process/mapper/InconsistentDistributionDetailMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/InconsistentDistributionMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/InspectionOrderDetailMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/InspectionOrderMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessComplainMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessDealMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessEvaluateMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessMethodSearchNewArchivedMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessMethodSearchNewBackupsMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessMethodSearchNewMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessMethodVerifyCalibrationsFileMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessMethodVerifyMachineAttachmentMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessMethodVerifyMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessMethodVerifyMethodFileMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessMethodVerifyWorkFileMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessOrderDeviceMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessReportMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessSampleMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/ProcessTotaldealMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualityMonitorDetailsEvaluateFileMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualityMonitorDetailsEvaluateMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualityMonitorDetailsMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualityMonitorDetailsRatifyMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualityMonitorMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualitySuperviseDetailsAccordingMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualitySuperviseDetailsCorrectFileMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualitySuperviseDetailsCorrectMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualitySuperviseDetailsMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualitySuperviseDetailsRecordMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualitySuperviseManagementReviewMapper.java
cnas-process/src/main/java/com/ruoyi/process/mapper/QualitySuperviseMapper.java
cnas-process/src/main/java/com/ruoyi/process/pojo/InconsistentDistribution.java
cnas-process/src/main/java/com/ruoyi/process/pojo/InconsistentDistributionDetail.java
cnas-process/src/main/java/com/ruoyi/process/pojo/InspectionOrder.java
cnas-process/src/main/java/com/ruoyi/process/pojo/InspectionOrderDetail.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessComplain.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessDeal.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessEvaluate.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessMethodSearchNew.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessMethodSearchNewArchived.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessMethodSearchNewBackups.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessMethodVerify.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessMethodVerifyCalibrationsFile.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessMethodVerifyMachineAttachment.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessMethodVerifyMethodFile.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessMethodVerifyWorkFile.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessOrderDevice.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessReport.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessSample.java
cnas-process/src/main/java/com/ruoyi/process/pojo/ProcessTotaldeal.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualityMonitor.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualityMonitorDetails.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualityMonitorDetailsEvaluate.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualityMonitorDetailsEvaluateFile.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualityMonitorDetailsRatify.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualitySupervise.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualitySuperviseDetails.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualitySuperviseDetailsAccording.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualitySuperviseDetailsCorrect.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualitySuperviseDetailsCorrectFile.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualitySuperviseDetailsRecord.java
cnas-process/src/main/java/com/ruoyi/process/pojo/QualitySuperviseManagementReview.java
cnas-process/src/main/java/com/ruoyi/process/service/InconsistentDistributionDetailService.java
cnas-process/src/main/java/com/ruoyi/process/service/InconsistentDistributionService.java
cnas-process/src/main/java/com/ruoyi/process/service/InspectionOrderDetailService.java
cnas-process/src/main/java/com/ruoyi/process/service/InspectionOrderService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessComplainService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessDealService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessEvaluateService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessMethodSearchNewArchivedService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessMethodSearchNewBackupsService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessMethodSearchNewService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessMethodVerifyCalibrationsFileService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessMethodVerifyMachineAttachmentService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessMethodVerifyMethodFileService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessMethodVerifyService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessMethodVerifyWorkFileService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessOrderDeviceService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessReportService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessSampleService.java
cnas-process/src/main/java/com/ruoyi/process/service/ProcessTotaldealService.java
cnas-process/src/main/java/com/ruoyi/process/service/QualityMonitorDetailsEvaluateService.java
cnas-process/src/main/java/com/ruoyi/process/service/QualityMonitorDetailsRatifyService.java
cnas-process/src/main/java/com/ruoyi/process/service/QualityMonitorDetailsService.java
cnas-process/src/main/java/com/ruoyi/process/service/QualityMonitorService.java
cnas-process/src/main/java/com/ruoyi/process/service/QualitySuperviseDetailsService.java
cnas-process/src/main/java/com/ruoyi/process/service/QualitySuperviseManagementReviewService.java
cnas-process/src/main/java/com/ruoyi/process/service/QualitySuperviseService.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/CnasProcessMethodVerifyCalibrationsFileServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/CnasProcessMethodVerifyWorkFileServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/InconsistentDistributionDetailServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/InconsistentDistributionServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/InspectionOrderDetailServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/InspectionOrderServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessComplainServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessDealServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessEvaluateServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessMethodSearchNewArchivedServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessMethodSearchNewBackupsServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessMethodSearchNewServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessMethodVerifyMachineAttachmentServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessMethodVerifyMethodFileServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessMethodVerifyServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessOrderDeviceServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessReportServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessSampleServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/ProcessTotaldealServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/QualityMonitorDetailsEvaluateServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/QualityMonitorDetailsRatifyServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/QualityMonitorDetailsServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/QualityMonitorServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/QualitySuperviseDetailsServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/QualitySuperviseManagementReviewServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/service/impl/QualitySuperviseServiceImpl.java
cnas-process/src/main/java/com/ruoyi/process/task/QualitySuperviseSchedule.java
cnas-process/src/main/resources/mapper/InconsistentDistributionDetailMapper.xml
cnas-process/src/main/resources/mapper/InconsistentDistributionMapper.xml
cnas-process/src/main/resources/mapper/InspectionOrderDetailMapper.xml
cnas-process/src/main/resources/mapper/InspectionOrderMapper.xml
cnas-process/src/main/resources/mapper/ProcessComplainMapper.xml
cnas-process/src/main/resources/mapper/ProcessDealMapper.xml
cnas-process/src/main/resources/mapper/ProcessEvaluateMapper.xml
cnas-process/src/main/resources/mapper/ProcessMethodSearchNewArchivedMapper.xml
cnas-process/src/main/resources/mapper/ProcessMethodSearchNewBackupsMapper.xml
cnas-process/src/main/resources/mapper/ProcessMethodSearchNewMapper.xml
cnas-process/src/main/resources/mapper/ProcessMethodVerifyCalibrationsFileMapper.xml
cnas-process/src/main/resources/mapper/ProcessMethodVerifyMachineAttachmentMapper.xml
cnas-process/src/main/resources/mapper/ProcessMethodVerifyMapper.xml
cnas-process/src/main/resources/mapper/ProcessMethodVerifyMethodFileMapper.xml
cnas-process/src/main/resources/mapper/ProcessMethodVerifyWorkFileMapper.xml
cnas-process/src/main/resources/mapper/ProcessOrderDeviceMapper.xml
cnas-process/src/main/resources/mapper/ProcessReportMapper.xml
cnas-process/src/main/resources/mapper/ProcessSampleMapper.xml
cnas-process/src/main/resources/mapper/ProcessTotaldealMapper.xml
cnas-process/src/main/resources/mapper/QualityMonitorDetailsEvaluateFileMapper.xml
cnas-process/src/main/resources/mapper/QualityMonitorDetailsEvaluateMapper.xml
cnas-process/src/main/resources/mapper/QualityMonitorDetailsMapper.xml
cnas-process/src/main/resources/mapper/QualityMonitorDetailsRatifyMapper.xml
cnas-process/src/main/resources/mapper/QualityMonitorMapper.xml
cnas-process/src/main/resources/mapper/QualitySuperviseDetailsAccordingMapper.xml
cnas-process/src/main/resources/mapper/QualitySuperviseDetailsCorrectFileMapper.xml
cnas-process/src/main/resources/mapper/QualitySuperviseDetailsCorrectMapper.xml
cnas-process/src/main/resources/mapper/QualitySuperviseDetailsMapper.xml
cnas-process/src/main/resources/mapper/QualitySuperviseDetailsRecordMapper.xml
cnas-process/src/main/resources/mapper/QualitySuperviseManagementReviewMapper.xml
cnas-process/src/main/resources/mapper/QualitySuperviseMapper.xml
cnas-process/src/main/resources/static/excel/check-records.xlsx
cnas-process/src/main/resources/static/inconsistent-distribution.docx
cnas-process/src/main/resources/static/inspection-order.docx
cnas-process/src/main/resources/static/method-verify.docx
cnas-process/src/main/resources/static/quality-monitor-details-ratify.docx
cnas-process/src/main/resources/static/quality-monitor-evaluate.docx
cnas-process/src/main/resources/static/quality-monitor.docx
cnas-process/src/main/resources/static/quality-supervise.docx
cnas-process/src/main/resources/static/report-deal.docx
cnas-process/src/main/resources/static/sample-deal.docx
cnas-process/src/main/resources/static/sample-receive.docx
cnas-process/src/main/resources/static/supervise-detail-correct.docx
cnas-process/src/main/resources/static/supervise-management-eview.docx
cnas-process/src/main/resources/static/supervision-detail-according.docx
cnas-process/src/main/resources/static/supervision-detail-record.docx
cnas-require/src/main/java/com/ruoyi/require/controller/FeCalibrationScheduleController.java
cnas-require/src/main/java/com/ruoyi/require/controller/FeIlluminationController.java
cnas-require/src/main/java/com/ruoyi/require/controller/FeLightningProtectionController.java
cnas-require/src/main/java/com/ruoyi/require/controller/FePowerStableController.java
cnas-require/src/main/java/com/ruoyi/require/controller/FeStandardSubstanceAcceptanceController.java
cnas-require/src/main/java/com/ruoyi/require/controller/FeStandardSubstanceController.java
cnas-require/src/main/java/com/ruoyi/require/controller/FeStandardSubstanceRecordController.java
cnas-require/src/main/java/com/ruoyi/require/controller/FeTempHumDateController.java
cnas-require/src/main/java/com/ruoyi/require/controller/ForeignRegisterController.java
cnas-require/src/main/java/com/ruoyi/require/controller/InternalWastesController.java
cnas-require/src/main/java/com/ruoyi/require/controller/ProcurementSuppliesContentsController.java
cnas-require/src/main/java/com/ruoyi/require/controller/ProcurementSuppliesExpendsController.java
cnas-require/src/main/java/com/ruoyi/require/controller/ProcurementSuppliesListController.java
cnas-require/src/main/java/com/ruoyi/require/controller/ProcurementSuppliesStoreController.java
cnas-require/src/main/java/com/ruoyi/require/controller/SupplierManagementController.java
cnas-require/src/main/java/com/ruoyi/require/controller/SuppliersDirectoryContentsController.java
cnas-require/src/main/java/com/ruoyi/require/dto/AcceptanceDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/FeIlluminationAddDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/FeIlluminationDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/FeIlluminationExportDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/FePowerStableAddDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/FePowerStableDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/FePowerStableExportDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/FeTempHumDateDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/FeTempHumRecordDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/ForeignRegisterDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/InternalWastesDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/ProcurementSuppliesExpendDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/ProcurementSuppliesListDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/StoreDto.java
cnas-require/src/main/java/com/ruoyi/require/dto/SupplierManagementDto.java
cnas-require/src/main/java/com/ruoyi/require/excel/FeCalibrationScheduleExport.java
cnas-require/src/main/java/com/ruoyi/require/excel/FeLightningProtectionExcel.java
cnas-require/src/main/java/com/ruoyi/require/excel/FeStandardSubstanceExcel.java
cnas-require/src/main/java/com/ruoyi/require/excel/FeStandardSubstanceImport.java
cnas-require/src/main/java/com/ruoyi/require/excel/StoreExcel.java
cnas-require/src/main/java/com/ruoyi/require/mapper/CollectLaboratoryMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/CollectTemperatureHumidityMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeCalibrationScheduleMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeIlluminationDetectionAreaMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeIlluminationMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeLightningProtectionMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeMeasuredQuantityMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FePowerStableMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeStandardSubstanceAcceptanceInspectionMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeStandardSubstanceAcceptanceMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeStandardSubstanceMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeStandardSubstanceRecordMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeTempHumDateMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/FeTempHumRecordMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/ForeignRegisterMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/InternalWastesDetailMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/InternalWastesMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/ProcurementSuppliesConsumablesMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/ProcurementSuppliesContentsMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/ProcurementSuppliesExpendsMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/ProcurementSuppliesListMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/ProcurementSuppliesStoreMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/SupplierManagementMapper.java
cnas-require/src/main/java/com/ruoyi/require/mapper/SuppliersDirectoryContentsMapper.java
cnas-require/src/main/java/com/ruoyi/require/pojo/CollectLaboratory.java
cnas-require/src/main/java/com/ruoyi/require/pojo/CollectTemperatureHumidity.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeCalibrationSchedule.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeIllumination.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeIlluminationDetectionArea.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeLightningProtection.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeMeasuredQuantity.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FePowerStable.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeStandardSubstance.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeStandardSubstanceAcceptance.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeStandardSubstanceAcceptanceInspection.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeStandardSubstanceRecord.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeTempHumDate.java
cnas-require/src/main/java/com/ruoyi/require/pojo/FeTempHumRecord.java
cnas-require/src/main/java/com/ruoyi/require/pojo/ForeignRegister.java
cnas-require/src/main/java/com/ruoyi/require/pojo/InternalWastes.java
cnas-require/src/main/java/com/ruoyi/require/pojo/InternalWastesDetail.java
cnas-require/src/main/java/com/ruoyi/require/pojo/ProcurementSuppliesConsumables.java
cnas-require/src/main/java/com/ruoyi/require/pojo/ProcurementSuppliesContents.java
cnas-require/src/main/java/com/ruoyi/require/pojo/ProcurementSuppliesExpends.java
cnas-require/src/main/java/com/ruoyi/require/pojo/ProcurementSuppliesList.java
cnas-require/src/main/java/com/ruoyi/require/pojo/ProcurementSuppliesStore.java
cnas-require/src/main/java/com/ruoyi/require/pojo/SupplierManagement.java
cnas-require/src/main/java/com/ruoyi/require/pojo/SuppliersDirectoryContents.java
cnas-require/src/main/java/com/ruoyi/require/service/FeCalibrationScheduleService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeIlluminationDetectionAreaService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeIlluminationService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeLightningProtectionService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeMeasuredQuantityService.java
cnas-require/src/main/java/com/ruoyi/require/service/FePowerStableService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeStandardSubstanceAcceptanceInspectionService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeStandardSubstanceAcceptanceService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeStandardSubstanceRecordService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeStandardSubstanceService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeTempHumDateService.java
cnas-require/src/main/java/com/ruoyi/require/service/FeTempHumRecordService.java
cnas-require/src/main/java/com/ruoyi/require/service/ForeignRegisterService.java
cnas-require/src/main/java/com/ruoyi/require/service/InternalWastesDetailService.java
cnas-require/src/main/java/com/ruoyi/require/service/InternalWastesService.java
cnas-require/src/main/java/com/ruoyi/require/service/ProcurementSuppliesConsumablesService.java
cnas-require/src/main/java/com/ruoyi/require/service/ProcurementSuppliesContentsService.java
cnas-require/src/main/java/com/ruoyi/require/service/ProcurementSuppliesExpendsService.java
cnas-require/src/main/java/com/ruoyi/require/service/ProcurementSuppliesListService.java
cnas-require/src/main/java/com/ruoyi/require/service/ProcurementSuppliesStoreService.java
cnas-require/src/main/java/com/ruoyi/require/service/SupplierManagementService.java
cnas-require/src/main/java/com/ruoyi/require/service/SuppliersDirectoryContentsService.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeCalibrationScheduleServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeIlluminationDetectionAreaServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeIlluminationServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeLightningProtectionServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeMeasuredQuantityServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FePowerStableServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeStandardSubstanceAcceptanceInspectionServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeStandardSubstanceAcceptanceServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeStandardSubstanceRecordServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeStandardSubstanceServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeTempHumDateServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/FeTempHumRecordServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/ForeignRegisterServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesDetailServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/InternalWastesServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/ProcurementSuppliesConsumablesServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/ProcurementSuppliesContentsServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/ProcurementSuppliesExpendsServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/ProcurementSuppliesListServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/ProcurementSuppliesStoreServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/SupplierManagementServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/service/impl/SuppliersDirectoryContentsServiceImpl.java
cnas-require/src/main/java/com/ruoyi/require/task/FeTempHumDateSchedule.java
cnas-require/src/main/java/com/ruoyi/require/vo/AcceptanceDetailsVo.java
cnas-require/src/main/java/com/ruoyi/require/vo/AcceptanceVo.java
cnas-require/src/main/java/com/ruoyi/require/vo/SubstanceRecordVo.java
cnas-require/src/main/resources/mapper/FeIlluminationMapper.xml
cnas-require/src/main/resources/mapper/FeLightningProtectionMapper.xml
cnas-require/src/main/resources/mapper/FePowerStableMapper.xml
cnas-require/src/main/resources/mapper/FeStandardSubstanceAcceptanceMapper.xml
cnas-require/src/main/resources/mapper/FeStandardSubstanceMapper.xml
cnas-require/src/main/resources/mapper/FeStandardSubstanceRecordMapper.xml
cnas-require/src/main/resources/mapper/FeTempHumDateMapper.xml
cnas-require/src/main/resources/mapper/FeTempHumRecordMapper.xml
cnas-require/src/main/resources/mapper/ForeignRegisterMapper.xml
cnas-require/src/main/resources/mapper/InternalWastesMapper.xml
cnas-require/src/main/resources/mapper/ProcurementSuppliesListMapper.xml
cnas-require/src/main/resources/mapper/ProcurementSuppliesStoreMapper.xml
cnas-require/src/main/resources/mapper/SupplierManagementMapper.xml
cnas-require/src/main/resources/static/foreign-register.docx
cnas-require/src/main/resources/static/illumination.docx
cnas-require/src/main/resources/static/internal-wastes.docx
cnas-require/src/main/resources/static/power-stable.docx
cnas-require/src/main/resources/static/temp_hum_date.docx
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleMenuMapper.java
ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml |