yaozc
2023-02-21 744ddc3550c2bdbe61f7326e4ab7c00dfa3ac51f
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/capitalFlow/domain/CapitalFlow.java
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/capitalFlow/domain/CapitalFlow.java
File was copied from eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/domain/SysUserCompany.java
@@ -13,7 +13,7 @@
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.system.domain;
package me.zhengjie.modules.capitalFlow.domain;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
@@ -22,38 +22,42 @@
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
* @author 赵士淞
* @date 2023-02-13
**/
@Entity
@Data
@Table(name="sys_user_company")
public class SysUserCompany extends BaseEntity implements Serializable {
@Table(name="capital_flow")
public class CapitalFlow extends BaseEntity implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "`id`")
    @ApiModelProperty(value = "id")
    @ApiModelProperty(value = "ID")
    private Long id;
    @Column(name = "`description`")
    @ApiModelProperty(value = "描述")
    private String description;
    @Column(name = "`flow_year_month`",nullable = false)
    @NotNull
    @ApiModelProperty(value = "流水年月")
    private Timestamp flowYearMonth;
    @Column(name = "`label`")
    @ApiModelProperty(value = "标签")
    private String label;
    @Column(name = "`company_id`",nullable = false)
    @NotNull
    @ApiModelProperty(value = "所属公司")
    private Long companyId;
    @Column(name = "`value`")
    @ApiModelProperty(value = "值")
    private String value;
    @Column(name = "`remarks`")
    @ApiModelProperty(value = "备注")
    private String remarks;
    public void copy(SysUserCompany source){
    public void copy(CapitalFlow source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}