Commit 669cf0a66aafd28a8d6ff64facafd80b87e99249

Authored by 王富生
1 parent 64e8ec41

养护假话提交

Showing 62 changed files with 3528 additions and 149 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/inspectionplan/InspectionPlanCommitController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.inspectionplan;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.*;
  12 +import jakarta.servlet.http.*;
  13 +import java.util.*;
  14 +import java.io.IOException;
  15 +
  16 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  17 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  18 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  19 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  20 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  21 +
  22 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  23 +
  24 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  25 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  26 +
  27 +import com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo.*;
  28 +import com.zteits.urbanops.module.garden.dal.dataobject.inspectionplan.InspectionPlanCommitDO;
  29 +import com.zteits.urbanops.module.garden.service.inspectionplan.InspectionPlanCommitService;
  30 +
  31 +@Tag(name = "管理后台 - 巡检计划提交明细")
  32 +@RestController
  33 +@RequestMapping("/garden/inspection-plan-commit")
  34 +@Validated
  35 +public class InspectionPlanCommitController {
  36 +
  37 + @Resource
  38 + private InspectionPlanCommitService inspectionPlanCommitService;
  39 +
  40 + @PostMapping("/create")
  41 + @Operation(summary = "创建巡检计划提交明细")
  42 + @PreAuthorize("@ss.hasPermission('garden:inspection-plan-commit:create')")
  43 + public CommonResult<Long> createInspectionPlanCommit(@Valid @RequestBody InspectionPlanCommitSaveReqVO createReqVO) {
  44 + return success(inspectionPlanCommitService.createInspectionPlanCommit(createReqVO));
  45 + }
  46 +
  47 + @PutMapping("/update")
  48 + @Operation(summary = "更新巡检计划提交明细")
  49 + @PreAuthorize("@ss.hasPermission('garden:inspection-plan-commit:update')")
  50 + public CommonResult<Boolean> updateInspectionPlanCommit(@Valid @RequestBody InspectionPlanCommitSaveReqVO updateReqVO) {
  51 + inspectionPlanCommitService.updateInspectionPlanCommit(updateReqVO);
  52 + return success(true);
  53 + }
  54 +
  55 + @DeleteMapping("/delete")
  56 + @Operation(summary = "删除巡检计划提交明细")
  57 + @Parameter(name = "id", description = "编号", required = true)
  58 + @PreAuthorize("@ss.hasPermission('garden:inspection-plan-commit:delete')")
  59 + public CommonResult<Boolean> deleteInspectionPlanCommit(@RequestParam("id") Long id) {
  60 + inspectionPlanCommitService.deleteInspectionPlanCommit(id);
  61 + return success(true);
  62 + }
  63 +
  64 + @DeleteMapping("/delete-list")
  65 + @Parameter(name = "ids", description = "编号", required = true)
  66 + @Operation(summary = "批量删除巡检计划提交明细")
  67 + @PreAuthorize("@ss.hasPermission('garden:inspection-plan-commit:delete')")
  68 + public CommonResult<Boolean> deleteInspectionPlanCommitList(@RequestParam("ids") List<Long> ids) {
  69 + inspectionPlanCommitService.deleteInspectionPlanCommitListByIds(ids);
  70 + return success(true);
  71 + }
  72 +
  73 + @GetMapping("/get")
  74 + @Operation(summary = "获得巡检计划提交明细")
  75 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  76 + @PreAuthorize("@ss.hasPermission('garden:inspection-plan-commit:query')")
  77 + public CommonResult<InspectionPlanCommitRespVO> getInspectionPlanCommit(@RequestParam("id") Long id) {
  78 + InspectionPlanCommitDO inspectionPlanCommit = inspectionPlanCommitService.getInspectionPlanCommit(id);
  79 + return success(BeanUtils.toBean(inspectionPlanCommit, InspectionPlanCommitRespVO.class));
  80 + }
  81 +
  82 + @GetMapping("/page")
  83 + @Operation(summary = "获得巡检计划提交明细分页")
  84 + @PreAuthorize("@ss.hasPermission('garden:inspection-plan-commit:query')")
  85 + public CommonResult<PageResult<InspectionPlanCommitRespVO>> getInspectionPlanCommitPage(@Valid InspectionPlanCommitPageReqVO pageReqVO) {
  86 + PageResult<InspectionPlanCommitDO> pageResult = inspectionPlanCommitService.getInspectionPlanCommitPage(pageReqVO);
  87 + return success(BeanUtils.toBean(pageResult, InspectionPlanCommitRespVO.class));
  88 + }
  89 +
  90 + @GetMapping("/export-excel")
  91 + @Operation(summary = "导出巡检计划提交明细 Excel")
  92 + @PreAuthorize("@ss.hasPermission('garden:inspection-plan-commit:export')")
  93 + @ApiAccessLog(operateType = EXPORT)
  94 + public void exportInspectionPlanCommitExcel(@Valid InspectionPlanCommitPageReqVO pageReqVO,
  95 + HttpServletResponse response) throws IOException {
  96 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  97 + List<InspectionPlanCommitDO> list = inspectionPlanCommitService.getInspectionPlanCommitPage(pageReqVO).getList();
  98 + // 导出 Excel
  99 + ExcelUtils.write(response, "巡检计划提交明细.xls", "数据", InspectionPlanCommitRespVO.class,
  100 + BeanUtils.toBean(list, InspectionPlanCommitRespVO.class));
  101 + }
  102 +
  103 +}
0 104 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/inspectionplan/vo/InspectionPlanCommitPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo;
  2 +
  3 +import lombok.*;
  4 +import io.swagger.v3.oas.annotations.media.Schema;
  5 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +
  9 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  10 +
  11 +@Schema(description = "管理后台 - 巡检计划提交明细分页 Request VO")
  12 +@Data
  13 +public class InspectionPlanCommitPageReqVO extends PageParam {
  14 +
  15 + @Schema(description = "批次号")
  16 + private String batchNo;
  17 +
  18 + @Schema(description = "计划编码")
  19 + private String planNo;
  20 +
  21 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政")
  22 + private String busiLine;
  23 +
  24 + @Schema(description = "归属(一级部门id)", example = "18172")
  25 + private Long companyId;
  26 +
  27 + @Schema(description = "部门ID(道路负责部门id)", example = "9510")
  28 + private Long deptId;
  29 +
  30 + @Schema(description = "道路ID", example = "21939")
  31 + private Long roadId;
  32 +
  33 + @Schema(description = "图片地址host")
  34 + private String imgHost;
  35 +
  36 + @Schema(description = "巡检照片")
  37 + private String img;
  38 +
  39 + @Schema(description = "巡检结果: 1:正常;2:异常")
  40 + private Integer inspectionState;
  41 +
  42 + @Schema(description = "转交状态: 1:未转交;2:已转交")
  43 + private Integer transState;
  44 +
  45 + @Schema(description = "转交问题单编码")
  46 + private String transWorkNo;
  47 +
  48 + @Schema(description = "完成时间")
  49 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  50 + private LocalDateTime[] finishTime;
  51 +
  52 + @Schema(description = "提交人用户ID", example = "30987")
  53 + private Long userId;
  54 +
  55 + @Schema(description = "提交人", example = "赵六")
  56 + private String userName;
  57 +
  58 + @Schema(description = "备注", example = "你猜")
  59 + private String remark;
  60 +
  61 + @Schema(description = "创建者", example = "张三")
  62 + private String creatorName;
  63 +
  64 + @Schema(description = "创建时间")
  65 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  66 + private LocalDateTime[] createTime;
  67 +
  68 + @Schema(description = "更新者", example = "赵六")
  69 + private String updaterName;
  70 +
  71 +}
0 72 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/inspectionplan/vo/InspectionPlanCommitRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.time.LocalDateTime;
  6 +import cn.idev.excel.annotation.*;
  7 +
  8 +@Schema(description = "管理后台 - 巡检计划提交明细 Response VO")
  9 +@Data
  10 +@ExcelIgnoreUnannotated
  11 +public class InspectionPlanCommitRespVO {
  12 +
  13 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25349")
  14 + @ExcelProperty("ID")
  15 + private Long id;
  16 +
  17 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  18 + @ExcelProperty("批次号")
  19 + private String batchNo;
  20 +
  21 + @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
  22 + @ExcelProperty("计划编码")
  23 + private String planNo;
  24 +
  25 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政", requiredMode = Schema.RequiredMode.REQUIRED)
  26 + @ExcelProperty("业务线: yl-园林;wy-物业:sz-市政")
  27 + private String busiLine;
  28 +
  29 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "18172")
  30 + @ExcelProperty("归属(一级部门id)")
  31 + private Long companyId;
  32 +
  33 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "9510")
  34 + @ExcelProperty("部门ID(道路负责部门id)")
  35 + private Long deptId;
  36 +
  37 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21939")
  38 + @ExcelProperty("道路ID")
  39 + private Long roadId;
  40 +
  41 + @Schema(description = "图片地址host", requiredMode = Schema.RequiredMode.REQUIRED)
  42 + @ExcelProperty("图片地址host")
  43 + private String imgHost;
  44 +
  45 + @Schema(description = "巡检照片", requiredMode = Schema.RequiredMode.REQUIRED)
  46 + @ExcelProperty("巡检照片")
  47 + private String img;
  48 +
  49 + @Schema(description = "巡检结果: 1:正常;2:异常", requiredMode = Schema.RequiredMode.REQUIRED)
  50 + @ExcelProperty("巡检结果: 1:正常;2:异常")
  51 + private Integer inspectionState;
  52 +
  53 + @Schema(description = "转交状态: 1:未转交;2:已转交", requiredMode = Schema.RequiredMode.REQUIRED)
  54 + @ExcelProperty("转交状态: 1:未转交;2:已转交")
  55 + private Integer transState;
  56 +
  57 + @Schema(description = "转交问题单编码", requiredMode = Schema.RequiredMode.REQUIRED)
  58 + @ExcelProperty("转交问题单编码")
  59 + private String transWorkNo;
  60 +
  61 + @Schema(description = "完成时间")
  62 + @ExcelProperty("完成时间")
  63 + private LocalDateTime finishTime;
  64 +
  65 + @Schema(description = "提交人用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30987")
  66 + @ExcelProperty("提交人用户ID")
  67 + private Long userId;
  68 +
  69 + @Schema(description = "提交人", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  70 + @ExcelProperty("提交人")
  71 + private String userName;
  72 +
  73 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  74 + @ExcelProperty("备注")
  75 + private String remark;
  76 +
  77 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  78 + @ExcelProperty("创建者")
  79 + private String creatorName;
  80 +
  81 + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
  82 + @ExcelProperty("创建时间")
  83 + private LocalDateTime createTime;
  84 +
  85 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  86 + @ExcelProperty("更新者")
  87 + private String updaterName;
  88 +
  89 +}
0 90 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/inspectionplan/vo/InspectionPlanCommitSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import jakarta.validation.constraints.*;
  6 +import java.time.LocalDateTime;
  7 +
  8 +@Schema(description = "管理后台 - 巡检计划提交明细新增/修改 Request VO")
  9 +@Data
  10 +public class InspectionPlanCommitSaveReqVO {
  11 +
  12 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25349")
  13 + private Long id;
  14 +
  15 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  16 + @NotEmpty(message = "批次号不能为空")
  17 + private String batchNo;
  18 +
  19 + @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
  20 + @NotEmpty(message = "计划编码不能为空")
  21 + private String planNo;
  22 +
  23 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政", requiredMode = Schema.RequiredMode.REQUIRED)
  24 + @NotEmpty(message = "业务线: yl-园林;wy-物业:sz-市政不能为空")
  25 + private String busiLine;
  26 +
  27 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "18172")
  28 + @NotNull(message = "归属(一级部门id)不能为空")
  29 + private Long companyId;
  30 +
  31 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "9510")
  32 + @NotNull(message = "部门ID(道路负责部门id)不能为空")
  33 + private Long deptId;
  34 +
  35 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21939")
  36 + @NotNull(message = "道路ID不能为空")
  37 + private Long roadId;
  38 +
  39 + @Schema(description = "图片地址host", requiredMode = Schema.RequiredMode.REQUIRED)
  40 + @NotEmpty(message = "图片地址host不能为空")
  41 + private String imgHost;
  42 +
  43 + @Schema(description = "巡检照片", requiredMode = Schema.RequiredMode.REQUIRED)
  44 + @NotEmpty(message = "巡检照片不能为空")
  45 + private String img;
  46 +
  47 + @Schema(description = "巡检结果: 1:正常;2:异常", requiredMode = Schema.RequiredMode.REQUIRED)
  48 + @NotNull(message = "巡检结果: 1:正常;2:异常不能为空")
  49 + private Integer inspectionState;
  50 +
  51 + @Schema(description = "转交状态: 1:未转交;2:已转交", requiredMode = Schema.RequiredMode.REQUIRED)
  52 + @NotNull(message = "转交状态: 1:未转交;2:已转交不能为空")
  53 + private Integer transState;
  54 +
  55 + @Schema(description = "转交问题单编码", requiredMode = Schema.RequiredMode.REQUIRED)
  56 + @NotEmpty(message = "转交问题单编码不能为空")
  57 + private String transWorkNo;
  58 +
  59 + @Schema(description = "完成时间")
  60 + private LocalDateTime finishTime;
  61 +
  62 + @Schema(description = "提交人用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30987")
  63 + @NotNull(message = "提交人用户ID不能为空")
  64 + private Long userId;
  65 +
  66 + @Schema(description = "提交人", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  67 + @NotEmpty(message = "提交人不能为空")
  68 + private String userName;
  69 +
  70 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  71 + @NotEmpty(message = "备注不能为空")
  72 + private String remark;
  73 +
  74 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  75 + @NotEmpty(message = "创建者不能为空")
  76 + private String creatorName;
  77 +
  78 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  79 + @NotEmpty(message = "更新者不能为空")
  80 + private String updaterName;
  81 +
  82 +}
0 83 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/inspectionplan/vo/InspectionPlanDetailRespVO.java
... ... @@ -5,7 +5,7 @@ import lombok.*;
5 5  
6 6 import java.time.LocalDate;
7 7 import java.util.*;
8   -import org.springframework.format.annotation.DateTimeFormat;
  8 +
