Parcourir la source

驾驶舱排列

LAPTOP-BJJ3IV5R\SIWEI il y a 10 mois
Parent
commit
1d386fbadc

+ 4 - 2
onemap-modules/onemap-system/src/main/resources/mapper/postgresql/system/TJscSqlMapper.xml

@@ -23,11 +23,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <select id="selectTJscSqlList" parameterType="TJscSql" resultMap="TJscSqlResult">
         <include refid="selectTJscSqlVo"/>
-        <where>  
-            <if test="jscType != null  and jscType != ''"> and jsc_type &gt; #{jscType}  </if>
+        <where>
+            <if test="jscName != null  and jscName != ''"> and jsc_name  like concat('%', #{jscName}, '%')</if>
+            <if test="jscType != null  and jscType != ''"> and jsc_type  like concat('%', #{jscType}, '%')</if>
             <if test="jscView != null  and jscView != ''"> and jsc_view = #{jscView}</if>
             <if test="jscSql != null  and jscSql != ''"> and jsc_sql = #{jscSql}</if>
         </where>
+        order by create_time desc
     </select>
     
     <select id="selectTJscSqlById" parameterType="String" resultMap="TJscSqlResult">