Explorar el Código

盯盘运营操作记录自定义列

yangzian hace 3 años
padre
commit
9cb463b53a

+ 9 - 3
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

@@ -1777,9 +1777,15 @@
 
 
     <select id="getColumnInfo" resultType="com.alibaba.fastjson.JSONObject">
-
-        select json from ctop_column_load where user_id = #{userId} and column_type = #{columnType}
-
+        select json from ctop_column_load where
+       <where>
+            <if test="userId != null and userId != '' ">
+                AND user_id = #{userId}
+            </if>
+            <if test="columnType != null and columnType != '' ">
+                AND column_type = #{columnType}
+            </if>
+        </where>
     </select>