| | |
| | | * @return |
| | | */ |
| | | @GetMapping(value = "/order/batchUpdateTime") |
| | | R<Boolean> batchUpdateTime(@RequestParam("ids")String ids,@RequestParam("arriveTime")String time); |
| | | R<Boolean> batchUpdateTime(@RequestParam("ids")String ids,@RequestParam("time")String time); |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "主键ID") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "加盟商余额明细记录id") |
| | | @TableField("changeId") |
| | | @TableField("change_id") |
| | | private Integer changeId; |
| | | |
| | | @ApiModelProperty(value = "加盟商id") |
| | | @TableField("franchiseeId") |
| | | @TableField("franchisee_id") |
| | | private Integer franchiseeId; |
| | | @ApiModelProperty(value = "状态1待审核 2已通过 3已驳回") |
| | | @TableField("status") |
| | |
| | | @ApiModelProperty("再投数量") |
| | | @TableField(exist = false) |
| | | private Integer reInvestment=0; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @ApiModelProperty("待预约数量") |
| | | @TableField(exist = false) |
| | | private Integer pending=0; |
| | | |
| | | @ApiModelProperty("是否为再投单") |
| | | @TableField("is_reinvest") |
| | |
| | | Integer completed = order.getCompleted(); |
| | | Integer canceled = order.getCanceled(); |
| | | Integer reInvestment = order.getReInvestment(); |
| | | int total = toBeDispatched + stayDoorstep + toBeCompleted + completed + canceled + reInvestment; |
| | | Integer pending = order.getPending(); |
| | | int total = toBeDispatched + stayDoorstep + toBeCompleted + completed + canceled + reInvestment + pending; |
| | | return new OrderPageCountVO(total, toBeDispatched, stayDoorstep, |
| | | toBeCompleted, completed, canceled, reInvestment); |
| | | toBeCompleted, completed, canceled, reInvestment,pending); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | @ApiModelProperty("再投订单") |
| | | private Integer reInvestment; |
| | | @ApiModelProperty("待预约数量") |
| | | private Integer pending; |
| | | |
| | | public OrderPageCountVO(Integer total, Integer toBeDispatched, Integer stayDoorstep, Integer toBeCompleted, |
| | | Integer completed, Integer canceled, Integer reInvestment) { |
| | | Integer completed, Integer canceled, Integer reInvestment,Integer pending) { |
| | | this.total = total; |
| | | this.toBeDispatched = toBeDispatched; |
| | | this.stayDoorstep = stayDoorstep; |
| | |
| | | this.completed = completed; |
| | | this.canceled = canceled; |
| | | this.reInvestment = reInvestment; |
| | | this.pending = pending; |
| | | } |
| | | } |
| | |
| | | sum(case when o.state = 2 then 1 end) as toBeCompleted, |
| | | sum(case when o.state = 3 then 1 end) as completed, |
| | | sum(case when o.state = 4 then 1 end) as canceled, |
| | | sum(case when o.state = 6 then 1 end) as reInvestment |
| | | sum(case when o.state = 6 then 1 end) as reInvestment, |
| | | sum(case when o.state = 7 then 1 end) as pending |
| | | from t_order o |
| | | <where> |
| | | o.is_delete = 0 |