Ver código fonte

ITP地图项目引用复制功能

fangpy 1 ano atrás
pai
commit
2ae3fc3846
21 arquivos alterados com 912 adições e 0 exclusões
  1. 16 0
      business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxItpProjectNodesDao.java
  2. 16 0
      business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxItpProjectNodesFilesDao.java
  3. 16 0
      business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxItpTemplateNodesFilesDao.java
  4. 16 0
      business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxProjectDeviceNumberDao.java
  5. 16 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxItpProjectNodesFilesService.java
  6. 20 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxItpProjectNodesService.java
  7. 16 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxItpTemplateNodesFilesService.java
  8. 16 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxProjectDeviceNumberService.java
  9. 20 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpProjectNodesFilesServiceImpl.java
  10. 145 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpProjectNodesServiceImpl.java
  11. 20 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpTemplateNodesFilesServiceImpl.java
  12. 20 0
      business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxProjectDeviceNumberServiceImpl.java
  13. 197 0
      business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxItpProjectNodesDo.java
  14. 104 0
      business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxItpProjectNodesFilesDo.java
  15. 6 0
      business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxItpTemplateNodesDo.java
  16. 94 0
      business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxItpTemplateNodesFilesDo.java
  17. 79 0
      business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxProjectDeviceNumberDo.java
  18. 35 0
      business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpProjectNodesController.java
  19. 20 0
      business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpProjectNodesFilesController.java
  20. 20 0
      business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpTemplateNodesFilesController.java
  21. 20 0
      business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxProjectDeviceNumberController.java

+ 16 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxItpProjectNodesDao.java

@@ -0,0 +1,16 @@
+package com.rongwei.bscommon.sys.dao;
+
+import com.rongwei.bsentity.domain.ZhcxItpProjectNodesDo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * itp地图模板检验点 Mapper 接口
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-19
+ */
+public interface ZhcxItpProjectNodesDao extends BaseMapper<ZhcxItpProjectNodesDo> {
+
+}

+ 16 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxItpProjectNodesFilesDao.java

@@ -0,0 +1,16 @@
+package com.rongwei.bscommon.sys.dao;
+
+import com.rongwei.bsentity.domain.ZhcxItpProjectNodesFilesDo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 项目ITP检查点报告模板 Mapper 接口
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+public interface ZhcxItpProjectNodesFilesDao extends BaseMapper<ZhcxItpProjectNodesFilesDo> {
+
+}

+ 16 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxItpTemplateNodesFilesDao.java

@@ -0,0 +1,16 @@
+package com.rongwei.bscommon.sys.dao;
+
+import com.rongwei.bsentity.domain.ZhcxItpTemplateNodesFilesDo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * ITP检查点报告模板 Mapper 接口
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+public interface ZhcxItpTemplateNodesFilesDao extends BaseMapper<ZhcxItpTemplateNodesFilesDo> {
+
+}

+ 16 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/dao/ZhcxProjectDeviceNumberDao.java

@@ -0,0 +1,16 @@
+package com.rongwei.bscommon.sys.dao;
+
+import com.rongwei.bsentity.domain.ZhcxProjectDeviceNumberDo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 项目管理机号表 Mapper 接口
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+public interface ZhcxProjectDeviceNumberDao extends BaseMapper<ZhcxProjectDeviceNumberDo> {
+
+}

+ 16 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxItpProjectNodesFilesService.java

@@ -0,0 +1,16 @@
+package com.rongwei.bscommon.sys.service;
+
+import com.rongwei.bsentity.domain.ZhcxItpProjectNodesFilesDo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 项目ITP检查点报告模板 服务类
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+public interface ZhcxItpProjectNodesFilesService extends IService<ZhcxItpProjectNodesFilesDo> {
+
+}

+ 20 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxItpProjectNodesService.java

