|
@@ -214,6 +214,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
214
|
214
|
QueryWrapper<TaBuildingApartment> AppointmentQueryWrapper = new QueryWrapper<>();
|
215
|
215
|
AppointmentQueryWrapper.eq("building_id", id);
|
216
|
216
|
AppointmentQueryWrapper.eq("status", 1);
|
|
217
|
+ AppointmentQueryWrapper.orderByDesc("create_date");
|
217
|
218
|
List<TaBuildingApartment> appoint = taBuildingApartmentMapper.selectList(AppointmentQueryWrapper);
|
218
|
219
|
for (TaBuildingApartment apar:appoint) {
|
219
|
220
|
List<TaBuildingImg> imgs = taBuildingImgMapper.getBuildingImgByApartment(apar.getApartmentId());
|
|
@@ -733,6 +734,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
733
|
734
|
QueryWrapper<TaBuildingImg> buildingImgQueryWrapper = new QueryWrapper<>();
|
734
|
735
|
buildingImgQueryWrapper.eq("img_id", img.getImgId());
|
735
|
736
|
buildingImgQueryWrapper.eq("img_type", CommConstant.BUILDING_IMG_APARMENT);
|
|
737
|
+ buildingImgQueryWrapper.orderByAsc("order_no");
|
736
|
738
|
return taBuildingImgMapper.selectOne(buildingImgQueryWrapper);
|
737
|
739
|
}).collect(Collectors.toList());
|
738
|
740
|
|