9 9 import java.time.LocalDateTime;
10 10 import cn.idev.excel.annotation.*;
11 11  
... ... @@ -62,4 +62,14 @@ public class InspectionPlanDetailRespVO {
62 62 @ExcelProperty("创建时间")
63 63 private LocalDateTime createTime;
64 64  
  65 + @Schema(description = "创建人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZIEITS")
  66 + @ExcelProperty("创建人ID")
  67 + private String creator;
  68 + /**
  69 + * 创建者
  70 + */
  71 + @Schema(description = "创建人名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZIEITS")
  72 + @ExcelProperty("创建人")
  73 + private String creatorName;
  74 +
65 75 }
66 76 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/inspectionplan/vo/InspectionPlanRespVO.java
1 1 package com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo;
2 2  
3   -import com.fhs.core.trans.anno.Trans;
4   -import com.fhs.core.trans.constant.TransType;
5 3 import com.fhs.core.trans.vo.VO;
6 4 import io.swagger.v3.oas.annotations.media.Schema;
7 5 import lombok.*;
... ... @@ -89,13 +87,15 @@ public class InspectionPlanRespVO implements VO {
89 87 @ExcelProperty("创建时间")
90 88 private LocalDateTime createTime;
91 89  
92   - @Schema(description = "创建人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
93   - @Trans(type = TransType.SIMPLE, targetClassName = "com.zteits.urbanops.module.system.dal.dataobject.user.AdminUserDO",
94   - fields = "nickname", ref = "creatorName")
  90 + @Schema(description = "创建人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZIEITS")
  91 + @ExcelProperty("创建人ID")
95 92 private String creator;
96   -
  93 + /**
  94 + * 创建者
  95 + */
97 96 @Schema(description = "创建人名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "ZIEITS")
98 97 @ExcelProperty("创建人")
99 98 private String creatorName;
100 99  
  100 +
101 101 }
102 102 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/MaintainPlanCommitController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.*;
  12 +import jakarta.servlet.http.*;
  13 +import java.util.*;
  14 +import java.io.IOException;
  15 +
  16 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  17 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  18 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  19 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  20 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  21 +
  22 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  23 +
  24 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  25 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  26 +
  27 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  28 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanCommitDO;
  29 +import com.zteits.urbanops.module.garden.service.maintainplan.MaintainPlanCommitService;
  30 +
  31 +@Tag(name = "管理后台 - 养护计划明细")
  32 +@RestController
  33 +@RequestMapping("/garden/maintain-plan-commit")
  34 +@Validated
  35 +public class MaintainPlanCommitController {
  36 +
  37 + @Resource
  38 + private MaintainPlanCommitService maintainPlanCommitService;
  39 +
  40 + @PostMapping("/create")
  41 + @Operation(summary = "创建养护计划明细")
  42 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-commit:create')")
  43 + public CommonResult<Long> createMaintainPlanCommit(@Valid @RequestBody MaintainPlanCommitSaveReqVO createReqVO) {
  44 + return success(maintainPlanCommitService.createMaintainPlanCommit(createReqVO));
  45 + }
  46 +
  47 + @PutMapping("/update")
  48 + @Operation(summary = "更新养护计划明细")
  49 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-commit:update')")
  50 + public CommonResult<Boolean> updateMaintainPlanCommit(@Valid @RequestBody MaintainPlanCommitSaveReqVO updateReqVO) {
  51 + maintainPlanCommitService.updateMaintainPlanCommit(updateReqVO);
  52 + return success(true);
  53 + }
  54 +
  55 + @DeleteMapping("/delete")
  56 + @Operation(summary = "删除养护计划明细")
  57 + @Parameter(name = "id", description = "编号", required = true)
  58 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-commit:delete')")
  59 + public CommonResult<Boolean> deleteMaintainPlanCommit(@RequestParam("id") Long id) {
  60 + maintainPlanCommitService.deleteMaintainPlanCommit(id);
  61 + return success(true);
  62 + }
  63 +
  64 + @DeleteMapping("/delete-list")
  65 + @Parameter(name = "ids", description = "编号", required = true)
  66 + @Operation(summary = "批量删除养护计划明细")
  67 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-commit:delete')")
  68 + public CommonResult<Boolean> deleteMaintainPlanCommitList(@RequestParam("ids") List<Long> ids) {
  69 + maintainPlanCommitService.deleteMaintainPlanCommitListByIds(ids);
  70 + return success(true);
  71 + }
  72 +
  73 + @GetMapping("/get")
  74 + @Operation(summary = "获得养护计划明细")
  75 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  76 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-commit:query')")
  77 + public CommonResult<MaintainPlanCommitRespVO> getMaintainPlanCommit(@RequestParam("id") Long id) {
  78 + MaintainPlanCommitDO maintainPlanCommit = maintainPlanCommitService.getMaintainPlanCommit(id);
  79 + return success(BeanUtils.toBean(maintainPlanCommit, MaintainPlanCommitRespVO.class));
  80 + }
  81 +
  82 + @GetMapping("/page")
  83 + @Operation(summary = "获得养护计划明细分页")
  84 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-commit:query')")
  85 + public CommonResult<PageResult<MaintainPlanCommitRespVO>> getMaintainPlanCommitPage(@Valid MaintainPlanCommitPageReqVO pageReqVO) {
  86 + PageResult<MaintainPlanCommitDO> pageResult = maintainPlanCommitService.getMaintainPlanCommitPage(pageReqVO);
  87 + return success(BeanUtils.toBean(pageResult, MaintainPlanCommitRespVO.class));
  88 + }
  89 +
  90 + @GetMapping("/export-excel")
  91 + @Operation(summary = "导出养护计划明细 Excel")
  92 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-commit:export')")
  93 + @ApiAccessLog(operateType = EXPORT)
  94 + public void exportMaintainPlanCommitExcel(@Valid MaintainPlanCommitPageReqVO pageReqVO,
  95 + HttpServletResponse response) throws IOException {
  96 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  97 + List<MaintainPlanCommitDO> list = maintainPlanCommitService.getMaintainPlanCommitPage(pageReqVO).getList();
  98 + // 导出 Excel
  99 + ExcelUtils.write(response, "养护计划明细.xls", "数据", MaintainPlanCommitRespVO.class,
  100 + BeanUtils.toBean(list, MaintainPlanCommitRespVO.class));
  101 + }
  102 +
  103 +}
0 104 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/MaintainPlanCommonUserController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.*;
  12 +import jakarta.servlet.http.*;
  13 +import java.util.*;
  14 +import java.io.IOException;
  15 +
  16 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  17 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  18 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  19 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  20 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  21 +
  22 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  23 +
  24 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  25 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  26 +
  27 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  28 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanCommonUserDO;
  29 +import com.zteits.urbanops.module.garden.service.maintainplan.MaintainPlanCommonUserService;
  30 +
  31 +@Tag(name = "管理后台 - 养护计划共同处理人")
  32 +@RestController
  33 +@RequestMapping("/garden/maintain-plan-common-user")
  34 +@Validated
  35 +public class MaintainPlanCommonUserController {
  36 +
  37 + @Resource
  38 + private MaintainPlanCommonUserService maintainPlanCommonUserService;
  39 +
  40 + @PostMapping("/create")
  41 + @Operation(summary = "创建养护计划共同处理人")
  42 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-common-user:create')")
  43 + public CommonResult<Long> createMaintainPlanCommonUser(@Valid @RequestBody MaintainPlanCommonUserSaveReqVO createReqVO) {
  44 + return success(maintainPlanCommonUserService.createMaintainPlanCommonUser(createReqVO));
  45 + }
  46 +
  47 + @PutMapping("/update")
  48 + @Operation(summary = "更新养护计划共同处理人")
  49 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-common-user:update')")
  50 + public CommonResult<Boolean> updateMaintainPlanCommonUser(@Valid @RequestBody MaintainPlanCommonUserSaveReqVO updateReqVO) {
  51 + maintainPlanCommonUserService.updateMaintainPlanCommonUser(updateReqVO);
  52 + return success(true);
  53 + }
  54 +
  55 + @DeleteMapping("/delete")
  56 + @Operation(summary = "删除养护计划共同处理人")
  57 + @Parameter(name = "id", description = "编号", required = true)
  58 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-common-user:delete')")
  59 + public CommonResult<Boolean> deleteMaintainPlanCommonUser(@RequestParam("id") Long id) {
  60 + maintainPlanCommonUserService.deleteMaintainPlanCommonUser(id);
  61 + return success(true);
  62 + }
  63 +
  64 + @DeleteMapping("/delete-list")
  65 + @Parameter(name = "ids", description = "编号", required = true)
  66 + @Operation(summary = "批量删除养护计划共同处理人")
  67 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-common-user:delete')")
  68 + public CommonResult<Boolean> deleteMaintainPlanCommonUserList(@RequestParam("ids") List<Long> ids) {
  69 + maintainPlanCommonUserService.deleteMaintainPlanCommonUserListByIds(ids);
  70 + return success(true);
  71 + }
  72 +
  73 + @GetMapping("/get")
  74 + @Operation(summary = "获得养护计划共同处理人")
  75 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  76 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-common-user:query')")
  77 + public CommonResult<MaintainPlanCommonUserRespVO> getMaintainPlanCommonUser(@RequestParam("id") Long id) {
  78 + MaintainPlanCommonUserDO maintainPlanCommonUser = maintainPlanCommonUserService.getMaintainPlanCommonUser(id);
  79 + return success(BeanUtils.toBean(maintainPlanCommonUser, MaintainPlanCommonUserRespVO.class));
  80 + }
  81 +
  82 + @GetMapping("/page")
  83 + @Operation(summary = "获得养护计划共同处理人分页")
  84 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-common-user:query')")
  85 + public CommonResult<PageResult<MaintainPlanCommonUserRespVO>> getMaintainPlanCommonUserPage(@Valid MaintainPlanCommonUserPageReqVO pageReqVO) {
  86 + PageResult<MaintainPlanCommonUserDO> pageResult = maintainPlanCommonUserService.getMaintainPlanCommonUserPage(pageReqVO);
  87 + return success(BeanUtils.toBean(pageResult, MaintainPlanCommonUserRespVO.class));
  88 + }
  89 +
  90 + @GetMapping("/export-excel")
  91 + @Operation(summary = "导出养护计划共同处理人 Excel")
  92 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-common-user:export')")
  93 + @ApiAccessLog(operateType = EXPORT)
  94 + public void exportMaintainPlanCommonUserExcel(@Valid MaintainPlanCommonUserPageReqVO pageReqVO,
  95 + HttpServletResponse response) throws IOException {
  96 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  97 + List<MaintainPlanCommonUserDO> list = maintainPlanCommonUserService.getMaintainPlanCommonUserPage(pageReqVO).getList();
  98 + // 导出 Excel
  99 + ExcelUtils.write(response, "养护计划共同处理人.xls", "数据", MaintainPlanCommonUserRespVO.class,
  100 + BeanUtils.toBean(list, MaintainPlanCommonUserRespVO.class));
  101 + }
  102 +
  103 +}
0 104 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/MaintainPlanController.java
1 1 package com.zteits.urbanops.module.garden.controller.admin.maintainplan;
2 2  
3   -import com.zteits.urbanops.framework.common.pojo.CommonResult;
4   -import com.zteits.urbanops.framework.common.pojo.PageResult;
5   -import com.zteits.urbanops.framework.security.core.util.SecurityFrameworkUtils;
6   -import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanAddReqVO;
7   -import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanForPageReqVO;
8   -import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDO;
9   -import com.zteits.urbanops.module.garden.service.maintainplan.MaintainPlanService;
10   -import io.swagger.v3.oas.annotations.Operation;
11   -import io.swagger.v3.oas.annotations.Parameter;
12   -import io.swagger.v3.oas.annotations.tags.Tag;
  3 +import org.springframework.web.bind.annotation.*;
13 4 import jakarta.annotation.Resource;
14   -import jakarta.validation.Valid;
  5 +import org.springframework.validation.annotation.Validated;
15 6 import org.springframework.security.access.prepost.PreAuthorize;
16   -import org.springframework.web.bind.annotation.*;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.*;
  12 +import jakarta.servlet.http.*;
  13 +import java.util.*;
  14 +import java.io.IOException;
17 15  
  16 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  17 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  18 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  19 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
18 20 import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
19 21  
20   -@Tag(name = "管理后台 - 养护计划")
  22 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  23 +
  24 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  25 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  26 +
  27 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  28 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDO;
  29 +import com.zteits.urbanops.module.garden.service.maintainplan.MaintainPlanService;
  30 +
  31 +@Tag(name = "管理后台 - 养护计划汇总")
21 32 @RestController
22   -@RequestMapping("/maintain/plan")
  33 +@RequestMapping("/garden/maintain-plan")
  34 +@Validated
23 35 public class MaintainPlanController {
24 36  
25 37 @Resource
26 38 private MaintainPlanService maintainPlanService;
27   - @Resource
28   - private com.zteits.urbanops.module.garden.service.plancommit.MaintainPlanCommitDetailService maintainPlanCommitDetailService;
29 39  
30   - @PostMapping("/listForPage")
31   - @Operation(summary = "养护计划-分页查询")
32   - @PreAuthorize("@ss.hasPermission('garden:maintain-plan:query')")
33   - public CommonResult<PageResult<MaintainPlanDO>> listForPage(@Valid @RequestBody MaintainPlanForPageReqVO reqVO) {
34   - return success(maintainPlanService.selectPage(reqVO));
  40 + @PostMapping("/create")
  41 + @Operation(summary = "创建养护计划汇总")
  42 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:create')")
  43 + public CommonResult<Long> createMaintainPlan(@Valid @RequestBody MaintainPlanSaveReqVO createReqVO) {
  44 + return success(maintainPlanService.createMaintainPlan(createReqVO));
35 45 }
36 46  
37   - @GetMapping("/detail")
38   - @Operation(summary = "养护计划-对象明细")
39   - @Parameter(name = "plan_no", description = "编码", required = true)
40   - @PreAuthorize("@ss.hasPermission('garden:maintain-plan:query')")
41   - public CommonResult<MaintainPlanDO> detail(@RequestParam("plan_no") String planNo) {
42   - return success(maintainPlanService.selectByPlanNo(planNo));
  47 + @PutMapping("/update")
  48 + @Operation(summary = "更新养护计划汇总")
  49 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:update')")
  50 + public CommonResult<Boolean> updateMaintainPlan(@Valid @RequestBody MaintainPlanSaveReqVO updateReqVO) {
  51 + maintainPlanService.updateMaintainPlan(updateReqVO);
  52 + return success(true);
43 53 }
44 54  
45   - @PostMapping("/add")
46   - @Operation(summary = "养护计划-添加")
47   - @PreAuthorize("@ss.hasPermission('garden:maintain-plan:create')")
48   - public CommonResult<Boolean> add(@Valid @RequestBody MaintainPlanAddReqVO reqVO) {
49   - Long companyId = SecurityFrameworkUtils.getLoginUserDeptId();
50   - Long deptId = SecurityFrameworkUtils.getLoginUserDeptId();
51   - return success(maintainPlanService.insert(reqVO, companyId, deptId));
  55 + @DeleteMapping("/delete")
  56 + @Operation(summary = "删除养护计划汇总")
  57 + @Parameter(name = "id", description = "编号", required = true)
  58 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:delete')")
  59 + public CommonResult<Boolean> deleteMaintainPlan(@RequestParam("id") Long id) {
  60 + maintainPlanService.deleteMaintainPlan(id);
  61 + return success(true);
52 62 }
53 63  
54   - @GetMapping("/deleteById")
55   - @Operation(summary = "养护计划-删除")
56   - @PreAuthorize("@ss.hasPermission('garden:maintain-plan:delete')")
57   - public CommonResult<Boolean> deleteById(@RequestParam("id") Long id) {
58   - return success(maintainPlanService.deleteById(id));
  64 + @DeleteMapping("/delete-list")
  65 + @Parameter(name = "ids", description = "编号", required = true)
  66 + @Operation(summary = "批量删除养护计划汇总")
  67 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:delete')")
  68 + public CommonResult<Boolean> deleteMaintainPlanList(@RequestParam("ids") List<Long> ids) {
  69 + maintainPlanService.deleteMaintainPlanListByIds(ids);
  70 + return success(true);
  71 + }
  72 +
  73 + @GetMapping("/get")
  74 + @Operation(summary = "获得养护计划汇总")
  75 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  76 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:query')")
  77 + public CommonResult<MaintainPlanRespVO> getMaintainPlan(@RequestParam("id") Long id) {
  78 + MaintainPlanDO maintainPlan = maintainPlanService.getMaintainPlan(id);
  79 + return success(BeanUtils.toBean(maintainPlan, MaintainPlanRespVO.class));
59 80 }
60 81  
61   - @PostMapping("/yh/listForPage")
62   - @Operation(summary = "PC养护计划提交记录-分页查询")
  82 + @GetMapping("/page")
  83 + @Operation(summary = "获得养护计划汇总分页")
63 84 @PreAuthorize("@ss.hasPermission('garden:maintain-plan:query')")
64   - public CommonResult<com.zteits.urbanops.framework.common.pojo.PageResult<com.zteits.urbanops.module.garden.controller.app.vo.PlanTaskCommitDetailPageRespVO>> yhListForPage(@RequestBody com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.AdminPlanYhCommitDetailPageReqVO reqVO) {
65   - com.zteits.urbanops.framework.common.pojo.PageParam page = new com.zteits.urbanops.framework.common.pojo.PageParam();
66   - page.setPageNo(reqVO.getPageNo());
67   - page.setPageSize(reqVO.getPageSize());
68   - com.zteits.urbanops.module.garden.controller.app.vo.PlanYhCommitDetailPageReqVO where = new com.zteits.urbanops.module.garden.controller.app.vo.PlanYhCommitDetailPageReqVO();
69   - where.setPageNo(reqVO.getPageNo());
70   - where.setPageSize(reqVO.getPageSize());
71   - where.setCompanyId(reqVO.getCompanyId());
72   - return success(maintainPlanCommitDetailService.pageListYH(page, where));
  85 + public CommonResult<PageResult<MaintainPlanRespVO>> getMaintainPlanPage(@Valid MaintainPlanPageReqVO pageReqVO) {
  86 + PageResult<MaintainPlanDO> pageResult = maintainPlanService.getMaintainPlanPage(pageReqVO);
  87 + return success(BeanUtils.toBean(pageResult, MaintainPlanRespVO.class));
  88 + }
  89 +
  90 + @GetMapping("/export-excel")
  91 + @Operation(summary = "导出养护计划汇总 Excel")
  92 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan:export')")
  93 + @ApiAccessLog(operateType = EXPORT)
  94 + public void exportMaintainPlanExcel(@Valid MaintainPlanPageReqVO pageReqVO,
  95 + HttpServletResponse response) throws IOException {
  96 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  97 + List<MaintainPlanDO> list = maintainPlanService.getMaintainPlanPage(pageReqVO).getList();
  98 + // 导出 Excel
  99 + ExcelUtils.write(response, "养护计划汇总.xls", "数据", MaintainPlanRespVO.class,
  100 + BeanUtils.toBean(list, MaintainPlanRespVO.class));
73 101 }
  102 +
74 103 }
75 104 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/MaintainPlanDetailController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.*;
  12 +import jakarta.servlet.http.*;
  13 +import java.util.*;
  14 +import java.io.IOException;
  15 +
  16 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  17 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  18 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  19 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  20 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  21 +
  22 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  23 +
  24 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  25 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  26 +
  27 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  28 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDetailDO;
  29 +import com.zteits.urbanops.module.garden.service.maintainplan.MaintainPlanDetailService;
  30 +
  31 +@Tag(name = "管理后台 - 养护计划")
  32 +@RestController
  33 +@RequestMapping("/garden/maintain-plan-detail")
  34 +@Validated
  35 +public class MaintainPlanDetailController {
  36 +
  37 + @Resource
  38 + private MaintainPlanDetailService maintainPlanDetailService;
  39 +
  40 + @PostMapping("/create")
  41 + @Operation(summary = "创建养护计划")
  42 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-detail:create')")
  43 + public CommonResult<Long> createMaintainPlanDetail(@Valid @RequestBody MaintainPlanDetailSaveReqVO createReqVO) {
  44 + return success(maintainPlanDetailService.createMaintainPlanDetail(createReqVO));
  45 + }
  46 +
  47 + @PutMapping("/update")
  48 + @Operation(summary = "更新养护计划")
  49 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-detail:update')")
  50 + public CommonResult<Boolean> updateMaintainPlanDetail(@Valid @RequestBody MaintainPlanDetailSaveReqVO updateReqVO) {
  51 + maintainPlanDetailService.updateMaintainPlanDetail(updateReqVO);
  52 + return success(true);
  53 + }
  54 +
  55 + @DeleteMapping("/delete")
  56 + @Operation(summary = "删除养护计划")
  57 + @Parameter(name = "id", description = "编号", required = true)
  58 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-detail:delete')")
  59 + public CommonResult<Boolean> deleteMaintainPlanDetail(@RequestParam("id") Long id) {
  60 + maintainPlanDetailService.deleteMaintainPlanDetail(id);
  61 + return success(true);
  62 + }
  63 +
  64 + @DeleteMapping("/delete-list")
  65 + @Parameter(name = "ids", description = "编号", required = true)
  66 + @Operation(summary = "批量删除养护计划")
  67 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-detail:delete')")
  68 + public CommonResult<Boolean> deleteMaintainPlanDetailList(@RequestParam("ids") List<Long> ids) {
  69 + maintainPlanDetailService.deleteMaintainPlanDetailListByIds(ids);
  70 + return success(true);
  71 + }
  72 +
  73 + @GetMapping("/get")
  74 + @Operation(summary = "获得养护计划")
  75 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  76 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-detail:query')")
  77 + public CommonResult<MaintainPlanDetailRespVO> getMaintainPlanDetail(@RequestParam("id") Long id) {
  78 + MaintainPlanDetailDO maintainPlanDetail = maintainPlanDetailService.getMaintainPlanDetail(id);
  79 + return success(BeanUtils.toBean(maintainPlanDetail, MaintainPlanDetailRespVO.class));
  80 + }
  81 +
  82 + @GetMapping("/page")
  83 + @Operation(summary = "获得养护计划分页")
  84 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-detail:query')")
  85 + public CommonResult<PageResult<MaintainPlanDetailRespVO>> getMaintainPlanDetailPage(@Valid MaintainPlanDetailPageReqVO pageReqVO) {
  86 + PageResult<MaintainPlanDetailDO> pageResult = maintainPlanDetailService.getMaintainPlanDetailPage(pageReqVO);
  87 + return success(BeanUtils.toBean(pageResult, MaintainPlanDetailRespVO.class));
  88 + }
  89 +
  90 + @GetMapping("/export-excel")
  91 + @Operation(summary = "导出养护计划 Excel")
  92 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-detail:export')")
  93 + @ApiAccessLog(operateType = EXPORT)
  94 + public void exportMaintainPlanDetailExcel(@Valid MaintainPlanDetailPageReqVO pageReqVO,
  95 + HttpServletResponse response) throws IOException {
  96 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  97 + List<MaintainPlanDetailDO> list = maintainPlanDetailService.getMaintainPlanDetailPage(pageReqVO).getList();
  98 + // 导出 Excel
  99 + ExcelUtils.write(response, "养护计划.xls", "数据", MaintainPlanDetailRespVO.class,
  100 + BeanUtils.toBean(list, MaintainPlanDetailRespVO.class));
  101 + }
  102 +
  103 +}
0 104 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/MaintainPlanRoleController.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan;
  2 +
  3 +import org.springframework.web.bind.annotation.*;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +import org.springframework.security.access.prepost.PreAuthorize;
  7 +import io.swagger.v3.oas.annotations.tags.Tag;
  8 +import io.swagger.v3.oas.annotations.Parameter;
  9 +import io.swagger.v3.oas.annotations.Operation;
  10 +
  11 +import jakarta.validation.constraints.*;
  12 +import jakarta.validation.*;
  13 +import jakarta.servlet.http.*;
  14 +import java.util.*;
  15 +import java.io.IOException;
  16 +
  17 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  18 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  19 +import com.zteits.urbanops.framework.common.pojo.CommonResult;
  20 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  21 +import static com.zteits.urbanops.framework.common.pojo.CommonResult.success;
  22 +
  23 +import com.zteits.urbanops.framework.excel.core.util.ExcelUtils;
  24 +
  25 +import com.zteits.urbanops.framework.apilog.core.annotation.ApiAccessLog;
  26 +import static com.zteits.urbanops.framework.apilog.core.enums.OperateTypeEnum.*;
  27 +
  28 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  29 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanRoleDO;
  30 +import com.zteits.urbanops.module.garden.service.maintainplan.MaintainPlanRoleService;
  31 +
  32 +@Tag(name = "管理后台 - 养护计划角色")
  33 +@RestController
  34 +@RequestMapping("/garden/maintain-plan-role")
  35 +@Validated
  36 +public class MaintainPlanRoleController {
  37 +
  38 + @Resource
  39 + private MaintainPlanRoleService maintainPlanRoleService;
  40 +
  41 + @PostMapping("/create")
  42 + @Operation(summary = "创建养护计划角色")
  43 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-role:create')")
  44 + public CommonResult<Long> createMaintainPlanRole(@Valid @RequestBody MaintainPlanRoleSaveReqVO createReqVO) {
  45 + return success(maintainPlanRoleService.createMaintainPlanRole(createReqVO));
  46 + }
  47 +
  48 + @PutMapping("/update")
  49 + @Operation(summary = "更新养护计划角色")
  50 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-role:update')")
  51 + public CommonResult<Boolean> updateMaintainPlanRole(@Valid @RequestBody MaintainPlanRoleSaveReqVO updateReqVO) {
  52 + maintainPlanRoleService.updateMaintainPlanRole(updateReqVO);
  53 + return success(true);
  54 + }
  55 +
  56 + @DeleteMapping("/delete")
  57 + @Operation(summary = "删除养护计划角色")
  58 + @Parameter(name = "id", description = "编号", required = true)
  59 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-role:delete')")
  60 + public CommonResult<Boolean> deleteMaintainPlanRole(@RequestParam("id") Long id) {
  61 + maintainPlanRoleService.deleteMaintainPlanRole(id);
  62 + return success(true);
  63 + }
  64 +
  65 + @DeleteMapping("/delete-list")
  66 + @Parameter(name = "ids", description = "编号", required = true)
  67 + @Operation(summary = "批量删除养护计划角色")
  68 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-role:delete')")
  69 + public CommonResult<Boolean> deleteMaintainPlanRoleList(@RequestParam("ids") List<Long> ids) {
  70 + maintainPlanRoleService.deleteMaintainPlanRoleListByIds(ids);
  71 + return success(true);
  72 + }
  73 +
  74 + @GetMapping("/get")
  75 + @Operation(summary = "获得养护计划角色")
  76 + @Parameter(name = "id", description = "编号", required = true, example = "1024")
  77 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-role:query')")
  78 + public CommonResult<MaintainPlanRoleRespVO> getMaintainPlanRole(@RequestParam("id") Long id) {
  79 + MaintainPlanRoleDO maintainPlanRole = maintainPlanRoleService.getMaintainPlanRole(id);
  80 + return success(BeanUtils.toBean(maintainPlanRole, MaintainPlanRoleRespVO.class));
  81 + }
  82 +
  83 + @GetMapping("/page")
  84 + @Operation(summary = "获得养护计划角色分页")
  85 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-role:query')")
  86 + public CommonResult<PageResult<MaintainPlanRoleRespVO>> getMaintainPlanRolePage(@Valid MaintainPlanRolePageReqVO pageReqVO) {
  87 + PageResult<MaintainPlanRoleDO> pageResult = maintainPlanRoleService.getMaintainPlanRolePage(pageReqVO);
  88 + return success(BeanUtils.toBean(pageResult, MaintainPlanRoleRespVO.class));
  89 + }
  90 +
  91 + @GetMapping("/export-excel")
  92 + @Operation(summary = "导出养护计划角色 Excel")
  93 + @PreAuthorize("@ss.hasPermission('garden:maintain-plan-role:export')")
  94 + @ApiAccessLog(operateType = EXPORT)
  95 + public void exportMaintainPlanRoleExcel(@Valid MaintainPlanRolePageReqVO pageReqVO,
  96 + HttpServletResponse response) throws IOException {
  97 + pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  98 + List<MaintainPlanRoleDO> list = maintainPlanRoleService.getMaintainPlanRolePage(pageReqVO).getList();
  99 + // 导出 Excel
  100 + ExcelUtils.write(response, "养护计划角色.xls", "数据", MaintainPlanRoleRespVO.class,
  101 + BeanUtils.toBean(list, MaintainPlanRoleRespVO.class));
  102 + }
  103 +
  104 +}
0 105 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/AdminPlanYhCommitDetailPageReqVO.java deleted
1   -package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
2   -
3   -import com.zteits.urbanops.framework.common.pojo.PageParam;
4   -import lombok.Data;
5   -
6   -@Data
7   -public class AdminPlanYhCommitDetailPageReqVO extends PageParam {
8   - private Long companyId;
9   -}
10 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanAddReqVO.java deleted
1   -package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
2   -
3   -import jakarta.validation.constraints.NotEmpty;
4   -import jakarta.validation.constraints.NotNull;
5   -import lombok.Data;
6   -
7   -@Data
8   -public class MaintainPlanAddReqVO {
9   - @NotEmpty
10   - private String planNo;
11   - @NotEmpty
12   - private String planName;
13   - @NotNull
14   - private Integer type;
15   -}
16 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommitPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import lombok.*;
  4 +
  5 +import java.time.LocalDate;
  6 +import io.swagger.v3.oas.annotations.media.Schema;
  7 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  8 +import org.springframework.format.annotation.DateTimeFormat;
  9 +import java.time.LocalDateTime;
  10 +
  11 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  12 +
  13 +@Schema(description = "管理后台 - 养护计划明细分页 Request VO")
  14 +@Data
  15 +public class MaintainPlanCommitPageReqVO extends PageParam {
  16 +
  17 + @Schema(description = "批次号")
  18 + private String batchNo;
  19 +
  20 + @Schema(description = "计划编码")
  21 + private String planNo;
  22 +
  23 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政")
  24 + private String busiLine;
  25 +
  26 + @Schema(description = "提交次序号")
  27 + private Integer sortNum;
  28 +
  29 + @Schema(description = "归属(一级部门id)", example = "2759")
  30 + private Long companyId;
  31 +
  32 + @Schema(description = "部门ID(道路负责部门id)", example = "29117")
  33 + private Long deptId;
  34 +
  35 + @Schema(description = "道路ID", example = "12084")
  36 + private Long roadId;
  37 +
  38 + @Schema(description = "本次完成百分比")
  39 + private Double finishPercent;
  40 +
  41 + @Schema(description = "照片host")
  42 + private String imgHost;
  43 +
  44 + @Schema(description = "开始照片")
  45 + private String beginImg;
  46 +
  47 + @Schema(description = "处理中照片")
  48 + private String processImg;
  49 +
  50 + @Schema(description = "结束照片")
  51 + private String endImg;
  52 +
  53 + @Schema(description = "养护面积:单位m²")
  54 + private Double opArea;
  55 +
  56 + @Schema(description = "操作时长")
  57 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  58 + private Double[] opTime;
  59 +
  60 + @Schema(description = "完成时间")
  61 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  62 + private LocalDate[] finishTime;
  63 +
  64 + @Schema(description = "提交人用户", example = "19167")
  65 + private Long userId;
  66 +
  67 + @Schema(description = "提交人用户ID", example = "王五")
  68 + private String userName;
  69 +
  70 + @Schema(description = "备注", example = "你猜")
  71 + private String remark;
  72 +
  73 + @Schema(description = "创建者", example = "张三")
  74 + private String creatorName;
  75 +
  76 + @Schema(description = "创建时间")
  77 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  78 + private LocalDateTime[] createTime;
  79 +
  80 + @Schema(description = "更新者", example = "赵六")
  81 + private String updaterName;
  82 +
  83 +}
0 84 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommitRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +
  6 +import java.time.LocalDateTime;
  7 +import cn.idev.excel.annotation.*;
  8 +
  9 +@Schema(description = "管理后台 - 养护计划明细 Response VO")
  10 +@Data
  11 +@ExcelIgnoreUnannotated
  12 +public class MaintainPlanCommitRespVO {
  13 +
  14 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26945")
  15 + @ExcelProperty("ID")
  16 + private Long id;
  17 +
  18 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  19 + @ExcelProperty("批次号")
  20 + private String batchNo;
  21 +
  22 + @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
  23 + @ExcelProperty("计划编码")
  24 + private String planNo;
  25 +
  26 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政", requiredMode = Schema.RequiredMode.REQUIRED)
  27 + @ExcelProperty("业务线: yl-园林;wy-物业:sz-市政")
  28 + private String busiLine;
  29 +
  30 + @Schema(description = "提交次序号", requiredMode = Schema.RequiredMode.REQUIRED)
  31 + @ExcelProperty("提交次序号")
  32 + private Integer sortNum;
  33 +
  34 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2759")
  35 + @ExcelProperty("归属(一级部门id)")
  36 + private Long companyId;
  37 +
  38 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "29117")
  39 + @ExcelProperty("部门ID(道路负责部门id)")
  40 + private Long deptId;
  41 +
  42 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12084")
  43 + @ExcelProperty("道路ID")
  44 + private Long roadId;
  45 +
  46 + @Schema(description = "本次完成百分比", requiredMode = Schema.RequiredMode.REQUIRED)
  47 + @ExcelProperty("本次完成百分比")
  48 + private Double finishPercent;
  49 +
  50 + @Schema(description = "照片host", requiredMode = Schema.RequiredMode.REQUIRED)
  51 + @ExcelProperty("照片host")
  52 + private String imgHost;
  53 +
  54 + @Schema(description = "开始照片", requiredMode = Schema.RequiredMode.REQUIRED)
  55 + @ExcelProperty("开始照片")
  56 + private String beginImg;
  57 +
  58 + @Schema(description = "处理中照片", requiredMode = Schema.RequiredMode.REQUIRED)
  59 + @ExcelProperty("处理中照片")
  60 + private String processImg;
  61 +
  62 + @Schema(description = "结束照片", requiredMode = Schema.RequiredMode.REQUIRED)
  63 + @ExcelProperty("结束照片")
  64 + private String endImg;
  65 +
  66 + @Schema(description = "养护面积:单位m²", requiredMode = Schema.RequiredMode.REQUIRED)
  67 + @ExcelProperty("养护面积:单位m²")
  68 + private Double opArea;
  69 +
  70 + @Schema(description = "操作时长", requiredMode = Schema.RequiredMode.REQUIRED)
  71 + @ExcelProperty("操作时长")
  72 + private Double opTime;
  73 +
  74 + @Schema(description = "完成时间")
  75 + @ExcelProperty("完成时间")
  76 + private LocalDateTime finishTime;
  77 +
  78 + @Schema(description = "提交人用户", requiredMode = Schema.RequiredMode.REQUIRED, example = "19167")
  79 + @ExcelProperty("提交人用户")
  80 + private Long userId;
  81 +
  82 + @Schema(description = "提交人用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  83 + @ExcelProperty("提交人用户ID")
  84 + private String userName;
  85 +
  86 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  87 + @ExcelProperty("备注")
  88 + private String remark;
  89 +
  90 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  91 + @ExcelProperty("创建者")
  92 + private String creatorName;
  93 +
  94 + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
  95 + @ExcelProperty("创建时间")
  96 + private LocalDateTime createTime;
  97 +
  98 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  99 + @ExcelProperty("更新者")
  100 + private String updaterName;
  101 +
  102 +}
0 103 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommitSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +
  6 +import java.time.LocalDateTime;
  7 +import jakarta.validation.constraints.*;
  8 +
  9 +@Schema(description = "管理后台 - 养护计划明细新增/修改 Request VO")
  10 +@Data
  11 +public class MaintainPlanCommitSaveReqVO {
  12 +
  13 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26945")
  14 + private Long id;
  15 +
  16 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  17 + @NotEmpty(message = "批次号不能为空")
  18 + private String batchNo;
  19 +
  20 + @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
  21 + @NotEmpty(message = "计划编码不能为空")
  22 + private String planNo;
  23 +
  24 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政", requiredMode = Schema.RequiredMode.REQUIRED)
  25 + @NotEmpty(message = "业务线: yl-园林;wy-物业:sz-市政不能为空")
  26 + private String busiLine;
  27 +
  28 + @Schema(description = "提交次序号", requiredMode = Schema.RequiredMode.REQUIRED)
  29 + @NotNull(message = "提交次序号不能为空")
  30 + private Integer sortNum;
  31 +
  32 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "2759")
  33 + @NotNull(message = "归属(一级部门id)不能为空")
  34 + private Long companyId;
  35 +
  36 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "29117")
  37 + @NotNull(message = "部门ID(道路负责部门id)不能为空")
  38 + private Long deptId;
  39 +
  40 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12084")
  41 + @NotNull(message = "道路ID不能为空")
  42 + private Long roadId;
  43 +
  44 + @Schema(description = "本次完成百分比", requiredMode = Schema.RequiredMode.REQUIRED)
  45 + @NotNull(message = "本次完成百分比不能为空")
  46 + private Double finishPercent;
  47 +
  48 + @Schema(description = "照片host", requiredMode = Schema.RequiredMode.REQUIRED)
  49 + @NotEmpty(message = "照片host不能为空")
  50 + private String imgHost;
  51 +
  52 + @Schema(description = "开始照片", requiredMode = Schema.RequiredMode.REQUIRED)
  53 + @NotEmpty(message = "开始照片不能为空")
  54 + private String beginImg;
  55 +
  56 + @Schema(description = "处理中照片", requiredMode = Schema.RequiredMode.REQUIRED)
  57 + @NotEmpty(message = "处理中照片不能为空")
  58 + private String processImg;
  59 +
  60 + @Schema(description = "结束照片", requiredMode = Schema.RequiredMode.REQUIRED)
  61 + @NotEmpty(message = "结束照片不能为空")
  62 + private String endImg;
  63 +
  64 + @Schema(description = "养护面积:单位m²", requiredMode = Schema.RequiredMode.REQUIRED)
  65 + @NotNull(message = "养护面积:单位m²不能为空")
  66 + private Double opArea;
  67 +
  68 + @Schema(description = "操作时长", requiredMode = Schema.RequiredMode.REQUIRED)
  69 + @NotNull(message = "操作时长不能为空")
  70 + private Double opTime;
  71 +
  72 + @Schema(description = "完成时间")
  73 + private LocalDateTime finishTime;
  74 +
  75 + @Schema(description = "提交人用户", requiredMode = Schema.RequiredMode.REQUIRED, example = "19167")
  76 + @NotNull(message = "提交人用户不能为空")
  77 + private Long userId;
  78 +
  79 + @Schema(description = "提交人用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  80 + @NotEmpty(message = "提交人用户ID不能为空")
  81 + private String userName;
  82 +
  83 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  84 + @NotEmpty(message = "备注不能为空")
  85 + private String remark;
  86 +
  87 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
  88 + @NotEmpty(message = "创建者不能为空")
  89 + private String creatorName;
  90 +
  91 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  92 + @NotEmpty(message = "更新者不能为空")
  93 + private String updaterName;
  94 +
  95 +}
0 96 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommonUserPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 养护计划共同处理人分页 Request VO")
  13 +@Data
  14 +public class MaintainPlanCommonUserPageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "批次号")
  17 + private String batchNo;
  18 +
  19 + @Schema(description = "计划编码")
  20 + private String planNo;
  21 +
  22 + @Schema(description = "提交次序号")
  23 + private Integer sortNum;
  24 +
  25 + @Schema(description = "归属(一级部门id)", example = "28203")
  26 + private Long companyId;
  27 +
  28 + @Schema(description = "部门ID(道路负责部门id)", example = "27061")
  29 + private Long deptId;
  30 +
  31 + @Schema(description = "用户ID", example = "14415")
  32 + private Long userId;
  33 +
  34 + @Schema(description = "用户名", example = "李四")
  35 + private String userName;
  36 +
  37 + @Schema(description = "创建者", example = "芋艿")
  38 + private String creatorName;
  39 +
  40 + @Schema(description = "创建时间")
  41 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  42 + private LocalDateTime[] createTime;
  43 +
  44 + @Schema(description = "更新者", example = "李四")
  45 + private String updaterName;
  46 +
  47 +}
0 48 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommonUserRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.time.LocalDateTime;
  6 +import cn.idev.excel.annotation.*;
  7 +
  8 +@Schema(description = "管理后台 - 养护计划共同处理人 Response VO")
  9 +@Data
  10 +@ExcelIgnoreUnannotated
  11 +public class MaintainPlanCommonUserRespVO {
  12 +
  13 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6621")
  14 + @ExcelProperty("ID")
  15 + private Long id;
  16 +
  17 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  18 + @ExcelProperty("批次号")
  19 + private String batchNo;
  20 +
  21 + @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
  22 + @ExcelProperty("计划编码")
  23 + private String planNo;
  24 +
  25 + @Schema(description = "提交次序号", requiredMode = Schema.RequiredMode.REQUIRED)
  26 + @ExcelProperty("提交次序号")
  27 + private Integer sortNum;
  28 +
  29 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "28203")
  30 + @ExcelProperty("归属(一级部门id)")
  31 + private Long companyId;
  32 +
  33 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "27061")
  34 + @ExcelProperty("部门ID(道路负责部门id)")
  35 + private Long deptId;
  36 +
  37 + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14415")
  38 + @ExcelProperty("用户ID")
  39 + private Long userId;
  40 +
  41 + @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  42 + @ExcelProperty("用户名")
  43 + private String userName;
  44 +
  45 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  46 + @ExcelProperty("创建者")
  47 + private String creatorName;
  48 +
  49 + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
  50 + @ExcelProperty("创建时间")
  51 + private LocalDateTime createTime;
  52 +
  53 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  54 + @ExcelProperty("更新者")
  55 + private String updaterName;
  56 +
  57 +}
0 58 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanCommonUserSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import jakarta.validation.constraints.*;
  6 +
  7 +@Schema(description = "管理后台 - 养护计划共同处理人新增/修改 Request VO")
  8 +@Data
  9 +public class MaintainPlanCommonUserSaveReqVO {
  10 +
  11 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6621")
  12 + private Long id;
  13 +
  14 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  15 + @NotEmpty(message = "批次号不能为空")
  16 + private String batchNo;
  17 +
  18 + @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
  19 + @NotEmpty(message = "计划编码不能为空")
  20 + private String planNo;
  21 +
  22 + @Schema(description = "提交次序号", requiredMode = Schema.RequiredMode.REQUIRED)
  23 + @NotNull(message = "提交次序号不能为空")
  24 + private Integer sortNum;
  25 +
  26 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "28203")
  27 + @NotNull(message = "归属(一级部门id)不能为空")
  28 + private Long companyId;
  29 +
  30 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "27061")
  31 + @NotNull(message = "部门ID(道路负责部门id)不能为空")
  32 + private Long deptId;
  33 +
  34 + @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14415")
  35 + @NotNull(message = "用户ID不能为空")
  36 + private Long userId;
  37 +
  38 + @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  39 + @NotEmpty(message = "用户名不能为空")
  40 + private String userName;
  41 +
  42 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  43 + @NotEmpty(message = "创建者不能为空")
  44 + private String creatorName;
  45 +
  46 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  47 + @NotEmpty(message = "更新者不能为空")
  48 + private String updaterName;
  49 +
  50 +}
