소스 검색

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

yangzian 3 년 전
부모
커밋
9cb463b53a
1개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  1. 9 3
      jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

+ 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>