This commit is contained in:
parent
bb2d95709c
commit
3cf549e24a
|
|
@ -1,5 +1,6 @@
|
||||||
package com.bonus.canteen.core.supermarket.domain;
|
package com.bonus.canteen.core.supermarket.domain;
|
||||||
|
|
||||||
|
import com.bonus.canteen.core.common.utils.FileUrlUtil;
|
||||||
import com.bonus.common.core.annotation.Excel;
|
import com.bonus.common.core.annotation.Excel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
@ -130,5 +131,7 @@ public class SupermarketInfo extends BaseEntity {
|
||||||
@ApiModelProperty(value = "用户类别")
|
@ApiModelProperty(value = "用户类别")
|
||||||
private String userType;
|
private String userType;
|
||||||
|
|
||||||
|
public String getImgUrl() {
|
||||||
|
return FileUrlUtil.getFileUrl(imgUrl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
package com.bonus.canteen.core.supermarket.domain;
|
package com.bonus.canteen.core.supermarket.domain;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
import com.bonus.canteen.core.common.utils.FileUrlUtil;
|
||||||
import com.bonus.common.core.annotation.Excel;
|
import com.bonus.common.core.annotation.Excel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
@ -132,5 +134,7 @@ public class SupermarketProduct extends BaseEntity {
|
||||||
@ApiModelProperty(value = "状态 1启用 2禁用")
|
@ApiModelProperty(value = "状态 1启用 2禁用")
|
||||||
private String state;
|
private String state;
|
||||||
|
|
||||||
|
public String getImgUrl() {
|
||||||
|
return FileUrlUtil.getFileUrl(imgUrl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue