| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.crm.manager.service.PlanService; |
| | | import com.zy.crm.manager.service.OrderService; |
| | | import com.zy.crm.system.entity.User; |
| | | import com.zy.crm.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value= "项目id{man_item}") |
| | | @ApiModelProperty(value= "项目id{man_item}/planId") |
| | | @TableField("item_id") |
| | | private Long itemId; |
| | | |
| | |
| | | @TableField("order_num") |
| | | private String orderNum; |
| | | |
| | | @ApiModelProperty(value= "模板名") |
| | | @ApiModelProperty(value= "报销类型") |
| | | @TableField("template_name") |
| | | private String templateName; |
| | | |
| | |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date updateTime; |
| | | |
| | | @ApiModelProperty(value= "上传报价excel数据") |
| | | @ApiModelProperty(value= "是否冲账") |
| | | @TableField("check_data") |
| | | private String checkData; |
| | | |
| | |
| | | this.createTime = createTime; |
| | | this.filepath = filepath; |
| | | } |
| | | |
| | | public ReimburseOnline(Long itemId,String orderNum,Date createTime,User user) { |
| | | 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(); |
| | | } |
| | | |
| | | |
| | | // PriOnline priOnline = new PriOnline( |
| | | // null, // excel表标题 |
| | |
| | | // } |
| | | |
| | | public String getPlanId$() { |
| | | PlanService planService = SpringUtils.getBean(PlanService.class); |
| | | Plan plan = planService.selectById(this.itemId); |
| | | if (!Cools.isEmpty(plan)){ |
| | | return String.valueOf(plan.getUuid()); |
| | | OrderService orderService = SpringUtils.getBean(OrderService.class); |
| | | Order order = orderService.selectById(this.itemId); |
| | | if (!Cools.isEmpty(order)){ |
| | | return String.valueOf(order.getUuid()); |
| | | } |
| | | return null; |
| | | } |