|
@@ -259,6 +259,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
259
|
259
|
QueryWrapper<TaBuildingApartment> AppointmentQueryWrapper = new QueryWrapper<>();
|
260
|
260
|
AppointmentQueryWrapper.eq("building_id", id);
|
261
|
261
|
AppointmentQueryWrapper.eq("status", 1);
|
|
262
|
+ AppointmentQueryWrapper.orderByDesc("order_no");
|
262
|
263
|
AppointmentQueryWrapper.orderByDesc("create_date");
|
263
|
264
|
List<TaBuildingApartment> appoint = taBuildingApartmentMapper.selectList(AppointmentQueryWrapper);
|
264
|
265
|
for (TaBuildingApartment apar : appoint) {
|
|
@@ -911,6 +912,8 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
911
|
912
|
// 楼盘户型
|
912
|
913
|
QueryWrapper<TaBuildingApartment> buildingApartmentQueryWrapper = new QueryWrapper<>();
|
913
|
914
|
buildingApartmentQueryWrapper.eq("building_id", building.getBuildingId());
|
|
915
|
+ buildingApartmentQueryWrapper.orderByDesc("order_no");
|
|
916
|
+ buildingApartmentQueryWrapper.orderByDesc("create_date");
|
914
|
917
|
List<TaBuildingApartment> buildingApartmentList = taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
|
915
|
918
|
|
916
|
919
|
// 楼盘户型图
|
|
@@ -934,6 +937,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
934
|
937
|
buildingApartmentQueryWrapper.eq("building_id", id);
|
935
|
938
|
buildingApartmentQueryWrapper.eq("status", 1);
|
936
|
939
|
buildingApartmentQueryWrapper.eq(org.apache.commons.lang3.StringUtils.isNotBlank(apartmentType), "apartment_type", apartmentType);
|
|
940
|
+ buildingApartmentQueryWrapper.orderByDesc("order_no");
|
937
|
941
|
buildingApartmentQueryWrapper.orderByDesc("create_date");
|
938
|
942
|
List<TaBuildingApartment> buildingApartment = taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
|
939
|
943
|
buildingApartment.forEach(e -> {
|