ソースを参照

优化加入演示表示

java110 3 年 前
コミット
067dc63eea
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      java110-db/src/main/resources/mapper/report/BaseDataStatisticsServiceDaoImplMapper.xml

+ 2 - 2
java110-db/src/main/resources/mapper/report/BaseDataStatisticsServiceDaoImplMapper.xml

@@ -217,11 +217,11 @@
         <if test="link != null and link != ''">
         <if test="link != null and link != ''">
             and bo.link = #{link}
             and bo.link = #{link}
         </if>
         </if>
-        order by t.create_time desc
         group by t.fee_coefficient ,t.section,t.remark,t.user_id ,
         group by t.fee_coefficient ,t.section,t.remark,t.user_id ,
         t.room_id ,t.layer,t.built_up_area,t.room_num,t.unit_id,t.b_id,t.apartment,t.state,t.community_id,t.room_type,
         t.room_id ,t.layer,t.built_up_area,t.room_num,t.unit_id,t.b_id,t.apartment,t.state,t.community_id,t.room_type,
         t.room_sub_type,t.room_rent,t.room_area,t.room_rent,t.room_area,
         t.room_sub_type,t.room_rent,t.room_area,t.room_rent,t.room_area,
         f.floor_num ,bu.unit_num ,bo.name ,bo.owner_id ,bo.link
         f.floor_num ,bu.unit_num ,bo.name ,bo.owner_id ,bo.link
+        order by t.create_time desc
         ) a
         ) a
         <if test="page != -1 and page != null">
         <if test="page != -1 and page != null">
             limit #{page},#{row}
             limit #{page},#{row}
@@ -330,11 +330,11 @@
         <if test="link != null and link != ''">
         <if test="link != null and link != ''">
             and bo.link = #{link}
             and bo.link = #{link}
         </if>
         </if>
-        order by t.create_time desc
         group by t.fee_coefficient ,t.section,t.remark,t.user_id ,
         group by t.fee_coefficient ,t.section,t.remark,t.user_id ,
         t.room_id ,t.layer,t.built_up_area,t.room_num,t.unit_id,t.b_id,t.apartment,t.state,t.community_id,t.room_type,
         t.room_id ,t.layer,t.built_up_area,t.room_num,t.unit_id,t.b_id,t.apartment,t.state,t.community_id,t.room_type,
         t.room_sub_type,t.room_rent,t.room_area,t.room_rent,t.room_area,
         t.room_sub_type,t.room_rent,t.room_area,t.room_rent,t.room_area,
         f.floor_num ,bu.unit_num ,bo.name ,bo.owner_id ,bo.link
         f.floor_num ,bu.unit_num ,bo.name ,bo.owner_id ,bo.link
+        order by t.create_time desc
         ) a
         ) a
         <if test="page != -1 and page != null">
         <if test="page != -1 and page != null">
             limit #{page},#{row}
             limit #{page},#{row}