Kaynağa Gözat

添加基本的dao,集团创建sop接口代码重构

weijinhao 3 yıl önce
ebeveyn
işleme
f5271183bb
30 değiştirilmiş dosya ile 917 ekleme ve 0 silme
  1. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopEquipModelRelMapper.java
  2. 20 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopEquipModelRelMapper.xml
  3. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopLabelRelMapper.java
  4. 20 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopLabelRelMapper.xml
  5. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopMapper.java
  6. 38 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopMapper.xml
  7. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopObjRelMapper.java
  8. 21 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopObjRelMapper.xml
  9. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopOrderTypeRelMapper.java
  10. 21 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopOrderTypeRelMapper.xml
  11. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopSopRelMapper.java
  12. 21 0
      fm-sop/src/main/java/com/persagy/fm/sop/dao/SopSopRelMapper.xml
  13. 150 0
      fm-sop/src/main/java/com/persagy/fm/sop/model/dto/Sop.java
  14. 63 0
      fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopEquipModelRel.java
  15. 63 0
      fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopLabelRel.java
  16. 71 0
      fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopObjRel.java
  17. 65 0
      fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopOrderTypeRel.java
  18. 68 0
      fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopSopRel.java
  19. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/SopEquipModelRelService.java
  20. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/SopLabelRelService.java
  21. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/SopObjRelService.java
  22. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/SopOrderTypeRelService.java
  23. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/SopService.java
  24. 16 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/SopSopRelService.java
  25. 20 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopEquipModelRelServiceImpl.java
  26. 20 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopLabelRelServiceImpl.java
  27. 20 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopObjRelServiceImpl.java
  28. 20 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopOrderTypeRelServiceImpl.java
  29. 20 0
      fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopSopRelServiceImpl.java
  30. 4 0
      fm-sop/src/main/java/com/persagy/fm/sop/utils/TimeUtils.java

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopEquipModelRelMapper.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.dao;
+
+import com.persagy.fm.sop.model.dto.SopEquipModelRel;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopEquipModelRelMapper extends BaseMapper<SopEquipModelRel> {
+
+}

+ 20 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopEquipModelRelMapper.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.persagy.fm.sop.dao.SopEquipModelRelMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.persagy.fm.sop.model.dto.SopEquipModelRel">
+        <id column="sop_equip_model_id" property="sopEquipModelId" />
+        <result column="sop_id" property="sopId" />
+        <result column="equip_model_id" property="equipModelId" />
+        <result column="create_time" property="createTime" />
+        <result column="update_time" property="updateTime" />
+        <result column="valid" property="valid" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        sop_equip_model_id, sop_id, equip_model_id, create_time, update_time, valid
+    </sql>
+
+</mapper>

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopLabelRelMapper.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.dao;
+
+import com.persagy.fm.sop.model.dto.SopLabelRel;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopLabelRelMapper extends BaseMapper<SopLabelRel> {
+
+}

+ 20 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopLabelRelMapper.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.persagy.fm.sop.dao.SopLabelRelMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.persagy.fm.sop.model.dto.SopLabelRel">
+        <id column="sop_label_id" property="sopLabelId" />
+        <result column="sop_id" property="sopId" />
+        <result column="label" property="label" />
+        <result column="create_time" property="createTime" />
+        <result column="update_time" property="updateTime" />
+        <result column="valid" property="valid" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        sop_label_id, sop_id, label, create_time, update_time, valid
+    </sql>
+
+</mapper>

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopMapper.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.dao;
+
+import com.persagy.fm.sop.model.dto.Sop;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopMapper extends BaseMapper<Sop> {
+
+}

+ 38 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopMapper.xml

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.persagy.fm.sop.dao.SopMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.persagy.fm.sop.model.dto.Sop">
+        <id column="sop_id" property="sopId" />
+        <result column="project_id" property="projectId" />
+        <result column="extend_field" property="extendField" />
+        <result column="operator" property="operator" />
+        <result column="sop_name" property="sopName" />
+        <result column="sop_type" property="sopType" />
+        <result column="no_obj" property="noObj" />
+        <result column="domains" property="domains" />
+        <result column="order_type" property="orderType" />
+        <result column="tools" property="tools" />
+        <result column="fit_objs" property="fitObjs" />
+        <result column="equip_model_ids" property="equipModelIds" />
+        <result column="labels" property="labels" />
+        <result column="steps_version" property="stepsVersion" />
+        <result column="steps" property="steps" />
+        <result column="related_data" property="relatedData" />
+        <result column="sop_status" property="sopStatus" />
+        <result column="publish_status" property="publishStatus" />
+        <result column="ref_sop_ids" property="refSopIds" />
+        <result column="version_count" property="versionCount" />
+        <result column="version_explain" property="versionExplain" />
+        <result column="version_exp" property="versionExp" />
+        <result column="valid" property="valid" />
+        <result column="update_time" property="updateTime" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        sop_id, project_id, extend_field, operator, sop_name, sop_type, no_obj, domains, order_type, tools, fit_objs, equip_model_ids, labels, steps_version, steps, related_data, sop_status, publish_status, ref_sop_ids, version_count, version_explain, version_exp, valid, update_time
+    </sql>
+
+</mapper>

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopObjRelMapper.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.dao;
+
+import com.persagy.fm.sop.model.dto.SopObjRel;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopObjRelMapper extends BaseMapper<SopObjRel> {
+
+}

