| | |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.convert.Convert; |
| | | import cn.hutool.core.date.DateTime; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.fasterxml.jackson.databind.DeserializationFeature; |
| | |
| | | } |
| | | // scoreOrder.setStatus(ScoreOrder.STATUS_DONE); |
| | | scoreOrder.setIsFinish(ScoreOrder.ISFINISH_YES); |
| | | scoreOrder.setIsFinishTime(new Date()); |
| | | scoreOrder.setVoucherImg(CollUtil.join(model.getVoucherImgs(),",")); |
| | | scoreOrderMapper.updateByPrimaryKeySelective(scoreOrder); |
| | | return scoreOrder.getId(); |
| | |
| | | statisticsVo.setTotalBuyCnt(Integer.parseInt(allData.get("totalBuy").toString())); |
| | | return statisticsVo; |
| | | } |
| | | |
| | | public void changeOrderStatue() { |
| | | //获取七天之前后台点击确认提货的订单 |
| | | DateTime dateTime = DateUtil.offsetDay(new Date(), -7); |
| | | // |
| | | List<ScoreOrder> orders = scoreOrderMapper.selectOrderByIsFinish(dateTime); |
| | | if(CollUtil.isNotEmpty(orders)){ |
| | | for(ScoreOrder order : orders){ |
| | | scoreOrderMapper.updateOrderStatusToDone(order.getId()); |
| | | } |
| | | } |
| | | } |
| | | } |