瀏覽代碼

bug修复

lgs 11 月之前
父節點
當前提交
d4384419fa
共有 1 個文件被更改,包括 8 次插入5 次删除
  1. 8 5
      src/main/resources/mapper/FieldDefineMapper.xml

+ 8 - 5
src/main/resources/mapper/FieldDefineMapper.xml

@@ -36,7 +36,10 @@
 
     <!-- 通用查询结果列 -->
     <sql id="Base_Column_List">
-        d.category,
+        d
+        .
+        category
+        ,
         d.create_by,
         d.create_time,
         d.fetch_logic,
@@ -72,7 +75,7 @@
         from field_define
         where category = #{cat}
           and is_deleted = 0
-        order by create_time desc,id desc
+        order by create_time desc, id desc
 
 
     </select>
@@ -82,7 +85,7 @@
         from field_define
         WHERE name_zh LIKE concat('%', #{info}, '%')
           and is_deleted = 0
-        order by create_time desc,id desc
+        order by create_time desc, id desc
 
     </select>
 
@@ -91,7 +94,7 @@
         from field_define
         WHERE name_zh LIKE concat('%', #{info}, '%')
           and is_deleted = 0
-        order by create_time desc,id desc
+        order by create_time desc, id desc
 
     </select>
 
@@ -107,7 +110,7 @@
         from field_define d
         LEFT JOIN product_field_ref r on d.field_no = r.field_no
         where r.product_num = #{productNum}
-        <if test="oneLevel!=null">
+        <if test="oneLevel!=null and oneLevel!=''">
             and d.one_level = #{oneLevel}
         </if>
         <if test="category!=null">