src/main/java/com/boying/controller/TicketBlackController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/boying/job/DaPingScheduled.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/boying/job/PayResult2Scheduled.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/boying/controller/TicketBlackController.java
@@ -46,7 +46,6 @@ public Object findPage(Page page, TicketBlack ticket){ QueryWrapper<TicketBlack> wrapper = new QueryWrapper<>(); wrapper.lambda() .eq(TicketBlack::getBlackType,0) .like(StringUtils.isNotBlank(ticket.getCarNo()),TicketBlack::getCarNo,ticket.getCarNo()) .eq(ticket.getIsActive() != null,TicketBlack::getIsActive,ticket.getIsActive()) .orderByDesc(TicketBlack::getCreateTime); @@ -85,6 +84,9 @@ public Object delete(Long id){ TicketBlack ticket =ticketBlackService.getById(id); if(ticket!=null){ if(ticket.getViolationCount() >0 ){ return R.failed("请先解决违章"); } ticketBlackService.removeById(ticket); return R.ok("操作成功"); } src/main/java/com/boying/job/DaPingScheduled.java
@@ -32,13 +32,13 @@ @Scheduled(cron = "0 0/40 * * * ?") public void execute() throws IOException { System.out.println("开始定时任务-------》"); List<TicketBlack> list = ticketBlackService.updateType(); if(list.size() > 0){ for(TicketBlack t:list){ t.setBlackType(1); ticketBlackService.saveOrUpdate(t); } } // List<TicketBlack> list = ticketBlackService.updateType(); // if(list.size() > 0){ // for(TicketBlack t:list){ // t.setBlackType(1); // ticketBlackService.saveOrUpdate(t); // } // } Statistic statistic = null; List<Statistic> all = statisticService.list(); if(all.size()>0){ src/main/java/com/boying/job/PayResult2Scheduled.java
@@ -46,6 +46,7 @@ taskFlag = true; QueryWrapper<Ticket> wrapper = new QueryWrapper<>(); wrapper.lambda() .ne(Ticket::getStatus,3) .eq(Ticket::getPayStatus,0) .ne(Ticket::getMoney,0) .isNotNull(Ticket::getPayCode)