@@ -0,0 +1,20 @@
+package com.rongwei.bscommon.sys.service;
+
+import com.rongwei.bsentity.domain.ZhcxItpProjectNodesDo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.Map;
+
+/**
+ * <p>
+ * itp地图模板检验点 服务类
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-19
+ */
+public interface ZhcxItpProjectNodesService extends IService<ZhcxItpProjectNodesDo> {
+
+    void projectNodeQuote(Map<String,Object> map);
+
+}

+ 16 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxItpTemplateNodesFilesService.java

@@ -0,0 +1,16 @@
+package com.rongwei.bscommon.sys.service;
+
+import com.rongwei.bsentity.domain.ZhcxItpTemplateNodesFilesDo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * ITP检查点报告模板 服务类
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+public interface ZhcxItpTemplateNodesFilesService extends IService<ZhcxItpTemplateNodesFilesDo> {
+
+}

+ 16 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/ZhcxProjectDeviceNumberService.java

@@ -0,0 +1,16 @@
+package com.rongwei.bscommon.sys.service;
+
+import com.rongwei.bsentity.domain.ZhcxProjectDeviceNumberDo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 项目管理机号表 服务类
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+public interface ZhcxProjectDeviceNumberService extends IService<ZhcxProjectDeviceNumberDo> {
+
+}

+ 20 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpProjectNodesFilesServiceImpl.java

@@ -0,0 +1,20 @@
+package com.rongwei.bscommon.sys.service.impl;
+
+import com.rongwei.bsentity.domain.ZhcxItpProjectNodesFilesDo;
+import com.rongwei.bscommon.sys.dao.ZhcxItpProjectNodesFilesDao;
+import com.rongwei.bscommon.sys.service.ZhcxItpProjectNodesFilesService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 项目ITP检查点报告模板 服务实现类
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@Service
+public class ZhcxItpProjectNodesFilesServiceImpl extends ServiceImpl<ZhcxItpProjectNodesFilesDao, ZhcxItpProjectNodesFilesDo> implements ZhcxItpProjectNodesFilesService {
+
+}

+ 145 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpProjectNodesServiceImpl.java

