Selaa lähdekoodia

Merge remote-tracking branch 'origin/master'

lipenghui 3 viikkoa sitten
vanhempi
commit
d78d97b0c2
38 muutettua tiedostoa jossa 2541 lisäystä ja 1 poistoa
  1. 4 0
      yudao-module-pms/yudao-module-pms-api/src/main/java/cn/iocoder/yudao/module/pms/enums/ErrorCodeConstant.java
  2. 93 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreportattrs/IotDailyReportAttrsController.java
  3. 84 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreportattrs/vo/IotDailyReportAttrsPageReqVO.java
  4. 103 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreportattrs/vo/IotDailyReportAttrsRespVO.java
  5. 73 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreportattrs/vo/IotDailyReportAttrsSaveReqVO.java
  6. 93 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreporttemplate/IotDailyReportTemplateController.java
  7. 54 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreporttemplate/vo/IotDailyReportTemplatePageReqVO.java
  8. 63 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreporttemplate/vo/IotDailyReportTemplateRespVO.java
  9. 43 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreporttemplate/vo/IotDailyReportTemplateSaveReqVO.java
  10. 93 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojectdailyreport/IotProjectDailyReportController.java
  11. 74 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojectdailyreport/vo/IotProjectDailyReportPageReqVO.java
  12. 89 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojectdailyreport/vo/IotProjectDailyReportRespVO.java
  13. 65 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojectdailyreport/vo/IotProjectDailyReportSaveReqVO.java
  14. 11 1
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojecttasktemplate/IotProjectTaskTemplateController.java
  15. 5 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojecttasktemplate/vo/IotProjectTaskTemplateRespVO.java
  16. 93 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotrhdailyreport/IotRhDailyReportController.java
  17. 112 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotrhdailyreport/vo/IotRhDailyReportPageReqVO.java
  18. 132 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotrhdailyreport/vo/IotRhDailyReportRespVO.java
  19. 97 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotrhdailyreport/vo/IotRhDailyReportSaveReqVO.java
  20. 31 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/convert/iotprojecttasktemplate/IotProjectTaskTemplateConvert.java
  21. 110 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotdailyreportattrs/IotDailyReportAttrsDO.java
  22. 70 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotdailyreporttemplate/IotDailyReportTemplateDO.java
  23. 101 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotprojectdailyreport/IotProjectDailyReportDO.java
  24. 28 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotprojecttaskattrs/IotDailyReportEnumDataSpecs.java
  25. 6 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotprojecttaskattrs/IotTaskAttrModelProperty.java
  26. 141 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotrhdailyreport/IotRhDailyReportDO.java
  27. 44 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotdailyreportattrs/IotDailyReportAttrsMapper.java
  28. 34 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotdailyreporttemplate/IotDailyReportTemplateMapper.java
  29. 40 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotprojectdailyreport/IotProjectDailyReportMapper.java
  30. 51 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotrhdailyreport/IotRhDailyReportMapper.java
  31. 55 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotdailyreportattrs/IotDailyReportAttrsService.java
  32. 71 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotdailyreportattrs/IotDailyReportAttrsServiceImpl.java
  33. 55 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotdailyreporttemplate/IotDailyReportTemplateService.java
  34. 71 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotdailyreporttemplate/IotDailyReportTemplateServiceImpl.java
  35. 55 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotprojectdailyreport/IotProjectDailyReportService.java
  36. 71 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotprojectdailyreport/IotProjectDailyReportServiceImpl.java
  37. 55 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotrhdailyreport/IotRhDailyReportService.java
  38. 71 0
      yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotrhdailyreport/IotRhDailyReportServiceImpl.java

+ 4 - 0
yudao-module-pms/yudao-module-pms-api/src/main/java/cn/iocoder/yudao/module/pms/enums/ErrorCodeConstant.java

@@ -82,4 +82,8 @@ public interface ErrorCodeConstant{
     ErrorCode IOT_PROJECT_TASK_TEMPLATE_NOT_EXISTS = new ErrorCode(257, "项目任务属性模板不存在");
     ErrorCode IOT_PROJECT_TASK_ATTRS_NOT_EXISTS = new ErrorCode(258, "项目任务扩展属性不存在");
     ErrorCode IOT_OPEATION_FILL_NOT_EXISTS1 = new ErrorCode(259, "该工单已执行!");
+    ErrorCode IOT_DAILY_REPORT_TEMPLATE_NOT_EXISTS = new ErrorCode(260, "生产日报属性模板不存在");
+    ErrorCode IOT_DAILY_REPORT_ATTRS_NOT_EXISTS = new ErrorCode(261, "日报扩展模板属性不存在");
+    ErrorCode IOT_PROJECT_DAILY_REPORT_NOT_EXISTS = new ErrorCode(262, "项目日报不存在");
+    ErrorCode IOT_RH_DAILY_REPORT_NOT_EXISTS = new ErrorCode(263, "瑞恒日报不存在");
 }

+ 93 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreportattrs/IotDailyReportAttrsController.java

@@ -0,0 +1,93 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs;
+
+import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo.IotDailyReportAttrsPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo.IotDailyReportAttrsRespVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo.IotDailyReportAttrsSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreportattrs.IotDailyReportAttrsDO;
+import cn.iocoder.yudao.module.pms.service.iotdailyreportattrs.IotDailyReportAttrsService;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.io.IOException;
+import java.util.List;
+
+import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
+import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+
+@Tag(name = "管理后台 - 日报扩展模板属性")
+@RestController
+@RequestMapping("/rq/iot-daily-report-attrs")
+@Validated
+public class IotDailyReportAttrsController {
+
+    @Resource
+    private IotDailyReportAttrsService iotDailyReportAttrsService;
+
+    @PostMapping("/create")
+    @Operation(summary = "创建日报扩展模板属性")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-attrs:create')")
+    public CommonResult<Long> createIotDailyReportAttrs(@Valid @RequestBody IotDailyReportAttrsSaveReqVO createReqVO) {
+        return success(iotDailyReportAttrsService.createIotDailyReportAttrs(createReqVO));
+    }
+
+    @PutMapping("/update")
+    @Operation(summary = "更新日报扩展模板属性")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-attrs:update')")
+    public CommonResult<Boolean> updateIotDailyReportAttrs(@Valid @RequestBody IotDailyReportAttrsSaveReqVO updateReqVO) {
+        iotDailyReportAttrsService.updateIotDailyReportAttrs(updateReqVO);
+        return success(true);
+    }
+
+    @DeleteMapping("/delete")
+    @Operation(summary = "删除日报扩展模板属性")
+    @Parameter(name = "id", description = "编号", required = true)
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-attrs:delete')")
+    public CommonResult<Boolean> deleteIotDailyReportAttrs(@RequestParam("id") Long id) {
+        iotDailyReportAttrsService.deleteIotDailyReportAttrs(id);
+        return success(true);
+    }
+
+    @GetMapping("/get")
+    @Operation(summary = "获得日报扩展模板属性")
+    @Parameter(name = "id", description = "编号", required = true, example = "1024")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-attrs:query')")
+    public CommonResult<IotDailyReportAttrsRespVO> getIotDailyReportAttrs(@RequestParam("id") Long id) {
+        IotDailyReportAttrsDO iotDailyReportAttrs = iotDailyReportAttrsService.getIotDailyReportAttrs(id);
+        return success(BeanUtils.toBean(iotDailyReportAttrs, IotDailyReportAttrsRespVO.class));
+    }
+
+    @GetMapping("/page")
+    @Operation(summary = "获得日报扩展模板属性分页")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-attrs:query')")
+    public CommonResult<PageResult<IotDailyReportAttrsRespVO>> getIotDailyReportAttrsPage(@Valid IotDailyReportAttrsPageReqVO pageReqVO) {
+        PageResult<IotDailyReportAttrsDO> pageResult = iotDailyReportAttrsService.getIotDailyReportAttrsPage(pageReqVO);
+        return success(BeanUtils.toBean(pageResult, IotDailyReportAttrsRespVO.class));
+    }
+
+    @GetMapping("/export-excel")
+    @Operation(summary = "导出日报扩展模板属性 Excel")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-attrs:export')")
+    @ApiAccessLog(operateType = EXPORT)
+    public void exportIotDailyReportAttrsExcel(@Valid IotDailyReportAttrsPageReqVO pageReqVO,
+              HttpServletResponse response) throws IOException {
+        pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
+        List<IotDailyReportAttrsDO> list = iotDailyReportAttrsService.getIotDailyReportAttrsPage(pageReqVO).getList();
+        // 导出 Excel
+        ExcelUtils.write(response, "日报扩展模板属性.xls", "数据", IotDailyReportAttrsRespVO.class,
+                        BeanUtils.toBean(list, IotDailyReportAttrsRespVO.class));
+    }
+
+}

+ 84 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreportattrs/vo/IotDailyReportAttrsPageReqVO.java

@@ -0,0 +1,84 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo;
+
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.time.LocalDateTime;
+
+import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
+
+@Schema(description = "管理后台 - 日报扩展模板属性分页 Request VO")
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class IotDailyReportAttrsPageReqVO extends PageParam {
+
+    @Schema(description = "日报扩展模板id", example = "22440")
+    private Long templateId;
+
+    @Schema(description = "公司id", example = "27294")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "249")
+    private Long projectId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂 ...)")
+    private String projectClassification;
+
+    @Schema(description = "井型", example = "2")
+    private String wellType;
+
+    @Schema(description = "井别")
+    private String wellCategory;
+
+    @Schema(description = "施工工艺")
+    private String technique;
+
+    @Schema(description = "属性名称", example = "张三")
+    private String name;
+
+    @Schema(description = "属性标识符")
+    private String identifier;
+
+    @Schema(description = "数据类型(double text textarea date dropdown)", example = "2")
+    private String dataType;
+
+    @Schema(description = "是否必填(0非必填 1必填)")
+    private Integer required;
+
+    @Schema(description = "单位(MPa)")
+    private String unit;
+
+    @Schema(description = "访问模式(r读  w写)")
+    private String accessMode;
+
+    @Schema(description = "默认值")
+    private String defaultValue;
+
+    @Schema(description = "最大值")
+    private String maxValue;
+
+    @Schema(description = "最小值")
+    private String minValue;
+
+    @Schema(description = "不同专业公司的扩展属性")
+    private String extProperty;
+
+    @Schema(description = "排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "你说的对")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    private Integer status;
+
+    @Schema(description = "创建时间")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private LocalDateTime[] createTime;
+
+}

+ 103 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreportattrs/vo/IotDailyReportAttrsRespVO.java

