| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.safe.pojo.SafeFacilityInspection; |
| | | import com.ruoyi.safe.service.SafeFacilityInspectionService; |
| | | 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 java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å·¡æ£ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/safeFacilityInspection") |
| | | @AllArgsConstructor |
| | | @Tag(name = "å®å
¨ç产--å®å
¨è®¾æ½å·¡æ£") |
| | | public class SafeFacilityInspectionController { |
| | | |
| | | private SafeFacilityInspectionService safeFacilityInspectionService; |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | public R page(Page page, SafeFacilityInspection safeFacilityInspection) { |
| | | return R.ok(safeFacilityInspectionService.pageSafeFacilityInspection(page, safeFacilityInspection)); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | public R getById(@PathVariable Integer id) { |
| | | return R.ok(safeFacilityInspectionService.getById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢å®å
¨è®¾æ½å·¡æ£") |
| | | @Log(title = "å®å
¨è®¾æ½å·¡æ£", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeFacilityInspection safeFacilityInspection) { |
| | | return R.ok(safeFacilityInspectionService.save(safeFacilityInspection)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¿®æ¹å®å
¨è®¾æ½å·¡æ£") |
| | | @Log(title = "å®å
¨è®¾æ½å·¡æ£", businessType = BusinessType.UPDATE) |
| | | @PutMapping() |
| | | public R update(@RequestBody SafeFacilityInspection safeFacilityInspection) { |
| | | return R.ok(safeFacilityInspectionService.updateById(safeFacilityInspection)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤å®å
¨è®¾æ½å·¡æ£") |
| | | @Log(title = "å®å
¨è®¾æ½å·¡æ£", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeFacilityInspection(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeFacilityInspectionService.removeBatchByIds(ids)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.safe.pojo.SafeFacilityLedger; |
| | | import com.ruoyi.safe.service.SafeFacilityLedgerService; |
| | | 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 java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å°è´¦ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/safeFacilityLedger") |
| | | @AllArgsConstructor |
| | | @Tag(name = "å®å
¨ç产--å®å
¨è®¾æ½å°è´¦") |
| | | public class SafeFacilityLedgerController { |
| | | |
| | | private SafeFacilityLedgerService safeFacilityLedgerService; |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | public R page(Page page, SafeFacilityLedger safeFacilityLedger) { |
| | | return R.ok(safeFacilityLedgerService.pageSafeFacilityLedger(page, safeFacilityLedger)); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | public R getById(@PathVariable Integer id) { |
| | | return R.ok(safeFacilityLedgerService.getById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢å®å
¨è®¾æ½å°è´¦") |
| | | @Log(title = "å®å
¨è®¾æ½å°è´¦", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeFacilityLedger safeFacilityLedger) { |
| | | return R.ok(safeFacilityLedgerService.save(safeFacilityLedger)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¿®æ¹å®å
¨è®¾æ½å°è´¦") |
| | | @Log(title = "å®å
¨è®¾æ½å°è´¦", businessType = BusinessType.UPDATE) |
| | | @PutMapping() |
| | | public R update(@RequestBody SafeFacilityLedger safeFacilityLedger) { |
| | | return R.ok(safeFacilityLedgerService.updateById(safeFacilityLedger)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤å®å
¨è®¾æ½å°è´¦") |
| | | @Log(title = "å®å
¨è®¾æ½å°è´¦", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeFacilityLedger(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeFacilityLedgerService.removeBatchByIds(ids)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.safe.pojo.SafeFacilityRectification; |
| | | import com.ruoyi.safe.service.SafeFacilityRectificationService; |
| | | 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 java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½æ´æ¹ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/safeFacilityRectification") |
| | | @AllArgsConstructor |
| | | @Tag(name = "å®å
¨ç产--å®å
¨è®¾æ½æ´æ¹") |
| | | public class SafeFacilityRectificationController { |
| | | |
| | | private SafeFacilityRectificationService safeFacilityRectificationService; |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | public R page(Page page, SafeFacilityRectification safeFacilityRectification) { |
| | | return R.ok(safeFacilityRectificationService.pageSafeFacilityRectification(page, safeFacilityRectification)); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | public R getById(@PathVariable Integer id) { |
| | | return R.ok(safeFacilityRectificationService.getById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢å®å
¨è®¾æ½æ´æ¹") |
| | | @Log(title = "å®å
¨è®¾æ½æ´æ¹", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeFacilityRectification safeFacilityRectification) { |
| | | return R.ok(safeFacilityRectificationService.save(safeFacilityRectification)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¿®æ¹å®å
¨è®¾æ½æ´æ¹") |
| | | @Log(title = "å®å
¨è®¾æ½æ´æ¹", businessType = BusinessType.UPDATE) |
| | | @PutMapping() |
| | | public R update(@RequestBody SafeFacilityRectification safeFacilityRectification) { |
| | | return R.ok(safeFacilityRectificationService.updateById(safeFacilityRectification)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤å®å
¨è®¾æ½æ´æ¹") |
| | | @Log(title = "å®å
¨è®¾æ½æ´æ¹", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeFacilityRectification(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeFacilityRectificationService.removeBatchByIds(ids)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.safe.pojo.SafeLineInspection; |
| | | import com.ruoyi.safe.service.SafeLineInspectionService; |
| | | 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 java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£ä»»å¡ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/safeLineInspection") |
| | | @AllArgsConstructor |
| | | @Tag(name = "å®å
¨ç产--线路巡æ£ä»»å¡") |
| | | public class SafeLineInspectionController { |
| | | |
| | | private SafeLineInspectionService safeLineInspectionService; |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | public R page(Page page, SafeLineInspection safeLineInspection) { |
| | | return R.ok(safeLineInspectionService.pageSafeLineInspection(page, safeLineInspection)); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | public R getById(@PathVariable Integer id) { |
| | | return R.ok(safeLineInspectionService.getById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢çº¿è·¯å·¡æ£ä»»å¡") |
| | | @Log(title = "线路巡æ£", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeLineInspection safeLineInspection) { |
| | | // æ°å¢æ¶é»è®¤ç¶æä¸º"å¾
å·¡æ£" |
| | | safeLineInspection.setStatus("å¾
å·¡æ£"); |
| | | return R.ok(safeLineInspectionService.save(safeLineInspection)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¿®æ¹çº¿è·¯å·¡æ£ä»»å¡") |
| | | @Log(title = "线路巡æ£", businessType = BusinessType.UPDATE) |
| | | @PutMapping() |
| | | public R update(@RequestBody SafeLineInspection safeLineInspection) { |
| | | return R.ok(safeLineInspectionService.updateById(safeLineInspection)); |
| | | } |
| | | |
| | | @Operation(summary = "宿巡æ£") |
| | | @Log(title = "线路巡æ£", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/complete/{id}") |
| | | public R complete(@PathVariable Integer id) { |
| | | SafeLineInspection inspection = safeLineInspectionService.getById(id); |
| | | if (inspection == null) { |
| | | return R.fail("å·¡æ£ä»»å¡ä¸åå¨"); |
| | | } |
| | | |
| | | Long currentUserId = SecurityUtils.getUserId(); |
| | | inspection.setStatus("已宿"); |
| | | inspection.setUpdateTime(LocalDateTime.now()); |
| | | inspection.setUpdateUser(currentUserId.intValue()); |
| | | |
| | | return R.ok(safeLineInspectionService.updateById(inspection)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤çº¿è·¯å·¡æ£ä»»å¡") |
| | | @Log(title = "线路巡æ£", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeLineInspection(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeLineInspectionService.removeBatchByIds(ids)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.safe.pojo.SafeLineInspectionHazard; |
| | | import com.ruoyi.safe.service.SafeLineInspectionHazardService; |
| | | 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 java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£éæ£ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/safeLineInspectionHazard") |
| | | @AllArgsConstructor |
| | | @Tag(name = "å®å
¨ç产--线路巡æ£éæ£") |
| | | public class SafeLineInspectionHazardController { |
| | | |
| | | private SafeLineInspectionHazardService safeLineInspectionHazardService; |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | public R page(Page page, SafeLineInspectionHazard safeLineInspectionHazard) { |
| | | return R.ok(safeLineInspectionHazardService.pageSafeLineInspectionHazard(page, safeLineInspectionHazard)); |
| | | } |
| | | |
| | | @GetMapping("/list/{inspectionId}") |
| | | @Operation(summary = "æ ¹æ®å·¡æ£ä»»å¡IDæ¥è¯¢éæ£") |
| | | public R listByInspectionId(@PathVariable Integer inspectionId) { |
| | | return R.ok(safeLineInspectionHazardService.listByInspectionId(inspectionId)); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | public R getById(@PathVariable Integer id) { |
| | | return R.ok(safeLineInspectionHazardService.getById(id)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢çº¿è·¯å·¡æ£éæ£") |
| | | @Log(title = "线路巡æ£éæ£", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeLineInspectionHazard safeLineInspectionHazard) { |
| | | return R.ok(safeLineInspectionHazardService.save(safeLineInspectionHazard)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¿®æ¹çº¿è·¯å·¡æ£éæ£") |
| | | @Log(title = "线路巡æ£éæ£", businessType = BusinessType.UPDATE) |
| | | @PutMapping() |
| | | public R update(@RequestBody SafeLineInspectionHazard safeLineInspectionHazard) { |
| | | return R.ok(safeLineInspectionHazardService.updateById(safeLineInspectionHazard)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤çº¿è·¯å·¡æ£éæ£") |
| | | @Log(title = "线路巡æ£éæ£", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeLineInspectionHazard(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeLineInspectionHazardService.removeBatchByIds(ids)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.controller; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.safe.pojo.SafeLineInspectionRecord; |
| | | import com.ruoyi.safe.service.SafeLineInspectionRecordService; |
| | | 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 java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/safeLineInspectionRecord") |
| | | @AllArgsConstructor |
| | | @Tag(name = "å®å
¨ç产--线路巡æ£è®°å½") |
| | | public class SafeLineInspectionRecordController { |
| | | |
| | | private SafeLineInspectionRecordService safeLineInspectionRecordService; |
| | | |
| | | @GetMapping("/list/{inspectionId}") |
| | | @Operation(summary = "æ ¹æ®å·¡æ£ä»»å¡IDæ¥è¯¢è®°å½") |
| | | public R listByInspectionId(@PathVariable Integer inspectionId) { |
| | | return R.ok(safeLineInspectionRecordService.listByInspectionId(inspectionId)); |
| | | } |
| | | |
| | | @Operation(summary = "æ°å¢çº¿è·¯å·¡æ£è®°å½") |
| | | @Log(title = "线路巡æ£è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping() |
| | | public R add(@RequestBody SafeLineInspectionRecord safeLineInspectionRecord) { |
| | | return R.ok(safeLineInspectionRecordService.save(safeLineInspectionRecord)); |
| | | } |
| | | |
| | | @Operation(summary = "æ¹éæ°å¢çº¿è·¯å·¡æ£è®°å½") |
| | | @Log(title = "线路巡æ£è®°å½", businessType = BusinessType.INSERT) |
| | | @PostMapping("/batch") |
| | | public R addBatch(@RequestBody List<SafeLineInspectionRecord> records) { |
| | | return R.ok(safeLineInspectionRecordService.saveBatch(records)); |
| | | } |
| | | |
| | | @Operation(summary = "ä¿®æ¹çº¿è·¯å·¡æ£è®°å½") |
| | | @Log(title = "线路巡æ£è®°å½", businessType = BusinessType.UPDATE) |
| | | @PutMapping() |
| | | public R update(@RequestBody SafeLineInspectionRecord safeLineInspectionRecord) { |
| | | return R.ok(safeLineInspectionRecordService.updateById(safeLineInspectionRecord)); |
| | | } |
| | | |
| | | @Operation(summary = "å é¤çº¿è·¯å·¡æ£è®°å½") |
| | | @Log(title = "线路巡æ£è®°å½", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public R delSafeLineInspectionRecord(@RequestBody List<Integer> ids) { |
| | | return R.ok(safeLineInspectionRecordService.removeBatchByIds(ids)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.mapper; |
| | | |
| | | import com.ruoyi.safe.pojo.SafeFacilityInspection; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å·¡æ£ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Mapper |
| | | public interface SafeFacilityInspectionMapper extends BaseMapper<SafeFacilityInspection> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.mapper; |
| | | |
| | | import com.ruoyi.safe.pojo.SafeFacilityLedger; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å°è´¦ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Mapper |
| | | public interface SafeFacilityLedgerMapper extends BaseMapper<SafeFacilityLedger> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.mapper; |
| | | |
| | | import com.ruoyi.safe.pojo.SafeFacilityRectification; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½æ´æ¹ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Mapper |
| | | public interface SafeFacilityRectificationMapper extends BaseMapper<SafeFacilityRectification> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.mapper; |
| | | |
| | | import com.ruoyi.safe.pojo.SafeLineInspectionHazard; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£éæ£ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Mapper |
| | | public interface SafeLineInspectionHazardMapper extends BaseMapper<SafeLineInspectionHazard> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.mapper; |
| | | |
| | | import com.ruoyi.safe.pojo.SafeLineInspection; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£ä»»å¡ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Mapper |
| | | public interface SafeLineInspectionMapper extends BaseMapper<SafeLineInspection> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.mapper; |
| | | |
| | | import com.ruoyi.safe.pojo.SafeLineInspectionRecord; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Mapper |
| | | public interface SafeLineInspectionRecordMapper extends BaseMapper<SafeLineInspectionRecord> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.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 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å·¡æ£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("safe_facility_inspection") |
| | | @Schema(name = "SafeFacilityInspection对象", description = "å®å
¨ç产--å®å
¨è®¾æ½å·¡æ£") |
| | | public class SafeFacilityInspection implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "å·¡æ£ç¼å·") |
| | | private String inspectionCode; |
| | | |
| | | @Schema(description = "设æ½ID") |
| | | private Integer facilityId; |
| | | |
| | | @Schema(description = "å·¡æ£ç±»å(宿/临æ¶)") |
| | | private String inspectionType; |
| | | |
| | | @Schema(description = "计åå·¡æ£æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime planTime; |
| | | |
| | | @Schema(description = "å·¡æ£äººID") |
| | | private Integer inspectorId; |
| | | |
| | | @Schema(description = "å®é
å·¡æ£æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime actualTime; |
| | | |
| | | @Schema(description = "æ£æ¥ç»æ(æ£å¸¸/å¼å¸¸)") |
| | | private String checkResult; |
| | | |
| | | @Schema(description = "æ£æ¥è¯´æ") |
| | | private String checkDesc; |
| | | |
| | | @Schema(description = "ç¶æ(å¾
å·¡æ£/已巡æ£)") |
| | | private String status; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @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") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "æ´æ°äººID") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | |
| | | @TableField(exist = false) |
| | | private String facilityName; |
| | | |
| | | @TableField(exist = false) |
| | | private String facilityCode; |
| | | |
| | | @TableField(exist = false) |
| | | private String inspectorName; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.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.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å°è´¦ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("safe_facility_ledger") |
| | | @Schema(name = "SafeFacilityLedger对象", description = "å®å
¨ç产--å®å
¨è®¾æ½å°è´¦") |
| | | public class SafeFacilityLedger implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "设æ½ç¼å·") |
| | | private String facilityCode; |
| | | |
| | | @Schema(description = "设æ½åç§°") |
| | | private String facilityName; |
| | | |
| | | @Schema(description = "设æ½ç±»å") |
| | | private String facilityType; |
| | | |
| | | @Schema(description = "è§æ ¼åå·") |
| | | private String facilitySpec; |
| | | |
| | | @Schema(description = "å®è£
ä½ç½®") |
| | | private String installLocation; |
| | | |
| | | @Schema(description = "å®è£
æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate installTime; |
| | | |
| | | @Schema(description = "çäº§æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate productionDate; |
| | | |
| | | @Schema(description = "æææ(天)") |
| | | private Integer validPeriod; |
| | | |
| | | @Schema(description = "䏿¬¡æ£æ¥æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate nextCheckTime; |
| | | |
| | | @Schema(description = "ç¶æ(æ£å¸¸/å¼å¸¸/æ¥åº)") |
| | | private String status; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @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") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "æ´æ°äººID") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.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 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½æ´æ¹ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("safe_facility_rectification") |
| | | @Schema(name = "SafeFacilityRectification对象", description = "å®å
¨ç产--å®å
¨è®¾æ½æ´æ¹") |
| | | public class SafeFacilityRectification implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "å·¡æ£ID") |
| | | private Integer inspectionId; |
| | | |
| | | @Schema(description = "设æ½ID") |
| | | private Integer facilityId; |
| | | |
| | | @Schema(description = "é®é¢æè¿°") |
| | | private String problemDesc; |
| | | |
| | | @Schema(description = "é®é¢ç级") |
| | | private String problemLevel; |
| | | |
| | | @Schema(description = "é®é¢å¾ç") |
| | | private String problemImage; |
| | | |
| | | @Schema(description = "æ´æ¹è´£ä»»äººID") |
| | | private Integer rectifyUserId; |
| | | |
| | | @Schema(description = "è®¡åæ´æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime planTime; |
| | | |
| | | @Schema(description = "å®é
æ´æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime actualTime; |
| | | |
| | | @Schema(description = "æ´æ¹è¯´æ") |
| | | private String rectifyDesc; |
| | | |
| | | @Schema(description = "æ´æ¹å¾ç") |
| | | private String rectifyImage; |
| | | |
| | | @Schema(description = "ç¶æ(å¾
æ´æ¹/æ´æ¹ä¸/å·²æ´æ¹/å·²éªæ¶)") |
| | | private String status; |
| | | |
| | | @Schema(description = "éªæ¶äººID") |
| | | private Integer verifyUserId; |
| | | |
| | | @Schema(description = "éªæ¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime verifyTime; |
| | | |
| | | @Schema(description = "éªæ¶è¯´æ") |
| | | private String verifyDesc; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @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") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "æ´æ°äººID") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | |
| | | @TableField(exist = false) |
| | | private String facilityName; |
| | | |
| | | @TableField(exist = false) |
| | | private String rectifyUserName; |
| | | |
| | | @TableField(exist = false) |
| | | private String verifyUserName; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.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 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£ä»»å¡ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("safe_line_inspection") |
| | | @Schema(name = "SafeLineInspection对象", description = "å®å
¨ç产--线路巡æ£ä»»å¡") |
| | | public class SafeLineInspection implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "å·¡æ£ç¼å·") |
| | | private String inspectionCode; |
| | | |
| | | @Schema(description = "å·¡æ£åç§°") |
| | | private String inspectionName; |
| | | |
| | | @Schema(description = "线路åç§°") |
| | | private String lineName; |
| | | |
| | | @Schema(description = "å·¡æ£ç±»å") |
| | | private String inspectionType; |
| | | |
| | | @Schema(description = "计åå·¡æ£æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime planTime; |
| | | |
| | | @Schema(description = "ææ´¾äººID") |
| | | private Integer assignUserId; |
| | | |
| | | @Schema(description = "å·¡æ£äººIDï¼å¤ä¸ªç¨éå·åéï¼") |
| | | private String inspectorId; |
| | | |
| | | @Schema(description = "ç¶æ(å¾
å·¡æ£/å·¡æ£ä¸/已宿)") |
| | | private String status; |
| | | |
| | | @Schema(description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @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") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @Schema(description = "æ´æ°äººID") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | |
| | | @TableField(exist = false) |
| | | private String assignUserName; |
| | | |
| | | @TableField(exist = false) |
| | | private String inspectorName; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.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 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£éæ£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("safe_line_inspection_hazard") |
| | | @Schema(name = "SafeLineInspectionHazard对象", description = "å®å
¨ç产--线路巡æ£éæ£") |
| | | public class SafeLineInspectionHazard implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "å·¡æ£ä»»å¡ID") |
| | | private Integer inspectionId; |
| | | |
| | | @Schema(description = "å·¡æ£è®°å½ID") |
| | | private Integer recordId; |
| | | |
| | | @Schema(description = "鿣ç¼å·") |
| | | private String hazardCode; |
| | | |
| | | @Schema(description = "鿣æè¿°") |
| | | private String hazardDesc; |
| | | |
| | | @Schema(description = "鿣ç级") |
| | | private String hazardLevel; |
| | | |
| | | @Schema(description = "鿣ä½ç½®") |
| | | private String hazardLocation; |
| | | |
| | | @Schema(description = "鿣å¾ç") |
| | | private String hazardImage; |
| | | |
| | | @Schema(description = "ç¶æ(å¾
æ´æ¹/æ´æ¹ä¸/å·²æ´æ¹)") |
| | | private String status; |
| | | |
| | | @Schema(description = "æ´æ¹è´£ä»»äººID") |
| | | private Integer rectifyUserId; |
| | | |
| | | @Schema(description = "æ´æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime rectifyTime; |
| | | |
| | | @Schema(description = "æ´æ¹è¯´æ") |
| | | private String rectifyDesc; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "å建人ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | |
| | | @TableField(exist = false) |
| | | private String rectifyUserName; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.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 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£è®°å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("safe_line_inspection_record") |
| | | @Schema(name = "SafeLineInspectionRecord对象", description = "å®å
¨ç产--线路巡æ£è®°å½") |
| | | public class SafeLineInspectionRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @Schema(description = "å·¡æ£ä»»å¡ID") |
| | | private Integer inspectionId; |
| | | |
| | | @Schema(description = "æ£æ¥ç¹") |
| | | private String checkPoint; |
| | | |
| | | @Schema(description = "æ£æ¥å
容") |
| | | private String checkContent; |
| | | |
| | | @Schema(description = "æ£æ¥ç»æ(æ£å¸¸/å¼å¸¸)") |
| | | private String checkResult; |
| | | |
| | | @Schema(description = "æ£æ¥è¯´æ") |
| | | private String checkDesc; |
| | | |
| | | @Schema(description = "æ£æ¥æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime checkTime; |
| | | |
| | | @Schema(description = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "å建人ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long deptId; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeFacilityInspection; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å·¡æ£ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | public interface SafeFacilityInspectionService extends IService<SafeFacilityInspection> { |
| | | |
| | | IPage<SafeFacilityInspection> pageSafeFacilityInspection(Page page, SafeFacilityInspection safeFacilityInspection); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeFacilityLedger; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å°è´¦ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | public interface SafeFacilityLedgerService extends IService<SafeFacilityLedger> { |
| | | |
| | | IPage<SafeFacilityLedger> pageSafeFacilityLedger(Page page, SafeFacilityLedger safeFacilityLedger); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeFacilityRectification; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½æ´æ¹ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | public interface SafeFacilityRectificationService extends IService<SafeFacilityRectification> { |
| | | |
| | | IPage<SafeFacilityRectification> pageSafeFacilityRectification(Page page, SafeFacilityRectification safeFacilityRectification); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeLineInspectionHazard; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£éæ£ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | public interface SafeLineInspectionHazardService extends IService<SafeLineInspectionHazard> { |
| | | |
| | | IPage<SafeLineInspectionHazard> pageSafeLineInspectionHazard(Page page, SafeLineInspectionHazard safeLineInspectionHazard); |
| | | |
| | | List<SafeLineInspectionHazard> listByInspectionId(Integer inspectionId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service; |
| | | |
| | | import com.ruoyi.safe.pojo.SafeLineInspectionRecord; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£è®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | public interface SafeLineInspectionRecordService extends IService<SafeLineInspectionRecord> { |
| | | |
| | | List<SafeLineInspectionRecord> listByInspectionId(Integer inspectionId); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeLineInspection; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£ä»»å¡ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | public interface SafeLineInspectionService extends IService<SafeLineInspection> { |
| | | |
| | | IPage<SafeLineInspection> pageSafeLineInspection(Page page, SafeLineInspection safeLineInspection); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeFacilityInspection; |
| | | import com.ruoyi.safe.mapper.SafeFacilityInspectionMapper; |
| | | import com.ruoyi.safe.service.SafeFacilityInspectionService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å·¡æ£ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Service |
| | | public class SafeFacilityInspectionServiceImpl extends ServiceImpl<SafeFacilityInspectionMapper, SafeFacilityInspection> implements SafeFacilityInspectionService { |
| | | |
| | | @Override |
| | | public IPage<SafeFacilityInspection> pageSafeFacilityInspection(Page page, SafeFacilityInspection safeFacilityInspection) { |
| | | return this.lambdaQuery() |
| | | .like(safeFacilityInspection.getInspectionCode() != null, SafeFacilityInspection::getInspectionCode, safeFacilityInspection.getInspectionCode()) |
| | | .eq(safeFacilityInspection.getFacilityId() != null, SafeFacilityInspection::getFacilityId, safeFacilityInspection.getFacilityId()) |
| | | .eq(safeFacilityInspection.getStatus() != null, SafeFacilityInspection::getStatus, safeFacilityInspection.getStatus()) |
| | | .orderByDesc(SafeFacilityInspection::getCreateTime) |
| | | .page(page); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeFacilityLedger; |
| | | import com.ruoyi.safe.mapper.SafeFacilityLedgerMapper; |
| | | import com.ruoyi.safe.service.SafeFacilityLedgerService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½å°è´¦ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Service |
| | | public class SafeFacilityLedgerServiceImpl extends ServiceImpl<SafeFacilityLedgerMapper, SafeFacilityLedger> implements SafeFacilityLedgerService { |
| | | |
| | | @Override |
| | | public IPage<SafeFacilityLedger> pageSafeFacilityLedger(Page page, SafeFacilityLedger safeFacilityLedger) { |
| | | return this.lambdaQuery() |
| | | .like(safeFacilityLedger.getFacilityCode() != null, SafeFacilityLedger::getFacilityCode, safeFacilityLedger.getFacilityCode()) |
| | | .like(safeFacilityLedger.getFacilityName() != null, SafeFacilityLedger::getFacilityName, safeFacilityLedger.getFacilityName()) |
| | | .like(safeFacilityLedger.getFacilityType() != null, SafeFacilityLedger::getFacilityType, safeFacilityLedger.getFacilityType()) |
| | | .eq(safeFacilityLedger.getStatus() != null, SafeFacilityLedger::getStatus, safeFacilityLedger.getStatus()) |
| | | .orderByDesc(SafeFacilityLedger::getCreateTime) |
| | | .page(page); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeFacilityRectification; |
| | | import com.ruoyi.safe.mapper.SafeFacilityRectificationMapper; |
| | | import com.ruoyi.safe.service.SafeFacilityRectificationService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--å®å
¨è®¾æ½æ´æ¹ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Service |
| | | public class SafeFacilityRectificationServiceImpl extends ServiceImpl<SafeFacilityRectificationMapper, SafeFacilityRectification> implements SafeFacilityRectificationService { |
| | | |
| | | @Override |
| | | public IPage<SafeFacilityRectification> pageSafeFacilityRectification(Page page, SafeFacilityRectification safeFacilityRectification) { |
| | | return this.lambdaQuery() |
| | | .eq(safeFacilityRectification.getInspectionId() != null, SafeFacilityRectification::getInspectionId, safeFacilityRectification.getInspectionId()) |
| | | .eq(safeFacilityRectification.getFacilityId() != null, SafeFacilityRectification::getFacilityId, safeFacilityRectification.getFacilityId()) |
| | | .eq(safeFacilityRectification.getStatus() != null, SafeFacilityRectification::getStatus, safeFacilityRectification.getStatus()) |
| | | .orderByDesc(SafeFacilityRectification::getCreateTime) |
| | | .page(page); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.safe.pojo.SafeLineInspectionHazard; |
| | | import com.ruoyi.safe.mapper.SafeLineInspectionHazardMapper; |
| | | import com.ruoyi.safe.service.SafeLineInspectionHazardService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£éæ£ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Service |
| | | public class SafeLineInspectionHazardServiceImpl extends ServiceImpl<SafeLineInspectionHazardMapper, SafeLineInspectionHazard> implements SafeLineInspectionHazardService { |
| | | |
| | | @Override |
| | | public IPage<SafeLineInspectionHazard> pageSafeLineInspectionHazard(Page page, SafeLineInspectionHazard safeLineInspectionHazard) { |
| | | return this.lambdaQuery() |
| | | .eq(safeLineInspectionHazard.getInspectionId() != null, SafeLineInspectionHazard::getInspectionId, safeLineInspectionHazard.getInspectionId()) |
| | | .like(safeLineInspectionHazard.getHazardCode() != null, SafeLineInspectionHazard::getHazardCode, safeLineInspectionHazard.getHazardCode()) |
| | | .eq(safeLineInspectionHazard.getStatus() != null, SafeLineInspectionHazard::getStatus, safeLineInspectionHazard.getStatus()) |
| | | .orderByDesc(SafeLineInspectionHazard::getCreateTime) |
| | | .page(page); |
| | | } |
| | | |
| | | @Override |
| | | public List<SafeLineInspectionHazard> listByInspectionId(Integer inspectionId) { |
| | | return this.lambdaQuery() |
| | | .eq(SafeLineInspectionHazard::getInspectionId, inspectionId) |
| | | .orderByDesc(SafeLineInspectionHazard::getCreateTime) |
| | | .list(); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.safe.pojo.SafeLineInspection; |
| | | import com.ruoyi.safe.pojo.SafeLineInspectionRecord; |
| | | import com.ruoyi.safe.mapper.SafeLineInspectionRecordMapper; |
| | | import com.ruoyi.safe.service.SafeLineInspectionRecordService; |
| | | import com.ruoyi.safe.service.SafeLineInspectionService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£è®°å½ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Service |
| | | public class SafeLineInspectionRecordServiceImpl extends ServiceImpl<SafeLineInspectionRecordMapper, SafeLineInspectionRecord> implements SafeLineInspectionRecordService { |
| | | |
| | | @Autowired |
| | | private SafeLineInspectionService safeLineInspectionService; |
| | | |
| | | @Override |
| | | public List<SafeLineInspectionRecord> listByInspectionId(Integer inspectionId) { |
| | | return this.lambdaQuery() |
| | | .eq(SafeLineInspectionRecord::getInspectionId, inspectionId) |
| | | .orderByDesc(SafeLineInspectionRecord::getCheckTime) |
| | | .list(); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean save(SafeLineInspectionRecord entity) { |
| | | // ä¿åå·¡æ£è®°å½ |
| | | boolean result = super.save(entity); |
| | | |
| | | if (result && entity.getInspectionId() != null) { |
| | | // æ´æ°å·¡æ£ä»»å¡ç¶æä¸º"å·¡æ£ä¸"ï¼å¹¶è®¾ç½®å·¡æ£äººä¸ºå½åç»å½ç¨æ· |
| | | updateInspectionStatus(entity.getInspectionId()); |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * æ´æ°å·¡æ£ä»»å¡ç¶æä¸º"å·¡æ£ä¸"ï¼å¹¶æ·»å å½åç¨æ·å°å·¡æ£äººå表 |
| | | */ |
| | | private void updateInspectionStatus(Integer inspectionId) { |
| | | SafeLineInspection inspection = safeLineInspectionService.getById(inspectionId); |
| | | if (inspection != null && "å¾
å·¡æ£".equals(inspection.getStatus())) { |
| | | Long currentUserId = SecurityUtils.getUserId(); |
| | | String currentUserIdStr = String.valueOf(currentUserId); |
| | | |
| | | // æ·»å å½åç¨æ·å°å·¡æ£äººå表ï¼å¦æä¸åå¨ï¼ |
| | | String inspectorId = inspection.getInspectorId(); |
| | | if (inspectorId == null || inspectorId.isEmpty()) { |
| | | inspectorId = currentUserIdStr; |
| | | } else if (!inspectorId.contains(currentUserIdStr)) { |
| | | inspectorId = inspectorId + "," + currentUserIdStr; |
| | | } |
| | | |
| | | inspection.setStatus("å·¡æ£ä¸"); |
| | | inspection.setInspectorId(inspectorId); |
| | | inspection.setUpdateTime(LocalDateTime.now()); |
| | | inspection.setUpdateUser(currentUserId.intValue()); |
| | | safeLineInspectionService.updateById(inspection); |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.safe.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.project.system.domain.SysUser; |
| | | import com.ruoyi.safe.pojo.SafeLineInspection; |
| | | import com.ruoyi.safe.mapper.SafeLineInspectionMapper; |
| | | import com.ruoyi.safe.service.SafeLineInspectionService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.project.system.mapper.SysUserMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨ç产--线路巡æ£ä»»å¡ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2026-06-29 |
| | | */ |
| | | @Service |
| | | public class SafeLineInspectionServiceImpl extends ServiceImpl<SafeLineInspectionMapper, SafeLineInspection> implements SafeLineInspectionService { |
| | | |
| | | @Autowired |
| | | private SysUserMapper sysUserMapper; |
| | | |
| | | @Override |
| | | public IPage<SafeLineInspection> pageSafeLineInspection(Page page, SafeLineInspection safeLineInspection) { |
| | | IPage<SafeLineInspection> result = this.lambdaQuery() |
| | | .like(safeLineInspection.getInspectionCode() != null, SafeLineInspection::getInspectionCode, safeLineInspection.getInspectionCode()) |
| | | .like(safeLineInspection.getInspectionName() != null, SafeLineInspection::getInspectionName, safeLineInspection.getInspectionName()) |
| | | .like(safeLineInspection.getLineName() != null, SafeLineInspection::getLineName, safeLineInspection.getLineName()) |
| | | .eq(safeLineInspection.getStatus() != null, SafeLineInspection::getStatus, safeLineInspection.getStatus()) |
| | | .orderByDesc(SafeLineInspection::getCreateTime) |
| | | .page(page); |
| | | |
| | | // å
³èæ¥è¯¢å·¡æ£äººåç§° |
| | | fillInspectorName(result.getRecords()); |
| | | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * å¡«å
å·¡æ£äººåç§°ï¼æ¯æå¤å·¡æ£äººï¼éå·åéï¼ |
| | | */ |
| | | private void fillInspectorName(List<SafeLineInspection> records) { |
| | | if (records == null || records.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | // æ¶éææå·¡æ£äººIDï¼å¤çéå·åéçå¤ä¸ªIDï¼ |
| | | List<Long> allInspectorIds = records.stream() |
| | | .map(SafeLineInspection::getInspectorId) |
| | | .filter(ids -> ids != null && !ids.isEmpty()) |
| | | .flatMap(ids -> Arrays.stream(ids.split(","))) |
| | | .map(String::trim) |
| | | .filter(s -> !s.isEmpty()) |
| | | .map(Long::parseLong) |
| | | .distinct() |
| | | .collect(Collectors.toList()); |
| | | |
| | | if (allInspectorIds.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | // æ¹éæ¥è¯¢ç¨æ·ä¿¡æ¯ |
| | | List<SysUser> users = sysUserMapper.selectUserByIds(allInspectorIds); |
| | | Map<Long, String> userMap = users.stream() |
| | | .collect(Collectors.toMap(SysUser::getUserId, SysUser::getNickName, (v1, v2) -> v1)); |
| | | |
| | | // 设置巡æ£äººåç§° |
| | | for (SafeLineInspection record : records) { |
| | | if (record.getInspectorId() != null && !record.getInspectorId().isEmpty()) { |
| | | String inspectorNames = Arrays.stream(record.getInspectorId().split(",")) |
| | | .map(String::trim) |
| | | .filter(s -> !s.isEmpty()) |
| | | .map(idStr -> { |
| | | try { |
| | | Long id = Long.parseLong(idStr); |
| | | return userMap.getOrDefault(id, "æªç¥ç¨æ·"); |
| | | } catch (NumberFormatException e) { |
| | | return "æªç¥ç¨æ·"; |
| | | } |
| | | }) |
| | | .collect(Collectors.joining(",")); |
| | | record.setInspectorName(inspectorNames); |
| | | } |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.safe.mapper.SafeFacilityInspectionMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.safe.pojo.SafeFacilityInspection" id="SafeFacilityInspectionResult"> |
| | | <id property="id" column="id"/> |
| | | <result property="inspectionCode" column="inspection_code"/> |
| | | <result property="facilityId" column="facility_id"/> |
| | | <result property="inspectionType" column="inspection_type"/> |
| | | <result property="planTime" column="plan_time"/> |
| | | <result property="inspectorId" column="inspector_id"/> |
| | | <result property="actualTime" column="actual_time"/> |
| | | <result property="checkResult" column="check_result"/> |
| | | <result property="checkDesc" column="check_desc"/> |
| | | <result property="status" column="status"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createUser" column="create_user"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="updateUser" column="update_user"/> |
| | | <result property="tenantId" column="tenant_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | </resultMap> |
| | | |
| | | </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.safe.mapper.SafeFacilityLedgerMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.safe.pojo.SafeFacilityLedger" id="SafeFacilityLedgerResult"> |
| | | <id property="id" column="id"/> |
| | | <result property="facilityCode" column="facility_code"/> |
| | | <result property="facilityName" column="facility_name"/> |
| | | <result property="facilityType" column="facility_type"/> |
| | | <result property="facilitySpec" column="facility_spec"/> |
| | | <result property="installLocation" column="install_location"/> |
| | | <result property="installTime" column="install_time"/> |
| | | <result property="productionDate" column="production_date"/> |
| | | <result property="validPeriod" column="valid_period"/> |
| | | <result property="nextCheckTime" column="next_check_time"/> |
| | | <result property="status" column="status"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createUser" column="create_user"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="updateUser" column="update_user"/> |
| | | <result property="tenantId" column="tenant_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | </resultMap> |
| | | |
| | | </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.safe.mapper.SafeFacilityRectificationMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.safe.pojo.SafeFacilityRectification" id="SafeFacilityRectificationResult"> |
| | | <id property="id" column="id"/> |
| | | <result property="inspectionId" column="inspection_id"/> |
| | | <result property="facilityId" column="facility_id"/> |
| | | <result property="problemDesc" column="problem_desc"/> |
| | | <result property="problemLevel" column="problem_level"/> |
| | | <result property="problemImage" column="problem_image"/> |
| | | <result property="rectifyUserId" column="rectify_user_id"/> |
| | | <result property="planTime" column="plan_time"/> |
| | | <result property="actualTime" column="actual_time"/> |
| | | <result property="rectifyDesc" column="rectify_desc"/> |
| | | <result property="rectifyImage" column="rectify_image"/> |
| | | <result property="status" column="status"/> |
| | | <result property="verifyUserId" column="verify_user_id"/> |
| | | <result property="verifyTime" column="verify_time"/> |
| | | <result property="verifyDesc" column="verify_desc"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createUser" column="create_user"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="updateUser" column="update_user"/> |
| | | <result property="tenantId" column="tenant_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | </resultMap> |
| | | |
| | | </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.safe.mapper.SafeLineInspectionHazardMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.safe.pojo.SafeLineInspectionHazard" id="SafeLineInspectionHazardResult"> |
| | | <id property="id" column="id"/> |
| | | <result property="inspectionId" column="inspection_id"/> |
| | | <result property="recordId" column="record_id"/> |
| | | <result property="hazardCode" column="hazard_code"/> |
| | | <result property="hazardDesc" column="hazard_desc"/> |
| | | <result property="hazardLevel" column="hazard_level"/> |
| | | <result property="hazardLocation" column="hazard_location"/> |
| | | <result property="hazardImage" column="hazard_image"/> |
| | | <result property="status" column="status"/> |
| | | <result property="rectifyUserId" column="rectify_user_id"/> |
| | | <result property="rectifyTime" column="rectify_time"/> |
| | | <result property="rectifyDesc" column="rectify_desc"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createUser" column="create_user"/> |
| | | <result property="tenantId" column="tenant_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | </resultMap> |
| | | |
| | | </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.safe.mapper.SafeLineInspectionMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.safe.pojo.SafeLineInspection" id="SafeLineInspectionResult"> |
| | | <id property="id" column="id"/> |
| | | <result property="inspectionCode" column="inspection_code"/> |
| | | <result property="inspectionName" column="inspection_name"/> |
| | | <result property="lineName" column="line_name"/> |
| | | <result property="inspectionType" column="inspection_type"/> |
| | | <result property="planTime" column="plan_time"/> |
| | | <result property="assignUserId" column="assign_user_id"/> |
| | | <result property="inspectorId" column="inspector_id"/> |
| | | <result property="status" column="status"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createUser" column="create_user"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="updateUser" column="update_user"/> |
| | | <result property="tenantId" column="tenant_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | </resultMap> |
| | | |
| | | </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.safe.mapper.SafeLineInspectionRecordMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.safe.pojo.SafeLineInspectionRecord" id="SafeLineInspectionRecordResult"> |
| | | <id property="id" column="id"/> |
| | | <result property="inspectionId" column="inspection_id"/> |
| | | <result property="checkPoint" column="check_point"/> |
| | | <result property="checkContent" column="check_content"/> |
| | | <result property="checkResult" column="check_result"/> |
| | | <result property="checkDesc" column="check_desc"/> |
| | | <result property="checkTime" column="check_time"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="createUser" column="create_user"/> |
| | | <result property="tenantId" column="tenant_id"/> |
| | | <result property="deptId" column="dept_id"/> |
| | | </resultMap> |
| | | |
| | | </mapper> |