Browse Source

数据查询排序

DESKTOP-2K9OVK9\siwei 4 months ago
parent
commit
2c56e0e736

+ 1 - 0
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/dimentity/TEntityCodeAttributeMapper.xml

@@ -38,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="remarks != null  and remarks != ''"> and remarks = #{remarks}</if>
             <if test="sort != null "> and sort = #{sort}</if>
         </where>
+         order by sort asc
     </select>
     
     <select id="selectTEntityCodeAttributeById" parameterType="String" resultMap="TEntityCodeAttributeResult">

+ 1 - 0
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/dimentity/TEntityCodeTableMapper.xml

@@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="entilayer != null  and entilayer != ''"> and entilayer = #{entilayer}</if>
             <if test="entilaytype != null  and entilaytype != ''"> and entilaytype = #{entilaytype}</if>
         </where>
+        order by fourcode asc
     </select>
     
     <select id="selectTEntityCodeTableById" parameterType="String" resultMap="TEntityCodeTableResult">