中扬CRM客户关系管理系统
#
Junjie
2023-09-06 cda3622521308b21e10e5446c2060bf2fafd1e80
src/main/java/com/zy/crm/manager/entity/Contract.java
@@ -93,8 +93,8 @@
     * 创建人员
     */
    @ApiModelProperty(value= "创建人员")
    @TableField("create_by")
    private Long createBy;
    @TableField("user_id")
    private Long userId;
    /**
     * 更新人员
@@ -172,9 +172,22 @@
    @ApiModelProperty(value= "法人或授权代表")
    private String boss;
    /**
     * 合同编号
     */
    @ApiModelProperty(value= "合同编号")
    private String serial;
    /**
     * 部门ID
     */
    @ApiModelProperty(value= "创建人员")
    @TableField("dept_id")
    private Long deptId;
    public Contract() {}
    public Contract(Long id, String customer, String address, String company, String companyAddress, String taxNum, String bank, String bankNum, Date createTime, Date updateTime, Long createBy, Long updateBy, String filepath, String city, String shippingAddress, String shippingName, String shippingPhone, Double price, String email, String name, Integer status, String memo, String boss) {
    public Contract(Long id, String customer, String address, String company, String companyAddress, String taxNum, String bank, String bankNum, Date createTime, Date updateTime, Long userId, Long updateBy, String filepath, String city, String shippingAddress, String shippingName, String shippingPhone, Double price, String email, String name, Integer status, String memo, String boss, String serial, Long deptId) {
        this.id = id;
        this.customer = customer;
        this.address = address;
@@ -185,7 +198,7 @@
        this.bankNum = bankNum;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createBy = createBy;
        this.userId = userId;
        this.updateBy = updateBy;
        this.filepath = filepath;
        this.city = city;
@@ -198,6 +211,8 @@
        this.status = status;
        this.memo = memo;
        this.boss = boss;
        this.serial = serial;
        this.deptId = deptId;
    }
    //    Contract contract = new Contract(
@@ -236,9 +251,9 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
    public String getCreateBy$() {
    public String getUserId$() {
        UserService userService = SpringUtils.getBean(UserService.class);
        User user = userService.selectById(this.createBy);
        User user = userService.selectById(this.userId);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getNickname());
        }