Forráskód Böngészése

字段列表排序

xzc 2 hete
szülő
commit
35e4a7153c

+ 1 - 1
tz-module-pressure2/tz-module-pressure2-biz/src/main/resources/mapper/dynamictb/DynamicTbMapper.xml

@@ -15,7 +15,7 @@
         (select max(tb1.version_no) from PRESSURE2_DYNAMIC_TB tb1 where tb1.tb_code=tb.tb_code) as version_max
         from PRESSURE2_DYNAMIC_TB tb INNER JOIN
         PRESSURE2_DYNAMIC_TB_COL tc on tb.id=tc.TB_ID or tc.COL_ROUND = 3 or tc.COL_ROUND = 2
-        where tc.deleted=0
+        where tc.deleted=0 order by tc.col_round desc ,tc.CREATE_TIME
         ) t
         <where>
             <if test="tbCode != null and tbCode != ''"> AND t.tb_code = #{tbCode} </if>