From 6b89a2e8ed7f35ec1d28b2d4eeade3777f7280dd Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期四, 06 一月 2022 09:04:37 +0800
Subject: [PATCH] 违章记录

---
 xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/FingerprintController.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/FingerprintController.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/FingerprintController.java
index dc782ad..0bbfb16 100644
--- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/FingerprintController.java
+++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/FingerprintController.java
@@ -105,7 +105,11 @@
         QueryWrapper<Fingerprint> wrapper = new QueryWrapper<>();
         wrapper.eq("code",code);
         wrapper.eq("area_id",c.getAreaId());
+        wrapper.eq("customer_id",customerId);
         Fingerprint one = iFingerprintService.getOne(wrapper);
+        if(one==null){
+            return ResultUtil.error("鎸囩汗涓庡晢鎴蜂笉鍖归厤");
+        }
 
         CustomerReceive customerReceive = iCustomerReceiveService.getById(one.getCustomerReceiveId());
         return new ResultUtil<Object>().setData(customerReceive);

--
Gitblit v1.9.1