+ 21 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopObjRelMapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.persagy.fm.sop.dao.SopObjRelMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.persagy.fm.sop.model.dto.SopObjRel">
+        <id column="sop_obj_id" property="sopObjId" />
+        <result column="sop_id" property="sopId" />
+        <result column="obj_id" property="objId" />
+        <result column="obj_type" property="objType" />
+        <result column="create_time" property="createTime" />
+        <result column="update_time" property="updateTime" />
+        <result column="valid" property="valid" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        sop_obj_id, sop_id, obj_id, obj_type, create_time, update_time, valid
+    </sql>
+
+</mapper>

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopOrderTypeRelMapper.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.dao;
+
+import com.persagy.fm.sop.model.dto.SopOrderTypeRel;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopOrderTypeRelMapper extends BaseMapper<SopOrderTypeRel> {
+
+}

+ 21 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopOrderTypeRelMapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.persagy.fm.sop.dao.SopOrderTypeRelMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.persagy.fm.sop.model.dto.SopOrderTypeRel">
+        <id column="sop_order_type_id" property="sopOrderTypeId" />
+        <result column="sop_id" property="sopId" />
+        <result column="project_id" property="projectId" />
+        <result column="order_type" property="orderType" />
+        <result column="create_time" property="createTime" />
+        <result column="update_time" property="updateTime" />
+        <result column="valid" property="valid" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        sop_order_type_id, sop_id, project_id, order_type, create_time, update_time, valid
+    </sql>
+
+</mapper>

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopSopRelMapper.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.dao;
+
+import com.persagy.fm.sop.model.dto.SopSopRel;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopSopRelMapper extends BaseMapper<SopSopRel> {
+
+}

+ 21 - 0
fm-sop/src/main/java/com/persagy/fm/sop/dao/SopSopRelMapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.persagy.fm.sop.dao.SopSopRelMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.persagy.fm.sop.model.dto.SopSopRel">
+        <id column="sop_sop_id" property="sopSopId" />
+        <result column="project_id" property="projectId" />
+        <result column="sop_id" property="sopId" />
+        <result column="rel_sop_id" property="relSopId" />
+        <result column="create_time" property="createTime" />
+        <result column="update_time" property="updateTime" />
+        <result column="valid" property="valid" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        sop_sop_id, project_id, sop_id, rel_sop_id, create_time, update_time, valid
+    </sql>
+
+</mapper>

+ 150 - 0
fm-sop/src/main/java/com/persagy/fm/sop/model/dto/Sop.java

@@ -0,0 +1,150 @@
+package com.persagy.fm.sop.model.dto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+public class Sop extends Model<Sop> {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * sopid SOP+uuid
+     */
+    @TableId(value = "sop_id", type = IdType.ASSIGN_UUID)
+    private String sopId;
+
+    /**
+     * sop所属的项目 集团sop的项目Id默认为"group_sop_id"
+     */
+    private String projectId;
+
+    /**
+     * 项目类型:同一级建筑功能类型 ,字段使用原有的extend_field保存
+     */
+    private String extendField;
+
+    /**
+     * 表示sop的发布者、更新者
+     */
+    private String operator;
+
+    /**
+     * 名称,项目下唯一
+     */
+    private String sopName;
+
+    /**
+     * 1-集团,2-项目专用
+     */
+    private String sopType;
+
+    /**
+     * 0-否 1-是
+     */
+    private String noObj;
+
+    /**
+     * 数组[code,code],
+子项:SE-强电,WE-弱电,AC-空调,WS-给排水,FF-消防,SP-安防
+     */
+    private String domains;
+
+    /**
+     * 数组[code,code]
+     */
+    private String orderType;
+
+    /**
+     * 数组[{"tool":“……”,"from_step":true}]
+     */
+    private String tools;
+
+    /**
+     * [{
+      "obj_id:"***", //对象id
+      "obj_name:"对象名称1", //对象名称
+      "obj_type":"equip",  //对象类型,子项见后边
+}]
+obj_tye:build-建筑、floor-楼层、space-空间、system-系统实例、equip-设备实例,system_class-系统类、equip_class-设备类
+     */
+    private String fitObjs;
+
+    /**
+     * [equip_model_id,equip_model_id]
+     */
+    private String equipModelIds;
+
+    /**
+     * [name,name]
+     */
+    private String labels;
+
+    /**
+     * 步骤的版本
+     */
+    private String stepsVersion;
+
+    /**
+     * 步骤
+     */
+    private String steps;
+
+    /**
+     * [{"name":"***',“url”:“***”},{}]
+     */
+    private String relatedData;
+
+    /**
+     * 1-已发布、2-已作废
+     */
+    private String sopStatus;
+
+    /**
+     * 1-正常、2-待修订、3-修订中
+     */
+    private String publishStatus;
+
+    /**
+     * id的数组[sop_id,sop_id]
+     */
+    private String refSopIds;
+
+    private String versionCount;
+
+    private String versionExplain;
+
+    /**
+     * 数组[“描述”,“描述”]
+     */
+    private String versionExp;
+
+    /**
+     * 是否有效
+     */
+    private Boolean valid;
+
+    private String updateTime;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.sopId;
+    }
+
+}

