| | |
| | | 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; |
| | |
| | | @ApiModel(value = "订单任务表") |
| | | public class OrderTask extends XbootBaseEntity { |
| | | |
| | | //存放7天内的数据 |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "订单号") |
| | |
| | | @ApiModelProperty(value = "是否驶出月台(0:否 1:是)") |
| | | private int isOut; |
| | | |
| | | @ApiModelProperty(value = "0配送中,1已送达,3异常签收") |
| | | @ApiModelProperty(value = "0配送中,1已送达,2异常签收") |
| | | private int status; |
| | | |
| | | @ApiModelProperty(value = "无法送达的原因") |
| | |
| | | private String customerReceiveId; |
| | | |
| | | @ApiModelProperty(value = "是否点赞 0:否 1:是") |
| | | private String likes; |
| | | private int likes; |
| | | |
| | | @Transient |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "耗时 毫秒") |
| | | private int time; |
| | | |
| | | // @Transient |
| | | // @TableField(exist = false) |
| | | @ApiModelProperty(value = "商户名称") |
| | | private String customerName; |
| | | |
| | | @ApiModelProperty(value = "商户联系人") |
| | | private String linker; |
| | | |
| | | @Transient |
| | | @TableField(exist = false) |
| | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "订单详情") |
| | | private List<OrderDetail> orderDetails; |
| | | } |
| | | |
| | | public String getImg() { |
| | | if (StrUtil.isEmpty(img)) { |
| | | return null; |
| | | } |
| | | String temp = ""; |
| | | String[] imgs = img.split(","); |
| | | for (int i = 0; i < imgs.length; i++) { |
| | | String url = imgs[i]; |
| | | if (StrUtil.isNotEmpty(url)) { |
| | | if (url.contains("http") && url.contains("/xboot")) { |
| | | try{ |
| | | if("".equals(temp)){ |
| | | temp += "/xboot" + url.split("/xboot")[1]; |
| | | }else{ |
| | | temp += ",/xboot" + url.split("/xboot")[1]; |
| | | } |
| | | }catch (Exception e){ |
| | | if("".equals(temp)){ |
| | | temp += url; |
| | | }else{ |
| | | temp += "," + url; |
| | | } |
| | | } |
| | | } else { |
| | | if("".equals(temp)){ |
| | | temp += url; |
| | | }else { |
| | | temp += "," + url; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | img = temp; |
| | | return img; |
| | | } |
| | | public static void main(String[] args) { |
| | | String img = ",,http://111.63.178.115:9091/xboot/file/view/1712990736426864641,,/xboot/file/view/1712990822305239041,,"; |
| | | OrderTask o = new OrderTask(); |
| | | o.setImg(img); |
| | | System.out.println(o.getImg()); |
| | | } |
| | | } |