Просмотр исходного кода

监管模块-首页列表动态排序

ZhangWenQiang 5 лет назад
Родитель
Сommit
46cc86bc12

+ 2 - 2
happy-boot-module-flexjob/src/main/java/org/jeecg/modules/hwuser/mapper/xml/HwUserMapper.xml

@@ -270,10 +270,10 @@
 		</if>
 		<if test="hwUser.column != null">
 			<if test="hwUser.order != null and hwUser.order == 'desc'">
-				ORDER BY #{hwUser.column} DESC, paymentNumber DESC,a.id asc
+				ORDER BY ${hwUser.column} DESC, paymentNumber DESC,a.id asc
 			</if>
 			<if test="hwUser.order != null and hwUser.order == 'asc'">
-				ORDER BY #{hwUser.column} ASC, paymentNumber DESC,a.id asc
+				ORDER BY ${hwUser.column} ASC, paymentNumber DESC,a.id asc
 			</if>
 		</if>
 	</select>

+ 2 - 2
happy-boot-module-flexjob/src/main/java/org/jeecg/modules/saasmanager/mapper/xml/HwPlatformCompanyMapper.xml

@@ -143,10 +143,10 @@
         </if>
         <if test="hwPlatformCompany.column != null">
             <if test="hwPlatformCompany.order != null and hwPlatformCompany.order == 'desc'">
-                ORDER BY #{hwPlatformCompany.column} DESC, paymentNumber DESC, a.id ASC
+                ORDER BY ${hwPlatformCompany.column} DESC, paymentNumber DESC, a.id ASC
             </if>
             <if test="hwPlatformCompany.order != null and hwPlatformCompany.order == 'asc'">
-                ORDER BY #{hwPlatformCompany.column} ASC, paymentNumber DESC, a.id ASC
+                ORDER BY ${hwPlatformCompany.column} ASC, paymentNumber DESC, a.id ASC
             </if>
         </if>
     </select>