+ 63 - 0
fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopEquipModelRel.java

@@ -0,0 +1,63 @@
+package com.persagy.fm.sop.model.dto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+public class SopEquipModelRel extends Model<SopEquipModelRel> {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键ID
+     */
+    @TableId(value = "sop_equip_model_id", type = IdType.ASSIGN_UUID)
+    private String sopEquipModelId;
+
+    /**
+     * sop的主键id
+     */
+    private String sopId;
+
+    /**
+     * 设备型号id
+     */
+    private String equipModelId;
+
+    /**
+     * 创建时间
+     */
+    private String createTime;
+
+    /**
+     * 更新时间
+     */
+    private String updateTime;
+
+    /**
+     * 有效状态
+     */
+    private Boolean valid;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.sopEquipModelId;
+    }
+
+}

+ 63 - 0
fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopLabelRel.java

@@ -0,0 +1,63 @@
+package com.persagy.fm.sop.model.dto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+public class SopLabelRel extends Model<SopLabelRel> {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键ID
+     */
+    @TableId(value = "sop_label_id", type = IdType.ASSIGN_UUID)
+    private String sopLabelId;
+
+    /**
+     * sop的主键id
+     */
+    private String sopId;
+
+    /**
+     * 标签名称
+     */
+    private String label;
+
+    /**
+     * 创建时间
+     */
+    private String createTime;
+
+    /**
+     * 更新时间
+     */
+    private String updateTime;
+
+    /**
+     * 有效状态
+     */
+    private Boolean valid;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.sopLabelId;
+    }
+
+}

+ 71 - 0
fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopObjRel.java

@@ -0,0 +1,71 @@
+package com.persagy.fm.sop.model.dto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Builder;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Data
+@Builder
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+public class SopObjRel extends Model<SopObjRel> {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键ID
+     */
+    @TableId(value = "sop_obj_id", type = IdType.ASSIGN_UUID)
+    private String sopObjId;
+
+    /**
+     * sop的主键id
+     */
+    private String sopId;
+
+    /**
+     * 对象id
+     */
+    private String objId;
+
+    /**
+     * obj_tye:build-建筑、floor-楼层、space-空间、system-系统实例、equip-设备实例,system_class-系统类、equip_class-设备类,component-部件,tool-工具
+     */
+    private String objType;
+
+    /**
+     * 创建时间
+     */
+    private String createTime;
+
+    /**
+     * 更新时间
+     */
+    private String updateTime;
+
+    /**
+     * 有效状态
+     */
+    private Boolean valid;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.sopObjId;
+    }
+
+}

+ 65 - 0
fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopOrderTypeRel.java

@@ -0,0 +1,65 @@
+package com.persagy.fm.sop.model.dto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+public class SopOrderTypeRel extends Model<SopOrderTypeRel> {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键ID
+     */
+    @TableId(value = "sop_order_type_id", type = IdType.ASSIGN_UUID)
+    private String sopOrderTypeId;
+
+    /**
+     * sop的主键id
+     */
+    private String sopId;
+
+    /**
+     * 项目id
+     */
+    private String projectId;
+
+    /**
+     * 工单类型
+     */
+    private String orderType;
+
+    /**
+     * 创建时间
+     */
+    private String createTime;
+
+    /**
+     * 更新时间
+     */
+    private String updateTime;
+
+    private Boolean valid;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.sopOrderTypeId;
+    }
+
+}

+ 68 - 0
fm-sop/src/main/java/com/persagy/fm/sop/model/dto/SopSopRel.java

