From 96750e073321368fc6becf948d70aadee14f8030 Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期五, 10 十二月 2021 15:57:48 +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