| | |
| | | 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.Dept; |
| | | import com.zy.crm.system.entity.User; |
| | | import com.zy.crm.system.service.DeptService; |
| | | import com.zy.crm.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @TableField("sheet_data") |
| | | private String sheetData; |
| | | |
| | | /** |
| | | * excel表标题 |
| | | */ |
| | | @ApiModelProperty(value= "excel表标题") |
| | | @TableField("sales_title") |
| | | private String salesTitle; |
| | | |
| | | /** |
| | | * excel表数据 |
| | | */ |
| | | @ApiModelProperty(value= "excel表数据") |
| | | @TableField("sales_sheet_data") |
| | | private String salesSheetData; |
| | | |
| | | @ApiModelProperty(value= "文件保存地址") |
| | | private String filepath; |
| | | |
| | |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value= "项目id{man_item}") |
| | | @ApiModelProperty(value= "规划单ID plan_id") |
| | | @TableField("item_id") |
| | | private Long itemId; |
| | | |
| | |
| | | @ApiModelProperty(value= "业务员") |
| | | @TableField("member_id") |
| | | private Long memberId; |
| | | |
| | | @ApiModelProperty(value= "规划单ID") |
| | | @TableField("plan_id") |
| | | private Long planId; |
| | | |
| | | @ApiModelProperty(value= "上传报价excel数据的原始文件地址") |
| | | @TableField("check_data_file") |
| | |
| | | case 0: |
| | | return "等待提交"; |
| | | case 1: |
| | | return "等待审批"; |
| | | case 2: |
| | | return "等待确认"; |
| | | case 3: |
| | | case 2: |
| | | return "审批通过"; |
| | | default: |
| | | return String.valueOf(this.settle); |
| | |
| | | // } |
| | | |
| | | 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(); |
| | | } |
| | |
| | | return null; |
| | | } |
| | | |
| | | public String getDeptId$(){ |
| | | DeptService service = SpringUtils.getBean(DeptService.class); |
| | | Dept dept = service.selectById(this.deptId); |
| | | if (!Cools.isEmpty(dept)){ |
| | | return String.valueOf(dept.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getUpdateUserId$() { |
| | | UserService userService = SpringUtils.getBean(UserService.class); |
| | | User user = userService.selectById(this.updateUserId); |