中扬CRM客户关系管理系统
#
LSH
2023-08-14 25f51717cce32d8260ead3247d47883ef8a3070d
src/main/java/com/zy/crm/manager/entity/PriQuote.java
@@ -7,6 +7,7 @@
import com.core.common.SpringUtils;
import com.zy.crm.manager.service.ItemService;
import com.zy.crm.manager.service.PlanService;
import com.zy.crm.system.entity.User;
import com.zy.crm.system.service.UserService;
import org.springframework.format.annotation.DateTimeFormat;
@@ -85,6 +86,25 @@
    @TableField("member_id")
    private Long memberId;
    /**
     * 表单内容
     */
    @ApiModelProperty(value= "表单内容")
    private String form;
    /**
     * 进度 1: 开始  2: 组长审核  3: 售前组长审核  4: 规划员审核  5: 审批通过
     */
    @ApiModelProperty(value= "进度 1: 开始  2: 组长审核  3: 售前审核  4: 规划员审核  5: 审批通过  ")
    private Integer settle;
    /**
     * 审核进度
     */
    @ApiModelProperty(value= "审核进度")
    @TableField("settle_msg")
    private String settleMsg;
    public PriQuote() {}
    public PriQuote(String title,String sheetData,Date createTime,String filepath) {
@@ -94,6 +114,24 @@
        this.filepath = filepath;
    }
    public String getSettle$(){
        if (null == this.settle){ return null; }
        switch (this.settle){
            case 1:
                return "等待组长审核";
            case 2:
                return "等待售前分配规划员";
            case 3:
                return "等待规划员提交";
            case 4:
                return "规划员已提交";
            case 5:
                return "审批通过";
            default:
                return String.valueOf(this.settle);
        }
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
@@ -101,11 +139,20 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
    public String getItemId$() {
        ItemService itemService = SpringUtils.getBean(ItemService.class);
        Item item = itemService.selectById(this.itemId);
        if (!Cools.isEmpty(item)){
            return String.valueOf(item.getName());
    public String getPlanId$() {
        PlanService planService = SpringUtils.getBean(PlanService.class);
        Plan plan = planService.selectById(this.itemId);
        if (!Cools.isEmpty(plan)){
            return String.valueOf(plan.getUuid());
        }
        return null;
    }
    public String getPlanName$() {
        PlanService planService = SpringUtils.getBean(PlanService.class);
        Plan plan = planService.selectById(this.itemId);
        if (!Cools.isEmpty(plan)){
            return String.valueOf(plan.getName());
        }
        return null;
    }