中扬CRM客户关系管理系统
#
LSH
2023-11-10 2a08b97f0aad3af5d981a722efb218fb201f821f
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,48 @@
    @ApiModelProperty(value= "法人或授权代表")
    private String boss;
    /**
     * 合同编号
     */
    @ApiModelProperty(value= "合同编号")
    private String serial;
    /**
     * 部门ID
     */
    @ApiModelProperty(value= "创建人员")
    @TableField("dept_id")
    private Long deptId;
    /**
     * hostId
     */
    @ApiModelProperty(value= "hostId")
    @TableField("host_id")
    private Long hostId;
    /**
     * 进度
     */
    @ApiModelProperty(value= "进度")
    private Integer settle;
    /**
     * 流程进度
     */
    @ApiModelProperty(value= "流程进度")
    @TableField("settle_msg")
    private String settleMsg;
    /**
     * 节点负责人
     */
    @ApiModelProperty(value= "节点负责人")
    private Long director;
    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, Long hostId,Integer settle,String settleMsg) {
        this.id = id;
        this.customer = customer;
        this.address = address;
@@ -185,7 +224,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 +237,11 @@
        this.status = status;
        this.memo = memo;
        this.boss = boss;
        this.serial = serial;
        this.deptId = deptId;
        this.hostId = hostId;
        this.settle = settle;
        this.settleMsg = settleMsg;
    }
    //    Contract contract = new Contract(
@@ -222,6 +266,24 @@
//            null    // 电子邮箱
//    );
    public String getSettle$(){
        if (null == this.settle){ return null; }
        switch (this.settle){
            case 0:
                return "等待提交";
            case 1:
                return "等待组长审批";
            case 2:
                return "等待总裁办审批";
            case 3:
                return "等待确认";
            case 4:
                return "审批通过";
            default:
                return String.valueOf(this.settle);
        }
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
@@ -236,9 +298,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());
        }