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