| | |
| | | package cn.exrick.xboot.your.entity; |
| | | |
| | | import cn.exrick.xboot.core.base.XbootBaseEntity; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "订单详情") |
| | | private List<OrderDetail> orderDetails; |
| | | } |
| | | |
| | | public String getImg() { |
| | | if (StrUtil.isEmpty(img)){ |
| | | return null; |
| | | } |
| | | if (img.contains("http")){ |
| | | String temp = ""; |
| | | for (int i=0;i<img.split(",").length;i++){ |
| | | String url = img.split(",")[i]; |
| | | temp += "/xboot"+url.split("/xboot")[1]+","; |
| | | } |
| | | img = temp; |
| | | } |
| | | return img; |
| | | } |
| | | } |