Ver código fonte

上传排序

zhangxin 1 mês atrás
pai
commit
27785cc0f7

+ 3 - 1
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/mapper/xml/AppCoursesPriceRulesMapper.xml

@@ -10,6 +10,8 @@
         LEFT JOIN nm_courses c on a.courses_id = c.id
         LEFT JOIN nm_site d on  c.address_site_id =d.id
         where a.use_user_id = #{userId}
-        GROUP BY b.user_open_id,d.`name` limit 1
+        GROUP BY b.user_open_id,d.`name`
+        order by b.user_open_id desc
+        limit 1
     </select>
 </mapper>