kongdeqiang
2024-05-16 0b6189c1c208a4f1c4cd4b230dba10b3581d1ff9
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/entity/OrderTask2Imgs.java
@@ -1,5 +1,7 @@
package cn.exrick.xboot.your.entity;
import cn.exrick.xboot.your.util.ImageShowUtil;
import cn.hutool.core.util.StrUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -67,4 +69,24 @@
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "订单日期")
    private String orderDate;
    public String getImgs() {
        this.imgs = ImageShowUtil.getImgX(this.imgs);
        return this.imgs;
    }
    public String getReceiveImg() {
        this.receiveImg = ImageShowUtil.getImgX(this.receiveImg);
        return this.receiveImg;
    }
    public static void main(String[] args) {
        String img = ",,http://111.63.178.115:9091/xboot/file/view/1712990736426864641,,/xboot/file/view/1712990822305239041,,";
        String ReceiveImg = "http://111.63.178.115:9091/xboot/file/view/1712990736426864641";
        OrderTask2Imgs o = new OrderTask2Imgs();
        o.setImgs(img);
        o.setReceiveImg(ReceiveImg);
        System.out.println("receiveImg:"+o.getReceiveImg());
        System.out.println("imgs:"+o.getImgs());
    }
}