| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.crm.manager.service.CstmrService; |
| | | import com.zy.crm.manager.service.PlanService; |
| | | import com.zy.crm.system.entity.User; |
| | | import com.zy.crm.system.service.UserService; |
| | |
| | | @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( |
| | |
| | | // 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)){ |
| | |
| | | // return null; |
| | | // } |
| | | |
| | | public Long getCstmrId$(){ |
| | | PlanService planService = SpringUtils.getBean(PlanService.class); |
| | | Plan plan = planService.selectById(this.itemId); |
| | | CstmrService cstmrService = SpringUtils.getBean(CstmrService.class); |
| | | Cstmr cstmr = cstmrService.selectById(plan.getCstmrId()); |
| | | if (!Cools.isEmpty(cstmr)){ |
| | | return cstmr.getId(); |
| | | } |
| | | return 0L; |
| | | } |
| | | |
| | | public String getPlanId$() { |
| | | PlanService planService = SpringUtils.getBean(PlanService.class); |
| | | Plan plan = planService.selectById(this.itemId); |