@@ -0,0 +1,103 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo;
+
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.time.LocalDateTime;
+
+@Schema(description = "管理后台 - 日报扩展模板属性 Response VO")
+@Data
+@ExcelIgnoreUnannotated
+public class IotDailyReportAttrsRespVO {
+
+    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14208")
+    @ExcelProperty("主键id")
+    private Long id;
+
+    @Schema(description = "日报扩展模板id", example = "22440")
+    @ExcelProperty("日报扩展模板id")
+    private Long templateId;
+
+    @Schema(description = "公司id", example = "27294")
+    @ExcelProperty("公司id")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "249")
+    @ExcelProperty("项目id")
+    private Long projectId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂 ...)")
+    @ExcelProperty("项目类别(钻井 修井 注氮 酸化压裂 ...)")
+    private String projectClassification;
+
+    @Schema(description = "井型", example = "2")
+    @ExcelProperty("井型")
+    private String wellType;
+
+    @Schema(description = "井别")
+    @ExcelProperty("井别")
+    private String wellCategory;
+
+    @Schema(description = "施工工艺")
+    @ExcelProperty("施工工艺")
+    private String technique;
+
+    @Schema(description = "属性名称", example = "张三")
+    @ExcelProperty("属性名称")
+    private String name;
+
+    @Schema(description = "属性标识符")
+    @ExcelProperty("属性标识符")
+    private String identifier;
+
+    @Schema(description = "数据类型(double text textarea date dropdown)", example = "2")
+    @ExcelProperty("数据类型(double text textarea date dropdown)")
+    private String dataType;
+
+    @Schema(description = "是否必填(0非必填 1必填)")
+    @ExcelProperty("是否必填(0非必填 1必填)")
+    private Integer required;
+
+    @Schema(description = "单位(MPa)")
+    @ExcelProperty("单位(MPa)")
+    private String unit;
+
+    @Schema(description = "访问模式(r读  w写)")
+    @ExcelProperty("访问模式(r读  w写)")
+    private String accessMode;
+
+    @Schema(description = "默认值")
+    @ExcelProperty("默认值")
+    private String defaultValue;
+
+    @Schema(description = "最大值")
+    @ExcelProperty("最大值")
+    private String maxValue;
+
+    @Schema(description = "最小值")
+    @ExcelProperty("最小值")
+    private String minValue;
+
+    @Schema(description = "不同专业公司的扩展属性")
+    @ExcelProperty("不同专业公司的扩展属性")
+    private String extProperty;
+
+    @Schema(description = "排序值")
+    @ExcelProperty("排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "你说的对")
+    @ExcelProperty("备注")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    @ExcelProperty("状态(0启用 1禁用)")
+    private Integer status;
+
+    @Schema(description = "创建时间")
+    @ExcelProperty("创建时间")
+    private LocalDateTime createTime;
+
+}

+ 73 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreportattrs/vo/IotDailyReportAttrsSaveReqVO.java

@@ -0,0 +1,73 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+@Schema(description = "管理后台 - 日报扩展模板属性新增/修改 Request VO")
+@Data
+public class IotDailyReportAttrsSaveReqVO {
+
+    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14208")
+    private Long id;
+
+    @Schema(description = "日报扩展模板id", example = "22440")
+    private Long templateId;
+
+    @Schema(description = "公司id", example = "27294")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "249")
+    private Long projectId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂 ...)")
+    private String projectClassification;
+
+    @Schema(description = "井型", example = "2")
+    private String wellType;
+
+    @Schema(description = "井别")
+    private String wellCategory;
+
+    @Schema(description = "施工工艺")
+    private String technique;
+
+    @Schema(description = "属性名称", example = "张三")
+    private String name;
+
+    @Schema(description = "属性标识符")
+    private String identifier;
+
+    @Schema(description = "数据类型(double text textarea date dropdown)", example = "2")
+    private String dataType;
+
+    @Schema(description = "是否必填(0非必填 1必填)")
+    private Integer required;
+
+    @Schema(description = "单位(MPa)")
+    private String unit;
+
+    @Schema(description = "访问模式(r读  w写)")
+    private String accessMode;
+
+    @Schema(description = "默认值")
+    private String defaultValue;
+
+    @Schema(description = "最大值")
+    private String maxValue;
+
+    @Schema(description = "最小值")
+    private String minValue;
+
+    @Schema(description = "不同专业公司的扩展属性")
+    private String extProperty;
+
+    @Schema(description = "排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "你说的对")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    private Integer status;
+
+}

+ 93 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreporttemplate/IotDailyReportTemplateController.java

@@ -0,0 +1,93 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate;
+
+import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo.IotDailyReportTemplatePageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo.IotDailyReportTemplateRespVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo.IotDailyReportTemplateSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreporttemplate.IotDailyReportTemplateDO;
+import cn.iocoder.yudao.module.pms.service.iotdailyreporttemplate.IotDailyReportTemplateService;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.io.IOException;
+import java.util.List;
+
+import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
+import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+
+@Tag(name = "管理后台 - 生产日报属性模板")
+@RestController
+@RequestMapping("/rq/iot-daily-report-template")
+@Validated
+public class IotDailyReportTemplateController {
+
+    @Resource
+    private IotDailyReportTemplateService iotDailyReportTemplateService;
+
+    @PostMapping("/create")
+    @Operation(summary = "创建生产日报属性模板")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-template:create')")
+    public CommonResult<Long> createIotDailyReportTemplate(@Valid @RequestBody IotDailyReportTemplateSaveReqVO createReqVO) {
+        return success(iotDailyReportTemplateService.createIotDailyReportTemplate(createReqVO));
+    }
+
+    @PutMapping("/update")
+    @Operation(summary = "更新生产日报属性模板")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-template:update')")
+    public CommonResult<Boolean> updateIotDailyReportTemplate(@Valid @RequestBody IotDailyReportTemplateSaveReqVO updateReqVO) {
+        iotDailyReportTemplateService.updateIotDailyReportTemplate(updateReqVO);
+        return success(true);
+    }
+
+    @DeleteMapping("/delete")
+    @Operation(summary = "删除生产日报属性模板")
+    @Parameter(name = "id", description = "编号", required = true)
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-template:delete')")
+    public CommonResult<Boolean> deleteIotDailyReportTemplate(@RequestParam("id") Long id) {
+        iotDailyReportTemplateService.deleteIotDailyReportTemplate(id);
+        return success(true);
+    }
+
+    @GetMapping("/get")
+    @Operation(summary = "获得生产日报属性模板")
+    @Parameter(name = "id", description = "编号", required = true, example = "1024")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-template:query')")
+    public CommonResult<IotDailyReportTemplateRespVO> getIotDailyReportTemplate(@RequestParam("id") Long id) {
+        IotDailyReportTemplateDO iotDailyReportTemplate = iotDailyReportTemplateService.getIotDailyReportTemplate(id);
+        return success(BeanUtils.toBean(iotDailyReportTemplate, IotDailyReportTemplateRespVO.class));
+    }
+
+    @GetMapping("/page")
+    @Operation(summary = "获得生产日报属性模板分页")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-template:query')")
+    public CommonResult<PageResult<IotDailyReportTemplateRespVO>> getIotDailyReportTemplatePage(@Valid IotDailyReportTemplatePageReqVO pageReqVO) {
+        PageResult<IotDailyReportTemplateDO> pageResult = iotDailyReportTemplateService.getIotDailyReportTemplatePage(pageReqVO);
+        return success(BeanUtils.toBean(pageResult, IotDailyReportTemplateRespVO.class));
+    }
+
+    @GetMapping("/export-excel")
+    @Operation(summary = "导出生产日报属性模板 Excel")
+    @PreAuthorize("@ss.hasPermission('rq:iot-daily-report-template:export')")
+    @ApiAccessLog(operateType = EXPORT)
+    public void exportIotDailyReportTemplateExcel(@Valid IotDailyReportTemplatePageReqVO pageReqVO,
+              HttpServletResponse response) throws IOException {
+        pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
+        List<IotDailyReportTemplateDO> list = iotDailyReportTemplateService.getIotDailyReportTemplatePage(pageReqVO).getList();
+        // 导出 Excel
+        ExcelUtils.write(response, "生产日报属性模板.xls", "数据", IotDailyReportTemplateRespVO.class,
+                        BeanUtils.toBean(list, IotDailyReportTemplateRespVO.class));
+    }
+
+}

+ 54 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreporttemplate/vo/IotDailyReportTemplatePageReqVO.java

@@ -0,0 +1,54 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo;
+
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.time.LocalDateTime;
+
+import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
+
+@Schema(description = "管理后台 - 生产日报属性模板分页 Request VO")
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class IotDailyReportTemplatePageReqVO extends PageParam {
+
+    @Schema(description = "公司id", example = "13499")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "29163")
+    private Long projectId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂...)")
+    private String projectClassification;
+
+    @Schema(description = "井型", example = "2")
+    private String wellType;
+
+    @Schema(description = "井别")
+    private String wellCategory;
+
+    @Schema(description = "施工工艺")
+    private String technique;
+
+    @Schema(description = "模板名称", example = "王五")
+    private String name;
+
+    @Schema(description = "模板标识符")
+    private String identifier;
+
+    @Schema(description = "备注", example = "你说的对")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    private Integer status;
+
+    @Schema(description = "创建时间")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private LocalDateTime[] createTime;
+
+}

+ 63 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreporttemplate/vo/IotDailyReportTemplateRespVO.java

@@ -0,0 +1,63 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo;
+
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.time.LocalDateTime;
+
+@Schema(description = "管理后台 - 生产日报属性模板 Response VO")
+@Data
+@ExcelIgnoreUnannotated
+public class IotDailyReportTemplateRespVO {
+
+    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5000")
+    @ExcelProperty("主键id")
+    private Long id;
+
+    @Schema(description = "公司id", example = "13499")
+    @ExcelProperty("公司id")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "29163")
+    @ExcelProperty("项目id")
+    private Long projectId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂...)")
+    @ExcelProperty("项目类别(钻井 修井 注氮 酸化压裂...)")
+    private String projectClassification;
+
+    @Schema(description = "井型", example = "2")
+    @ExcelProperty("井型")
+    private String wellType;
+
+    @Schema(description = "井别")
+    @ExcelProperty("井别")
+    private String wellCategory;
+
+    @Schema(description = "施工工艺")
+    @ExcelProperty("施工工艺")
+    private String technique;
+
+    @Schema(description = "模板名称", example = "王五")
+    @ExcelProperty("模板名称")
+    private String name;
+
+    @Schema(description = "模板标识符")
+    @ExcelProperty("模板标识符")
+    private String identifier;
+
+    @Schema(description = "备注", example = "你说的对")
+    @ExcelProperty("备注")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    @ExcelProperty("状态(0启用 1禁用)")
+    private Integer status;
+
+    @Schema(description = "创建时间")
+    @ExcelProperty("创建时间")
+    private LocalDateTime createTime;
+
+}

+ 43 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotdailyreporttemplate/vo/IotDailyReportTemplateSaveReqVO.java

@@ -0,0 +1,43 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+@Schema(description = "管理后台 - 生产日报属性模板新增/修改 Request VO")
+@Data
+public class IotDailyReportTemplateSaveReqVO {
+
+    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5000")
+    private Long id;
+
+    @Schema(description = "公司id", example = "13499")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "29163")
+    private Long projectId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂...)")
+    private String projectClassification;
+
+    @Schema(description = "井型", example = "2")
+    private String wellType;
+
+    @Schema(description = "井别")
+    private String wellCategory;
+
+    @Schema(description = "施工工艺")
+    private String technique;
+
+    @Schema(description = "模板名称", example = "王五")
+    private String name;
+
+    @Schema(description = "模板标识符")
+    private String identifier;
+
+    @Schema(description = "备注", example = "你说的对")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    private Integer status;
+
+}

+ 93 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojectdailyreport/IotProjectDailyReportController.java