@@ -0,0 +1,145 @@
+package com.rongwei.bscommon.sys.service.impl;
+
+import cn.hutool.core.bean.BeanUtil;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.rongwei.bscommon.sys.service.*;
+import com.rongwei.bsentity.domain.*;
+import com.rongwei.bscommon.sys.dao.ZhcxItpProjectNodesDao;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.rongwei.rwcommon.base.exception.CustomException;
+import com.rongwei.rwcommon.utils.SecurityUtil;
+import com.rongwei.rwcommon.utils.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <p>
+ * itp地图模板检验点 服务实现类
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-19
+ */
+@Service
+public class ZhcxItpProjectNodesServiceImpl extends ServiceImpl<ZhcxItpProjectNodesDao, ZhcxItpProjectNodesDo> implements ZhcxItpProjectNodesService {
+
+    @Autowired
+    private ZhcxItpTemplateNodesService zhcxItpTemplateNodesService;
+    @Autowired
+    private ZhcxItpTemplateNodesFilesService zhcxItpTemplateNodesFilesService;
+    @Autowired
+    private ZhcxItpProjectNodesFilesService zhcxItpProjectNodesFilesService;
+    @Autowired
+    private ZhcxProjectDeviceNumberService zhcxProjectDeviceNumberService;
+
+    /**
+     * 项目引用ITP模板节点
+     * @param map
+     */
+    @Override
+    public void projectNodeQuote(Map<String, Object> map) {
+        Object projectIdObj = map.get("projectId");
+        Object itpTemplateIdObj = map.get("itpTemplateId");
+        Object projectDeviceNumberIdObjs = map.get("projectDeviceNumberIds");
+        Object projectDeviceNumberNameObjs = map.get("projectDeviceNumberNames");
+        if(projectIdObj != null){
+            if(itpTemplateIdObj != null){
+                String itpTemplateId = (String) itpTemplateIdObj;
+                String projectId = (String) projectIdObj;
+                if(StringUtils.isNotBlank(projectId) && StringUtils.isNotBlank(itpTemplateId)){
+                    String projectDeviceNumberIds = null;
+                    String projectDeviceNumberNames = null;
+                    // 获取关联机号初始化
+                    if(projectDeviceNumberIdObjs != null){
+                        projectDeviceNumberNames = projectDeviceNumberNameObjs.toString();
+                    }else {
+                        // 没有机号则查询项目ID关联的机号
+                        List<ZhcxProjectDeviceNumberDo> deviceNumberDos = zhcxProjectDeviceNumberService.list(
+                                new LambdaQueryWrapper<ZhcxProjectDeviceNumberDo>().eq(ZhcxProjectDeviceNumberDo::getPid, projectId));
+                        if(deviceNumberDos != null && deviceNumberDos.size()>0){
+                            for (ZhcxProjectDeviceNumberDo deviceNumberDo : deviceNumberDos) {
+                                if(projectDeviceNumberIds == null){
+                                    projectDeviceNumberIds = deviceNumberDo.getId();
+                                    projectDeviceNumberNames = deviceNumberDo.getDeviceNumber();
+                                }else{
+                                    projectDeviceNumberIds = projectDeviceNumberIds + "," + deviceNumberDo.getId();
+                                    projectDeviceNumberNames = projectDeviceNumberNames + "," + deviceNumberDo.getDeviceNumber();
+                                }
+                            }
+                        }
+                    }
+                    // 待复制保存的节点
+                    List<ZhcxItpProjectNodesDo> projectNodes = new ArrayList<>();
+                    // 待复制保存的节点报告模板
+                    List<ZhcxItpProjectNodesFilesDo> projectNodeFiles = new ArrayList<>();
+                    // 根据引用模板ID获取ITP节点数据
+                    List<ZhcxItpTemplateNodesDo> templateNodes = zhcxItpTemplateNodesService.list(
+                            new LambdaQueryWrapper<ZhcxItpTemplateNodesDo>().eq(ZhcxItpTemplateNodesDo::getItpid, itpTemplateId));
+                    // 根据引用模板ID获取ITP节点报告模板数据
+                    List<ZhcxItpTemplateNodesFilesDo> templateNodesFiles = zhcxItpTemplateNodesFilesService.list(
+                            new LambdaQueryWrapper<ZhcxItpTemplateNodesFilesDo>().eq(ZhcxItpTemplateNodesFilesDo::getTempid, itpTemplateId));
+                    if(templateNodes != null && templateNodes.size()>0){
+                        // 模板节点ID和项目节点ID的映射关系
+                        Map<String,String> tempProMap = new HashMap<>();
+                        // 先清除已存在的数据
+                        this.remove(new LambdaQueryWrapper<ZhcxItpProjectNodesDo>().eq(ZhcxItpProjectNodesDo::getProjectid,projectId));
+                        // 复制引用模板节点数据
+                        for (ZhcxItpTemplateNodesDo templateNode : templateNodes) {
+                            // 相关属性复制
+                            ZhcxItpProjectNodesDo zhcxItpProjectNodesDo = new ZhcxItpProjectNodesDo();
+                            BeanUtil.copyProperties(templateNode,zhcxItpProjectNodesDo);
+                            zhcxItpProjectNodesDo.setProjectid(projectId);
+                            zhcxItpProjectNodesDo.setItpnodeid(templateNode.getId());
+                            zhcxItpProjectNodesDo.setId(SecurityUtil.getUUID());
+                            // 关联机号
+                            if(StringUtils.isNotBlank(projectDeviceNumberIds)){
+                                zhcxItpProjectNodesDo.setMachineno(projectDeviceNumberIds);
+                            }
+                            if(StringUtils.isNotBlank(projectDeviceNumberNames)){
+                                zhcxItpProjectNodesDo.setMachinename(projectDeviceNumberNames);
+                            }
+                            projectNodes.add(zhcxItpProjectNodesDo);
+                            // 映射关系建立
+                            tempProMap.put(templateNode.getId(),zhcxItpProjectNodesDo.getId());
+                        }
+                        // 替换所有PID为新的ID
+                        for (ZhcxItpProjectNodesDo projectNode : projectNodes) {
+                            if(StringUtils.isNotBlank(projectNode.getPid()) && !"-1".equals(projectNode.getPid())){
+                                if(tempProMap.containsKey(projectNode.getPid())){
+                                    projectNode.setPid(tempProMap.get(projectNode.getPid()));
+                                }
+                            }
+                        }
+
+                        // 复制引用模板节点报告模板数据
+                        for (ZhcxItpTemplateNodesFilesDo templateNodesFile : templateNodesFiles) {
+                            if(StringUtils.isBlank(templateNodesFile.getNodeid())){
+                                continue;
+                            }
+                            ZhcxItpProjectNodesFilesDo zhcxItpProjectNodesFilesDo = new ZhcxItpProjectNodesFilesDo();
+                            BeanUtil.copyProperties(templateNodesFile,zhcxItpProjectNodesFilesDo);
+                            zhcxItpProjectNodesFilesDo.setId(SecurityUtil.getUUID());
+                            zhcxItpProjectNodesFilesDo.setProjectid(projectId);
+                            zhcxItpProjectNodesFilesDo.setProjectnodeid(tempProMap.get(templateNodesFile.getNodeid()));
+                            projectNodeFiles.add(zhcxItpProjectNodesFilesDo);
+                        }
+                    }
+                    // 数据保存
+                    if(projectNodes != null && projectNodes.size()>0){
+                        this.saveBatch(projectNodes);
+                    }
+                    if(projectNodeFiles != null && projectNodeFiles.size()>0){
+                        zhcxItpProjectNodesFilesService.saveBatch(projectNodeFiles);
+                    }
+                }
+            }
+        }else{
+            throw new CustomException("项目ID不能为空");
+        }
+    }
+}

