魏超 5 anni fa
parent
commit
0902b98f43
1 ha cambiato i file con 7 aggiunte e 6 eliminazioni
  1. 7
    6
      src/main/resources/mapper/HelpActivityMapper.xml

+ 7
- 6
src/main/resources/mapper/HelpActivityMapper.xml Vedi File

@@ -72,7 +72,8 @@
72 72
                 a.end_date as endDate,
73 73
                 a.`status` as status,
74 74
                 a.activity_status as activityStatus,
75
-				"help" AS type
75
+				"help" AS type,
76
+                a.heavy
76 77
 			FROM
77 78
 				ta_help_activity a
78 79
 				WHERE
@@ -86,7 +87,6 @@
86 87
                 <if test="buildingId != null and buildingId != ''">
87 88
                   and a.building_id = #{buildingId}
88 89
                 </if>
89
-                 order  by a.heavy desc
90 90
 		)
91 91
 		UNION ALL
92 92
 			(
@@ -99,7 +99,8 @@
99 99
                     s.end_time as endDate,
100 100
                     s.status as status,
101 101
                     s.activity_status as activityStatus,
102
-					"group" AS type
102
+					"group" AS type,
103
+                    s.heavy
103 104
 				FROM
104 105
 					ta_share_activity s
105 106
 					WHERE
@@ -113,7 +114,6 @@
113 114
                 <if test="buildingId != null and buildingId != ''">
114 115
                     and s.building_id = #{buildingId}
115 116
                 </if>
116
-                order  by s.heavy desc
117 117
 			)
118 118
 		UNION ALL
119 119
 		    (
@@ -126,7 +126,8 @@
126 126
                 t.end_date as endDate,
127 127
                 t.status as status,
128 128
                 t.activity_status as activityStatus,
129
-                "activity" AS type
129
+                "activity" AS type,
130
+                t.heavy
130 131
                 FROM
131 132
                 ta_building_dynamic t
132 133
                 WHERE
@@ -140,8 +141,8 @@
140 141
                 <if test="buildingId != null and buildingId != ''">
141 142
                     and t.building_id = #{buildingId}
142 143
                 </if>
143
-                order  by t.heavy desc
144 144
             )
145
+            order by heavy
145 146
     </select>
146 147
 
147 148
     <select id="helpActivityListEffectivePage" resultType="com.huiju.estateagents.entity.HelpActivity">