0 51 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanDetailPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import lombok.*;
  4 +
  5 +import java.time.LocalDate;
  6 +import io.swagger.v3.oas.annotations.media.Schema;
  7 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  8 +import org.springframework.format.annotation.DateTimeFormat;
  9 +import java.time.LocalDateTime;
  10 +
  11 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  12 +
  13 +@Schema(description = "管理后台 - 养护计划分页 Request VO")
  14 +@Data
  15 +public class MaintainPlanDetailPageReqVO extends PageParam {
  16 +
  17 + @Schema(description = "批次号")
  18 + private String batchNo;
  19 +
  20 + @Schema(description = "计划编码")
  21 + private String planNo;
  22 +
  23 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政")
  24 + private String busiLine;
  25 +
  26 + @Schema(description = "归属(一级部门id)", example = "304")
  27 + private Long companyId;
  28 +
  29 + @Schema(description = "部门ID(道路负责部门id)", example = "11976")
  30 + private Long deptId;
  31 +
  32 + @Schema(description = "道路ID", example = "23595")
  33 + private Long roadId;
  34 +
  35 + @Schema(description = "排序号:第n次计划")
  36 + private Integer sortNum;
  37 +
  38 + @Schema(description = "执行开始时间")
  39 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  40 + private LocalDate[] beginTime;
  41 +
  42 + @Schema(description = "执行时间")
  43 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  44 + private LocalDate[] endTime;
  45 +
  46 + @Schema(description = "完成百分比")
  47 + private Double finishPercent;
  48 +
  49 + @Schema(description = "完成状态 1:未完成;2:进行中;3:已完成")
  50 + private Integer finishState;
  51 +
  52 + @Schema(description = "创建者", example = "李四")
  53 + private String creatorName;
  54 +
  55 + @Schema(description = "创建时间")
  56 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  57 + private LocalDateTime[] createTime;
  58 +
  59 + @Schema(description = "更新者", example = "芋艿")
  60 + private String updaterName;
  61 +
  62 +}