+ 20 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpTemplateNodesFilesServiceImpl.java

@@ -0,0 +1,20 @@
+package com.rongwei.bscommon.sys.service.impl;
+
+import com.rongwei.bsentity.domain.ZhcxItpTemplateNodesFilesDo;
+import com.rongwei.bscommon.sys.dao.ZhcxItpTemplateNodesFilesDao;
+import com.rongwei.bscommon.sys.service.ZhcxItpTemplateNodesFilesService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * ITP检查点报告模板 服务实现类
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@Service
+public class ZhcxItpTemplateNodesFilesServiceImpl extends ServiceImpl<ZhcxItpTemplateNodesFilesDao, ZhcxItpTemplateNodesFilesDo> implements ZhcxItpTemplateNodesFilesService {
+
+}

+ 20 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxProjectDeviceNumberServiceImpl.java

@@ -0,0 +1,20 @@
+package com.rongwei.bscommon.sys.service.impl;
+
+import com.rongwei.bsentity.domain.ZhcxProjectDeviceNumberDo;
+import com.rongwei.bscommon.sys.dao.ZhcxProjectDeviceNumberDao;
+import com.rongwei.bscommon.sys.service.ZhcxProjectDeviceNumberService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 项目管理机号表 服务实现类
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@Service
+public class ZhcxProjectDeviceNumberServiceImpl extends ServiceImpl<ZhcxProjectDeviceNumberDao, ZhcxProjectDeviceNumberDo> implements ZhcxProjectDeviceNumberService {
+
+}

+ 197 - 0
business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxItpProjectNodesDo.java

