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; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; @Data @ApiModel(value = "订单任务历史表") public class OrderTask2Imgs { @ApiModelProperty(value = "订单Code") private String code; @ApiModelProperty(value = "区域id") private Long areaId; @ApiModelProperty(value = "区域名称") private String areaName; @ApiModelProperty(value = "分段ID") private Long areaSectionId; @ApiModelProperty(value = "分段名称") private String areaSectionName; @ApiModelProperty(value = "车牌号ID") private Long carId; @ApiModelProperty(value = "车牌号") private String carNo; @ApiModelProperty(value = "客户名称ID") private Long customerId; @ApiModelProperty(value = "客户名称") private String customerName; @ApiModelProperty(value = "收货人ID") private Long customerReceiveId; @ApiModelProperty(value = "收货人姓名") private String customerReceiveName; @ApiModelProperty(value = "收货时间") private String receiveTime; @ApiModelProperty(value = "送货人id") private Long userId; @ApiModelProperty(value = "送货人") private String userName; @ApiModelProperty(value = "接收人原图") private String receiveImg; @ApiModelProperty(value = "货物图,接收人图") private String imgs; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") @ApiModelProperty(value = "发货日期") private String sendDate; @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") @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()); } }