0 63 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanDetailRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +
  6 +import java.time.LocalDate;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 养护计划 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class MaintainPlanDetailRespVO {
  14 +
  15 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29810")
  16 + @ExcelProperty("ID")
  17 + private Long id;
  18 +
  19 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  20 + @ExcelProperty("批次号")
  21 + private String batchNo;
  22 +
  23 + @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
  24 + @ExcelProperty("计划编码")
  25 + private String planNo;
  26 +
  27 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政", requiredMode = Schema.RequiredMode.REQUIRED)
  28 + @ExcelProperty("业务线: yl-园林;wy-物业:sz-市政")
  29 + private String busiLine;
  30 +
  31 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "304")
  32 + @ExcelProperty("归属(一级部门id)")
  33 + private Long companyId;
  34 +
  35 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "11976")
  36 + @ExcelProperty("部门ID(道路负责部门id)")
  37 + private Long deptId;
  38 +
  39 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23595")
  40 + @ExcelProperty("道路ID")
  41 + private Long roadId;
  42 +
  43 + @Schema(description = "排序号:第n次计划", requiredMode = Schema.RequiredMode.REQUIRED)
  44 + @ExcelProperty("排序号:第n次计划")
  45 + private Integer sortNum;
  46 +
  47 + @Schema(description = "执行开始时间")
  48 + @ExcelProperty("执行开始时间")
  49 + private LocalDate beginTime;
  50 +
  51 + @Schema(description = "执行时间")
  52 + @ExcelProperty("执行时间")
  53 + private LocalDate endTime;
  54 +
  55 + @Schema(description = "完成百分比", requiredMode = Schema.RequiredMode.REQUIRED)
  56 + @ExcelProperty("完成百分比")
  57 + private Double finishPercent;
  58 +
  59 + @Schema(description = "完成状态 1:未完成;2:进行中;3:已完成", requiredMode = Schema.RequiredMode.REQUIRED)
  60 + @ExcelProperty("完成状态 1:未完成;2:进行中;3:已完成")
  61 + private Integer finishState;
  62 +
  63 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  64 + @ExcelProperty("创建者")
  65 + private String creatorName;
  66 +
  67 + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
  68 + @ExcelProperty("创建时间")
  69 + private LocalDateTime createTime;
  70 +
  71 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  72 + @ExcelProperty("更新者")
  73 + private String updaterName;
  74 +
  75 +}
0 76 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanDetailSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +
  6 +import java.time.LocalDate;
  7 +import jakarta.validation.constraints.*;
  8 +
  9 +@Schema(description = "管理后台 - 养护计划新增/修改 Request VO")
  10 +@Data
  11 +public class MaintainPlanDetailSaveReqVO {
  12 +
  13 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29810")
  14 + private Long id;
  15 +
  16 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  17 + @NotEmpty(message = "批次号不能为空")
  18 + private String batchNo;
  19 +
  20 + @Schema(description = "计划编码", requiredMode = Schema.RequiredMode.REQUIRED)
  21 + @NotEmpty(message = "计划编码不能为空")
  22 + private String planNo;
  23 +
  24 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政", requiredMode = Schema.RequiredMode.REQUIRED)
  25 + @NotEmpty(message = "业务线: yl-园林;wy-物业:sz-市政不能为空")
  26 + private String busiLine;
  27 +
  28 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "304")
  29 + @NotNull(message = "归属(一级部门id)不能为空")
  30 + private Long companyId;
  31 +
  32 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "11976")
  33 + @NotNull(message = "部门ID(道路负责部门id)不能为空")
  34 + private Long deptId;
  35 +
  36 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23595")
  37 + @NotNull(message = "道路ID不能为空")
  38 + private Long roadId;
  39 +
  40 + @Schema(description = "排序号:第n次计划", requiredMode = Schema.RequiredMode.REQUIRED)
  41 + @NotNull(message = "排序号:第n次计划不能为空")
  42 + private Integer sortNum;
  43 +
  44 + @Schema(description = "执行开始时间")
  45 + private LocalDate beginTime;
  46 +
  47 + @Schema(description = "执行时间")
  48 + private LocalDate endTime;
  49 +
  50 + @Schema(description = "完成百分比", requiredMode = Schema.RequiredMode.REQUIRED)
  51 + @NotNull(message = "完成百分比不能为空")
  52 + private Double finishPercent;
  53 +
  54 + @Schema(description = "完成状态 1:未完成;2:进行中;3:已完成", requiredMode = Schema.RequiredMode.REQUIRED)
  55 + @NotNull(message = "完成状态 1:未完成;2:进行中;3:已完成不能为空")
  56 + private Integer finishState;
  57 +
  58 + @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
  59 + @NotEmpty(message = "创建者不能为空")
  60 + private String creatorName;
  61 +
  62 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  63 + @NotEmpty(message = "更新者不能为空")
  64 + private String updaterName;
  65 +
  66 +}
0 67 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanForPageReqVO.java deleted
1   -package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
2   -
3   -import com.zteits.urbanops.framework.common.pojo.PageParam;
4   -import lombok.Data;
5   -
6   -@Data
7   -public class MaintainPlanForPageReqVO extends PageParam {
8   - private Integer type;
9   - private String planName;
10   -}
11 0 \ No newline at end of file
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanPageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import lombok.*;
  4 +
  5 +import java.time.LocalDate;
  6 +import io.swagger.v3.oas.annotations.media.Schema;
  7 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  8 +import org.springframework.format.annotation.DateTimeFormat;
  9 +import java.time.LocalDateTime;
  10 +
  11 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  12 +
  13 +@Schema(description = "管理后台 - 养护计划汇总分页 Request VO")
  14 +@Data
  15 +public class MaintainPlanPageReqVO extends PageParam {
  16 +
  17 + @Schema(description = "批次号")
  18 + private String batchNo;
  19 +
  20 + @Schema(description = "计划名称", example = "王五")
  21 + private String planName;
  22 +
  23 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政")
  24 + private String busiLine;
  25 +
  26 + @Schema(description = "计划属性:1:标准计划;2:临时计划")
  27 + private Integer planAttr;
  28 +
  29 + @Schema(description = "养护类型:2001:浇水;2002:施肥;2003:有害生物防治;2004:修剪;2005:中耕除草;2006:打孔梳草;2007:绿地保洁;2008:园林废弃物收集运输 ;2009:补植;3001:绿地巡视;", example = "7439")
  30 + private Integer planTypeId;
  31 +
  32 + @Schema(description = "归属(一级部门id)", example = "1713")
  33 + private Long companyId;
  34 +
  35 + @Schema(description = "部门ID(道路负责部门id)", example = "12055")
  36 + private Long deptId;
  37 +
  38 + @Schema(description = "道路ID", example = "19114")
  39 + private Long roadId;
  40 +
  41 + @Schema(description = "道路名称", example = "王五")
  42 + private String roadName;
  43 +
  44 + @Schema(description = "养护级别: 10:特级;11:一级:12:二级;13:三级", example = "16420")
  45 + private Integer levelId;
  46 +
  47 + @Schema(description = "周期ID: 1:日/次;2:周/次;3:月/次;4:年/次", example = "28220")
  48 + private Integer cycleId;
  49 +
  50 + @Schema(description = "计划次数")
  51 + private Integer planNum;
  52 +
  53 + @Schema(description = "已完成次数")
  54 + private Integer planFinishNum;
  55 +
  56 + @Schema(description = "完成状态 : 1:未完成;2:已完成")
  57 + private Integer finishState;
  58 +
  59 + @Schema(description = "开始时间")
  60 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  61 + private LocalDate[] beginTime;
  62 +
  63 + @Schema(description = "开始时间")
  64 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  65 + private LocalDate[] endTime;
  66 +
  67 + @Schema(description = "备注", example = "你猜")
  68 + private String remark;
  69 +
  70 + @Schema(description = "创建人", example = "赵六")
  71 + private String creatorName;
  72 +
  73 + @Schema(description = "创建时间")
  74 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  75 + private LocalDateTime[] createTime;
  76 +
  77 + @Schema(description = "更新者", example = "芋艿")
  78 + private String updaterName;
  79 +
  80 +}
0 81 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +
  6 +import java.time.LocalDate;
  7 +import java.util.*;
  8 +import org.springframework.format.annotation.DateTimeFormat;
  9 +import java.time.LocalDateTime;
  10 +import cn.idev.excel.annotation.*;
  11 +
  12 +@Schema(description = "管理后台 - 养护计划汇总 Response VO")
  13 +@Data
  14 +@ExcelIgnoreUnannotated
  15 +public class MaintainPlanRespVO {
  16 +
  17 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2058")
  18 + @ExcelProperty("ID")
  19 + private Long id;
  20 +
  21 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  22 + @ExcelProperty("批次号")
  23 + private String batchNo;
  24 +
  25 + @Schema(description = "计划名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  26 + @ExcelProperty("计划名称")
  27 + private String planName;
  28 +
  29 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政", requiredMode = Schema.RequiredMode.REQUIRED)
  30 + @ExcelProperty("业务线: yl-园林;wy-物业:sz-市政")
  31 + private String busiLine;
  32 +
  33 + @Schema(description = "计划属性:1:标准计划;2:临时计划", requiredMode = Schema.RequiredMode.REQUIRED)
  34 + @ExcelProperty("计划属性:1:标准计划;2:临时计划")
  35 + private Integer planAttr;
  36 +
  37 + @Schema(description = "养护类型:2001:浇水;2002:施肥;2003:有害生物防治;2004:修剪;2005:中耕除草;2006:打孔梳草;2007:绿地保洁;2008:园林废弃物收集运输 ;2009:补植;3001:绿地巡视;", requiredMode = Schema.RequiredMode.REQUIRED, example = "7439")
  38 + @ExcelProperty("养护类型:2001:浇水;2002:施肥;2003:有害生物防治;2004:修剪;2005:中耕除草;2006:打孔梳草;2007:绿地保洁;2008:园林废弃物收集运输 ;2009:补植;3001:绿地巡视;")
  39 + private Integer planTypeId;
  40 +
  41 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1713")
  42 + @ExcelProperty("归属(一级部门id)")
  43 + private Long companyId;
  44 +
  45 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "12055")
  46 + @ExcelProperty("部门ID(道路负责部门id)")
  47 + private Long deptId;
  48 +
  49 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19114")
  50 + @ExcelProperty("道路ID")
  51 + private Long roadId;
  52 +
  53 + @Schema(description = "道路名称", example = "王五")
  54 + @ExcelProperty("道路名称")
  55 + private String roadName;
  56 +
  57 + @Schema(description = "养护级别: 10:特级;11:一级:12:二级;13:三级", requiredMode = Schema.RequiredMode.REQUIRED, example = "16420")
  58 + @ExcelProperty("养护级别: 10:特级;11:一级:12:二级;13:三级")
  59 + private Integer levelId;
  60 +
  61 + @Schema(description = "周期ID: 1:日/次;2:周/次;3:月/次;4:年/次", requiredMode = Schema.RequiredMode.REQUIRED, example = "28220")
  62 + @ExcelProperty("周期ID: 1:日/次;2:周/次;3:月/次;4:年/次")
  63 + private Integer cycleId;
  64 +
  65 + @Schema(description = "计划次数", requiredMode = Schema.RequiredMode.REQUIRED)
  66 + @ExcelProperty("计划次数")
  67 + private Integer planNum;
  68 +
  69 + @Schema(description = "已完成次数", requiredMode = Schema.RequiredMode.REQUIRED)
  70 + @ExcelProperty("已完成次数")
  71 + private Integer planFinishNum;
  72 +
  73 + @Schema(description = "完成状态 : 1:未完成;2:已完成", requiredMode = Schema.RequiredMode.REQUIRED)
  74 + @ExcelProperty("完成状态 : 1:未完成;2:已完成")
  75 + private Integer finishState;
  76 +
  77 + @Schema(description = "开始时间")
  78 + @ExcelProperty("开始时间")
  79 + private LocalDate beginTime;
  80 +
  81 + @Schema(description = "开始时间")
  82 + @ExcelProperty("开始时间")
  83 + private LocalDate endTime;
  84 +
  85 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  86 + @ExcelProperty("备注")
  87 + private String remark;
  88 +
  89 + @Schema(description = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  90 + @ExcelProperty("创建人")
  91 + private String creatorName;
  92 +
  93 + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
  94 + @ExcelProperty("创建时间")
  95 + private LocalDateTime createTime;
  96 +
  97 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  98 + @ExcelProperty("更新者")
  99 + private String updaterName;
  100 +
  101 +}
0 102 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanRolePageReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import io.swagger.v3.oas.annotations.media.Schema;
  6 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  7 +import org.springframework.format.annotation.DateTimeFormat;
  8 +import java.time.LocalDateTime;
  9 +
  10 +import static com.zteits.urbanops.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  11 +
  12 +@Schema(description = "管理后台 - 养护计划角色分页 Request VO")
  13 +@Data
  14 +public class MaintainPlanRolePageReqVO extends PageParam {
  15 +
  16 + @Schema(description = "批次号")
  17 + private String batchNo;
  18 +
  19 + @Schema(description = "归属(一级部门id)", example = "18833")
  20 + private Long companyId;
  21 +
  22 + @Schema(description = "部门ID(道路负责部门id)", example = "16673")
  23 + private Long deptId;
  24 +
  25 + @Schema(description = "道路ID", example = "5089")
  26 + private Long roadId;
  27 +
  28 + @Schema(description = "角色ID", example = "20734")
  29 + private Long roleId;
  30 +
  31 + @Schema(description = "创建时间")
  32 + @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  33 + private LocalDateTime[] createTime;
  34 +
  35 +}
0 36 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanRoleRespVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import org.springframework.format.annotation.DateTimeFormat;
  7 +import java.time.LocalDateTime;
  8 +import cn.idev.excel.annotation.*;
  9 +
  10 +@Schema(description = "管理后台 - 养护计划角色 Response VO")
  11 +@Data
  12 +@ExcelIgnoreUnannotated
  13 +public class MaintainPlanRoleRespVO {
  14 +
  15 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28217")
  16 + @ExcelProperty("ID")
  17 + private Long id;
  18 +
  19 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  20 + @ExcelProperty("批次号")
  21 + private String batchNo;
  22 +
  23 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "18833")
  24 + @ExcelProperty("归属(一级部门id)")
  25 + private Long companyId;
  26 +
  27 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "16673")
  28 + @ExcelProperty("部门ID(道路负责部门id)")
  29 + private Long deptId;
  30 +
  31 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5089")
  32 + @ExcelProperty("道路ID")
  33 + private Long roadId;
  34 +
  35 + @Schema(description = "角色ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20734")
  36 + @ExcelProperty("角色ID")
  37 + private Long roleId;
  38 +
  39 + @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
  40 + @ExcelProperty("创建时间")
  41 + private LocalDateTime createTime;
  42 +
  43 +}