@@ -0,0 +1,197 @@
+package com.rongwei.bsentity.domain;
+
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.rongwei.rwcommon.base.BaseDo;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * itp地图模板检验点
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-19
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("ZHCX_ITP_PROJECT_NODES")
+public class ZhcxItpProjectNodesDo extends BaseDo {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键
+     */
+    @TableField("ID")
+    private String id;
+    /**
+     * 项目ID
+     */
+    @TableField("PROJECTID")
+    private String projectid;
+    /**
+     * 模板ID
+     */
+    @TableField("ITPID")
+    private String itpid;
+    /**
+     * 模板名称
+     */
+    @TableField("ITPNAME")
+    private String itpname;
+    /**
+     * ITP模板节点ID
+     */
+    @TableField("ITPNODEID")
+    private String itpnodeid;
+    /**
+     * 关联机号
+     */
+    @TableField("MACHINENO")
+    private String machineno;
+    /**
+     * 类型
+     */
+    @TableField("PID")
+    private String pid;
+    /**
+     * 节点名称
+     */
+    @TableField("NODENAME")
+    private String nodename;
+    /**
+     * 节点英文名
+     */
+    @TableField("ENNAME")
+    private String enname;
+    /**
+     * 归属大构件
+     */
+    @TableField("PNODENAME")
+    private String pnodename;
+    /**
+     * 归属大构件英文名
+     */
+    @TableField("PNODEENNAME")
+    private String pnodeenname;
+    /**
+     * 大构件ID
+     */
+    @TableField("PNODEID")
+    private String pnodeid;
+    /**
+     * 前置报验点
+     */
+    @TableField("PRENODE")
+    private String prenode;
+    /**
+     * 前置报验点ID
+     */
+    @TableField("PRENODEID")
+    private String prenodeid;
+    /**
+     * 节点类型
+     */
+    @TableField("NODETYPE")
+    private String nodetype;
+    /**
+     * 排序
+     */
+    @TableField("SORTINDEX")
+    private BigDecimal sortindex;
+    /**
+     * 层级
+     */
+    @TableField("LEVEL")
+    private String level;
+    /**
+     * 线下报验
+     */
+    @TableField("ISOFFLINE")
+    private String isoffline;
+    /**
+     * 相关报告文件模板
+     */
+    @TableField("NEEDFILES")
+    private String needfiles;
+    /**
+     * 内部报验申请单模板
+     */
+    @TableField("NOTICEFILE")
+    private String noticefile;
+    /**
+     * 点检表模板
+     */
+    @TableField("CHECKFILE")
+    private String checkfile;
+    /**
+     * 关联节点ID
+     */
+    @TableField("RELATEIDS")
+    private String relateids;
+    /**
+     * 租户ID
+     */
+    @TableField("TENANTID")
+    private String tenantid;
+    /**
+     * 扩展json格式配置
+     */
+    @TableField("ROPTION")
+    private String roption;
+    /**
+     * 外部申请单模板
+     */
+    @TableField("OUTNOTICEFILE")
+    private String outnoticefile;
+    /**
+     * 引用节点ID
+     */
+    @TableField("REFNODEID")
+    private String refnodeid;
+    /**
+     * 应用模板名称
+     */
+    @TableField("REFTMPID")
+    private String reftmpid;
+    /**
+     * 是否需要外部报验
+     */
+    @TableField("ISNEEDOUT")
+    private String isneedout;
+    /**
+     * ID全路径
+     */
+    @TableField("PATH")
+    private String path;
+
+    /**
+     * 报验类型
+     */
+    @TableField("INSPECTIONTYPE")
+    private String inspectiontype;
+
+    /**
+     * 机号名称
+     */
+    @TableField("MACHINENAME")
+    private String machinename;
+
+    /**
+     * 项目名称
+     */
+    @TableField("PROJECTNAME")
+    private String projectname;
+
+    /**
+     * 报验完成状态,未完成,进行中,已完成
+     */
+    @TableField("INSPECTIONSTATUS")
+    private String inspectionstatus;
+}

