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