package cn.superdesk.uniorder.dto.receive.consumer.superdeskappservices.flashdeliver;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2021/6/16 下午2:29
 * @UpdateUser: linjinyu
 * @UpdateDate: 2021/6/16 下午2:29
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class FlashDeliverOrderStatusUpdateReceiveParam implements Serializable {


	/**
	 * sn : LS202106161420204757
	 * pay_state : 1
	 * order_state : 2
	 * order_state_name : 待配送员接单
	 * complet_state : 2
	 * user_name : admin
	 * user_id : 2
	 * user_type : 2
	 */
	@ApiModelProperty("订单编号: LS202106161420204757")
	@JsonProperty("sn")
	private String orderSn;

	@ApiModelProperty("支付状态")
	@JsonProperty("pay_state")
	private Integer payState;
	@ApiModelProperty("支付状态 名称 (中文) 补的 - 通知楼闪送修改")
	@JsonProperty("pay_state_name")
	private String  payStateName;

	@ApiModelProperty("订单状态")
	@JsonProperty("order_state")
	private Integer orderState;
	@ApiModelProperty("订单状态 名称 (中文)")
	@JsonProperty("order_state_name")
	private String  orderStateName;

	@ApiModelProperty("订单完成时间 非必须 当订单状态(orderState|orderStateName) 完成状态(completState) 为已完成 ")
//	@JsonSerialize(using = DateTimeConvertSerializer.class)
//	@JsonDeserialize(using = DateTimeConvertDeserializer.class)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date finishTime;

	@ApiModelProperty("完成状态 接入方归一")
	@JsonProperty("complet_state")
	private Integer completState;

	@ApiModelProperty("")
	@JsonProperty("user_name")
	private String  userName;
	@ApiModelProperty("")
	@JsonProperty("user_id")
	private Long    userId;
	@ApiModelProperty("")
	@JsonProperty("user_type")
	private Integer userType;

}