+ 104 - 0
business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxItpProjectNodesFilesDo.java

@@ -0,0 +1,104 @@
+package com.rongwei.bsentity.domain;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.rongwei.rwcommon.base.BaseDo;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 项目ITP检查点报告模板
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("ZHCX_ITP_PROJECT_NODES_FILES")
+public class ZhcxItpProjectNodesFilesDo extends BaseDo {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键
+     */
+    @TableField("ID")
+    private String id;
+    /**
+     * 项目ID
+     */
+    @TableField("PROJECTID")
+    private String projectid;
+    /**
+     * 项目ITP节点ID
+     */
+    @TableField("PROJECTNODEID")
+    private String projectnodeid;
+    /**
+     * 地图节点ID
+     */
+    @TableField("NODEID")
+    private String nodeid;
+    /**
+     * 模板库ID
+     */
+    @TableField("TEMPID")
+    private String tempid;
+    /**
+     * 引用表单配置ID
+     */
+    @TableField("FORMID")
+    private String formid;
+    /**
+     * 引用表单配置名称
+     */
+    @TableField("FORMNAME")
+    private String formname;
+    /**
+     * 模板名称
+     */
+    @TableField("NAME")
+    private String name;
+    /**
+     * 模板类型
+     */
+    @TableField("TYPE")
+    private String type;
+    /**
+     * Word/Excel模板
+     */
+    @TableField("TEMPFILE")
+    private String tempfile;
+    /**
+     * 租户ID
+     */
+    @TableField("TENANTID")
+    private String tenantid;
+    /**
+     * 分包商
+     */
+    @TableField("USERSUPP")
+    private String usersupp;
+    /**
+     * 质检员
+     */
+    @TableField("USERQC")
+    private String userqc;
+    /**
+     * 监理
+     */
+    @TableField("USERJL")
+    private String userjl;
+    /**
+     * 扩展json格式配置
+     */
+    @TableField("ROPTION")
+    private String roption;
+
+
+}

+ 6 - 0
business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxItpTemplateNodesDo.java

@@ -156,5 +156,11 @@ public class ZhcxItpTemplateNodesDo extends BaseDo {
     @TableField("PATH")
     private String path;
 
+    /**
+     * 报验类型
+     */
+    @TableField("INSPECTIONTYPE")
+    private String inspectiontype;
+
 
 }

+ 94 - 0
business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxItpTemplateNodesFilesDo.java

@@ -0,0 +1,94 @@
+package com.rongwei.bsentity.domain;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.rongwei.rwcommon.base.BaseDo;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * ITP检查点报告模板
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("ZHCX_ITP_TEMPLATE_NODES_FILES")
+public class ZhcxItpTemplateNodesFilesDo extends BaseDo {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键
+     */
+    @TableField("ID")
+    private String id;
+    /**
+     * 地图节点ID
+     */
+    @TableField("NODEID")
+    private String nodeid;
+    /**
+     * 模板库ID
+     */
+    @TableField("TEMPID")
+    private String tempid;
+    /**
+     * 引用表单配置ID
+     */
+    @TableField("FORMID")
+    private String formid;
+    /**
+     * 引用表单配置名称
+     */
+    @TableField("FORMNAME")
+    private String formname;
+    /**
+     * 模板名称
+     */
+    @TableField("NAME")
+    private String name;
+    /**
+     * 模板类型
+     */
+    @TableField("TYPE")
+    private String type;
+    /**
+     * Word/Excel模板
+     */
+    @TableField("TEMPFILE")
+    private String tempfile;
+    /**
+     * 租户ID
+     */
+    @TableField("TENANTID")
+    private String tenantid;
+    /**
+     * 分包商
+     */
+    @TableField("USERSUPP")
+    private String usersupp;
+    /**
+     * 质检员
+     */
+    @TableField("USERQC")
+    private String userqc;
+    /**
+     * 监理
+     */
+    @TableField("USERJL")
+    private String userjl;
+    /**
+     * 扩展json格式配置
+     */
+    @TableField("ROPTION")
+    private String roption;
+
+
+}

