package com.vincent.rsf.server.manager.entity;
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.vincent.rsf.framework.common.Cools;
|
import com.vincent.rsf.framework.common.SpringUtils;
|
import com.vincent.rsf.server.system.service.UserService;
|
import com.vincent.rsf.server.system.entity.User;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
@Data
|
@TableName("man_wave_order_rela")
|
public class WaveOrderRela implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 波次ID
|
*/
|
@ApiModelProperty(value= "波次ID")
|
private Long waveId;
|
|
/**
|
* 波次明细ID
|
*/
|
@ApiModelProperty(value= "波次明细ID")
|
private Long waveItemId;
|
|
/**
|
* 订单ID
|
*/
|
@ApiModelProperty(value= "订单ID")
|
private Long orderId;
|
|
/**
|
* 订单明细ID
|
*/
|
@ApiModelProperty(value= "订单明细ID")
|
private Long orderItemId;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
public WaveOrderRela() {}
|
|
public WaveOrderRela(Long waveId,Long waveItemId,Long orderId,Long orderItemId,String memo) {
|
this.waveId = waveId;
|
this.waveItemId = waveItemId;
|
this.orderId = orderId;
|
this.orderItemId = orderItemId;
|
this.memo = memo;
|
}
|
|
// WaveOrderRela waveOrderRela = new WaveOrderRela(
|
// null, // 波次ID
|
// null, // 波次明细ID
|
// null, // 订单ID
|
// null, // 订单明细ID
|
// null // 备注
|
// );
|
|
|
|
public Boolean getStatusBool(){
|
if (null == this.status){ return null; }
|
switch (this.status){
|
case 1:
|
return true;
|
case 0:
|
return false;
|
default:
|
return null;
|
}
|
}
|
|
}
|