@@ -0,0 +1,68 @@
+package com.persagy.fm.sop.model.dto;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+public class SopSopRel extends Model<SopSopRel> {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 主键ID
+     */
+    @TableId(value = "sop_sop_id", type = IdType.ASSIGN_UUID)
+    private String sopSopId;
+
+    /**
+     * 项目id
+     */
+    private String projectId;
+
+    /**
+     * sop的主键id
+     */
+    private String sopId;
+
+    /**
+     * 被引用sop的主键id
+     */
+    private String relSopId;
+
+    /**
+     * 创建时间
+     */
+    private String createTime;
+
+    /**
+     * 更新时间
+     */
+    private String updateTime;
+
+    /**
+     * 有效状态
+     */
+    private Boolean valid;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.sopSopId;
+    }
+
+}

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/SopEquipModelRelService.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.service;
+
+import com.persagy.fm.sop.model.dto.SopEquipModelRel;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopEquipModelRelService extends IService<SopEquipModelRel> {
+
+}

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/SopLabelRelService.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.service;
+
+import com.persagy.fm.sop.model.dto.SopLabelRel;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopLabelRelService extends IService<SopLabelRel> {
+
+}

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/SopObjRelService.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.service;
+
+import com.persagy.fm.sop.model.dto.SopObjRel;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopObjRelService extends IService<SopObjRel> {
+
+}

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/SopOrderTypeRelService.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.service;
+
+import com.persagy.fm.sop.model.dto.SopOrderTypeRel;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopOrderTypeRelService extends IService<SopOrderTypeRel> {
+
+}

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/SopService.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.service;
+
+import com.persagy.fm.sop.model.dto.Sop;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopService extends IService<Sop> {
+
+}

+ 16 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/SopSopRelService.java

@@ -0,0 +1,16 @@
+package com.persagy.fm.sop.service;
+
+import com.persagy.fm.sop.model.dto.SopSopRel;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+public interface SopSopRelService extends IService<SopSopRel> {
+
+}

+ 20 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopEquipModelRelServiceImpl.java

@@ -0,0 +1,20 @@
+package com.persagy.fm.sop.service.impl;
+
+import com.persagy.fm.sop.model.dto.SopEquipModelRel;
+import com.persagy.fm.sop.dao.SopEquipModelRelMapper;
+import com.persagy.fm.sop.service.SopEquipModelRelService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Service
+public class SopEquipModelRelServiceImpl extends ServiceImpl<SopEquipModelRelMapper, SopEquipModelRel> implements SopEquipModelRelService {
+
+}

+ 20 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopLabelRelServiceImpl.java

@@ -0,0 +1,20 @@
+package com.persagy.fm.sop.service.impl;
+
+import com.persagy.fm.sop.model.dto.SopLabelRel;
+import com.persagy.fm.sop.dao.SopLabelRelMapper;
+import com.persagy.fm.sop.service.SopLabelRelService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Service
+public class SopLabelRelServiceImpl extends ServiceImpl<SopLabelRelMapper, SopLabelRel> implements SopLabelRelService {
+
+}

+ 20 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopObjRelServiceImpl.java

@@ -0,0 +1,20 @@
+package com.persagy.fm.sop.service.impl;
+
+import com.persagy.fm.sop.model.dto.SopObjRel;
+import com.persagy.fm.sop.dao.SopObjRelMapper;
+import com.persagy.fm.sop.service.SopObjRelService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Service
+public class SopObjRelServiceImpl extends ServiceImpl<SopObjRelMapper, SopObjRel> implements SopObjRelService {
+
+}

+ 20 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopOrderTypeRelServiceImpl.java

@@ -0,0 +1,20 @@
+package com.persagy.fm.sop.service.impl;
+
+import com.persagy.fm.sop.model.dto.SopOrderTypeRel;
+import com.persagy.fm.sop.dao.SopOrderTypeRelMapper;
+import com.persagy.fm.sop.service.SopOrderTypeRelService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Service
+public class SopOrderTypeRelServiceImpl extends ServiceImpl<SopOrderTypeRelMapper, SopOrderTypeRel> implements SopOrderTypeRelService {
+
+}

+ 20 - 0
fm-sop/src/main/java/com/persagy/fm/sop/service/impl/SopSopRelServiceImpl.java

@@ -0,0 +1,20 @@
+package com.persagy.fm.sop.service.impl;
+
+import com.persagy.fm.sop.model.dto.SopSopRel;
+import com.persagy.fm.sop.dao.SopSopRelMapper;
+import com.persagy.fm.sop.service.SopSopRelService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author weijinhao
+ * @since 2021-03-16
+ */
+@Service
+public class SopSopRelServiceImpl extends ServiceImpl<SopSopRelMapper, SopSopRel> implements SopSopRelService {
+
+}

+ 4 - 0
fm-sop/src/main/java/com/persagy/fm/sop/utils/TimeUtils.java

@@ -0,0 +1,4 @@
+package com.persagy.fm.sop.utils;
+
+public class TimeUtils {
+}