| | |
| | | if (type != null && !type.equals("")) { |
| | | queryWrapper.eq("type", type); |
| | | } |
| | | if(getType == 1){ |
| | | queryWrapper.gt("list_date", new Date()); |
| | | } |
| | | // if(getType == 1){ |
| | | // queryWrapper.gt("list_date", new Date()); |
| | | // } |
| | | if(stockType != null){ |
| | | queryWrapper.eq("stock_type", stockType); |
| | | } |
| | |
| | | // queryWrapper.select(StockSubscribe.class, info -> !info.getColumn().equals("password")); |
| | | // } |
| | | List<StockSubscribe> stockSubscribeList = this.stockSubscribeMapper.selectList(queryWrapper); |
| | | |
| | | Date newDate = new Date(); |
| | | |
| | | for (StockSubscribe stockSubscribe : stockSubscribeList) { |
| | | Date startDate = stockSubscribe.getSubscribeTime(); |
| | | Date endDate = stockSubscribe.getSubscriptionTime(); |
| | | |
| | | boolean isBetween = newDate.after(startDate) && newDate.before(endDate); |
| | | stockSubscribe.setIsBetween(isBetween); |
| | | } |
| | | |
| | | PageInfo pageInfo = new PageInfo(stockSubscribeList); |
| | | pageInfo.setList(stockSubscribeList); |
| | | |