commit
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user