中扬CRM客户关系管理系统
LSH
2023-10-05 74da615c225394edf0621b692b8b92a7dbd3d250
src/main/java/com/zy/crm/manager/entity/PriOnline2.java
@@ -100,13 +100,37 @@
    @TableField("check_data_file")
    private String checkDataFile;
    /**
     * 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 String form;
    public PriOnline2() {}
    public PriOnline2(String title, String sheetData, Date createTime, String filepath) {
    public PriOnline2(String title, String sheetData, Date createTime, String filepath,Integer settle) {
        this.title = title;
        this.sheetData = sheetData;
        this.createTime = createTime;
        this.filepath = filepath;
        this.settle = settle;
    }
//    PriOnline priOnline = new PriOnline(
@@ -114,6 +138,22 @@
//            null,    // excel表数据
//            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 "审批通过";
            default:
                return String.valueOf(this.settle);
        }
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
@@ -139,8 +179,10 @@
//    }
    public Long getCstmrId$(){
        PlanService planService = SpringUtils.getBean(PlanService.class);
        Plan plan = planService.selectById(this.itemId);
        CstmrService cstmrService = SpringUtils.getBean(CstmrService.class);
        Cstmr cstmr = cstmrService.selectByName(1L, this.templateName);
        Cstmr cstmr = cstmrService.selectById(plan.getCstmrId());
        if (!Cools.isEmpty(cstmr)){
            return cstmr.getId();
        }