+ 79 - 0
business-entity/src/main/java/com/rongwei/bsentity/domain/ZhcxProjectDeviceNumberDo.java

@@ -0,0 +1,79 @@
+package com.rongwei.bsentity.domain;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.rongwei.rwcommon.base.BaseDo;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 项目管理机号表
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("ZHCX_PROJECT_DEVICE_NUMBER")
+public class ZhcxProjectDeviceNumberDo extends BaseDo {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键
+     */
+    @TableField("ID")
+    private String id;
+    /**
+     * 租户id
+     */
+    @TableField("TENANTID")
+    private String tenantid;
+    /**
+     * 扩展json格式配置
+     */
+    @TableField("ROPTION")
+    private String roption;
+    /**
+     * 机号
+     */
+    @TableField("DEVICE_NUMBER")
+    private String deviceNumber;
+    /**
+     * 监理公司名称
+     */
+    @TableField("SUPERVISION_COMPANY")
+    private String supervisionCompany;
+    /**
+     * ITP地图id
+     */
+    @TableField("ITP_ID")
+    private String itpId;
+    /**
+     * ITP地图名称
+     */
+    @TableField("ITP_NAME")
+    private String itpName;
+    /**
+     * 父id
+     */
+    @TableField("PID")
+    private String pid;
+    /**
+     * 监理管理主键
+     */
+    @TableField("SUPERVISION_ID")
+    private String supervisionId;
+    /**
+     * 监理公司简称
+     */
+    @TableField("SUPERVISION_SHORT_COMPANY")
+    private String supervisionShortCompany;
+
+
+}

+ 35 - 0
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpProjectNodesController.java

@@ -0,0 +1,35 @@
+package com.rongwei.bsserver.controller;
+
+
+import com.rongwei.bscommon.sys.service.ZhcxItpProjectNodesService;
+import com.rongwei.rwcommon.base.R;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Map;
+
+/**
+ * <p>
+ * itp地图模板检验点 前端控制器
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-19
+ */
+@RestController
+@RequestMapping("/zhcxItpProjectNodes")
+public class ZhcxItpProjectNodesController {
+
+    @Autowired
+    private ZhcxItpProjectNodesService zhcxItpProjectNodesService;
+
+    @RequestMapping("/projectNodeQuote")
+    public R projectNodeQuote(@RequestBody Map<String,Object> map){
+        zhcxItpProjectNodesService.projectNodeQuote(map);
+        return R.ok();
+    }
+
+}
+

+ 20 - 0
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpProjectNodesFilesController.java

@@ -0,0 +1,20 @@
+package com.rongwei.bsserver.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ * 项目ITP检查点报告模板 前端控制器
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@RestController
+@RequestMapping("/zhcxItpProjectNodesFiles")
+public class ZhcxItpProjectNodesFilesController {
+
+}
+

+ 20 - 0
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxItpTemplateNodesFilesController.java

@@ -0,0 +1,20 @@
+package com.rongwei.bsserver.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ * ITP检查点报告模板 前端控制器
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@RestController
+@RequestMapping("/zhcxItpTemplateNodesFiles")
+public class ZhcxItpTemplateNodesFilesController {
+
+}
+

+ 20 - 0
business-server/src/main/java/com/rongwei/bsserver/controller/ZhcxProjectDeviceNumberController.java

@@ -0,0 +1,20 @@
+package com.rongwei.bsserver.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ * 项目管理机号表 前端控制器
+ * </p>
+ *
+ * @author fpy
+ * @since 2023-12-20
+ */
+@RestController
+@RequestMapping("/zhcxProjectDeviceNumber")
+public class ZhcxProjectDeviceNumberController {
+
+}
+