ZhuDeKang 6 tháng trước cách đây
mục cha
commit
6fbe7361b5

+ 10 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/domain/MdModelInfo.java

@@ -230,6 +230,16 @@ public class MdModelInfo extends BaseEntity {
      */
     private String registrant;
 
+    private Integer sort;
+
+    public Integer getSort() {
+        return sort;
+    }
+
+    public void setSort(Integer sort) {
+        this.sort = sort;
+    }
+
     public MdModelInfo(String mdid, String fileid) {
         this.mdid = mdid;
         this.mirrorImageDesc = fileid;

+ 16 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/domain/PtTreeCate.java

@@ -165,4 +165,20 @@ public class PtTreeCate extends BaseEntity
             .append("modifyby", getModifyby())
             .toString();
     }
+
+    public PtTreeCate(String treeId, String treeType, String treePid, String itemName, Long itemNo, String itemNotes, Date modifyby, Date createby, String nodeType, List<PtTreeCate> children) {
+        this.treeId = treeId;
+        this.treeType = treeType;
+        this.treePid = treePid;
+        this.itemName = itemName;
+        this.itemNo = itemNo;
+        this.itemNotes = itemNotes;
+        this.modifyby = modifyby;
+        this.createby = createby;
+        this.nodeType = nodeType;
+        this.children = children;
+    }
+
+    public PtTreeCate() {
+    }
 }

+ 1 - 0
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/domain/SysCate.java

@@ -113,3 +113,4 @@ public class SysCate {
         this.cateName = cateName;
     }
 }
+

+ 8 - 1
ruoyi-api-patform/src/main/resources/mapper/interfaces/MdModelInfoMapper.xml

@@ -36,6 +36,7 @@
         <result property="createBy" column="createBy"/>
         <result property="modifyBy" column="modifyBy"/>
         <result property="registrant" column="registrant"/>
+        <result property="sort" column="sort"/>
     </resultMap>
 
     <sql id="selectMdModelInfoVo">
@@ -69,7 +70,8 @@
                mirrorImageDesc,
                createBy,
                modifyBy,
-               registrant
+               registrant,
+               sort
         from md_model_info
     </sql>
 
@@ -109,7 +111,9 @@
             <if test="createBy != null ">and createBy = #{createBy}</if>
             <if test="modifyBy != null ">and modifyBy = #{modifyBy}</if>
             <if test="registrant != null ">and registrant = #{registrant}</if>
+            <if test="sort != null ">and sort = #{sort}</if>
         </where>
+        order by sort
     </select>
 
     <select id="selectMdModelInfoByMdid" parameterType="String" resultMap="MdModelInfoResult">
@@ -151,6 +155,7 @@
             <if test="createBy != null">createBy,</if>
             <if test="modifyBy != null">modifyBy,</if>
             <if test="registrant != null">registrant,</if>
+            <if test="sort != null">sort,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="mdid != null">#{mdid},</if>
@@ -184,6 +189,7 @@
             <if test="createBy != null">#{createBy},</if>
             <if test="modifyBy != null">#{modifyBy},</if>
             <if test="registrant != null">#{registrant},</if>
+            <if test="sort != null">#{sort},</if>
         </trim>
     </insert>
 
@@ -220,6 +226,7 @@
             <if test="createBy != null">createBy = #{createBy},</if>
             <if test="modifyBy != null">modifyBy = #{modifyBy},</if>
             <if test="registrant != null">registrant = #{registrant},</if>
+            <if test="sort != null">sort = #{sort},</if>
         </trim>
         where mdid = #{mdid}
     </update>