| | |
| | | package com.oying.modules.sh.domain; |
| | | |
| | | import lombok.Data; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import java.util.Objects; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | /** |
| | | * @description / |
| | | * @author lixin |
| | | * @date 2025-06-11 |
| | | **/ |
| | | @Data |
| | | @Getter |
| | | @Setter |
| | | @TableName("sh_order_product_snapshot") |
| | | public class OrderProductSnapshot implements Serializable { |
| | | |
| | |
| | | @ApiModelProperty(value = "状态") |
| | | private String payState; |
| | | |
| | | @Override |
| | | public boolean equals(Object o) { |
| | | if (this == o) { |
| | | return true; |
| | | } |
| | | if (o == null || getClass() != o.getClass()) { |
| | | return false; |
| | | } |
| | | OrderProductSnapshot snapshot = (OrderProductSnapshot) o; |
| | | return Objects.equals(snapshotId, snapshot.snapshotId); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | return Objects.hash(snapshotId); |
| | | } |
| | | |
| | | public void copy(OrderProductSnapshot source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |