New file |
| | |
| | | package com.oying.modules.sh.domain; |
| | | |
| | | import com.oying.base.BaseEntity; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.io.Serializable; |
| | | 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 |
| | | **/ |
| | | @Getter |
| | | @Setter |
| | | @TableName("sh_order_return_reason") |
| | | public class OrderReturnReason extends BaseEntity implements Serializable { |
| | | |
| | | @TableId(value = "reason_id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "ID") |
| | | private Long reasonId; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "退货类型") |
| | | private String reasonName; |
| | | |
| | | @ApiModelProperty(value = "排序") |
| | | private String sort; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "状态:0->不启用;1->启用") |
| | | private Boolean reasonStatus = false; |
| | | |
| | | public void copy(OrderReturnReason source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |
| | | } |