@@ -0,0 +1,93 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport;
+
+import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo.IotProjectDailyReportPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo.IotProjectDailyReportRespVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo.IotProjectDailyReportSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojectdailyreport.IotProjectDailyReportDO;
+import cn.iocoder.yudao.module.pms.service.iotprojectdailyreport.IotProjectDailyReportService;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.io.IOException;
+import java.util.List;
+
+import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
+import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+
+@Tag(name = "管理后台 - 项目日报")
+@RestController
+@RequestMapping("/rq/iot-project-daily-report")
+@Validated
+public class IotProjectDailyReportController {
+
+    @Resource
+    private IotProjectDailyReportService iotProjectDailyReportService;
+
+    @PostMapping("/create")
+    @Operation(summary = "创建项目日报")
+    @PreAuthorize("@ss.hasPermission('rq:iot-project-daily-report:create')")
+    public CommonResult<Long> createIotProjectDailyReport(@Valid @RequestBody IotProjectDailyReportSaveReqVO createReqVO) {
+        return success(iotProjectDailyReportService.createIotProjectDailyReport(createReqVO));
+    }
+
+    @PutMapping("/update")
+    @Operation(summary = "更新项目日报")
+    @PreAuthorize("@ss.hasPermission('rq:iot-project-daily-report:update')")
+    public CommonResult<Boolean> updateIotProjectDailyReport(@Valid @RequestBody IotProjectDailyReportSaveReqVO updateReqVO) {
+        iotProjectDailyReportService.updateIotProjectDailyReport(updateReqVO);
+        return success(true);
+    }
+
+    @DeleteMapping("/delete")
+    @Operation(summary = "删除项目日报")
+    @Parameter(name = "id", description = "编号", required = true)
+    @PreAuthorize("@ss.hasPermission('rq:iot-project-daily-report:delete')")
+    public CommonResult<Boolean> deleteIotProjectDailyReport(@RequestParam("id") Long id) {
+        iotProjectDailyReportService.deleteIotProjectDailyReport(id);
+        return success(true);
+    }
+
+    @GetMapping("/get")
+    @Operation(summary = "获得项目日报")
+    @Parameter(name = "id", description = "编号", required = true, example = "1024")
+    @PreAuthorize("@ss.hasPermission('rq:iot-project-daily-report:query')")
+    public CommonResult<IotProjectDailyReportRespVO> getIotProjectDailyReport(@RequestParam("id") Long id) {
+        IotProjectDailyReportDO iotProjectDailyReport = iotProjectDailyReportService.getIotProjectDailyReport(id);
+        return success(BeanUtils.toBean(iotProjectDailyReport, IotProjectDailyReportRespVO.class));
+    }
+
+    @GetMapping("/page")
+    @Operation(summary = "获得项目日报分页")
+    @PreAuthorize("@ss.hasPermission('rq:iot-project-daily-report:query')")
+    public CommonResult<PageResult<IotProjectDailyReportRespVO>> getIotProjectDailyReportPage(@Valid IotProjectDailyReportPageReqVO pageReqVO) {
+        PageResult<IotProjectDailyReportDO> pageResult = iotProjectDailyReportService.getIotProjectDailyReportPage(pageReqVO);
+        return success(BeanUtils.toBean(pageResult, IotProjectDailyReportRespVO.class));
+    }
+
+    @GetMapping("/export-excel")
+    @Operation(summary = "导出项目日报 Excel")
+    @PreAuthorize("@ss.hasPermission('rq:iot-project-daily-report:export')")
+    @ApiAccessLog(operateType = EXPORT)
+    public void exportIotProjectDailyReportExcel(@Valid IotProjectDailyReportPageReqVO pageReqVO,
+              HttpServletResponse response) throws IOException {
+        pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
+        List<IotProjectDailyReportDO> list = iotProjectDailyReportService.getIotProjectDailyReportPage(pageReqVO).getList();
+        // 导出 Excel
+        ExcelUtils.write(response, "项目日报.xls", "数据", IotProjectDailyReportRespVO.class,
+                        BeanUtils.toBean(list, IotProjectDailyReportRespVO.class));
+    }
+
+}

+ 74 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojectdailyreport/vo/IotProjectDailyReportPageReqVO.java

@@ -0,0 +1,74 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo;
+
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.time.LocalDateTime;
+
+import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
+
+@Schema(description = "管理后台 - 项目日报分页 Request VO")
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class IotProjectDailyReportPageReqVO extends PageParam {
+
+    @Schema(description = "施工队伍id", example = "27980")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "12710")
+    private Long projectId;
+
+    @Schema(description = "任务id", example = "4714")
+    private Long taskId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂... )")
+    private String projectClassification;
+
+    @Schema(description = "施工开始日期")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private LocalDateTime[] constructionStartDate;
+
+    @Schema(description = "施工结束日期")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private LocalDateTime[] constructionEndDate;
+
+    @Schema(description = "下步工作计划")
+    private String nextPlan;
+
+    @Schema(description = "当日生产情况生产动态", example = "2")
+    private String productionStatus;
+
+    @Schema(description = "施工状态(数据字典)", example = "2")
+    private Integer constructionStatus;
+
+    @Schema(description = "人员情况")
+    private String personnel;
+
+    @Schema(description = "不同专业公司的扩展属性值")
+    private String extProperty;
+
+    @Schema(description = "排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "随便")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "1")
+    private Integer status;
+
+    @Schema(description = "流程实例id", example = "10815")
+    private String processInstanceId;
+
+    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "2")
+    private Integer auditStatus;
+
+    @Schema(description = "创建时间")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private LocalDateTime[] createTime;
+
+}

+ 89 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojectdailyreport/vo/IotProjectDailyReportRespVO.java

@@ -0,0 +1,89 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo;
+
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojecttaskattrs.IotTaskAttrModelProperty;
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.time.LocalDateTime;
+import java.util.List;
+
+@Schema(description = "管理后台 - 项目日报 Response VO")
+@Data
+@ExcelIgnoreUnannotated
+public class IotProjectDailyReportRespVO {
+
+    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16328")
+    @ExcelProperty("主键id")
+    private Long id;
+
+    @Schema(description = "施工队伍id", example = "27980")
+    @ExcelProperty("施工队伍id")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "12710")
+    @ExcelProperty("项目id")
+    private Long projectId;
+
+    @Schema(description = "任务id", example = "4714")
+    @ExcelProperty("任务id")
+    private Long taskId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂... )")
+    @ExcelProperty("项目类别(钻井 修井 注氮 酸化压裂... )")
+    private String projectClassification;
+
+    @Schema(description = "施工开始日期")
+    @ExcelProperty("施工开始日期")
+    private LocalDateTime constructionStartDate;
+
+    @Schema(description = "施工结束日期")
+    @ExcelProperty("施工结束日期")
+    private LocalDateTime constructionEndDate;
+
+    @Schema(description = "下步工作计划")
+    @ExcelProperty("下步工作计划")
+    private String nextPlan;
+
+    @Schema(description = "当日生产情况生产动态", example = "2")
+    @ExcelProperty("当日生产情况生产动态")
+    private String productionStatus;
+
+    @Schema(description = "施工状态(数据字典)", example = "2")
+    @ExcelProperty("施工状态(数据字典)")
+    private Integer constructionStatus;
+
+    @Schema(description = "人员情况")
+    @ExcelProperty("人员情况")
+    private String personnel;
+
+    @Schema(description = "不同专业公司的扩展属性值")
+    @ExcelProperty("不同专业公司的扩展属性值")
+    private List<IotTaskAttrModelProperty> extProperty;
+
+    @Schema(description = "排序值")
+    @ExcelProperty("排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "随便")
+    @ExcelProperty("备注")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "1")
+    @ExcelProperty("状态(0启用 1禁用)")
+    private Integer status;
+
+    @Schema(description = "流程实例id", example = "10815")
+    @ExcelProperty("流程实例id")
+    private String processInstanceId;
+
+    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "2")
+    @ExcelProperty("审批状态 未提交、审批中、审批通过、审批不通过、已取消")
+    private Integer auditStatus;
+
+    @Schema(description = "创建时间")
+    @ExcelProperty("创建时间")
+    private LocalDateTime createTime;
+
+}

+ 65 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojectdailyreport/vo/IotProjectDailyReportSaveReqVO.java

@@ -0,0 +1,65 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo;
+
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojecttaskattrs.IotTaskAttrModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.time.LocalDateTime;
+import java.util.List;
+
+@Schema(description = "管理后台 - 项目日报新增/修改 Request VO")
+@Data
+public class IotProjectDailyReportSaveReqVO {
+
+    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16328")
+    private Long id;
+
+    @Schema(description = "施工队伍id", example = "27980")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "12710")
+    private Long projectId;
+
+    @Schema(description = "任务id", example = "4714")
+    private Long taskId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂... )")
+    private String projectClassification;
+
+    @Schema(description = "施工开始日期")
+    private LocalDateTime constructionStartDate;
+
+    @Schema(description = "施工结束日期")
+    private LocalDateTime constructionEndDate;
+
+    @Schema(description = "下步工作计划")
+    private String nextPlan;
+
+    @Schema(description = "当日生产情况生产动态", example = "2")
+    private String productionStatus;
+
+    @Schema(description = "施工状态(数据字典)", example = "2")
+    private Integer constructionStatus;
+
+    @Schema(description = "人员情况")
+    private String personnel;
+
+    @Schema(description = "不同专业公司的扩展属性值")
+    private List<IotTaskAttrModelProperty> extProperty;
+
+    @Schema(description = "排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "随便")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "1")
+    private Integer status;
+
+    @Schema(description = "流程实例id", example = "10815")
+    private String processInstanceId;
+
+    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "2")
+    private Integer auditStatus;
+
+}

+ 11 - 1
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojecttasktemplate/IotProjectTaskTemplateController.java

@@ -9,8 +9,11 @@ import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
 import cn.iocoder.yudao.module.pms.controller.admin.iotprojecttasktemplate.vo.IotProjectTaskTemplatePageReqVO;
 import cn.iocoder.yudao.module.pms.controller.admin.iotprojecttasktemplate.vo.IotProjectTaskTemplateRespVO;
 import cn.iocoder.yudao.module.pms.controller.admin.iotprojecttasktemplate.vo.IotProjectTaskTemplateSaveReqVO;
+import cn.iocoder.yudao.module.pms.convert.iotprojecttasktemplate.IotProjectTaskTemplateConvert;
 import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojecttasktemplate.IotProjectTaskTemplateDO;
 import cn.iocoder.yudao.module.pms.service.iotprojecttasktemplate.IotProjectTaskTemplateService;
+import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
+import cn.iocoder.yudao.module.system.service.dept.DeptService;
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.Parameter;
 import io.swagger.v3.oas.annotations.tags.Tag;
@@ -23,9 +26,11 @@ import javax.servlet.http.HttpServletResponse;
 import javax.validation.Valid;
 import java.io.IOException;
 import java.util.List;
+import java.util.Map;
 
 import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
 import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
 
 @Tag(name = "管理后台 - 项目任务属性模板")
 @RestController
