| | |
| | | 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.OrderService; |
| | | import com.zy.crm.system.entity.User; |
| | | import com.zy.crm.system.service.UserService; |
| | |
| | | @TableField("dept_id") |
| | | private Long deptId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("host_id") |
| | | private Long hostId; |
| | | |
| | | @ApiModelProperty(value= "状态{0:未完成,1:已完成}") |
| | | @TableField("status") |
| | | private Integer status; |
| | |
| | | @TableField("settle_msg") |
| | | private String settleMsg; |
| | | |
| | | /** |
| | | * 客户名称 |
| | | */ |
| | | @ApiModelProperty(value= "客户名称") |
| | | @TableField("name") |
| | | private String name; |
| | | |
| | | public ReimburseOnline() {} |
| | | |
| | | public ReimburseOnline(String title, String sheetData, Date createTime, String filepath) { |
| | |
| | | this.updateUserId = user.getId(); |
| | | } |
| | | |
| | | public ReimburseOnline(Long itemId,String orderNum,Date createTime,User user,Integer settle) { |
| | | this.itemId = itemId; |
| | | this.orderNum = orderNum; |
| | | this.createTime = createTime; |
| | | this.updateTime = createTime; |
| | | this.userId = user.getId(); |
| | | this.deptId = user.getDeptId(); |
| | | this.status = 0; |
| | | this.updateUserId = user.getId(); |
| | | this.settle = settle; |
| | | } |
| | | |
| | | // PriOnline priOnline = new PriOnline( |
| | | // null, // excel表标题 |
| | | // null, // excel表数据 |
| | | // null // 创建时间 |
| | | // ); |
| | | |
| | | public String getSettle$(){ |
| | | if (null == this.settle){ return null; } |
| | | switch (this.settle){ |
| | | case 0: |
| | | return "待提交"; |
| | | case 1: |
| | | return "等待部门经理审核"; |
| | | case 2: |
| | | return "等待结点3审核"; |
| | | case 3: |
| | | return "等待结点4审核"; |
| | | case 4: |
| | | return "等待结点5审核"; |
| | | case 5: |
| | | return "等待结点6审核"; |
| | | case 6: |
| | | return "申请通过"; |
| | | case 7: |
| | | return "申请通过"; |
| | | default: |
| | | return String.valueOf(this.settle); |
| | | } |
| | | } |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | |
| | | // return null; |
| | | // } |
| | | |
| | | public String getPlanId$() { |
| | | // public String getPlanId$() { |
| | | // OrderService orderService = SpringUtils.getBean(OrderService.class); |
| | | // Order order = orderService.selectById(this.itemId); |
| | | // if (!Cools.isEmpty(order)){ |
| | | // return String.valueOf(order.getUuid()+"---"+order.getName()); |
| | | // } |
| | | // return "非项目型报销"; |
| | | // } |
| | | |
| | | public String getOrderId$() { |
| | | if (null == this.itemId){ return "非项目型报销"; } |
| | | OrderService orderService = SpringUtils.getBean(OrderService.class); |
| | | Order order = orderService.selectById(this.itemId); |
| | | if (!Cools.isEmpty(order)){ |
| | | return String.valueOf(order.getUuid()+"---"+order.getName()); |
| | | // return String.valueOf(order.getId()+"---"+order.getName()); |
| | | return String.valueOf(order.getId()); |
| | | } |
| | | return "非项目型报销"; |
| | | } |
| | | |
| | | public String getName$() { |
| | | if (null == this.itemId){ return "非项目型报销"; } |
| | | OrderService orderService = SpringUtils.getBean(OrderService.class); |
| | | Order order = orderService.selectById(this.itemId); |
| | | if (!Cools.isEmpty(order)){ |
| | | return String.valueOf(order.getCstmrId$()); |
| | | } |
| | | return "非项目型报销"; |
| | | } |