Procházet zdrojové kódy

安品速度优化,列设置增加字段

纪新园 před 1 měsícem
rodič
revize
c4ce3064ab

+ 13 - 1
ruoyi-system/src/main/java/com/ruoyi/system/domain/SysTableSet.java

@@ -14,7 +14,7 @@ import java.util.Map;
 
 /**
  * 列宽修改对象 sys_table_set
- * 
+ *
  * @author ruoyi
  * @date 2021-01-30
  */
@@ -71,6 +71,18 @@ private static final long serialVersionUID=1L;
     @Excel(name = "正则表达式")
     private String onabort;
 
+    /**返回值id*/
+    @Excel(name = "返回值id")
+    private String resId;
+
+    /** 查询字段 */
+    @Excel(name = "查询字段")
+    private String resName;
+
+    /** 下拉数据接口 */
+    @Excel(name = "下拉数据接口")
+    private String url;
+
     @TableField(exist = false)
     private Map<String, Object> params = new HashMap<>();
 }

+ 18 - 2
ruoyi-system/src/main/resources/mapper/system/SysTableSetMapper.xml

@@ -18,11 +18,15 @@
         <result property="operation"    column="operation"    />
         <result property="disabled"    column="disabled"    />
         <result property="onabort"    column="onabort"    />
+        <result property="resId"    column="res_id"    />
+        <result property="resName"    column="res_name"    />
+        <result property="url"    column="url"    />
 
     </resultMap>
 
     <sql id="selectSysTableSetVo">
-        select id, table_name, user_id, surface, label, fixed, name, checked, width,changeable, operation, disabled, onabort from sys_table_set
+        select id, table_name, user_id, surface, label, fixed, name, checked, width,changeable, operation, disabled, onabort,res_id,
+            res_name,url from sys_table_set
     </sql>
 
     <select id="selectSysTableSetList" parameterType="SysTableSet" resultMap="SysTableSetResult">
@@ -40,6 +44,9 @@
             <if test="operation != null "> and operation = #{operation}</if>
             <if test="disabled != null  and disabled != ''"> and disabled = #{disabled}</if>
             <if test="onabort != null  and onabort != ''"> and onabort = #{onabort}</if>
+            <if test="resId != null  and resId != ''"> and res_id = #{resId}</if>
+            <if test="resName != null  and resName != ''"> and res_name = #{resName}</if>
+            <if test="url != null  and url != ''"> and url = #{url}</if>
         </where>
     </select>
 
@@ -76,6 +83,9 @@
             <if test="operation != null">operation,</if>
             <if test="disabled != null">disabled,</if>
             <if test="onabort != null">onabort,</if>
+            <if test="resId != null">res_id,</if>
+            <if test="resName != null">res_name,</if>
+            <if test="url != null">url,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="tableName != null">#{tableName},</if>
@@ -90,6 +100,9 @@
             <if test="operation != null">#{operation},</if>
             <if test="disabled != null">#{disabled},</if>
             <if test="onabort != null">#{onabort},</if>
+            <if test="resId != null">#{resId},</if>
+            <if test="resName != null">#{resName},</if>
+            <if test="url != null">#{url},</if>
         </trim>
     </insert>
 
@@ -108,6 +121,9 @@
             <if test="operation != null">operation = #{operation},</if>
             <if test="disabled != null">disabled = #{disabled},</if>
             <if test="onabort != null">onabort = #{onabort},</if>
+            <if test="resId != null">res_id = #{resId},</if>
+            <if test="resName != null">res_name = #{resName},</if>
+            <if test="url != null">url = #{url},</if>
         </trim>
         where id = #{id}
     </update>
@@ -151,4 +167,4 @@
         </foreach>
     </delete>
 
-</mapper>
+</mapper>