0 44 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanRoleSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +import java.util.*;
  6 +import jakarta.validation.constraints.*;
  7 +
  8 +@Schema(description = "管理后台 - 养护计划角色新增/修改 Request VO")
  9 +@Data
  10 +public class MaintainPlanRoleSaveReqVO {
  11 +
  12 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28217")
  13 + private Long id;
  14 +
  15 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  16 + @NotEmpty(message = "批次号不能为空")
  17 + private String batchNo;
  18 +
  19 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "18833")
  20 + @NotNull(message = "归属(一级部门id)不能为空")
  21 + private Long companyId;
  22 +
  23 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "16673")
  24 + @NotNull(message = "部门ID(道路负责部门id)不能为空")
  25 + private Long deptId;
  26 +
  27 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5089")
  28 + @NotNull(message = "道路ID不能为空")
  29 + private Long roadId;
  30 +
  31 + @Schema(description = "角色ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20734")
  32 + @NotNull(message = "角色ID不能为空")
  33 + private Long roleId;
  34 +
  35 +}
0 36 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/vo/MaintainPlanSaveReqVO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo;
  2 +
  3 +import io.swagger.v3.oas.annotations.media.Schema;
  4 +import lombok.*;
  5 +
  6 +import java.time.LocalDate;
  7 +import java.util.*;
  8 +import jakarta.validation.constraints.*;
  9 +
  10 +@Schema(description = "管理后台 - 养护计划汇总新增/修改 Request VO")
  11 +@Data
  12 +public class MaintainPlanSaveReqVO {
  13 +
  14 + @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2058")
  15 + private Long id;
  16 +
  17 + @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
  18 + @NotEmpty(message = "批次号不能为空")
  19 + private String batchNo;
  20 +
  21 + @Schema(description = "计划名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
  22 + @NotEmpty(message = "计划名称不能为空")
  23 + private String planName;
  24 +
  25 + @Schema(description = "业务线: yl-园林;wy-物业:sz-市政", requiredMode = Schema.RequiredMode.REQUIRED)
  26 + @NotEmpty(message = "业务线: yl-园林;wy-物业:sz-市政不能为空")
  27 + private String busiLine;
  28 +
  29 + @Schema(description = "计划属性:1:标准计划;2:临时计划", requiredMode = Schema.RequiredMode.REQUIRED)
  30 + @NotNull(message = "计划属性:1:标准计划;2:临时计划不能为空")
  31 + private Integer planAttr;
  32 +
  33 + @Schema(description = "养护类型:2001:浇水;2002:施肥;2003:有害生物防治;2004:修剪;2005:中耕除草;2006:打孔梳草;2007:绿地保洁;2008:园林废弃物收集运输 ;2009:补植;3001:绿地巡视;", requiredMode = Schema.RequiredMode.REQUIRED, example = "7439")
  34 + @NotNull(message = "养护类型:2001:浇水;2002:施肥;2003:有害生物防治;2004:修剪;2005:中耕除草;2006:打孔梳草;2007:绿地保洁;2008:园林废弃物收集运输 ;2009:补植;3001:绿地巡视;不能为空")
  35 + private Integer planTypeId;
  36 +
  37 + @Schema(description = "归属(一级部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1713")
  38 + @NotNull(message = "归属(一级部门id)不能为空")
  39 + private Long companyId;
  40 +
  41 + @Schema(description = "部门ID(道路负责部门id)", requiredMode = Schema.RequiredMode.REQUIRED, example = "12055")
  42 + @NotNull(message = "部门ID(道路负责部门id)不能为空")
  43 + private Long deptId;
  44 +
  45 + @Schema(description = "道路ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19114")
  46 + @NotNull(message = "道路ID不能为空")
  47 + private Long roadId;
  48 +
  49 + @Schema(description = "道路名称", example = "王五")
  50 + private String roadName;
  51 +
  52 + @Schema(description = "养护级别: 10:特级;11:一级:12:二级;13:三级", requiredMode = Schema.RequiredMode.REQUIRED, example = "16420")
  53 + @NotNull(message = "养护级别: 10:特级;11:一级:12:二级;13:三级不能为空")
  54 + private Integer levelId;
  55 +
  56 + @Schema(description = "周期ID: 1:日/次;2:周/次;3:月/次;4:年/次", requiredMode = Schema.RequiredMode.REQUIRED, example = "28220")
  57 + @NotNull(message = "周期ID: 1:日/次;2:周/次;3:月/次;4:年/次不能为空")
  58 + private Integer cycleId;
  59 +
  60 + @Schema(description = "计划次数", requiredMode = Schema.RequiredMode.REQUIRED)
  61 + @NotNull(message = "计划次数不能为空")
  62 + private Integer planNum;
  63 +
  64 + @Schema(description = "已完成次数", requiredMode = Schema.RequiredMode.REQUIRED)
  65 + @NotNull(message = "已完成次数不能为空")
  66 + private Integer planFinishNum;
  67 +
  68 + @Schema(description = "完成状态 : 1:未完成;2:已完成", requiredMode = Schema.RequiredMode.REQUIRED)
  69 + @NotNull(message = "完成状态 : 1:未完成;2:已完成不能为空")
  70 + private Integer finishState;
  71 +
  72 + @Schema(description = "开始时间")
  73 + private LocalDate beginTime;
  74 +
  75 + @Schema(description = "开始时间")
  76 + private LocalDate endTime;
  77 +
  78 + @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
  79 + @NotEmpty(message = "备注不能为空")
  80 + private String remark;
  81 +
  82 + @Schema(description = "创建人", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
  83 + @NotEmpty(message = "创建人不能为空")
  84 + private String creatorName;
  85 +
  86 + @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
  87 + @NotEmpty(message = "更新者不能为空")
  88 + private String updaterName;
  89 +
  90 +}
0 91 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/inspectionplan/InspectionPlanCommitDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.inspectionplan;
  2 +
  3 +import lombok.*;
  4 +import java.time.LocalDateTime;
  5 +import com.baomidou.mybatisplus.annotation.*;
  6 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  7 +
  8 +/**
  9 + * 巡检计划提交明细 DO
  10 + *
  11 + * @author 超级管理员
  12 + */
  13 +@TableName("garden_inspection_plan_commit")
  14 +@KeySequence("garden_inspection_plan_commit_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  15 +@Data
  16 +@EqualsAndHashCode(callSuper = true)
  17 +@ToString(callSuper = true)
  18 +@Builder
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +public class InspectionPlanCommitDO extends BaseDO {
  22 +
  23 + /**
  24 + * ID
  25 + */
  26 + @TableId
  27 + private Long id;
  28 + /**
  29 + * 批次号
  30 + */
  31 + private String batchNo;
  32 + /**
  33 + * 计划编码
  34 + */
  35 + private String planNo;
  36 + /**
  37 + * 业务线: yl-园林;wy-物业:sz-市政
  38 + */
  39 + private String busiLine;
  40 + /**
  41 + * 归属(一级部门id)
  42 + */
  43 + private Long companyId;
  44 + /**
  45 + * 部门ID(道路负责部门id)
  46 + */
  47 + private Long deptId;
  48 + /**
  49 + * 道路ID
  50 + */
  51 + private Long roadId;
  52 + /**
  53 + * 图片地址host
  54 + */
  55 + private String imgHost;
  56 + /**
  57 + * 巡检照片
  58 + */
  59 + private String img;
  60 + /**
  61 + * 巡检结果: 1:正常;2:异常
  62 + */
  63 + private Integer inspectionState;
  64 + /**
  65 + * 转交状态: 1:未转交;2:已转交
  66 + */
  67 + private Integer transState;
  68 + /**
  69 + * 转交问题单编码
  70 + */
  71 + private String transWorkNo;
  72 + /**
  73 + * 完成时间
  74 + */
  75 + private LocalDateTime finishTime;
  76 + /**
  77 + * 提交人用户ID
  78 + */
  79 + private Long userId;
  80 + /**
  81 + * 提交人
  82 + */
  83 + private String userName;
  84 + /**
  85 + * 备注
  86 + */
  87 + private String remark;
  88 + /**
  89 + * 创建者
  90 + */
  91 + private String creatorName;
  92 + /**
  93 + * 更新者
  94 + */
  95 + private String updaterName;
  96 +
  97 +
  98 +}
0 99 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/inspectionplan/InspectionPlanDO.java
... ... @@ -94,5 +94,14 @@ public class InspectionPlanDO extends BaseDO {
94 94 */
95 95 private String remark;
96 96  
  97 + /**
  98 + * 创建者
  99 + */
  100 + private String creatorName;
  101 + /**
  102 + * 更新者
  103 + */
  104 + private String updaterName;
  105 +
97 106  
98 107 }
99 108 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/inspectionplan/InspectionPlanDetailDO.java
... ... @@ -70,5 +70,15 @@ public class InspectionPlanDetailDO extends BaseDO {
70 70 */
71 71 private Integer finishState;
72 72  
  73 + /**
  74 + * 创建者
  75 + */
  76 + private String creatorName;
  77 +
  78 +
  79 + /**
  80 + * 更新者
  81 + */
  82 + private String updaterName;
73 83  
74 84 }
75 85 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainplan/MaintainPlanCommitDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.maintainplan;
  2 +
  3 +import lombok.*;
  4 +
  5 +import java.time.LocalDateTime;
  6 +import com.baomidou.mybatisplus.annotation.*;
  7 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  8 +
  9 +/**
  10 + * 养护计划明细 DO
  11 + *
  12 + * @author 超级管理员
  13 + */
  14 +@TableName("garden_maintain_plan_commit")
  15 +@KeySequence("garden_maintain_plan_commit_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  16 +@Data
  17 +@EqualsAndHashCode(callSuper = true)
  18 +@ToString(callSuper = true)
  19 +@Builder
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +public class MaintainPlanCommitDO extends BaseDO {
  23 +
  24 + /**
  25 + * ID
  26 + */
  27 + @TableId
  28 + private Long id;
  29 + /**
  30 + * 批次号
  31 + */
  32 + private String batchNo;
  33 + /**
  34 + * 计划编码
  35 + */
  36 + private String planNo;
  37 + /**
  38 + * 业务线: yl-园林;wy-物业:sz-市政
  39 + */
  40 + private String busiLine;
  41 + /**
  42 + * 提交次序号
  43 + */
  44 + private Integer sortNum;
  45 + /**
  46 + * 归属(一级部门id)
  47 + */
  48 + private Long companyId;
  49 + /**
  50 + * 部门ID(道路负责部门id)
  51 + */
  52 + private Long deptId;
  53 + /**
  54 + * 道路ID
  55 + */
  56 + private Long roadId;
  57 + /**
  58 + * 本次完成百分比
  59 + */
  60 + private Double finishPercent;
  61 + /**
  62 + * 照片host
  63 + */
  64 + private String imgHost;
  65 + /**
  66 + * 开始照片
  67 + */
  68 + private String beginImg;
  69 + /**
  70 + * 处理中照片
  71 + */
  72 + private String processImg;
  73 + /**
  74 + * 结束照片
  75 + */
  76 + private String endImg;
  77 + /**
  78 + * 养护面积:单位m²
  79 + */
  80 + private Double opArea;
  81 + /**
  82 + * 操作时长
  83 + */
  84 + private Double opTime;
  85 + /**
  86 + * 完成时间
  87 + */
  88 + private LocalDateTime finishTime;
  89 + /**
  90 + * 提交人用户
  91 + */
  92 + private Long userId;
  93 + /**
  94 + * 提交人用户ID
  95 + */
  96 + private String userName;
  97 + /**
  98 + * 备注
  99 + */
  100 + private String remark;
  101 + /**
  102 + * 创建者
  103 + */
  104 + private String creatorName;
  105 + /**
  106 + * 更新者
  107 + */
  108 + private String updaterName;
  109 +
  110 +
  111 +}
0 112 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainplan/MaintainPlanCommonUserDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.maintainplan;
  2 +
  3 +import lombok.*;
  4 +import com.baomidou.mybatisplus.annotation.*;
  5 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  6 +
  7 +/**
  8 + * 养护计划共同处理人 DO
  9 + *
  10 + * @author 超级管理员
  11 + */
  12 +@TableName("garden_maintain_plan_common_user")
  13 +@KeySequence("garden_maintain_plan_common_user_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  14 +@Data
  15 +@EqualsAndHashCode(callSuper = true)
  16 +@ToString(callSuper = true)
  17 +@Builder
  18 +@NoArgsConstructor
  19 +@AllArgsConstructor
  20 +public class MaintainPlanCommonUserDO extends BaseDO {
  21 +
  22 + /**
  23 + * ID
  24 + */
  25 + @TableId
  26 + private Long id;
  27 + /**
  28 + * 批次号
  29 + */
  30 + private String batchNo;
  31 + /**
  32 + * 计划编码
  33 + */
  34 + private String planNo;
  35 + /**
  36 + * 提交次序号
  37 + */
  38 + private Integer sortNum;
  39 + /**
  40 + * 归属(一级部门id)
  41 + */
  42 + private Long companyId;
  43 + /**
  44 + * 部门ID(道路负责部门id)
  45 + */
  46 + private Long deptId;
  47 + /**
  48 + * 用户ID
  49 + */
  50 + private Long userId;
  51 + /**
  52 + * 用户名
  53 + */
  54 + private String userName;
  55 + /**
  56 + * 创建者
  57 + */
  58 + private String creatorName;
  59 + /**
  60 + * 更新者
  61 + */
  62 + private String updaterName;
  63 +
  64 +
  65 +}
0 66 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainplan/MaintainPlanDO.java
1 1 package com.zteits.urbanops.module.garden.dal.dataobject.maintainplan;
2 2  
3   -import com.baomidou.mybatisplus.annotation.KeySequence;
4   -import com.baomidou.mybatisplus.annotation.TableId;
5   -import com.baomidou.mybatisplus.annotation.TableName;
  3 +import lombok.*;
  4 +
  5 +import java.time.LocalDate;
  6 +import com.baomidou.mybatisplus.annotation.*;
6 7 import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
7   -import lombok.Data;
8 8  
  9 +/**
  10 + * 养护计划汇总 DO
  11 + *
  12 + * @author 超级管理员
  13 + */
9 14 @TableName("garden_maintain_plan")
10   -@KeySequence("garden_maintain_plan_seq")
  15 +@KeySequence("garden_maintain_plan_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
11 16 @Data
  17 +@EqualsAndHashCode(callSuper = true)
  18 +@ToString(callSuper = true)
  19 +@Builder
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
12 22 public class MaintainPlanDO extends BaseDO {
  23 +
  24 + /**
  25 + * ID
  26 + */
13 27 @TableId
14 28 private Long id;
15   - private String planNo;
  29 + /**
  30 + * 批次号
  31 + */
  32 + private String batchNo;
  33 + /**
  34 + * 计划名称
  35 + */
16 36 private String planName;
17   - private Integer type;
18   - private Long deptId;
  37 + /**
  38 + * 业务线: yl-园林;wy-物业:sz-市政
  39 + */
  40 + private String busiLine;
  41 + /**
  42 + * 计划属性:1:标准计划;2:临时计划
  43 + */
  44 + private Integer planAttr;
  45 + /**
  46 + * 养护类型:2001:浇水;2002:施肥;2003:有害生物防治;2004:修剪;2005:中耕除草;2006:打孔梳草;2007:绿地保洁;2008:园林废弃物收集运输 ;2009:补植;3001:绿地巡视;
  47 + */
  48 + private Integer planTypeId;
  49 + /**
  50 + * 归属(一级部门id)
  51 + */
19 52 private Long companyId;
20   - private String status;
  53 + /**
  54 + * 部门ID(道路负责部门id)
  55 + */
  56 + private Long deptId;
  57 + /**
  58 + * 道路ID
  59 + */
  60 + private Long roadId;
  61 + /**
  62 + * 道路名称
  63 + */
  64 + private String roadName;
  65 + /**
  66 + * 养护级别: 10:特级;11:一级:12:二级;13:三级
  67 + */
  68 + private Integer levelId;
  69 + /**
  70 + * 周期ID: 1:日/次;2:周/次;3:月/次;4:年/次
  71 + */
  72 + private Integer cycleId;
  73 + /**
  74 + * 计划次数
  75 + */
  76 + private Integer planNum;
  77 + /**
  78 + * 已完成次数
  79 + */
  80 + private Integer planFinishNum;
  81 + /**
  82 + * 完成状态 : 1:未完成;2:已完成
  83 + */
  84 + private Integer finishState;
  85 + /**
  86 + * 开始时间
  87 + */
  88 + private LocalDate beginTime;
  89 + /**
  90 + * 开始时间
  91 + */
  92 + private LocalDate endTime;
  93 + /**
  94 + * 备注
  95 + */
  96 + private String remark;
  97 + /**
  98 + * 创建人
  99 + */
  100 + private String creatorName;
  101 + /**
  102 + * 更新者
  103 + */
  104 + private String updaterName;
  105 +
  106 +
21 107 }
22 108 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainplan/MaintainPlanDetailDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.maintainplan;
  2 +
  3 +import lombok.*;
  4 +
  5 +import java.time.LocalDate;
  6 +import com.baomidou.mybatisplus.annotation.*;
  7 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  8 +
  9 +/**
  10 + * 养护计划 DO
  11 + *
  12 + * @author 超级管理员
  13 + */
  14 +@TableName("garden_maintain_plan_detail")
  15 +@KeySequence("garden_maintain_plan_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  16 +@Data
  17 +@EqualsAndHashCode(callSuper = true)
  18 +@ToString(callSuper = true)
  19 +@Builder
  20 +@NoArgsConstructor
  21 +@AllArgsConstructor
  22 +public class MaintainPlanDetailDO extends BaseDO {
  23 +
  24 + /**
  25 + * ID
  26 + */
  27 + @TableId
  28 + private Long id;
  29 + /**
  30 + * 批次号
  31 + */
  32 + private String batchNo;
  33 + /**
  34 + * 计划编码
  35 + */
  36 + private String planNo;
  37 + /**
  38 + * 业务线: yl-园林;wy-物业:sz-市政
  39 + */
  40 + private String busiLine;
  41 + /**
  42 + * 归属(一级部门id)
  43 + */
  44 + private Long companyId;
  45 + /**
  46 + * 部门ID(道路负责部门id)
  47 + */
  48 + private Long deptId;
  49 + /**
  50 + * 道路ID
  51 + */
  52 + private Long roadId;
  53 + /**
  54 + * 排序号:第n次计划
  55 + */
  56 + private Integer sortNum;
  57 + /**
  58 + * 执行开始时间
  59 + */
  60 + private LocalDate beginTime;
  61 + /**
  62 + * 执行时间
  63 + */
  64 + private LocalDate endTime;
  65 + /**
  66 + * 完成百分比
  67 + */
  68 + private Double finishPercent;
  69 + /**
  70 + * 完成状态 1:未完成;2:进行中;3:已完成
  71 + */
  72 + private Integer finishState;
  73 + /**
  74 + * 创建者
  75 + */
  76 + private String creatorName;
  77 + /**
  78 + * 更新者
  79 + */
  80 + private String updaterName;
  81 +
  82 +
  83 +}
0 84 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/dataobject/maintainplan/MaintainPlanRoleDO.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.dataobject.maintainplan;
  2 +
  3 +import lombok.*;
  4 +import java.util.*;
  5 +import java.time.LocalDateTime;
  6 +import java.time.LocalDateTime;
  7 +import com.baomidou.mybatisplus.annotation.*;
  8 +import com.zteits.urbanops.framework.mybatis.core.dataobject.BaseDO;
  9 +
  10 +/**
  11 + * 养护计划角色 DO
  12 + *
  13 + * @author 超级管理员
  14 + */
  15 +@TableName("garden_maintain_plan_role")
  16 +@KeySequence("garden_maintain_plan_role_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
  17 +@Data
  18 +@EqualsAndHashCode(callSuper = true)
  19 +@ToString(callSuper = true)
  20 +@Builder
  21 +@NoArgsConstructor
  22 +@AllArgsConstructor
  23 +public class MaintainPlanRoleDO extends BaseDO {
  24 +
  25 + /**
  26 + * ID
  27 + */
  28 + @TableId
  29 + private Long id;
  30 + /**
  31 + * 批次号
  32 + */
  33 + private String batchNo;
  34 + /**
  35 + * 归属(一级部门id)
  36 + */
  37 + private Long companyId;
  38 + /**
  39 + * 部门ID(道路负责部门id)
  40 + */
  41 + private Long deptId;
  42 + /**
  43 + * 道路ID
  44 + */
  45 + private Long roadId;
  46 + /**
  47 + * 角色ID
  48 + */
  49 + private Long roleId;
  50 +
  51 +
  52 +}
0 53 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/inspectionplan/InspectionPlanCommitMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.inspectionplan;
  2 +
  3 +
  4 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  5 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  6 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  7 +import com.zteits.urbanops.module.garden.dal.dataobject.inspectionplan.InspectionPlanCommitDO;
  8 +import org.apache.ibatis.annotations.Mapper;
  9 +import com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo.*;
  10 +
  11 +/**
  12 + * 巡检计划提交明细 Mapper
  13 + *
  14 + * @author 超级管理员
  15 + */
  16 +@Mapper
  17 +public interface InspectionPlanCommitMapper extends BaseMapperX<InspectionPlanCommitDO> {
  18 +
  19 + default PageResult<InspectionPlanCommitDO> selectPage(InspectionPlanCommitPageReqVO reqVO) {
  20 + return selectPage(reqVO, new LambdaQueryWrapperX<InspectionPlanCommitDO>()
  21 + .eqIfPresent(InspectionPlanCommitDO::getBatchNo, reqVO.getBatchNo())
  22 + .eqIfPresent(InspectionPlanCommitDO::getPlanNo, reqVO.getPlanNo())
  23 + .eqIfPresent(InspectionPlanCommitDO::getBusiLine, reqVO.getBusiLine())
  24 + .eqIfPresent(InspectionPlanCommitDO::getCompanyId, reqVO.getCompanyId())
  25 + .eqIfPresent(InspectionPlanCommitDO::getDeptId, reqVO.getDeptId())
  26 + .eqIfPresent(InspectionPlanCommitDO::getRoadId, reqVO.getRoadId())
  27 + .eqIfPresent(InspectionPlanCommitDO::getImgHost, reqVO.getImgHost())
  28 + .eqIfPresent(InspectionPlanCommitDO::getImg, reqVO.getImg())
  29 + .eqIfPresent(InspectionPlanCommitDO::getInspectionState, reqVO.getInspectionState())
  30 + .eqIfPresent(InspectionPlanCommitDO::getTransState, reqVO.getTransState())
  31 + .eqIfPresent(InspectionPlanCommitDO::getTransWorkNo, reqVO.getTransWorkNo())
  32 + .betweenIfPresent(InspectionPlanCommitDO::getFinishTime, reqVO.getFinishTime())
  33 + .eqIfPresent(InspectionPlanCommitDO::getUserId, reqVO.getUserId())
  34 + .likeIfPresent(InspectionPlanCommitDO::getUserName, reqVO.getUserName())
  35 + .eqIfPresent(InspectionPlanCommitDO::getRemark, reqVO.getRemark())
  36 + .likeIfPresent(InspectionPlanCommitDO::getCreatorName, reqVO.getCreatorName())
  37 + .betweenIfPresent(InspectionPlanCommitDO::getCreateTime, reqVO.getCreateTime())
  38 + .likeIfPresent(InspectionPlanCommitDO::getUpdaterName, reqVO.getUpdaterName())
  39 + .orderByDesc(InspectionPlanCommitDO::getId));
  40 + }
  41 +
  42 +}
0 43 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/maintainplan/MaintainPlanCommitMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.maintainplan;
  2 +
  3 +
  4 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  5 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  6 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  7 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanCommitDO;
  8 +import org.apache.ibatis.annotations.Mapper;
  9 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  10 +
  11 +/**
  12 + * 养护计划明细 Mapper
  13 + *
  14 + * @author 超级管理员
  15 + */
  16 +@Mapper
  17 +public interface MaintainPlanCommitMapper extends BaseMapperX<MaintainPlanCommitDO> {
  18 +
  19 + default PageResult<MaintainPlanCommitDO> selectPage(MaintainPlanCommitPageReqVO reqVO) {
  20 + return selectPage(reqVO, new LambdaQueryWrapperX<MaintainPlanCommitDO>()
  21 + .eqIfPresent(MaintainPlanCommitDO::getBatchNo, reqVO.getBatchNo())
  22 + .eqIfPresent(MaintainPlanCommitDO::getPlanNo, reqVO.getPlanNo())
  23 + .eqIfPresent(MaintainPlanCommitDO::getBusiLine, reqVO.getBusiLine())
  24 + .eqIfPresent(MaintainPlanCommitDO::getSortNum, reqVO.getSortNum())
  25 + .eqIfPresent(MaintainPlanCommitDO::getCompanyId, reqVO.getCompanyId())
  26 + .eqIfPresent(MaintainPlanCommitDO::getDeptId, reqVO.getDeptId())
  27 + .eqIfPresent(MaintainPlanCommitDO::getRoadId, reqVO.getRoadId())
  28 + .eqIfPresent(MaintainPlanCommitDO::getFinishPercent, reqVO.getFinishPercent())
  29 + .eqIfPresent(MaintainPlanCommitDO::getImgHost, reqVO.getImgHost())
  30 + .eqIfPresent(MaintainPlanCommitDO::getBeginImg, reqVO.getBeginImg())
  31 + .eqIfPresent(MaintainPlanCommitDO::getProcessImg, reqVO.getProcessImg())
  32 + .eqIfPresent(MaintainPlanCommitDO::getEndImg, reqVO.getEndImg())
  33 + .eqIfPresent(MaintainPlanCommitDO::getOpArea, reqVO.getOpArea())
  34 + .betweenIfPresent(MaintainPlanCommitDO::getOpTime, reqVO.getOpTime())
  35 + .betweenIfPresent(MaintainPlanCommitDO::getFinishTime, reqVO.getFinishTime())
  36 + .eqIfPresent(MaintainPlanCommitDO::getUserId, reqVO.getUserId())
  37 + .likeIfPresent(MaintainPlanCommitDO::getUserName, reqVO.getUserName())
  38 + .eqIfPresent(MaintainPlanCommitDO::getRemark, reqVO.getRemark())
  39 + .likeIfPresent(MaintainPlanCommitDO::getCreatorName, reqVO.getCreatorName())
  40 + .betweenIfPresent(MaintainPlanCommitDO::getCreateTime, reqVO.getCreateTime())
  41 + .likeIfPresent(MaintainPlanCommitDO::getUpdaterName, reqVO.getUpdaterName())
  42 + .orderByDesc(MaintainPlanCommitDO::getId));
  43 + }
  44 +
  45 +}
0 46 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/maintainplan/MaintainPlanCommonUserMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.maintainplan;
  2 +
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  7 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  8 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanCommonUserDO;
  9 +import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  11 +
  12 +/**
  13 + * 养护计划共同处理人 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@Mapper
  18 +public interface MaintainPlanCommonUserMapper extends BaseMapperX<MaintainPlanCommonUserDO> {
  19 +
  20 + default PageResult<MaintainPlanCommonUserDO> selectPage(MaintainPlanCommonUserPageReqVO reqVO) {
  21 + return selectPage(reqVO, new LambdaQueryWrapperX<MaintainPlanCommonUserDO>()
  22 + .eqIfPresent(MaintainPlanCommonUserDO::getBatchNo, reqVO.getBatchNo())
  23 + .eqIfPresent(MaintainPlanCommonUserDO::getPlanNo, reqVO.getPlanNo())
  24 + .eqIfPresent(MaintainPlanCommonUserDO::getSortNum, reqVO.getSortNum())
  25 + .eqIfPresent(MaintainPlanCommonUserDO::getCompanyId, reqVO.getCompanyId())
  26 + .eqIfPresent(MaintainPlanCommonUserDO::getDeptId, reqVO.getDeptId())
  27 + .eqIfPresent(MaintainPlanCommonUserDO::getUserId, reqVO.getUserId())
  28 + .likeIfPresent(MaintainPlanCommonUserDO::getUserName, reqVO.getUserName())
  29 + .likeIfPresent(MaintainPlanCommonUserDO::getCreatorName, reqVO.getCreatorName())
  30 + .betweenIfPresent(MaintainPlanCommonUserDO::getCreateTime, reqVO.getCreateTime())
  31 + .likeIfPresent(MaintainPlanCommonUserDO::getUpdaterName, reqVO.getUpdaterName())
  32 + .orderByDesc(MaintainPlanCommonUserDO::getId));
  33 + }
  34 +
  35 +}
0 36 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/maintainplan/MaintainPlanDetailMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.maintainplan;
  2 +
  3 +
  4 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  5 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  6 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  7 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDetailDO;
  8 +import org.apache.ibatis.annotations.Mapper;
  9 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  10 +
  11 +/**
  12 + * 养护计划 Mapper
  13 + *
  14 + * @author 超级管理员
  15 + */
  16 +@Mapper
  17 +public interface MaintainPlanDetailMapper extends BaseMapperX<MaintainPlanDetailDO> {
  18 +
  19 + default PageResult<MaintainPlanDetailDO> selectPage(MaintainPlanDetailPageReqVO reqVO) {
  20 + return selectPage(reqVO, new LambdaQueryWrapperX<MaintainPlanDetailDO>()
  21 + .eqIfPresent(MaintainPlanDetailDO::getBatchNo, reqVO.getBatchNo())
  22 + .eqIfPresent(MaintainPlanDetailDO::getPlanNo, reqVO.getPlanNo())
  23 + .eqIfPresent(MaintainPlanDetailDO::getBusiLine, reqVO.getBusiLine())
  24 + .eqIfPresent(MaintainPlanDetailDO::getCompanyId, reqVO.getCompanyId())
  25 + .eqIfPresent(MaintainPlanDetailDO::getDeptId, reqVO.getDeptId())
  26 + .eqIfPresent(MaintainPlanDetailDO::getRoadId, reqVO.getRoadId())
  27 + .eqIfPresent(MaintainPlanDetailDO::getSortNum, reqVO.getSortNum())
  28 + .betweenIfPresent(MaintainPlanDetailDO::getBeginTime, reqVO.getBeginTime())
  29 + .betweenIfPresent(MaintainPlanDetailDO::getEndTime, reqVO.getEndTime())
  30 + .eqIfPresent(MaintainPlanDetailDO::getFinishPercent, reqVO.getFinishPercent())
  31 + .eqIfPresent(MaintainPlanDetailDO::getFinishState, reqVO.getFinishState())
  32 + .likeIfPresent(MaintainPlanDetailDO::getCreatorName, reqVO.getCreatorName())
  33 + .betweenIfPresent(MaintainPlanDetailDO::getCreateTime, reqVO.getCreateTime())
  34 + .likeIfPresent(MaintainPlanDetailDO::getUpdaterName, reqVO.getUpdaterName())
  35 + .orderByDesc(MaintainPlanDetailDO::getId));
  36 + }
  37 +
  38 +}
0 39 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/maintainplan/MaintainPlanMapper.java
1 1 package com.zteits.urbanops.module.garden.dal.mysql.maintainplan;
2 2  
  3 +
3 4 import com.zteits.urbanops.framework.common.pojo.PageResult;
4   -import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
5 5 import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  6 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
6 7 import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDO;
7 8 import org.apache.ibatis.annotations.Mapper;
  9 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
8 10  
  11 +/**
  12 + * 养护计划汇总 Mapper
  13 + *
  14 + * @author 超级管理员
  15 + */
9 16 @Mapper
10 17 public interface MaintainPlanMapper extends BaseMapperX<MaintainPlanDO> {
11   - default PageResult<MaintainPlanDO> selectPage(com.zteits.urbanops.framework.common.pojo.PageParam pageParam, MaintainPlanDO where) {
12   - return selectPage(pageParam, null, new LambdaQueryWrapperX<MaintainPlanDO>()
13   - .eqIfPresent(MaintainPlanDO::getType, where.getType())
14   - .likeIfPresent(MaintainPlanDO::getPlanName, where.getPlanName())
15   - .eqIfPresent(MaintainPlanDO::getCompanyId, where.getCompanyId())
16   - .eqIfPresent(MaintainPlanDO::getDeptId, where.getDeptId())
  18 +
  19 + default PageResult<MaintainPlanDO> selectPage(MaintainPlanPageReqVO reqVO) {
  20 + return selectPage(reqVO, new LambdaQueryWrapperX<MaintainPlanDO>()
  21 + .eqIfPresent(MaintainPlanDO::getBatchNo, reqVO.getBatchNo())
  22 + .likeIfPresent(MaintainPlanDO::getPlanName, reqVO.getPlanName())
  23 + .eqIfPresent(MaintainPlanDO::getBusiLine, reqVO.getBusiLine())
  24 + .eqIfPresent(MaintainPlanDO::getPlanAttr, reqVO.getPlanAttr())
  25 + .eqIfPresent(MaintainPlanDO::getPlanTypeId, reqVO.getPlanTypeId())
  26 + .eqIfPresent(MaintainPlanDO::getCompanyId, reqVO.getCompanyId())
  27 + .eqIfPresent(MaintainPlanDO::getDeptId, reqVO.getDeptId())
  28 + .eqIfPresent(MaintainPlanDO::getRoadId, reqVO.getRoadId())
  29 + .likeIfPresent(MaintainPlanDO::getRoadName, reqVO.getRoadName())
  30 + .eqIfPresent(MaintainPlanDO::getLevelId, reqVO.getLevelId())
  31 + .eqIfPresent(MaintainPlanDO::getCycleId, reqVO.getCycleId())
  32 + .eqIfPresent(MaintainPlanDO::getPlanNum, reqVO.getPlanNum())
  33 + .eqIfPresent(MaintainPlanDO::getPlanFinishNum, reqVO.getPlanFinishNum())
  34 + .eqIfPresent(MaintainPlanDO::getFinishState, reqVO.getFinishState())
  35 + .betweenIfPresent(MaintainPlanDO::getBeginTime, reqVO.getBeginTime())
  36 + .betweenIfPresent(MaintainPlanDO::getEndTime, reqVO.getEndTime())
  37 + .eqIfPresent(MaintainPlanDO::getRemark, reqVO.getRemark())
  38 + .likeIfPresent(MaintainPlanDO::getCreatorName, reqVO.getCreatorName())
  39 + .betweenIfPresent(MaintainPlanDO::getCreateTime, reqVO.getCreateTime())
  40 + .likeIfPresent(MaintainPlanDO::getUpdaterName, reqVO.getUpdaterName())
17 41 .orderByDesc(MaintainPlanDO::getId));
18 42 }
  43 +
19 44 }
20 45 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/maintainplan/MaintainPlanRoleMapper.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.dal.mysql.maintainplan;
  2 +
  3 +import java.util.*;
  4 +
  5 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  6 +import com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX;
  7 +import com.zteits.urbanops.framework.mybatis.core.mapper.BaseMapperX;
  8 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanRoleDO;
  9 +import org.apache.ibatis.annotations.Mapper;
  10 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  11 +
  12 +/**
  13 + * 养护计划角色 Mapper
  14 + *
  15 + * @author 超级管理员
  16 + */
  17 +@Mapper
  18 +public interface MaintainPlanRoleMapper extends BaseMapperX<MaintainPlanRoleDO> {
  19 +
  20 + default PageResult<MaintainPlanRoleDO> selectPage(MaintainPlanRolePageReqVO reqVO) {
  21 + return selectPage(reqVO, new LambdaQueryWrapperX<MaintainPlanRoleDO>()
  22 + .eqIfPresent(MaintainPlanRoleDO::getBatchNo, reqVO.getBatchNo())
  23 + .eqIfPresent(MaintainPlanRoleDO::getCompanyId, reqVO.getCompanyId())
  24 + .eqIfPresent(MaintainPlanRoleDO::getDeptId, reqVO.getDeptId())
  25 + .eqIfPresent(MaintainPlanRoleDO::getRoadId, reqVO.getRoadId())
  26 + .eqIfPresent(MaintainPlanRoleDO::getRoleId, reqVO.getRoleId())
  27 + .betweenIfPresent(MaintainPlanRoleDO::getCreateTime, reqVO.getCreateTime())
  28 + .orderByDesc(MaintainPlanRoleDO::getId));
  29 + }
  30 +
  31 +}
0 32 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/inspectionplan/InspectionPlanCommitService.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.inspectionplan;
  2 +
  3 +import java.util.*;
  4 +import jakarta.validation.*;
  5 +import com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo.*;
  6 +import com.zteits.urbanops.module.garden.dal.dataobject.inspectionplan.InspectionPlanCommitDO;
  7 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  8 +
  9 +/**
  10 + * 巡检计划提交明细 Service 接口
  11 + *
  12 + * @author 超级管理员
  13 + */
  14 +public interface InspectionPlanCommitService {
  15 +
  16 + /**
  17 + * 创建巡检计划提交明细
  18 + *
  19 + * @param createReqVO 创建信息
  20 + * @return 编号
  21 + */
  22 + Long createInspectionPlanCommit(@Valid InspectionPlanCommitSaveReqVO createReqVO);
  23 +
  24 + /**
  25 + * 更新巡检计划提交明细
  26 + *
  27 + * @param updateReqVO 更新信息
  28 + */
  29 + void updateInspectionPlanCommit(@Valid InspectionPlanCommitSaveReqVO updateReqVO);
  30 +
  31 + /**
  32 + * 删除巡检计划提交明细
  33 + *
  34 + * @param id 编号
  35 + */
  36 + void deleteInspectionPlanCommit(Long id);
  37 +
  38 + /**
  39 + * 批量删除巡检计划提交明细
  40 + *
  41 + * @param ids 编号
  42 + */
  43 + void deleteInspectionPlanCommitListByIds(List<Long> ids);
  44 +
  45 + /**
  46 + * 获得巡检计划提交明细
  47 + *
  48 + * @param id 编号
  49 + * @return 巡检计划提交明细
  50 + */
  51 + InspectionPlanCommitDO getInspectionPlanCommit(Long id);
  52 +
  53 + /**
  54 + * 获得巡检计划提交明细分页
  55 + *
  56 + * @param pageReqVO 分页查询
  57 + * @return 巡检计划提交明细分页
  58 + */
  59 + PageResult<InspectionPlanCommitDO> getInspectionPlanCommitPage(InspectionPlanCommitPageReqVO pageReqVO);
  60 +
  61 +}
0 62 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/inspectionplan/InspectionPlanCommitServiceImpl.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.inspectionplan;
  2 +
  3 +import org.springframework.stereotype.Service;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +
  7 +import java.util.*;
  8 +import com.zteits.urbanops.module.garden.controller.admin.inspectionplan.vo.*;
  9 +import com.zteits.urbanops.module.garden.dal.dataobject.inspectionplan.InspectionPlanCommitDO;
  10 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  11 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  12 +
  13 +import com.zteits.urbanops.module.garden.dal.mysql.inspectionplan.InspectionPlanCommitMapper;
  14 +
  15 +
  16 +/**
  17 + * 巡检计划提交明细 Service 实现类
  18 + *
  19 + * @author 超级管理员
  20 + */
  21 +@Service
  22 +@Validated
  23 +public class InspectionPlanCommitServiceImpl implements InspectionPlanCommitService {
  24 +
  25 + @Resource
  26 + private InspectionPlanCommitMapper inspectionPlanCommitMapper;
  27 +
  28 + @Override
  29 + public Long createInspectionPlanCommit(InspectionPlanCommitSaveReqVO createReqVO) {
  30 + // 插入
  31 + InspectionPlanCommitDO inspectionPlanCommit = BeanUtils.toBean(createReqVO, InspectionPlanCommitDO.class);
  32 + inspectionPlanCommitMapper.insert(inspectionPlanCommit);
  33 +
  34 + // 返回
  35 + return inspectionPlanCommit.getId();
  36 + }
  37 +
  38 + @Override
  39 + public void updateInspectionPlanCommit(InspectionPlanCommitSaveReqVO updateReqVO) {
  40 + // 校验存在
  41 + validateInspectionPlanCommitExists(updateReqVO.getId());
  42 + // 更新
  43 + InspectionPlanCommitDO updateObj = BeanUtils.toBean(updateReqVO, InspectionPlanCommitDO.class);
  44 + inspectionPlanCommitMapper.updateById(updateObj);
  45 + }
  46 +
  47 + @Override
  48 + public void deleteInspectionPlanCommit(Long id) {
  49 + // 校验存在
  50 + validateInspectionPlanCommitExists(id);
  51 + // 删除
  52 + inspectionPlanCommitMapper.deleteById(id);
  53 + }
  54 +
  55 + @Override
  56 + public void deleteInspectionPlanCommitListByIds(List<Long> ids) {
  57 + // 删除
  58 + inspectionPlanCommitMapper.deleteByIds(ids);
  59 + }
  60 +
  61 +
  62 + private void validateInspectionPlanCommitExists(Long id) {
  63 + if (inspectionPlanCommitMapper.selectById(id) == null) {
  64 + //throw exception(INSPECTION_PLAN_COMMIT_NOT_EXISTS);
  65 + }
  66 + }
  67 +
  68 + @Override
  69 + public InspectionPlanCommitDO getInspectionPlanCommit(Long id) {
  70 + return inspectionPlanCommitMapper.selectById(id);
  71 + }
  72 +
  73 + @Override
  74 + public PageResult<InspectionPlanCommitDO> getInspectionPlanCommitPage(InspectionPlanCommitPageReqVO pageReqVO) {
  75 + return inspectionPlanCommitMapper.selectPage(pageReqVO);
  76 + }
  77 +
  78 +}
0 79 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/inspectionplan/InspectionPlanServiceImpl.java
... ... @@ -62,7 +62,8 @@ public class InspectionPlanServiceImpl implements InspectionPlanService {
62 62 //存在性校验
63 63 validateInspectionPlanExists(createReqVO);
64 64 LocalDateTime now = LocalDateTime.now();
65   - String userName = SecurityFrameworkUtils.getLoginUserId()+"";
  65 + String userId = SecurityFrameworkUtils.getLoginUserId()+"";
  66 + String userName = SecurityFrameworkUtils.getLoginUserNickname();
66 67 int rateValue;
67 68 if (createReqVO.getRateValue().contains("/")) {
68 69 rateValue = Integer.parseInt(createReqVO.getRateValue().split("/")[1]);
... ... @@ -89,8 +90,10 @@ public class InspectionPlanServiceImpl implements InspectionPlanService {
89 90 inspectionPlan.setPlanNum(planNum);
90 91 inspectionPlan.setCreateTime(now);
91 92 inspectionPlan.setUpdateTime(now);
92   - inspectionPlan.setCreator(userName);
93   - inspectionPlan.setUpdater(userName);
  93 + inspectionPlan.setCreator(userId);
  94 + inspectionPlan.setCreatorName(userName);
  95 + inspectionPlan.setUpdater(userId);
  96 + inspectionPlan.setUpdaterName(userName);
94 97 inspectionPlan.setDeptId(roadReqVO.getDeptId());
95 98 inspectionPlan.setRoadId(roadReqVO.getRoadId());
96 99 inspectionPlan.setRoadName(roadReqVO.getRoadName());
... ... @@ -115,7 +118,7 @@ public class InspectionPlanServiceImpl implements InspectionPlanService {
115 118 /*3.插入巡查计划明细*/
116 119 for (int i = 0; i < betweenDayList.size(); i++) {
117 120 String[] dateStr = betweenDayList.get(i).split("/");
118   - InspectionPlanDetailDO entity = getInspectionPlanDetailDO(batchNo, createReqVO, roadReqVO, now, userName);
  121 + InspectionPlanDetailDO entity = getInspectionPlanDetailDO(batchNo, createReqVO, roadReqVO, now);
119 122 entity.setSortNum(i+1);
120 123 entity.setBeginTime(LocalDate.parse(dateStr[0], DateTimeFormatter.ofPattern("yyyy-MM-dd")));
121 124 entity.setEndTime(LocalDate.parse(dateStr[1], DateTimeFormatter.ofPattern("yyyy-MM-dd")));
... ... @@ -129,7 +132,9 @@ public class InspectionPlanServiceImpl implements InspectionPlanService {
129 132 }
130 133  
131 134 private InspectionPlanDetailDO getInspectionPlanDetailDO(String batchNo, InspectionPlanSaveReqVO saveReqVO,
132   - InspectionPlanRoadReqVO roadReqVO, LocalDateTime now, String userName) {
  135 + InspectionPlanRoadReqVO roadReqVO, LocalDateTime now) {
  136 + String userId = SecurityFrameworkUtils.getLoginUserId()+"";
  137 + String userName = SecurityFrameworkUtils.getLoginUserNickname();
133 138 InspectionPlanDetailDO entity = new InspectionPlanDetailDO();
134 139 entity.setBatchNo(batchNo);
135 140 entity.setPlanNo("P" + DateUtil.format(new Date(), "yyyyMMddHHmmssSSS") + RandomUtil.randomInt(1000));
... ... @@ -138,8 +143,10 @@ public class InspectionPlanServiceImpl implements InspectionPlanService {
138 143 entity.setDeptId(roadReqVO.getDeptId());
139 144 entity.setRoadId(roadReqVO.getRoadId());
140 145 entity.setFinishState(FinishStateEnum.NOT_FINISHED.getStatus());
141   - entity.setCreator(userName);
142   - entity.setUpdater(userName);
  146 + entity.setCreator(userId);
  147 + entity.setCreatorName(userName);
  148 + entity.setUpdater(userId);
  149 + entity.setUpdaterName(userName);
143 150 entity.setCreateTime(now);
144 151 entity.setUpdateTime(now);
145 152 return entity;
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommitService.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.maintainplan;
  2 +
  3 +import java.util.*;
  4 +import jakarta.validation.*;
  5 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  6 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanCommitDO;
  7 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  8 +
  9 +/**
  10 + * 养护计划明细 Service 接口
  11 + *
  12 + * @author 超级管理员
  13 + */
  14 +public interface MaintainPlanCommitService {
  15 +
  16 + /**
  17 + * 创建养护计划明细
  18 + *
  19 + * @param createReqVO 创建信息
  20 + * @return 编号
  21 + */
  22 + Long createMaintainPlanCommit(@Valid MaintainPlanCommitSaveReqVO createReqVO);
  23 +
  24 + /**
  25 + * 更新养护计划明细
  26 + *
  27 + * @param updateReqVO 更新信息
  28 + */
  29 + void updateMaintainPlanCommit(@Valid MaintainPlanCommitSaveReqVO updateReqVO);
  30 +
  31 + /**
  32 + * 删除养护计划明细
  33 + *
  34 + * @param id 编号
  35 + */
  36 + void deleteMaintainPlanCommit(Long id);
  37 +
  38 + /**
  39 + * 批量删除养护计划明细
  40 + *
  41 + * @param ids 编号
  42 + */
  43 + void deleteMaintainPlanCommitListByIds(List<Long> ids);
  44 +
  45 + /**
  46 + * 获得养护计划明细
  47 + *
  48 + * @param id 编号
  49 + * @return 养护计划明细
  50 + */
  51 + MaintainPlanCommitDO getMaintainPlanCommit(Long id);
  52 +
  53 + /**
  54 + * 获得养护计划明细分页
  55 + *
  56 + * @param pageReqVO 分页查询
  57 + * @return 养护计划明细分页
  58 + */
  59 + PageResult<MaintainPlanCommitDO> getMaintainPlanCommitPage(MaintainPlanCommitPageReqVO pageReqVO);
  60 +
  61 +}
0 62 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommitServiceImpl.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.maintainplan;
  2 +
  3 +import org.springframework.stereotype.Service;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +
  7 +import java.util.*;
  8 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  9 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanCommitDO;
  10 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  11 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  12 +
  13 +import com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanCommitMapper;
  14 +
  15 +
  16 +/**
  17 + * 养护计划明细 Service 实现类
  18 + *
  19 + * @author 超级管理员
  20 + */
  21 +@Service
  22 +@Validated
  23 +public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService {
  24 +
  25 + @Resource
  26 + private MaintainPlanCommitMapper maintainPlanCommitMapper;
  27 +
  28 + @Override
  29 + public Long createMaintainPlanCommit(MaintainPlanCommitSaveReqVO createReqVO) {
  30 + // 插入
  31 + MaintainPlanCommitDO maintainPlanCommit = BeanUtils.toBean(createReqVO, MaintainPlanCommitDO.class);
  32 + maintainPlanCommitMapper.insert(maintainPlanCommit);
  33 +
  34 + // 返回
  35 + return maintainPlanCommit.getId();
  36 + }
  37 +
  38 + @Override
  39 + public void updateMaintainPlanCommit(MaintainPlanCommitSaveReqVO updateReqVO) {
  40 + // 校验存在
  41 + validateMaintainPlanCommitExists(updateReqVO.getId());
  42 + // 更新
  43 + MaintainPlanCommitDO updateObj = BeanUtils.toBean(updateReqVO, MaintainPlanCommitDO.class);
  44 + maintainPlanCommitMapper.updateById(updateObj);
  45 + }
  46 +
  47 + @Override
  48 + public void deleteMaintainPlanCommit(Long id) {
  49 + // 校验存在
  50 + validateMaintainPlanCommitExists(id);
  51 + // 删除
  52 + maintainPlanCommitMapper.deleteById(id);
  53 + }
  54 +
  55 + @Override
  56 + public void deleteMaintainPlanCommitListByIds(List<Long> ids) {
  57 + // 删除
  58 + maintainPlanCommitMapper.deleteByIds(ids);
  59 + }
  60 +
  61 +
  62 + private void validateMaintainPlanCommitExists(Long id) {
  63 + if (maintainPlanCommitMapper.selectById(id) == null) {
  64 + // throw exception(MAINTAIN_PLAN_COMMIT_NOT_EXISTS);
  65 + }
  66 + }
  67 +
  68 + @Override
  69 + public MaintainPlanCommitDO getMaintainPlanCommit(Long id) {
  70 + return maintainPlanCommitMapper.selectById(id);
  71 + }
  72 +
  73 + @Override
  74 + public PageResult<MaintainPlanCommitDO> getMaintainPlanCommitPage(MaintainPlanCommitPageReqVO pageReqVO) {
  75 + return maintainPlanCommitMapper.selectPage(pageReqVO);
  76 + }
  77 +
  78 +}
0 79 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommonUserService.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.maintainplan;
  2 +
  3 +import java.util.*;
  4 +import jakarta.validation.*;
  5 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  6 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanCommonUserDO;
  7 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  8 +
  9 +/**
  10 + * 养护计划共同处理人 Service 接口
  11 + *
  12 + * @author 超级管理员
  13 + */
  14 +public interface MaintainPlanCommonUserService {
  15 +
  16 + /**
  17 + * 创建养护计划共同处理人
  18 + *
  19 + * @param createReqVO 创建信息
  20 + * @return 编号
  21 + */
  22 + Long createMaintainPlanCommonUser(@Valid MaintainPlanCommonUserSaveReqVO createReqVO);
  23 +
  24 + /**
  25 + * 更新养护计划共同处理人
  26 + *
  27 + * @param updateReqVO 更新信息
  28 + */
  29 + void updateMaintainPlanCommonUser(@Valid MaintainPlanCommonUserSaveReqVO updateReqVO);
  30 +
  31 + /**
  32 + * 删除养护计划共同处理人
  33 + *
  34 + * @param id 编号
  35 + */
  36 + void deleteMaintainPlanCommonUser(Long id);
  37 +
  38 + /**
  39 + * 批量删除养护计划共同处理人
  40 + *
  41 + * @param ids 编号
  42 + */
  43 + void deleteMaintainPlanCommonUserListByIds(List<Long> ids);
  44 +
  45 + /**
  46 + * 获得养护计划共同处理人
  47 + *
  48 + * @param id 编号
  49 + * @return 养护计划共同处理人
  50 + */
  51 + MaintainPlanCommonUserDO getMaintainPlanCommonUser(Long id);
  52 +
  53 + /**
  54 + * 获得养护计划共同处理人分页
  55 + *
  56 + * @param pageReqVO 分页查询
  57 + * @return 养护计划共同处理人分页
  58 + */
  59 + PageResult<MaintainPlanCommonUserDO> getMaintainPlanCommonUserPage(MaintainPlanCommonUserPageReqVO pageReqVO);
  60 +
  61 +}
0 62 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommonUserServiceImpl.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.maintainplan;
  2 +
  3 +import org.springframework.stereotype.Service;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +
  7 +import java.util.*;
  8 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  9 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanCommonUserDO;
  10 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  11 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  12 +
  13 +import com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanCommonUserMapper;
  14 +
  15 +
  16 +/**
  17 + * 养护计划共同处理人 Service 实现类
  18 + *
  19 + * @author 超级管理员
  20 + */
  21 +@Service
  22 +@Validated
  23 +public class MaintainPlanCommonUserServiceImpl implements MaintainPlanCommonUserService {
  24 +
  25 + @Resource
  26 + private MaintainPlanCommonUserMapper maintainPlanCommonUserMapper;
  27 +
  28 + @Override
  29 + public Long createMaintainPlanCommonUser(MaintainPlanCommonUserSaveReqVO createReqVO) {
  30 + // 插入
  31 + MaintainPlanCommonUserDO maintainPlanCommonUser = BeanUtils.toBean(createReqVO, MaintainPlanCommonUserDO.class);
  32 + maintainPlanCommonUserMapper.insert(maintainPlanCommonUser);
  33 +
  34 + // 返回
  35 + return maintainPlanCommonUser.getId();
  36 + }
  37 +
  38 + @Override
  39 + public void updateMaintainPlanCommonUser(MaintainPlanCommonUserSaveReqVO updateReqVO) {
  40 + // 校验存在
  41 + validateMaintainPlanCommonUserExists(updateReqVO.getId());
  42 + // 更新
  43 + MaintainPlanCommonUserDO updateObj = BeanUtils.toBean(updateReqVO, MaintainPlanCommonUserDO.class);
  44 + maintainPlanCommonUserMapper.updateById(updateObj);
  45 + }
  46 +
  47 + @Override
  48 + public void deleteMaintainPlanCommonUser(Long id) {
  49 + // 校验存在
  50 + validateMaintainPlanCommonUserExists(id);
  51 + // 删除
  52 + maintainPlanCommonUserMapper.deleteById(id);
  53 + }
  54 +
  55 + @Override
  56 + public void deleteMaintainPlanCommonUserListByIds(List<Long> ids) {
  57 + // 删除
  58 + maintainPlanCommonUserMapper.deleteByIds(ids);
  59 + }
  60 +
  61 +
  62 + private void validateMaintainPlanCommonUserExists(Long id) {
  63 + if (maintainPlanCommonUserMapper.selectById(id) == null) {
  64 + // throw exception(MAINTAIN_PLAN_COMMON_USER_NOT_EXISTS);
  65 + }
  66 + }
  67 +
  68 + @Override
  69 + public MaintainPlanCommonUserDO getMaintainPlanCommonUser(Long id) {
  70 + return maintainPlanCommonUserMapper.selectById(id);
  71 + }
  72 +
  73 + @Override
  74 + public PageResult<MaintainPlanCommonUserDO> getMaintainPlanCommonUserPage(MaintainPlanCommonUserPageReqVO pageReqVO) {
  75 + return maintainPlanCommonUserMapper.selectPage(pageReqVO);
  76 + }
  77 +
  78 +}
0 79 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanDetailService.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.maintainplan;
  2 +
  3 +import java.util.*;
  4 +import jakarta.validation.*;
  5 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  6 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDetailDO;
  7 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  8 +
  9 +/**
  10 + * 养护计划 Service 接口
  11 + *
  12 + * @author 超级管理员
  13 + */
  14 +public interface MaintainPlanDetailService {
  15 +
  16 + /**
  17 + * 创建养护计划
  18 + *
  19 + * @param createReqVO 创建信息
  20 + * @return 编号
  21 + */
  22 + Long createMaintainPlanDetail(@Valid MaintainPlanDetailSaveReqVO createReqVO);
  23 +
  24 + /**
  25 + * 更新养护计划
  26 + *
  27 + * @param updateReqVO 更新信息
  28 + */
  29 + void updateMaintainPlanDetail(@Valid MaintainPlanDetailSaveReqVO updateReqVO);
  30 +
  31 + /**
  32 + * 删除养护计划
  33 + *
  34 + * @param id 编号
  35 + */
  36 + void deleteMaintainPlanDetail(Long id);
  37 +
  38 + /**
  39 + * 批量删除养护计划
  40 + *
  41 + * @param ids 编号
  42 + */
  43 + void deleteMaintainPlanDetailListByIds(List<Long> ids);
  44 +
  45 + /**
  46 + * 获得养护计划
  47 + *
  48 + * @param id 编号
  49 + * @return 养护计划
  50 + */
  51 + MaintainPlanDetailDO getMaintainPlanDetail(Long id);
  52 +
  53 + /**
  54 + * 获得养护计划分页
  55 + *
  56 + * @param pageReqVO 分页查询
  57 + * @return 养护计划分页
  58 + */
  59 + PageResult<MaintainPlanDetailDO> getMaintainPlanDetailPage(MaintainPlanDetailPageReqVO pageReqVO);
  60 +
  61 +}
0 62 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanDetailServiceImpl.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.maintainplan;
  2 +
  3 +import org.springframework.stereotype.Service;
  4 +import jakarta.annotation.Resource;
  5 +import org.springframework.validation.annotation.Validated;
  6 +
  7 +import java.util.*;
  8 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  9 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDetailDO;
  10 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  11 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  12 +
  13 +import com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanDetailMapper;
  14 +
  15 +
  16 +/**
  17 + * 养护计划 Service 实现类
  18 + *
  19 + * @author 超级管理员
  20 + */
  21 +@Service
  22 +@Validated
  23 +public class MaintainPlanDetailServiceImpl implements MaintainPlanDetailService {
  24 +
  25 + @Resource
  26 + private MaintainPlanDetailMapper maintainPlanDetailMapper;
  27 +
  28 + @Override
  29 + public Long createMaintainPlanDetail(MaintainPlanDetailSaveReqVO createReqVO) {
  30 + // 插入
  31 + MaintainPlanDetailDO maintainPlanDetail = BeanUtils.toBean(createReqVO, MaintainPlanDetailDO.class);
  32 + maintainPlanDetailMapper.insert(maintainPlanDetail);
  33 +
  34 + // 返回
  35 + return maintainPlanDetail.getId();
  36 + }
  37 +
  38 + @Override
  39 + public void updateMaintainPlanDetail(MaintainPlanDetailSaveReqVO updateReqVO) {
  40 + // 校验存在
  41 + validateMaintainPlanDetailExists(updateReqVO.getId());
  42 + // 更新
  43 + MaintainPlanDetailDO updateObj = BeanUtils.toBean(updateReqVO, MaintainPlanDetailDO.class);
  44 + maintainPlanDetailMapper.updateById(updateObj);
  45 + }
  46 +
  47 + @Override
  48 + public void deleteMaintainPlanDetail(Long id) {
  49 + // 校验存在
  50 + validateMaintainPlanDetailExists(id);
  51 + // 删除
  52 + maintainPlanDetailMapper.deleteById(id);
  53 + }
  54 +
  55 + @Override
  56 + public void deleteMaintainPlanDetailListByIds(List<Long> ids) {
  57 + // 删除
  58 + maintainPlanDetailMapper.deleteByIds(ids);
  59 + }
  60 +
  61 +
  62 + private void validateMaintainPlanDetailExists(Long id) {
  63 + if (maintainPlanDetailMapper.selectById(id) == null) {
  64 + //throw exception(MAINTAIN_PLAN_DETAIL_NOT_EXISTS);
  65 + }
  66 + }
  67 +
  68 + @Override
  69 + public MaintainPlanDetailDO getMaintainPlanDetail(Long id) {
  70 + return maintainPlanDetailMapper.selectById(id);
  71 + }
  72 +
  73 + @Override
  74 + public PageResult<MaintainPlanDetailDO> getMaintainPlanDetailPage(MaintainPlanDetailPageReqVO pageReqVO) {
  75 + return maintainPlanDetailMapper.selectPage(pageReqVO);
  76 + }
  77 +
  78 +}
0 79 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanRoleService.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.maintainplan;
  2 +
  3 +import java.util.*;
  4 +import jakarta.validation.*;
  5 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  6 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanRoleDO;
  7 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  8 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  9 +
  10 +/**
  11 + * 养护计划角色 Service 接口
  12 + *
  13 + * @author 超级管理员
  14 + */
  15 +public interface MaintainPlanRoleService {
  16 +
  17 + /**
  18 + * 创建养护计划角色
  19 + *
  20 + * @param createReqVO 创建信息
  21 + * @return 编号
  22 + */
  23 + Long createMaintainPlanRole(@Valid MaintainPlanRoleSaveReqVO createReqVO);
  24 +
  25 + /**
  26 + * 更新养护计划角色
  27 + *
  28 + * @param updateReqVO 更新信息
  29 + */
  30 + void updateMaintainPlanRole(@Valid MaintainPlanRoleSaveReqVO updateReqVO);
  31 +
  32 + /**
  33 + * 删除养护计划角色
  34 + *
  35 + * @param id 编号
  36 + */
  37 + void deleteMaintainPlanRole(Long id);
  38 +
  39 + /**
  40 + * 批量删除养护计划角色
  41 + *
  42 + * @param ids 编号
  43 + */
  44 + void deleteMaintainPlanRoleListByIds(List<Long> ids);
  45 +
  46 + /**
  47 + * 获得养护计划角色
  48 + *
  49 + * @param id 编号
  50 + * @return 养护计划角色
  51 + */
  52 + MaintainPlanRoleDO getMaintainPlanRole(Long id);
  53 +
  54 + /**
  55 + * 获得养护计划角色分页
  56 + *
  57 + * @param pageReqVO 分页查询
  58 + * @return 养护计划角色分页
  59 + */
  60 + PageResult<MaintainPlanRoleDO> getMaintainPlanRolePage(MaintainPlanRolePageReqVO pageReqVO);
  61 +
  62 +}
0 63 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanRoleServiceImpl.java 0 → 100644
  1 +package com.zteits.urbanops.module.garden.service.maintainplan;
  2 +
  3 +import cn.hutool.core.collection.CollUtil;
  4 +import org.springframework.stereotype.Service;
  5 +import jakarta.annotation.Resource;
  6 +import org.springframework.validation.annotation.Validated;
  7 +import org.springframework.transaction.annotation.Transactional;
  8 +
  9 +import java.util.*;
  10 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
  11 +import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanRoleDO;
  12 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  13 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  14 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  15 +
  16 +import com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanRoleMapper;
  17 +
  18 +import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception;
  19 +import static com.zteits.urbanops.framework.common.util.collection.CollectionUtils.convertList;
  20 +import static com.zteits.urbanops.framework.common.util.collection.CollectionUtils.diffList;
  21 +import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.*;
  22 +
  23 +/**
  24 + * 养护计划角色 Service 实现类
  25 + *
  26 + * @author 超级管理员
  27 + */
  28 +@Service
  29 +@Validated
  30 +public class MaintainPlanRoleServiceImpl implements MaintainPlanRoleService {
  31 +
  32 + @Resource
  33 + private MaintainPlanRoleMapper maintainPlanRoleMapper;
  34 +
  35 + @Override
  36 + public Long createMaintainPlanRole(MaintainPlanRoleSaveReqVO createReqVO) {
  37 + // 插入
  38 + MaintainPlanRoleDO maintainPlanRole = BeanUtils.toBean(createReqVO, MaintainPlanRoleDO.class);
  39 + maintainPlanRoleMapper.insert(maintainPlanRole);
  40 +
  41 + // 返回
  42 + return maintainPlanRole.getId();
  43 + }
  44 +
  45 + @Override
  46 + public void updateMaintainPlanRole(MaintainPlanRoleSaveReqVO updateReqVO) {
  47 + // 校验存在
  48 + validateMaintainPlanRoleExists(updateReqVO.getId());
  49 + // 更新
  50 + MaintainPlanRoleDO updateObj = BeanUtils.toBean(updateReqVO, MaintainPlanRoleDO.class);
  51 + maintainPlanRoleMapper.updateById(updateObj);
  52 + }
  53 +
  54 + @Override
  55 + public void deleteMaintainPlanRole(Long id) {
  56 + // 校验存在
  57 + validateMaintainPlanRoleExists(id);
  58 + // 删除
  59 + maintainPlanRoleMapper.deleteById(id);
  60 + }
  61 +
  62 + @Override
  63 + public void deleteMaintainPlanRoleListByIds(List<Long> ids) {
  64 + // 删除
  65 + maintainPlanRoleMapper.deleteByIds(ids);
  66 + }
  67 +
  68 +
  69 + private void validateMaintainPlanRoleExists(Long id) {
  70 + if (maintainPlanRoleMapper.selectById(id) == null) {
  71 + // throw exception(MAINTAIN_PLAN_ROLE_NOT_EXISTS);
  72 + }
  73 + }
  74 +
  75 + @Override
  76 + public MaintainPlanRoleDO getMaintainPlanRole(Long id) {
  77 + return maintainPlanRoleMapper.selectById(id);
  78 + }
  79 +
  80 + @Override
  81 + public PageResult<MaintainPlanRoleDO> getMaintainPlanRolePage(MaintainPlanRolePageReqVO pageReqVO) {
  82 + return maintainPlanRoleMapper.selectPage(pageReqVO);
  83 + }
  84 +
  85 +}
0 86 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanService.java
1 1 package com.zteits.urbanops.module.garden.service.maintainplan;
2 2  
3   -import com.zteits.urbanops.framework.common.pojo.PageResult;
4   -import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanAddReqVO;
5   -import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanForPageReqVO;
  3 +import java.util.*;
  4 +import jakarta.validation.*;
  5 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
6 6 import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDO;
  7 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  8 +import com.zteits.urbanops.framework.common.pojo.PageParam;
7 9  
  10 +/**
  11 + * 养护计划汇总 Service 接口
  12 + *
  13 + * @author 超级管理员
  14 + */
8 15 public interface MaintainPlanService {
9   - PageResult<MaintainPlanDO> selectPage(MaintainPlanForPageReqVO reqVO);
10   - MaintainPlanDO selectByPlanNo(String planNo);
11   - Boolean insert(MaintainPlanAddReqVO reqVO, Long companyId, Long deptId);
12   - Boolean deleteById(Long id);
  16 +
  17 + /**
  18 + * 创建养护计划汇总
  19 + *
  20 + * @param createReqVO 创建信息
  21 + * @return 编号
  22 + */
  23 + Long createMaintainPlan(@Valid MaintainPlanSaveReqVO createReqVO);
  24 +
  25 + /**
  26 + * 更新养护计划汇总
  27 + *
  28 + * @param updateReqVO 更新信息
  29 + */
  30 + void updateMaintainPlan(@Valid MaintainPlanSaveReqVO updateReqVO);
  31 +
  32 + /**
  33 + * 删除养护计划汇总
  34 + *
  35 + * @param id 编号
  36 + */
  37 + void deleteMaintainPlan(Long id);
  38 +
  39 + /**
  40 + * 批量删除养护计划汇总
  41 + *
  42 + * @param ids 编号
  43 + */
  44 + void deleteMaintainPlanListByIds(List<Long> ids);
  45 +
  46 + /**
  47 + * 获得养护计划汇总
  48 + *
  49 + * @param id 编号
  50 + * @return 养护计划汇总
  51 + */
  52 + MaintainPlanDO getMaintainPlan(Long id);
  53 +
  54 + /**
  55 + * 获得养护计划汇总分页
  56 + *
  57 + * @param pageReqVO 分页查询
  58 + * @return 养护计划汇总分页
  59 + */
  60 + PageResult<MaintainPlanDO> getMaintainPlanPage(MaintainPlanPageReqVO pageReqVO);
  61 +
13 62 }
14 63 \ No newline at end of file
... ...
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanServiceImpl.java
1 1 package com.zteits.urbanops.module.garden.service.maintainplan;
2 2  
3   -import com.zteits.urbanops.framework.common.pojo.PageParam;
4   -import com.zteits.urbanops.framework.common.pojo.PageResult;
5   -import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanAddReqVO;
6   -import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.MaintainPlanForPageReqVO;
  3 +import cn.hutool.core.collection.CollUtil;
  4 +import org.springframework.stereotype.Service;
  5 +import jakarta.annotation.Resource;
  6 +import org.springframework.validation.annotation.Validated;
  7 +import org.springframework.transaction.annotation.Transactional;
  8 +
  9 +import java.util.*;
  10 +import com.zteits.urbanops.module.garden.controller.admin.maintainplan.vo.*;
7 11 import com.zteits.urbanops.module.garden.dal.dataobject.maintainplan.MaintainPlanDO;
  12 +import com.zteits.urbanops.framework.common.pojo.PageResult;
  13 +import com.zteits.urbanops.framework.common.pojo.PageParam;
  14 +import com.zteits.urbanops.framework.common.util.object.BeanUtils;
  15 +
8 16 import com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanMapper;
9   -import jakarta.annotation.Resource;
10   -import org.springframework.stereotype.Service;
11 17  
  18 +import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception;
  19 +import static com.zteits.urbanops.framework.common.util.collection.CollectionUtils.convertList;
  20 +import static com.zteits.urbanops.framework.common.util.collection.CollectionUtils.diffList;
  21 +import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.*;
  22 +
  23 +/**
  24 + * 养护计划汇总 Service 实现类
  25 + *
  26 + * @author 超级管理员
  27 + */
12 28 @Service
  29 +@Validated
13 30 public class MaintainPlanServiceImpl implements MaintainPlanService {
14 31  
15 32 @Resource
16 33 private MaintainPlanMapper maintainPlanMapper;
17 34  
18 35 @Override
19   - public PageResult<MaintainPlanDO> selectPage(MaintainPlanForPageReqVO reqVO) {
20   - MaintainPlanDO where = new MaintainPlanDO();
21   - where.setType(reqVO.getType());
22   - where.setPlanName(reqVO.getPlanName());
23   - PageParam page = new PageParam();
24   - page.setPageNo(reqVO.getPageNo());
25   - page.setPageSize(reqVO.getPageSize());
26   - return maintainPlanMapper.selectPage(page, where);
  36 + public Long createMaintainPlan(MaintainPlanSaveReqVO createReqVO) {
  37 + // 插入
  38 + MaintainPlanDO maintainPlan = BeanUtils.toBean(createReqVO, MaintainPlanDO.class);
  39 + maintainPlanMapper.insert(maintainPlan);
  40 +
  41 + // 返回
  42 + return maintainPlan.getId();
  43 + }
  44 +
  45 + @Override
  46 + public void updateMaintainPlan(MaintainPlanSaveReqVO updateReqVO) {
  47 + // 校验存在
  48 + validateMaintainPlanExists(updateReqVO.getId());
  49 + // 更新
  50 + MaintainPlanDO updateObj = BeanUtils.toBean(updateReqVO, MaintainPlanDO.class);
  51 + maintainPlanMapper.updateById(updateObj);
  52 + }
  53 +
  54 + @Override
  55 + public void deleteMaintainPlan(Long id) {
  56 + // 校验存在
  57 + validateMaintainPlanExists(id);
  58 + // 删除
  59 + maintainPlanMapper.deleteById(id);
27 60 }
28 61  
29 62 @Override
30   - public MaintainPlanDO selectByPlanNo(String planNo) {
31   - return maintainPlanMapper.selectOne(new com.zteits.urbanops.framework.mybatis.core.query.LambdaQueryWrapperX<MaintainPlanDO>()
32   - .eq(MaintainPlanDO::getPlanNo, planNo));
  63 + public void deleteMaintainPlanListByIds(List<Long> ids) {
  64 + // 删除
  65 + maintainPlanMapper.deleteByIds(ids);
  66 + }
  67 +
  68 +
  69 + private void validateMaintainPlanExists(Long id) {
  70 + if (maintainPlanMapper.selectById(id) == null) {
  71 + // throw exception(MAINTAIN_PLAN_NOT_EXISTS);
  72 + }
33 73 }
34 74  
35 75 @Override
36   - public Boolean insert(MaintainPlanAddReqVO reqVO, Long companyId, Long deptId) {
37   - MaintainPlanDO entity = new MaintainPlanDO();
38   - entity.setPlanNo(reqVO.getPlanNo());
39   - entity.setPlanName(reqVO.getPlanName());
40   - entity.setType(reqVO.getType());
41   - entity.setCompanyId(companyId);
42   - entity.setDeptId(deptId);
43   - entity.setStatus("0");
44   - return maintainPlanMapper.insert(entity) > 0;
  76 + public MaintainPlanDO getMaintainPlan(Long id) {
  77 + return maintainPlanMapper.selectById(id);
45 78 }
46 79  
47 80 @Override
48   - public Boolean deleteById(Long id) {
49   - return maintainPlanMapper.deleteById(id) > 0;
  81 + public PageResult<MaintainPlanDO> getMaintainPlanPage(MaintainPlanPageReqVO pageReqVO) {
  82 + return maintainPlanMapper.selectPage(pageReqVO);
50 83 }
  84 +
51 85 }
52 86 \ No newline at end of file
... ...
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanCommitMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.zteits.urbanops.module.garden.dal.mysql.inspectionplan.InspectionPlanCommitMapper">
  4 +
  5 + <!--
  6 + 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
  7 + 无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
  8 + 代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
  9 + 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
  10 + -->
  11 +
  12 +</mapper>
0 13 \ No newline at end of file
... ...
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanCommitMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanCommitMapper">
  4 +
  5 + <!--
  6 + 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
  7 + 无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
  8 + 代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
  9 + 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
  10 + -->
  11 +
  12 +</mapper>
0 13 \ No newline at end of file
... ...
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanCommonUserMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanCommonUserMapper">
  4 +
  5 + <!--
  6 + 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
  7 + 无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
  8 + 代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
  9 + 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
  10 + -->
  11 +
  12 +</mapper>
0 13 \ No newline at end of file
... ...
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanDetailMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanDetailMapper">
  4 +
  5 + <!--
  6 + 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
  7 + 无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
  8 + 代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
  9 + 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
  10 + -->
  11 +
  12 +</mapper>
0 13 \ No newline at end of file
... ...
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanMapper">
  4 +
  5 + <!--
  6 + 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
  7 + 无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
  8 + 代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
  9 + 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
  10 + -->
  11 +
  12 +</mapper>
0 13 \ No newline at end of file
... ...
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanRoleMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3 +<mapper namespace="com.zteits.urbanops.module.garden.dal.mysql.maintainplan.MaintainPlanRoleMapper">
  4 +
  5 + <!--
  6 + 一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
  7 + 无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
  8 + 代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
  9 + 文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
  10 + -->
  11 +
  12 +</mapper>
0 13 \ No newline at end of file
... ...