@@ -35,6 +40,8 @@ public class IotProjectTaskTemplateController {
 
     @Resource
     private IotProjectTaskTemplateService iotProjectTaskTemplateService;
+    @Resource
+    private DeptService deptService;
 
     @PostMapping("/create")
     @Operation(summary = "创建项目任务属性模板")
@@ -74,7 +81,10 @@ public class IotProjectTaskTemplateController {
     @PreAuthorize("@ss.hasPermission('rq:iot-project-task-template:query')")
     public CommonResult<PageResult<IotProjectTaskTemplateRespVO>> getIotProjectTaskTemplatePage(@Valid IotProjectTaskTemplatePageReqVO pageReqVO) {
         PageResult<IotProjectTaskTemplateDO> pageResult = iotProjectTaskTemplateService.getIotProjectTaskTemplatePage(pageReqVO);
-        return success(BeanUtils.toBean(pageResult, IotProjectTaskTemplateRespVO.class));
+        Map<Long, DeptDO> deptMap = deptService.getDeptMap(
+                convertList(pageResult.getList(), IotProjectTaskTemplateDO::getDeptId));
+        List<IotProjectTaskTemplateRespVO> taskTemplateRespVOS = IotProjectTaskTemplateConvert.INSTANCE.convertList(pageResult.getList(), deptMap);
+        return success(new PageResult<>(taskTemplateRespVOS, pageResult.getTotal()));
     }
 
     @GetMapping("/export-excel")

+ 5 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotprojecttasktemplate/vo/IotProjectTaskTemplateRespVO.java

@@ -60,4 +60,9 @@ public class IotProjectTaskTemplateRespVO {
     @ExcelProperty("创建时间")
     private LocalDateTime createTime;
 
+    /**
+     * 扩展字段
+     */
+    @Schema(description = "公司名称")
+    private String deptName;
 }

+ 93 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotrhdailyreport/IotRhDailyReportController.java

@@ -0,0 +1,93 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport;
+
+import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
+import cn.iocoder.yudao.framework.common.pojo.CommonResult;
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportRespVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotrhdailyreport.IotRhDailyReportDO;
+import cn.iocoder.yudao.module.pms.service.iotrhdailyreport.IotRhDailyReportService;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.io.IOException;
+import java.util.List;
+
+import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
+import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
+
+@Tag(name = "管理后台 - 瑞恒日报")
+@RestController
+@RequestMapping("/pms/iot-rh-daily-report")
+@Validated
+public class IotRhDailyReportController {
+
+    @Resource
+    private IotRhDailyReportService iotRhDailyReportService;
+
+    @PostMapping("/create")
+    @Operation(summary = "创建瑞恒日报")
+    @PreAuthorize("@ss.hasPermission('pms:iot-rh-daily-report:create')")
+    public CommonResult<Long> createIotRhDailyReport(@Valid @RequestBody IotRhDailyReportSaveReqVO createReqVO) {
+        return success(iotRhDailyReportService.createIotRhDailyReport(createReqVO));
+    }
+
+    @PutMapping("/update")
+    @Operation(summary = "更新瑞恒日报")
+    @PreAuthorize("@ss.hasPermission('pms:iot-rh-daily-report:update')")
+    public CommonResult<Boolean> updateIotRhDailyReport(@Valid @RequestBody IotRhDailyReportSaveReqVO updateReqVO) {
+        iotRhDailyReportService.updateIotRhDailyReport(updateReqVO);
+        return success(true);
+    }
+
+    @DeleteMapping("/delete")
+    @Operation(summary = "删除瑞恒日报")
+    @Parameter(name = "id", description = "编号", required = true)
+    @PreAuthorize("@ss.hasPermission('pms:iot-rh-daily-report:delete')")
+    public CommonResult<Boolean> deleteIotRhDailyReport(@RequestParam("id") Long id) {
+        iotRhDailyReportService.deleteIotRhDailyReport(id);
+        return success(true);
+    }
+
+    @GetMapping("/get")
+    @Operation(summary = "获得瑞恒日报")
+    @Parameter(name = "id", description = "编号", required = true, example = "1024")
+    @PreAuthorize("@ss.hasPermission('pms:iot-rh-daily-report:query')")
+    public CommonResult<IotRhDailyReportRespVO> getIotRhDailyReport(@RequestParam("id") Long id) {
+        IotRhDailyReportDO iotRhDailyReport = iotRhDailyReportService.getIotRhDailyReport(id);
+        return success(BeanUtils.toBean(iotRhDailyReport, IotRhDailyReportRespVO.class));
+    }
+
+    @GetMapping("/page")
+    @Operation(summary = "获得瑞恒日报分页")
+    @PreAuthorize("@ss.hasPermission('pms:iot-rh-daily-report:query')")
+    public CommonResult<PageResult<IotRhDailyReportRespVO>> getIotRhDailyReportPage(@Valid IotRhDailyReportPageReqVO pageReqVO) {
+        PageResult<IotRhDailyReportDO> pageResult = iotRhDailyReportService.getIotRhDailyReportPage(pageReqVO);
+        return success(BeanUtils.toBean(pageResult, IotRhDailyReportRespVO.class));
+    }
+
+    @GetMapping("/export-excel")
+    @Operation(summary = "导出瑞恒日报 Excel")
+    @PreAuthorize("@ss.hasPermission('pms:iot-rh-daily-report:export')")
+    @ApiAccessLog(operateType = EXPORT)
+    public void exportIotRhDailyReportExcel(@Valid IotRhDailyReportPageReqVO pageReqVO,
+              HttpServletResponse response) throws IOException {
+        pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
+        List<IotRhDailyReportDO> list = iotRhDailyReportService.getIotRhDailyReportPage(pageReqVO).getList();
+        // 导出 Excel
+        ExcelUtils.write(response, "瑞恒日报.xls", "数据", IotRhDailyReportRespVO.class,
+                        BeanUtils.toBean(list, IotRhDailyReportRespVO.class));
+    }
+
+}

+ 112 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotrhdailyreport/vo/IotRhDailyReportPageReqVO.java

@@ -0,0 +1,112 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo;
+
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.ToString;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+
+import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
+
+@Schema(description = "管理后台 - 瑞恒日报分页 Request VO")
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+public class IotRhDailyReportPageReqVO extends PageParam {
+
+    @Schema(description = "施工队伍id", example = "17995")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "24473")
+    private Long projectId;
+
+    @Schema(description = "任务id", example = "20353")
+    private Long taskId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂... )")
+    private String projectClassification;
+
+    @Schema(description = "搬迁安装天数")
+    private BigDecimal relocationDays;
+
+    @Schema(description = "运行时效")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private BigDecimal[] transitTime;
+
+    @Schema(description = "当日注气量(万方)")
+    private BigDecimal dailyGasInjection;
+
+    @Schema(description = "当日注水量(方)")
+    private BigDecimal dailyWaterInjection;
+
+    @Schema(description = "当日注气时间(H)")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private BigDecimal[] dailyInjectGasTime;
+
+    @Schema(description = "当日注水时间(H)")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private BigDecimal[] dailyInjectWaterTime;
+
+    @Schema(description = "非生产时间(H)")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private BigDecimal[] nonProductionTime;
+
+    @Schema(description = "非生产时间原因")
+    private String nptReason;
+
+    @Schema(description = "施工开始日期")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private LocalDateTime[] constructionStartDate;
+
+    @Schema(description = "施工结束日期")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private LocalDateTime[] constructionEndDate;
+
+    @Schema(description = "当日生产情况生产动态", example = "2")
+    private String productionStatus;
+
+    @Schema(description = "下步工作计划")
+    private String nextPlan;
+
+    @Schema(description = "施工状态(动迁 准备 施工 完工)", example = "2")
+    private Integer constructionStatus;
+
+    @Schema(description = "人员情况")
+    private String personnel;
+
+    @Schema(description = "累计注气量(万方)")
+    private BigDecimal totalGasInjection;
+
+    @Schema(description = "累计注水量(方)")
+    private BigDecimal totalWaterInjection;
+
+    @Schema(description = "累计完工井次")
+    private BigDecimal cumulativeCompletion;
+
+    @Schema(description = "不同专业公司的扩展属性值")
+    private String extProperty;
+
+    @Schema(description = "排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "你说的对")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    private Integer status;
+
+    @Schema(description = "流程实例id", example = "1131")
+    private String processInstanceId;
+
+    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "1")
+    private Integer auditStatus;
+
+    @Schema(description = "创建时间")
+    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
+    private LocalDateTime[] createTime;
+
+}

+ 132 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotrhdailyreport/vo/IotRhDailyReportRespVO.java

@@ -0,0 +1,132 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo;
+
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+
+@Schema(description = "管理后台 - 瑞恒日报 Response VO")
+@Data
+@ExcelIgnoreUnannotated
+public class IotRhDailyReportRespVO {
+
+    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5694")
+    @ExcelProperty("主键id")
+    private Long id;
+
+    @Schema(description = "施工队伍id", example = "17995")
+    @ExcelProperty("施工队伍id")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "24473")
+    @ExcelProperty("项目id")
+    private Long projectId;
+
+    @Schema(description = "任务id", example = "20353")
+    @ExcelProperty("任务id")
+    private Long taskId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂... )")
+    @ExcelProperty("项目类别(钻井 修井 注氮 酸化压裂... )")
+    private String projectClassification;
+
+    @Schema(description = "搬迁安装天数")
+    @ExcelProperty("搬迁安装天数")
+    private BigDecimal relocationDays;
+
+    @Schema(description = "运行时效")
+    @ExcelProperty("运行时效")
+    private BigDecimal transitTime;
+
+    @Schema(description = "当日注气量(万方)")
+    @ExcelProperty("当日注气量(万方)")
+    private BigDecimal dailyGasInjection;
+
+    @Schema(description = "当日注水量(方)")
+    @ExcelProperty("当日注水量(方)")
+    private BigDecimal dailyWaterInjection;
+
+    @Schema(description = "当日注气时间(H)")
+    @ExcelProperty("当日注气时间(H)")
+    private BigDecimal dailyInjectGasTime;
+
+    @Schema(description = "当日注水时间(H)")
+    @ExcelProperty("当日注水时间(H)")
+    private BigDecimal dailyInjectWaterTime;
+
+    @Schema(description = "非生产时间(H)")
+    @ExcelProperty("非生产时间(H)")
+    private BigDecimal nonProductionTime;
+
+    @Schema(description = "非生产时间原因")
+    @ExcelProperty("非生产时间原因")
+    private String nptReason;
+
+    @Schema(description = "施工开始日期")
+    @ExcelProperty("施工开始日期")
+    private LocalDateTime constructionStartDate;
+
+    @Schema(description = "施工结束日期")
+    @ExcelProperty("施工结束日期")
+    private LocalDateTime constructionEndDate;
+
+    @Schema(description = "当日生产情况生产动态", example = "2")
+    @ExcelProperty("当日生产情况生产动态")
+    private String productionStatus;
+
+    @Schema(description = "下步工作计划")
+    @ExcelProperty("下步工作计划")
+    private String nextPlan;
+
+    @Schema(description = "施工状态(动迁 准备 施工 完工)", example = "2")
+    @ExcelProperty("施工状态(动迁 准备 施工 完工)")
+    private Integer constructionStatus;
+
+    @Schema(description = "人员情况")
+    @ExcelProperty("人员情况")
+    private String personnel;
+
+    @Schema(description = "累计注气量(万方)")
+    @ExcelProperty("累计注气量(万方)")
+    private BigDecimal totalGasInjection;
+
+    @Schema(description = "累计注水量(方)")
+    @ExcelProperty("累计注水量(方)")
+    private BigDecimal totalWaterInjection;
+
+    @Schema(description = "累计完工井次")
+    @ExcelProperty("累计完工井次")
+    private BigDecimal cumulativeCompletion;
+
+    @Schema(description = "不同专业公司的扩展属性值")
+    @ExcelProperty("不同专业公司的扩展属性值")
+    private String extProperty;
+
+    @Schema(description = "排序值")
+    @ExcelProperty("排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "你说的对")
+    @ExcelProperty("备注")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    @ExcelProperty("状态(0启用 1禁用)")
+    private Integer status;
+
+    @Schema(description = "流程实例id", example = "1131")
+    @ExcelProperty("流程实例id")
+    private String processInstanceId;
+
+    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "1")
+    @ExcelProperty("审批状态 未提交、审批中、审批通过、审批不通过、已取消")
+    private Integer auditStatus;
+
+    @Schema(description = "创建时间")
+    @ExcelProperty("创建时间")
+    private LocalDateTime createTime;
+
+}

