copy from eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/domain/SysUserCompany.java
copy to eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/domain/CustomerResourcesUser.java
| File was copied from eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/domain/SysUserCompany.java |
| | |
| | | import me.zhengjie.base.BaseEntity; |
| | | |
| | | import javax.persistence.*; |
| | | import javax.validation.constraints.*; |
| | | import java.sql.Timestamp; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | | * @description / |
| | | * @author wcd |
| | | * @date 2023-01-30 |
| | | * @date 2023-02-03 |
| | | **/ |
| | | @Entity |
| | | @Data |
| | | @Table(name="sys_user_company") |
| | | public class SysUserCompany extends BaseEntity implements Serializable { |
| | | @Table(name="customer_resources_user") |
| | | public class CustomerResourcesUser extends BaseEntity implements Serializable { |
| | | |
| | | @Id |
| | | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| | |
| | | @ApiModelProperty(value = "id") |
| | | private Long id; |
| | | |
| | | @Column(name = "`description`") |
| | | @ApiModelProperty(value = "描述") |
| | | private String description; |
| | | @Column(name = "`customer_resources_id`",nullable = false) |
| | | @NotNull |
| | | @ApiModelProperty(value = "客户资源 id") |
| | | private Long customerResourcesId; |
| | | |
| | | @Column(name = "`label`") |
| | | @ApiModelProperty(value = "标签") |
| | | private String label; |
| | | @Column(name = "`user_id`",nullable = false) |
| | | @NotNull |
| | | @ApiModelProperty(value = "用户 id") |
| | | private Long userId; |
| | | |
| | | @Column(name = "`value`") |
| | | @ApiModelProperty(value = "值") |
| | | private String value; |
| | | |
| | | public void copy(SysUserCompany source){ |
| | | public void copy(CustomerResourcesUser source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |
| | | } |