|
@@ -323,7 +323,12 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
323
|
323
|
|
324
|
324
|
@Override
|
325
|
325
|
public ResponseBean buildingApartmentUpdate(String parameter) {
|
|
326
|
+ ResponseBean responseBean = new ResponseBean();
|
326
|
327
|
TaBuildingApartment building = JSONObject.parseObject(parameter,TaBuildingApartment.class);
|
|
328
|
+ if (StringUtils.isEmpty(building.getApartmentId())) {
|
|
329
|
+ responseBean.addError("id不存在!");
|
|
330
|
+ return responseBean;
|
|
331
|
+ }
|
327
|
332
|
taBuildingImgMapper.delBuildingImgByApartment(building.getApartmentId());
|
328
|
333
|
|
329
|
334
|
//删除户户型对应图片表
|
|
@@ -520,6 +525,7 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
|
520
|
525
|
QueryWrapper<TaBuildingApartment> buildingApartmentQueryWrapper = new QueryWrapper<>();
|
521
|
526
|
buildingApartmentQueryWrapper.eq("building_id", id);
|
522
|
527
|
buildingApartmentQueryWrapper.eq("status",1);
|
|
528
|
+ buildingApartmentQueryWrapper.orderByDesc("create_date");
|
523
|
529
|
List<TaBuildingApartment> buildingApartment= taBuildingApartmentMapper.selectList(buildingApartmentQueryWrapper);
|
524
|
530
|
return ResponseBean.success(buildingApartment);
|
525
|
531
|
}
|