+ 97 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotrhdailyreport/vo/IotRhDailyReportSaveReqVO.java

@@ -0,0 +1,97 @@
+package cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+
+@Schema(description = "管理后台 - 瑞恒日报新增/修改 Request VO")
+@Data
+public class IotRhDailyReportSaveReqVO {
+
+    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5694")
+    private Long id;
+
+    @Schema(description = "施工队伍id", example = "17995")
+    private Long deptId;
+
+    @Schema(description = "项目id", example = "24473")
+    private Long projectId;
+
+    @Schema(description = "任务id", example = "20353")
+    private Long taskId;
+
+    @Schema(description = "项目类别(钻井 修井 注氮 酸化压裂... )")
+    private String projectClassification;
+
+    @Schema(description = "搬迁安装天数")
+    private BigDecimal relocationDays;
+
+    @Schema(description = "运行时效")
+    private BigDecimal transitTime;
+
+    @Schema(description = "当日注气量(万方)")
+    private BigDecimal dailyGasInjection;
+
+    @Schema(description = "当日注水量(方)")
+    private BigDecimal dailyWaterInjection;
+
+    @Schema(description = "当日注气时间(H)")
+    private BigDecimal dailyInjectGasTime;
+
+    @Schema(description = "当日注水时间(H)")
+    private BigDecimal dailyInjectWaterTime;
+
+    @Schema(description = "非生产时间(H)")
+    private BigDecimal nonProductionTime;
+
+    @Schema(description = "非生产时间原因")
+    private String nptReason;
+
+    @Schema(description = "施工开始日期")
+    private LocalDateTime constructionStartDate;
+
+    @Schema(description = "施工结束日期")
+    private LocalDateTime constructionEndDate;
+
+    @Schema(description = "当日生产情况生产动态", example = "2")
+    private String productionStatus;
+
+    @Schema(description = "下步工作计划")
+    private String nextPlan;
+
+    @Schema(description = "施工状态(动迁 准备 施工 完工)", example = "2")
+    private Integer constructionStatus;
+
+    @Schema(description = "人员情况")
+    private String personnel;
+
+    @Schema(description = "累计注气量(万方)")
+    private BigDecimal totalGasInjection;
+
+    @Schema(description = "累计注水量(方)")
+    private BigDecimal totalWaterInjection;
+
+    @Schema(description = "累计完工井次")
+    private BigDecimal cumulativeCompletion;
+
+    @Schema(description = "不同专业公司的扩展属性值")
+    private String extProperty;
+
+    @Schema(description = "排序值")
+    private Integer sort;
+
+    @Schema(description = "备注", example = "你说的对")
+    private String remark;
+
+    @Schema(description = "状态(0启用 1禁用)", example = "2")
+    private Integer status;
+
+    @Schema(description = "流程实例id", example = "1131")
+    private String processInstanceId;
+
+    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "1")
+    private Integer auditStatus;
+
+}

+ 31 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/convert/iotprojecttasktemplate/IotProjectTaskTemplateConvert.java

@@ -0,0 +1,31 @@
+package cn.iocoder.yudao.module.pms.convert.iotprojecttasktemplate;
+
+import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojecttasktemplate.vo.IotProjectTaskTemplateRespVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojecttasktemplate.IotProjectTaskTemplateDO;
+import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
+import org.mapstruct.Mapper;
+import org.mapstruct.factory.Mappers;
+
+import java.util.List;
+import java.util.Map;
+
+@Mapper
+public interface IotProjectTaskTemplateConvert {
+
+    IotProjectTaskTemplateConvert INSTANCE = Mappers.getMapper(IotProjectTaskTemplateConvert.class);
+
+    default List<IotProjectTaskTemplateRespVO> convertList(List<IotProjectTaskTemplateDO> list, Map<Long, DeptDO> deptMap) {
+        return CollectionUtils.convertList(list, de -> convert(de, deptMap.get(de.getDeptId())));
+    }
+
+    default IotProjectTaskTemplateRespVO convert(IotProjectTaskTemplateDO user, DeptDO dept) {
+        IotProjectTaskTemplateRespVO userVO = BeanUtils.toBean(user, IotProjectTaskTemplateRespVO.class);
+        if (dept != null) {
+            userVO.setDeptName(dept.getName());
+        }
+        return userVO;
+    }
+
+}

+ 110 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotdailyreportattrs/IotDailyReportAttrsDO.java

@@ -0,0 +1,110 @@
+package cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreportattrs;
+
+import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
+import com.baomidou.mybatisplus.annotation.KeySequence;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.*;
+
+/**
+ * 日报扩展模板属性 DO
+ *
+ * @author 超级管理员
+ */
+@TableName(value = "rq_iot_daily_report_attrs", autoResultMap = true)
+@KeySequence("rq_iot_daily_report_attrs_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class IotDailyReportAttrsDO extends BaseDO {
+
+    /**
+     * 主键id
+     */
+    @TableId
+    private Long id;
+    /**
+     * 日报扩展模板id
+     */
+    private Long templateId;
+    /**
+     * 公司id
+     */
+    private Long deptId;
+    /**
+     * 项目id
+     */
+    private Long projectId;
+    /**
+     * 项目类别(钻井 修井 注氮 酸化压裂 ...)
+     */
+    private String projectClassification;
+    /**
+     * 井型
+     */
+    private String wellType;
+    /**
+     * 井别
+     */
+    private String wellCategory;
+    /**
+     * 施工工艺
+     */
+    private String technique;
+    /**
+     * 属性名称
+     */
+    private String name;
+    /**
+     * 属性标识符
+     */
+    private String identifier;
+    /**
+     * 数据类型(double text textarea date dropdown)
+     */
+    private String dataType;
+    /**
+     * 是否必填(0非必填 1必填)
+     */
+    private Integer required;
+    /**
+     * 单位(MPa)
+     */
+    private String unit;
+    /**
+     * 访问模式(r读  w写)
+     */
+    private String accessMode;
+    /**
+     * 默认值
+     */
+    private String defaultValue;
+    /**
+     * 最大值
+     */
+    private String maxValue;
+    /**
+     * 最小值
+     */
+    private String minValue;
+    /**
+     * 不同专业公司的扩展属性
+     */
+    private String extProperty;
+    /**
+     * 排序值
+     */
+    private Integer sort;
+    /**
+     * 备注
+     */
+    private String remark;
+    /**
+     * 状态(0启用 1禁用)
+     */
+    private Integer status;
+
+}

+ 70 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotdailyreporttemplate/IotDailyReportTemplateDO.java

@@ -0,0 +1,70 @@
+package cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreporttemplate;
+
+import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
+import com.baomidou.mybatisplus.annotation.KeySequence;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.*;
+
+/**
+ * 生产日报属性模板 DO
+ *
+ * @author 超级管理员
+ */
+@TableName("rq_iot_daily_report_template")
+@KeySequence("rq_iot_daily_report_template_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class IotDailyReportTemplateDO extends BaseDO {
+
+    /**
+     * 主键id
+     */
+    @TableId
+    private Long id;
+    /**
+     * 公司id
+     */
+    private Long deptId;
+    /**
+     * 项目id
+     */
+    private Long projectId;
+    /**
+     * 项目类别(钻井 修井 注氮 酸化压裂...)
+     */
+    private String projectClassification;
+    /**
+     * 井型
+     */
+    private String wellType;
+    /**
+     * 井别
+     */
+    private String wellCategory;
+    /**
+     * 施工工艺
+     */
+    private String technique;
+    /**
+     * 模板名称
+     */
+    private String name;
+    /**
+     * 模板标识符
+     */
+    private String identifier;
+    /**
+     * 备注
+     */
+    private String remark;
+    /**
+     * 状态(0启用 1禁用)
+     */
+    private Integer status;
+
+}

+ 101 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotprojectdailyreport/IotProjectDailyReportDO.java

@@ -0,0 +1,101 @@
+package cn.iocoder.yudao.module.pms.dal.dataobject.iotprojectdailyreport;
+
+import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojecttaskattrs.IotTaskAttrModelProperty;
+import com.baomidou.mybatisplus.annotation.KeySequence;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
+import lombok.*;
+
+import java.time.LocalDateTime;
+import java.util.List;
+
+/**
+ * 项目日报 DO
+ *
+ * @author 超级管理员
+ */
+@TableName(value = "rq_iot_project_daily_report", autoResultMap = true)
+@KeySequence("rq_iot_project_daily_report_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class IotProjectDailyReportDO extends BaseDO {
+
+    /**
+     * 主键id
+     */
+    @TableId
+    private Long id;
+    /**
+     * 施工队伍id
+     */
+    private Long deptId;
+    /**
+     * 项目id
+     */
+    private Long projectId;
+    /**
+     * 任务id
+     */
+    private Long taskId;
+    /**
+     * 项目类别(钻井 修井 注氮 酸化压裂... )
+     */
+    private String projectClassification;
+    /**
+     * 施工开始日期
+     */
+    private LocalDateTime constructionStartDate;
+    /**
+     * 施工结束日期
+     */
+    private LocalDateTime constructionEndDate;
+    /**
+     * 下步工作计划
+     */
+    private String nextPlan;
+    /**
+     * 当日生产情况生产动态
+     */
+    private String productionStatus;
+    /**
+     * 施工状态(数据字典)
+     */
+    private Integer constructionStatus;
+    /**
+     * 人员情况
+     */
+    private String personnel;
+    /**
+     * 不同专业公司的扩展属性值
+     */
+    @TableField(typeHandler = JacksonTypeHandler.class)
+    private List<IotTaskAttrModelProperty> extProperty;
+    /**
+     * 排序值
+     */
+    private Integer sort;
+    /**
+     * 备注
+     */
+    private String remark;
+    /**
+     * 状态(0启用 1禁用)
+     */
+    private Integer status;
+    /**
+     * 流程实例id
+     */
+    private String processInstanceId;
+    /**
+     * 审批状态 未提交、审批中、审批通过、审批不通过、已取消
+     */
+    private Integer auditStatus;
+
+}

+ 28 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotprojecttaskattrs/IotDailyReportEnumDataSpecs.java

@@ -0,0 +1,28 @@
+package cn.iocoder.yudao.module.pms.dal.dataobject.iotprojecttaskattrs;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 日报模板属性 数据类型为下拉列表的 DataSpec 定义
+ *
+ * 数据类型 下拉列表。
+ *
+ * @author ruiqi
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+public class IotDailyReportEnumDataSpecs {
+
+    /**
+     * 枚举项的名称。
+     * 可包含中文、大小写英文字母、数字、下划线(_)和短划线(-)
+     * 必须以中文、英文字母或数字开头,长度不超过 20 个字符
+     */
+    private String name;
+    /**
+     * 枚举值。
+     */
+    private String value;
+
+}

