From 7aba645529a88ec4fa632b2e0080fcf61cfe4d2f Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期五, 08 九月 2023 08:36:59 +0800
Subject: [PATCH] 修改

---
 src/main/java/com/boying/controller/TicketBlackController.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/boying/controller/TicketBlackController.java b/src/main/java/com/boying/controller/TicketBlackController.java
index 15a5e72..c71476c 100644
--- a/src/main/java/com/boying/controller/TicketBlackController.java
+++ b/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("璇峰厛瑙e喅杩濈珷");
+            }
             ticketBlackService.removeById(ticket);
             return R.ok("鎿嶄綔鎴愬姛");
         }

--
Gitblit v1.9.1