This commit is contained in:
JyuHsin
2025-05-14 16:33:54 +08:00
parent ee2515e1d7
commit a3443fc997
2 changed files with 2 additions and 2 deletions
@@ -245,7 +245,7 @@ public class SiteReserveController {
if (StrUtil.isNotBlank(siteType)) {
cnd.and("typeId", "=", siteType);
}
cnd.and(new Static(" 1=1 order by field(asi.reserveTarget, 2, 1, 3)"));
cnd.and(new Static(" 1=1 order by left(address, 5) desc, field(asi.reserveTarget, 2, 1, 3)"));
sql.setCondition(cnd);
return siteInfoService.list(sql);
}
@@ -110,7 +110,7 @@ public class SiteInfoMobileController {
if (StrUtil.isNotBlank(typeId)) {
cnd.andEX("info.typeId", "=", typeId);
}
cnd.and(new Static(" 1=1 group by info.id order by field(info.reserveTarget, 2, 1, 3)"));
cnd.and(new Static(" 1=1 group by info.id order by left(address, 5) desc, field(info.reserveTarget, 2, 1, 3)"));
sql.setCondition(cnd);