|
|
|
@@ -88,8 +88,11 @@ public class WxMallBuildingServiceImpl implements WxMallBuildingService { |
|
|
|
//record.setId(UUID.randomUUID().toString().replaceAll("-", "")); |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
record.setId(idWorker.nextId()); |
|
|
|
record.setCreateDate(new Date()); |
|
|
|
record.setUpdateDate(new Date()); |
|
|
|
wxMallBuildingMapper.insert(record); |
|
|
|
} else { |
|
|
|
record.setUpdateDate(new Date()); |
|
|
|
wxMallBuildingMapper.updateById(record); |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -115,6 +118,8 @@ public class WxMallBuildingServiceImpl implements WxMallBuildingService { |
|
|
|
List<WxMallBuilding> wxMallBuildings = buildings.stream().map(b -> { |
|
|
|
WxMallBuilding tempb = new WxMallBuilding(); |
|
|
|
tempb.setId(b.getId()); |
|
|
|
tempb.setTenantId(b.getTenantId()); |
|
|
|
tempb.setParentTenantId(b.getParentTenantId()); |
|
|
|
tempb.setName(b.getName()); |
|
|
|
return tempb; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
@@ -125,7 +130,10 @@ public class WxMallBuildingServiceImpl implements WxMallBuildingService { |
|
|
|
List<WxMallFloor> wxMallFloors = wxMallFloorMapper.findList(wxMallFloor).stream().map(f -> { |
|
|
|
WxMallFloor tempf = new WxMallFloor(); |
|
|
|
tempf.setId(f.getId()); |
|
|
|
tempf.setTenantId(f.getTenantId()); |
|
|
|
tempf.setParentTenantId(f.getParentTenantId()); |
|
|
|
tempf.setFloorName(f.getFloorName()); |
|
|
|
tempf.setBackgroundImg(f.getBackgroundImg()); |
|
|
|
if (f.getTotalArea() != null) { |
|
|
|
tempf.setTotalArea(f.getTotalArea()); |
|
|
|
} |
|
|
|
|