|
|
|
@@ -10,6 +10,7 @@ import com.iformall.domain.po.WxMallFloor; |
|
|
|
import com.iformall.mapper.WxMallBuildingMapper; |
|
|
|
import com.iformall.mapper.WxMallFloorMapper; |
|
|
|
import com.iformall.service.WxMallBuildingService; |
|
|
|
import com.iformall.utils.Constant; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@@ -82,6 +83,12 @@ public class WxMallBuildingServiceImpl implements WxMallBuildingService { |
|
|
|
WxMallFloor tempf = new WxMallFloor(); |
|
|
|
tempf.setId(f.getId()); |
|
|
|
tempf.setFloorName(f.getFloorName()); |
|
|
|
if (f.getTotalArea() != null) { |
|
|
|
tempf.setTotalArea(f.getTotalArea()); |
|
|
|
} |
|
|
|
if (f.getOperatingArea() != null) { |
|
|
|
tempf.setOperatingArea(f.getOperatingArea()); |
|
|
|
} |
|
|
|
return tempf; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
building.setFloors(wxMallFloors); |
|
|
|
@@ -112,10 +119,24 @@ public class WxMallBuildingServiceImpl implements WxMallBuildingService { |
|
|
|
mallFloor.setTenantId(record.getTenantId()); |
|
|
|
mallFloor.setBuildingId(mallBuilding.getId()); |
|
|
|
mallFloor.setFloorName(floor); |
|
|
|
mallFloor.setBackgroundImg("https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/789/9eea8e0e-15ea-4be0-a43d-31e2e9d8db8c.jpg"); |
|
|
|
mallFloor.setBackgroundImg(Constant.floor_back_img); |
|
|
|
wxMallFloorMapper.insertSelective(mallFloor); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void saveFloorArea(WxMallFloor record) { |
|
|
|
WxMallFloor mallFloor = new WxMallFloor(); |
|
|
|
mallFloor.setId(record.getId()); |
|
|
|
mallFloor.setTenantId(record.getTenantId()); |
|
|
|
if (record.getTotalArea() != null) { |
|
|
|
mallFloor.setTotalArea(record.getTotalArea()); |
|
|
|
} |
|
|
|
if (record.getOperatingArea() != null) { |
|
|
|
mallFloor.setOperatingArea(record.getOperatingArea()); |
|
|
|
} |
|
|
|
wxMallFloorMapper.updateByPrimaryKeySelective(mallFloor); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |