From a820fa834d3fad12a8d72b8f800e67208a313be4 Mon Sep 17 00:00:00 2001 From: wang-hao-jie <1550036656@qq.com> Date: 星期五, 03 十二月 2021 13:40:59 +0800 Subject: [PATCH] 违章记录 --- xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticScheduleImpl.java | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticScheduleImpl.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticScheduleImpl.java index 70f537c..4728a4c 100644 --- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticScheduleImpl.java +++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/schedulings/StatisticScheduleImpl.java @@ -88,11 +88,12 @@ wrapper3.eq("user_id",user.getId()); Area area = iAreaService.getOne(wrapper3); - QueryWrapper<Customer> wrapper4 = new QueryWrapper<>(); - wrapper4.eq("area_id",area.getId()); - int count3 = iCustomerService.count(wrapper4); - - one.setService(count3); + if(area!=null){ + QueryWrapper<Customer> wrapper4 = new QueryWrapper<>(); + wrapper4.eq("area_id",area.getId()); + int count3 = iCustomerService.count(wrapper4); + one.setService(count3); + } } iUserStatisticService.saveOrUpdate(one); -- Gitblit v1.9.1