|
|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.iformall.domain.po; |
|
|
|
|
|
|
|
import com.aliyun.openservices.shade.org.apache.commons.lang3.StringUtils; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
import com.iformall.common.IdWorker; |
|
|
|
@@ -115,6 +116,21 @@ public class WxEnergyMeterReading extends TenantEntity { |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="所属店铺,有可能会是多个",name="shopName") |
|
|
|
private String shopName; |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
private String belongTo; |
|
|
|
public String getBelongTo() { |
|
|
|
if (StringUtils.isNotBlank(shopName)) { |
|
|
|
return shopName; |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(floorName)) { |
|
|
|
return floorName; |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(buildingName)) { |
|
|
|
return buildingName; |
|
|
|
} |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
private List<WxEnergyMeterReading> meterReadingList; |
|
|
|
|
|
|
|
|