+ 6 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotprojecttaskattrs/IotTaskAttrModelProperty.java

@@ -7,6 +7,7 @@ import lombok.Data;
 
 import javax.validation.constraints.NotEmpty;
 import javax.validation.constraints.Pattern;
+import java.util.List;
 
 /**
  * pms 任务扩展属性
@@ -80,4 +81,9 @@ public class IotTaskAttrModelProperty {
      * 字段值
      */
     private String actualValue;
+
+    /**
+     * 数据类型 为下拉列表型的数据规范
+     */
+    private List<IotDailyReportEnumDataSpecs> dropdownList;
 }

+ 141 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/dataobject/iotrhdailyreport/IotRhDailyReportDO.java

@@ -0,0 +1,141 @@
+package cn.iocoder.yudao.module.pms.dal.dataobject.iotrhdailyreport;
+
+import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
+import com.baomidou.mybatisplus.annotation.KeySequence;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.*;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+
+/**
+ * 瑞恒日报 DO
+ *
+ * @author ruiqi
+ */
+@TableName("rq_iot_rh_daily_report")
+@KeySequence("rq_iot_rh_daily_report_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
+@Data
+@EqualsAndHashCode(callSuper = true)
+@ToString(callSuper = true)
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class IotRhDailyReportDO extends BaseDO {
+
+    /**
+     * 主键id
+     */
+    @TableId
+    private Long id;
+    /**
+     * 施工队伍id
+     */
+    private Long deptId;
+    /**
+     * 项目id
+     */
+    private Long projectId;
+    /**
+     * 任务id
+     */
+    private Long taskId;
+    /**
+     * 项目类别(钻井 修井 注氮 酸化压裂... )
+     */
+    private String projectClassification;
+    /**
+     * 搬迁安装天数
+     */
+    private BigDecimal relocationDays;
+    /**
+     * 运行时效
+     */
+    private BigDecimal transitTime;
+    /**
+     * 当日注气量(万方)
+     */
+    private BigDecimal dailyGasInjection;
+    /**
+     * 当日注水量(方)
+     */
+    private BigDecimal dailyWaterInjection;
+    /**
+     * 当日注气时间(H)
+     */
+    private BigDecimal dailyInjectGasTime;
+    /**
+     * 当日注水时间(H)
+     */
+    private BigDecimal dailyInjectWaterTime;
+    /**
+     * 非生产时间(H)
+     */
+    private BigDecimal nonProductionTime;
+    /**
+     * 非生产时间原因
+     */
+    private String nptReason;
+    /**
+     * 施工开始日期
+     */
+    private LocalDateTime constructionStartDate;
+    /**
+     * 施工结束日期
+     */
+    private LocalDateTime constructionEndDate;
+    /**
+     * 当日生产情况生产动态
+     */
+    private String productionStatus;
+    /**
+     * 下步工作计划
+     */
+    private String nextPlan;
+    /**
+     * 施工状态(动迁 准备 施工 完工)
+     */
+    private Integer constructionStatus;
+    /**
+     * 人员情况
+     */
+    private String personnel;
+    /**
+     * 累计注气量(万方)
+     */
+    private BigDecimal totalGasInjection;
+    /**
+     * 累计注水量(方)
+     */
+    private BigDecimal totalWaterInjection;
+    /**
+     * 累计完工井次
+     */
+    private BigDecimal cumulativeCompletion;
+    /**
+     * 不同专业公司的扩展属性值
+     */
+    private String extProperty;
+    /**
+     * 排序值
+     */
+    private Integer sort;
+    /**
+     * 备注
+     */
+    private String remark;
+    /**
+     * 状态(0启用 1禁用)
+     */
+    private Integer status;
+    /**
+     * 流程实例id
+     */
+    private String processInstanceId;
+    /**
+     * 审批状态 未提交、审批中、审批通过、审批不通过、已取消
+     */
+    private Integer auditStatus;
+
+}

+ 44 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotdailyreportattrs/IotDailyReportAttrsMapper.java

@@ -0,0 +1,44 @@
+package cn.iocoder.yudao.module.pms.dal.mysql.iotdailyreportattrs;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
+import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo.IotDailyReportAttrsPageReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreportattrs.IotDailyReportAttrsDO;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 日报扩展模板属性 Mapper
+ *
+ * @author 超级管理员
+ */
+@Mapper
+public interface IotDailyReportAttrsMapper extends BaseMapperX<IotDailyReportAttrsDO> {
+
+    default PageResult<IotDailyReportAttrsDO> selectPage(IotDailyReportAttrsPageReqVO reqVO) {
+        return selectPage(reqVO, new LambdaQueryWrapperX<IotDailyReportAttrsDO>()
+                .eqIfPresent(IotDailyReportAttrsDO::getTemplateId, reqVO.getTemplateId())
+                .eqIfPresent(IotDailyReportAttrsDO::getDeptId, reqVO.getDeptId())
+                .eqIfPresent(IotDailyReportAttrsDO::getProjectId, reqVO.getProjectId())
+                .eqIfPresent(IotDailyReportAttrsDO::getProjectClassification, reqVO.getProjectClassification())
+                .eqIfPresent(IotDailyReportAttrsDO::getWellType, reqVO.getWellType())
+                .eqIfPresent(IotDailyReportAttrsDO::getWellCategory, reqVO.getWellCategory())
+                .eqIfPresent(IotDailyReportAttrsDO::getTechnique, reqVO.getTechnique())
+                .likeIfPresent(IotDailyReportAttrsDO::getName, reqVO.getName())
+                .eqIfPresent(IotDailyReportAttrsDO::getIdentifier, reqVO.getIdentifier())
+                .eqIfPresent(IotDailyReportAttrsDO::getDataType, reqVO.getDataType())
+                .eqIfPresent(IotDailyReportAttrsDO::getRequired, reqVO.getRequired())
+                .eqIfPresent(IotDailyReportAttrsDO::getUnit, reqVO.getUnit())
+                .eqIfPresent(IotDailyReportAttrsDO::getAccessMode, reqVO.getAccessMode())
+                .eqIfPresent(IotDailyReportAttrsDO::getDefaultValue, reqVO.getDefaultValue())
+                .eqIfPresent(IotDailyReportAttrsDO::getMaxValue, reqVO.getMaxValue())
+                .eqIfPresent(IotDailyReportAttrsDO::getMinValue, reqVO.getMinValue())
+                .eqIfPresent(IotDailyReportAttrsDO::getExtProperty, reqVO.getExtProperty())
+                .eqIfPresent(IotDailyReportAttrsDO::getSort, reqVO.getSort())
+                .eqIfPresent(IotDailyReportAttrsDO::getRemark, reqVO.getRemark())
+                .eqIfPresent(IotDailyReportAttrsDO::getStatus, reqVO.getStatus())
+                .betweenIfPresent(IotDailyReportAttrsDO::getCreateTime, reqVO.getCreateTime())
+                .orderByDesc(IotDailyReportAttrsDO::getId));
+    }
+
+}

+ 34 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotdailyreporttemplate/IotDailyReportTemplateMapper.java

@@ -0,0 +1,34 @@
+package cn.iocoder.yudao.module.pms.dal.mysql.iotdailyreporttemplate;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
+import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo.IotDailyReportTemplatePageReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreporttemplate.IotDailyReportTemplateDO;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 生产日报属性模板 Mapper
+ *
+ * @author 超级管理员
+ */
+@Mapper
+public interface IotDailyReportTemplateMapper extends BaseMapperX<IotDailyReportTemplateDO> {
+
+    default PageResult<IotDailyReportTemplateDO> selectPage(IotDailyReportTemplatePageReqVO reqVO) {
+        return selectPage(reqVO, new LambdaQueryWrapperX<IotDailyReportTemplateDO>()
+                .eqIfPresent(IotDailyReportTemplateDO::getDeptId, reqVO.getDeptId())
+                .eqIfPresent(IotDailyReportTemplateDO::getProjectId, reqVO.getProjectId())
+                .eqIfPresent(IotDailyReportTemplateDO::getProjectClassification, reqVO.getProjectClassification())
+                .eqIfPresent(IotDailyReportTemplateDO::getWellType, reqVO.getWellType())
+                .eqIfPresent(IotDailyReportTemplateDO::getWellCategory, reqVO.getWellCategory())
+                .eqIfPresent(IotDailyReportTemplateDO::getTechnique, reqVO.getTechnique())
+                .likeIfPresent(IotDailyReportTemplateDO::getName, reqVO.getName())
+                .eqIfPresent(IotDailyReportTemplateDO::getIdentifier, reqVO.getIdentifier())
+                .eqIfPresent(IotDailyReportTemplateDO::getRemark, reqVO.getRemark())
+                .eqIfPresent(IotDailyReportTemplateDO::getStatus, reqVO.getStatus())
+                .betweenIfPresent(IotDailyReportTemplateDO::getCreateTime, reqVO.getCreateTime())
+                .orderByDesc(IotDailyReportTemplateDO::getId));
+    }
+
+}

+ 40 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotprojectdailyreport/IotProjectDailyReportMapper.java

@@ -0,0 +1,40 @@
+package cn.iocoder.yudao.module.pms.dal.mysql.iotprojectdailyreport;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
+import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo.IotProjectDailyReportPageReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojectdailyreport.IotProjectDailyReportDO;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 项目日报 Mapper
+ *
+ * @author 超级管理员
+ */
+@Mapper
+public interface IotProjectDailyReportMapper extends BaseMapperX<IotProjectDailyReportDO> {
+
+    default PageResult<IotProjectDailyReportDO> selectPage(IotProjectDailyReportPageReqVO reqVO) {
+        return selectPage(reqVO, new LambdaQueryWrapperX<IotProjectDailyReportDO>()
+                .eqIfPresent(IotProjectDailyReportDO::getDeptId, reqVO.getDeptId())
+                .eqIfPresent(IotProjectDailyReportDO::getProjectId, reqVO.getProjectId())
+                .eqIfPresent(IotProjectDailyReportDO::getTaskId, reqVO.getTaskId())
+                .eqIfPresent(IotProjectDailyReportDO::getProjectClassification, reqVO.getProjectClassification())
+                .betweenIfPresent(IotProjectDailyReportDO::getConstructionStartDate, reqVO.getConstructionStartDate())
+                .betweenIfPresent(IotProjectDailyReportDO::getConstructionEndDate, reqVO.getConstructionEndDate())
+                .eqIfPresent(IotProjectDailyReportDO::getNextPlan, reqVO.getNextPlan())
+                .eqIfPresent(IotProjectDailyReportDO::getProductionStatus, reqVO.getProductionStatus())
+                .eqIfPresent(IotProjectDailyReportDO::getConstructionStatus, reqVO.getConstructionStatus())
+                .eqIfPresent(IotProjectDailyReportDO::getPersonnel, reqVO.getPersonnel())
+                .eqIfPresent(IotProjectDailyReportDO::getExtProperty, reqVO.getExtProperty())
+                .eqIfPresent(IotProjectDailyReportDO::getSort, reqVO.getSort())
+                .eqIfPresent(IotProjectDailyReportDO::getRemark, reqVO.getRemark())
+                .eqIfPresent(IotProjectDailyReportDO::getStatus, reqVO.getStatus())
+                .eqIfPresent(IotProjectDailyReportDO::getProcessInstanceId, reqVO.getProcessInstanceId())
+                .eqIfPresent(IotProjectDailyReportDO::getAuditStatus, reqVO.getAuditStatus())
+                .betweenIfPresent(IotProjectDailyReportDO::getCreateTime, reqVO.getCreateTime())
+                .orderByDesc(IotProjectDailyReportDO::getId));
+    }
+
+}

+ 51 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/dal/mysql/iotrhdailyreport/IotRhDailyReportMapper.java

@@ -0,0 +1,51 @@
+package cn.iocoder.yudao.module.pms.dal.mysql.iotrhdailyreport;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
+import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
+import cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportPageReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotrhdailyreport.IotRhDailyReportDO;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 瑞恒日报 Mapper
+ *
+ * @author ruiqi
+ */
+@Mapper
+public interface IotRhDailyReportMapper extends BaseMapperX<IotRhDailyReportDO> {
+
+    default PageResult<IotRhDailyReportDO> selectPage(IotRhDailyReportPageReqVO reqVO) {
+        return selectPage(reqVO, new LambdaQueryWrapperX<IotRhDailyReportDO>()
+                .eqIfPresent(IotRhDailyReportDO::getDeptId, reqVO.getDeptId())
+                .eqIfPresent(IotRhDailyReportDO::getProjectId, reqVO.getProjectId())
+                .eqIfPresent(IotRhDailyReportDO::getTaskId, reqVO.getTaskId())
+                .eqIfPresent(IotRhDailyReportDO::getProjectClassification, reqVO.getProjectClassification())
+                .eqIfPresent(IotRhDailyReportDO::getRelocationDays, reqVO.getRelocationDays())
+                .betweenIfPresent(IotRhDailyReportDO::getTransitTime, reqVO.getTransitTime())
+                .eqIfPresent(IotRhDailyReportDO::getDailyGasInjection, reqVO.getDailyGasInjection())
+                .eqIfPresent(IotRhDailyReportDO::getDailyWaterInjection, reqVO.getDailyWaterInjection())
+                .betweenIfPresent(IotRhDailyReportDO::getDailyInjectGasTime, reqVO.getDailyInjectGasTime())
+                .betweenIfPresent(IotRhDailyReportDO::getDailyInjectWaterTime, reqVO.getDailyInjectWaterTime())
+                .betweenIfPresent(IotRhDailyReportDO::getNonProductionTime, reqVO.getNonProductionTime())
+                .eqIfPresent(IotRhDailyReportDO::getNptReason, reqVO.getNptReason())
+                .betweenIfPresent(IotRhDailyReportDO::getConstructionStartDate, reqVO.getConstructionStartDate())
+                .betweenIfPresent(IotRhDailyReportDO::getConstructionEndDate, reqVO.getConstructionEndDate())
+                .eqIfPresent(IotRhDailyReportDO::getProductionStatus, reqVO.getProductionStatus())
+                .eqIfPresent(IotRhDailyReportDO::getNextPlan, reqVO.getNextPlan())
+                .eqIfPresent(IotRhDailyReportDO::getConstructionStatus, reqVO.getConstructionStatus())
+                .eqIfPresent(IotRhDailyReportDO::getPersonnel, reqVO.getPersonnel())
+                .eqIfPresent(IotRhDailyReportDO::getTotalGasInjection, reqVO.getTotalGasInjection())
+                .eqIfPresent(IotRhDailyReportDO::getTotalWaterInjection, reqVO.getTotalWaterInjection())
+                .eqIfPresent(IotRhDailyReportDO::getCumulativeCompletion, reqVO.getCumulativeCompletion())
+                .eqIfPresent(IotRhDailyReportDO::getExtProperty, reqVO.getExtProperty())
+                .eqIfPresent(IotRhDailyReportDO::getSort, reqVO.getSort())
+                .eqIfPresent(IotRhDailyReportDO::getRemark, reqVO.getRemark())
+                .eqIfPresent(IotRhDailyReportDO::getStatus, reqVO.getStatus())
+                .eqIfPresent(IotRhDailyReportDO::getProcessInstanceId, reqVO.getProcessInstanceId())
+                .eqIfPresent(IotRhDailyReportDO::getAuditStatus, reqVO.getAuditStatus())
+                .betweenIfPresent(IotRhDailyReportDO::getCreateTime, reqVO.getCreateTime())
+                .orderByDesc(IotRhDailyReportDO::getId));
+    }
+
+}

+ 55 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotdailyreportattrs/IotDailyReportAttrsService.java

@@ -0,0 +1,55 @@
+package cn.iocoder.yudao.module.pms.service.iotdailyreportattrs;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo.IotDailyReportAttrsPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo.IotDailyReportAttrsSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreportattrs.IotDailyReportAttrsDO;
+
+import javax.validation.Valid;
+
+/**
+ * 日报扩展模板属性 Service 接口
+ *
+ * @author 超级管理员
+ */
+public interface IotDailyReportAttrsService {
+
+    /**
+     * 创建日报扩展模板属性
+     *
+     * @param createReqVO 创建信息
+     * @return 编号
+     */
+    Long createIotDailyReportAttrs(@Valid IotDailyReportAttrsSaveReqVO createReqVO);
+
+    /**
+     * 更新日报扩展模板属性
+     *
+     * @param updateReqVO 更新信息
+     */
+    void updateIotDailyReportAttrs(@Valid IotDailyReportAttrsSaveReqVO updateReqVO);
+
+    /**
+     * 删除日报扩展模板属性
+     *
+     * @param id 编号
+     */
+    void deleteIotDailyReportAttrs(Long id);
+
+    /**
+     * 获得日报扩展模板属性
+     *
+     * @param id 编号
+     * @return 日报扩展模板属性
+     */
+    IotDailyReportAttrsDO getIotDailyReportAttrs(Long id);
+
+    /**
+     * 获得日报扩展模板属性分页
+     *
+     * @param pageReqVO 分页查询
+     * @return 日报扩展模板属性分页
+     */
+    PageResult<IotDailyReportAttrsDO> getIotDailyReportAttrsPage(IotDailyReportAttrsPageReqVO pageReqVO);
+
+}

+ 71 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotdailyreportattrs/IotDailyReportAttrsServiceImpl.java

@@ -0,0 +1,71 @@
+package cn.iocoder.yudao.module.pms.service.iotdailyreportattrs;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo.IotDailyReportAttrsPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreportattrs.vo.IotDailyReportAttrsSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreportattrs.IotDailyReportAttrsDO;
+import cn.iocoder.yudao.module.pms.dal.mysql.iotdailyreportattrs.IotDailyReportAttrsMapper;
+import org.springframework.stereotype.Service;
+import org.springframework.validation.annotation.Validated;
+
+import javax.annotation.Resource;
+
+import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
+import static cn.iocoder.yudao.module.pms.enums.ErrorCodeConstant.IOT_DAILY_REPORT_ATTRS_NOT_EXISTS;
+
+/**
+ * 日报扩展模板属性 Service 实现类
+ *
+ * @author 超级管理员
+ */
+@Service
+@Validated
+public class IotDailyReportAttrsServiceImpl implements IotDailyReportAttrsService {
+
+    @Resource
+    private IotDailyReportAttrsMapper iotDailyReportAttrsMapper;
+
+    @Override
+    public Long createIotDailyReportAttrs(IotDailyReportAttrsSaveReqVO createReqVO) {
+        // 插入
+        IotDailyReportAttrsDO iotDailyReportAttrs = BeanUtils.toBean(createReqVO, IotDailyReportAttrsDO.class);
+        iotDailyReportAttrsMapper.insert(iotDailyReportAttrs);
+        // 返回
+        return iotDailyReportAttrs.getId();
+    }
+
+    @Override
+    public void updateIotDailyReportAttrs(IotDailyReportAttrsSaveReqVO updateReqVO) {
+        // 校验存在
+        validateIotDailyReportAttrsExists(updateReqVO.getId());
+        // 更新
+        IotDailyReportAttrsDO updateObj = BeanUtils.toBean(updateReqVO, IotDailyReportAttrsDO.class);
+        iotDailyReportAttrsMapper.updateById(updateObj);
+    }
+
+    @Override
+    public void deleteIotDailyReportAttrs(Long id) {
+        // 校验存在
+        validateIotDailyReportAttrsExists(id);
+        // 删除
+        iotDailyReportAttrsMapper.deleteById(id);
+    }
+
+    private void validateIotDailyReportAttrsExists(Long id) {
+        if (iotDailyReportAttrsMapper.selectById(id) == null) {
+            throw exception(IOT_DAILY_REPORT_ATTRS_NOT_EXISTS);
+        }
+    }
+
+    @Override
+    public IotDailyReportAttrsDO getIotDailyReportAttrs(Long id) {
+        return iotDailyReportAttrsMapper.selectById(id);
+    }
+
+    @Override
+    public PageResult<IotDailyReportAttrsDO> getIotDailyReportAttrsPage(IotDailyReportAttrsPageReqVO pageReqVO) {
+        return iotDailyReportAttrsMapper.selectPage(pageReqVO);
+    }
+
+}

+ 55 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotdailyreporttemplate/IotDailyReportTemplateService.java

@@ -0,0 +1,55 @@
+package cn.iocoder.yudao.module.pms.service.iotdailyreporttemplate;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo.IotDailyReportTemplatePageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo.IotDailyReportTemplateSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreporttemplate.IotDailyReportTemplateDO;
+
+import javax.validation.Valid;
+
+/**
+ * 生产日报属性模板 Service 接口
+ *
+ * @author 超级管理员
+ */
+public interface IotDailyReportTemplateService {
+
+    /**
+     * 创建生产日报属性模板
+     *
+     * @param createReqVO 创建信息
+     * @return 编号
+     */
+    Long createIotDailyReportTemplate(@Valid IotDailyReportTemplateSaveReqVO createReqVO);
+
+    /**
+     * 更新生产日报属性模板
+     *
+     * @param updateReqVO 更新信息
+     */
+    void updateIotDailyReportTemplate(@Valid IotDailyReportTemplateSaveReqVO updateReqVO);
+
+    /**
+     * 删除生产日报属性模板
+     *
+     * @param id 编号
+     */
+    void deleteIotDailyReportTemplate(Long id);
+
+    /**
+     * 获得生产日报属性模板
+     *
+     * @param id 编号
+     * @return 生产日报属性模板
+     */
+    IotDailyReportTemplateDO getIotDailyReportTemplate(Long id);
+
+    /**
+     * 获得生产日报属性模板分页
+     *
+     * @param pageReqVO 分页查询
+     * @return 生产日报属性模板分页
+     */
+    PageResult<IotDailyReportTemplateDO> getIotDailyReportTemplatePage(IotDailyReportTemplatePageReqVO pageReqVO);
+
+}

+ 71 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotdailyreporttemplate/IotDailyReportTemplateServiceImpl.java

@@ -0,0 +1,71 @@
+package cn.iocoder.yudao.module.pms.service.iotdailyreporttemplate;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo.IotDailyReportTemplatePageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotdailyreporttemplate.vo.IotDailyReportTemplateSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotdailyreporttemplate.IotDailyReportTemplateDO;
+import cn.iocoder.yudao.module.pms.dal.mysql.iotdailyreporttemplate.IotDailyReportTemplateMapper;
+import org.springframework.stereotype.Service;
+import org.springframework.validation.annotation.Validated;
+
+import javax.annotation.Resource;
+
+import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
+import static cn.iocoder.yudao.module.pms.enums.ErrorCodeConstant.IOT_DAILY_REPORT_TEMPLATE_NOT_EXISTS;
+
+/**
+ * 生产日报属性模板 Service 实现类
+ *
+ * @author 超级管理员
+ */
+@Service
+@Validated
+public class IotDailyReportTemplateServiceImpl implements IotDailyReportTemplateService {
+
+    @Resource
+    private IotDailyReportTemplateMapper iotDailyReportTemplateMapper;
+
+    @Override
+    public Long createIotDailyReportTemplate(IotDailyReportTemplateSaveReqVO createReqVO) {
+        // 插入
+        IotDailyReportTemplateDO iotDailyReportTemplate = BeanUtils.toBean(createReqVO, IotDailyReportTemplateDO.class);
+        iotDailyReportTemplateMapper.insert(iotDailyReportTemplate);
+        // 返回
+        return iotDailyReportTemplate.getId();
+    }
+
+    @Override
+    public void updateIotDailyReportTemplate(IotDailyReportTemplateSaveReqVO updateReqVO) {
+        // 校验存在
+        validateIotDailyReportTemplateExists(updateReqVO.getId());
+        // 更新
+        IotDailyReportTemplateDO updateObj = BeanUtils.toBean(updateReqVO, IotDailyReportTemplateDO.class);
+        iotDailyReportTemplateMapper.updateById(updateObj);
+    }
+
+    @Override
+    public void deleteIotDailyReportTemplate(Long id) {
+        // 校验存在
+        validateIotDailyReportTemplateExists(id);
+        // 删除
+        iotDailyReportTemplateMapper.deleteById(id);
+    }
+
+    private void validateIotDailyReportTemplateExists(Long id) {
+        if (iotDailyReportTemplateMapper.selectById(id) == null) {
+            throw exception(IOT_DAILY_REPORT_TEMPLATE_NOT_EXISTS);
+        }
+    }
+
+    @Override
+    public IotDailyReportTemplateDO getIotDailyReportTemplate(Long id) {
+        return iotDailyReportTemplateMapper.selectById(id);
+    }
+
+    @Override
+    public PageResult<IotDailyReportTemplateDO> getIotDailyReportTemplatePage(IotDailyReportTemplatePageReqVO pageReqVO) {
+        return iotDailyReportTemplateMapper.selectPage(pageReqVO);
+    }
+
+}

+ 55 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotprojectdailyreport/IotProjectDailyReportService.java

@@ -0,0 +1,55 @@
+package cn.iocoder.yudao.module.pms.service.iotprojectdailyreport;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo.IotProjectDailyReportPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo.IotProjectDailyReportSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojectdailyreport.IotProjectDailyReportDO;
+
+import javax.validation.Valid;
+
+/**
+ * 项目日报 Service 接口
+ *
+ * @author 超级管理员
+ */
+public interface IotProjectDailyReportService {
+
+    /**
+     * 创建项目日报
+     *
+     * @param createReqVO 创建信息
+     * @return 编号
+     */
+    Long createIotProjectDailyReport(@Valid IotProjectDailyReportSaveReqVO createReqVO);
+
+    /**
+     * 更新项目日报
+     *
+     * @param updateReqVO 更新信息
+     */
+    void updateIotProjectDailyReport(@Valid IotProjectDailyReportSaveReqVO updateReqVO);
+
+    /**
+     * 删除项目日报
+     *
+     * @param id 编号
+     */
+    void deleteIotProjectDailyReport(Long id);
+
+    /**
+     * 获得项目日报
+     *
+     * @param id 编号
+     * @return 项目日报
+     */
+    IotProjectDailyReportDO getIotProjectDailyReport(Long id);
+
+    /**
+     * 获得项目日报分页
+     *
+     * @param pageReqVO 分页查询
+     * @return 项目日报分页
+     */
+    PageResult<IotProjectDailyReportDO> getIotProjectDailyReportPage(IotProjectDailyReportPageReqVO pageReqVO);
+
+}

+ 71 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotprojectdailyreport/IotProjectDailyReportServiceImpl.java

@@ -0,0 +1,71 @@
+package cn.iocoder.yudao.module.pms.service.iotprojectdailyreport;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo.IotProjectDailyReportPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotprojectdailyreport.vo.IotProjectDailyReportSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotprojectdailyreport.IotProjectDailyReportDO;
+import cn.iocoder.yudao.module.pms.dal.mysql.iotprojectdailyreport.IotProjectDailyReportMapper;
+import org.springframework.stereotype.Service;
+import org.springframework.validation.annotation.Validated;
+
+import javax.annotation.Resource;
+
+import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
+import static cn.iocoder.yudao.module.pms.enums.ErrorCodeConstant.IOT_PROJECT_DAILY_REPORT_NOT_EXISTS;
+
+/**
+ * 项目日报 Service 实现类
+ *
+ * @author 超级管理员
+ */
+@Service
+@Validated
+public class IotProjectDailyReportServiceImpl implements IotProjectDailyReportService {
+
+    @Resource
+    private IotProjectDailyReportMapper iotProjectDailyReportMapper;
+
+    @Override
+    public Long createIotProjectDailyReport(IotProjectDailyReportSaveReqVO createReqVO) {
+        // 插入
+        IotProjectDailyReportDO iotProjectDailyReport = BeanUtils.toBean(createReqVO, IotProjectDailyReportDO.class);
+        iotProjectDailyReportMapper.insert(iotProjectDailyReport);
+        // 返回
+        return iotProjectDailyReport.getId();
+    }
+
+    @Override
+    public void updateIotProjectDailyReport(IotProjectDailyReportSaveReqVO updateReqVO) {
+        // 校验存在
+        validateIotProjectDailyReportExists(updateReqVO.getId());
+        // 更新
+        IotProjectDailyReportDO updateObj = BeanUtils.toBean(updateReqVO, IotProjectDailyReportDO.class);
+        iotProjectDailyReportMapper.updateById(updateObj);
+    }
+
+    @Override
+    public void deleteIotProjectDailyReport(Long id) {
+        // 校验存在
+        validateIotProjectDailyReportExists(id);
+        // 删除
+        iotProjectDailyReportMapper.deleteById(id);
+    }
+
+    private void validateIotProjectDailyReportExists(Long id) {
+        if (iotProjectDailyReportMapper.selectById(id) == null) {
+            throw exception(IOT_PROJECT_DAILY_REPORT_NOT_EXISTS);
+        }
+    }
+
+    @Override
+    public IotProjectDailyReportDO getIotProjectDailyReport(Long id) {
+        return iotProjectDailyReportMapper.selectById(id);
+    }
+
+    @Override
+    public PageResult<IotProjectDailyReportDO> getIotProjectDailyReportPage(IotProjectDailyReportPageReqVO pageReqVO) {
+        return iotProjectDailyReportMapper.selectPage(pageReqVO);
+    }
+
+}

+ 55 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotrhdailyreport/IotRhDailyReportService.java

@@ -0,0 +1,55 @@
+package cn.iocoder.yudao.module.pms.service.iotrhdailyreport;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotrhdailyreport.IotRhDailyReportDO;
+
+import javax.validation.Valid;
+
+/**
+ * 瑞恒日报 Service 接口
+ *
+ * @author ruiqi
+ */
+public interface IotRhDailyReportService {
+
+    /**
+     * 创建瑞恒日报
+     *
+     * @param createReqVO 创建信息
+     * @return 编号
+     */
+    Long createIotRhDailyReport(@Valid IotRhDailyReportSaveReqVO createReqVO);
+
+    /**
+     * 更新瑞恒日报
+     *
+     * @param updateReqVO 更新信息
+     */
+    void updateIotRhDailyReport(@Valid IotRhDailyReportSaveReqVO updateReqVO);
+
+    /**
+     * 删除瑞恒日报
+     *
+     * @param id 编号
+     */
+    void deleteIotRhDailyReport(Long id);
+
+    /**
+     * 获得瑞恒日报
+     *
+     * @param id 编号
+     * @return 瑞恒日报
+     */
+    IotRhDailyReportDO getIotRhDailyReport(Long id);
+
+    /**
+     * 获得瑞恒日报分页
+     *
+     * @param pageReqVO 分页查询
+     * @return 瑞恒日报分页
+     */
+    PageResult<IotRhDailyReportDO> getIotRhDailyReportPage(IotRhDailyReportPageReqVO pageReqVO);
+
+}

+ 71 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotrhdailyreport/IotRhDailyReportServiceImpl.java

@@ -0,0 +1,71 @@
+package cn.iocoder.yudao.module.pms.service.iotrhdailyreport;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
+import cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportPageReqVO;
+import cn.iocoder.yudao.module.pms.controller.admin.iotrhdailyreport.vo.IotRhDailyReportSaveReqVO;
+import cn.iocoder.yudao.module.pms.dal.dataobject.iotrhdailyreport.IotRhDailyReportDO;
+import cn.iocoder.yudao.module.pms.dal.mysql.iotrhdailyreport.IotRhDailyReportMapper;
+import org.springframework.stereotype.Service;
+import org.springframework.validation.annotation.Validated;
+
+import javax.annotation.Resource;
+
+import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
+import static cn.iocoder.yudao.module.pms.enums.ErrorCodeConstant.IOT_RH_DAILY_REPORT_NOT_EXISTS;
+
+/**
+ * 瑞恒日报 Service 实现类
+ *
+ * @author ruiqi
+ */
+@Service
+@Validated
+public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
+
+    @Resource
+    private IotRhDailyReportMapper iotRhDailyReportMapper;
+
+    @Override
+    public Long createIotRhDailyReport(IotRhDailyReportSaveReqVO createReqVO) {
+        // 插入
+        IotRhDailyReportDO iotRhDailyReport = BeanUtils.toBean(createReqVO, IotRhDailyReportDO.class);
+        iotRhDailyReportMapper.insert(iotRhDailyReport);
+        // 返回
+        return iotRhDailyReport.getId();
+    }
+
+    @Override
+    public void updateIotRhDailyReport(IotRhDailyReportSaveReqVO updateReqVO) {
+        // 校验存在
+        validateIotRhDailyReportExists(updateReqVO.getId());
+        // 更新
+        IotRhDailyReportDO updateObj = BeanUtils.toBean(updateReqVO, IotRhDailyReportDO.class);
+        iotRhDailyReportMapper.updateById(updateObj);
+    }
+
+    @Override
+    public void deleteIotRhDailyReport(Long id) {
+        // 校验存在
+        validateIotRhDailyReportExists(id);
+        // 删除
+        iotRhDailyReportMapper.deleteById(id);
+    }
+
+    private void validateIotRhDailyReportExists(Long id) {
+        if (iotRhDailyReportMapper.selectById(id) == null) {
+            throw exception(IOT_RH_DAILY_REPORT_NOT_EXISTS);
+        }
+    }
+
+    @Override
+    public IotRhDailyReportDO getIotRhDailyReport(Long id) {
+        return iotRhDailyReportMapper.selectById(id);
+    }
+
+    @Override
+    public PageResult<IotRhDailyReportDO> getIotRhDailyReportPage(IotRhDailyReportPageReqVO pageReqVO) {
+        return iotRhDailyReportMapper.selectPage(pageReqVO);
+    }
+
+}