From 005f6c2bdea7038cd319dc6dad980428dc897216 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期日, 07 四月 2024 17:36:29 +0800 Subject: [PATCH] fix:出场车辆新增判断是否支付过的接口 --- 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