From 4f27e2a21aa7c0cbd07447b43fc3b83fd1525f88 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 10 七月 2023 15:07:25 +0800 Subject: [PATCH] 修改 --- src/main/java/com/boying/controller/phone/TicketController.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/boying/controller/phone/TicketController.java b/src/main/java/com/boying/controller/phone/TicketController.java index 3b8aea8..5d26b5f 100644 --- a/src/main/java/com/boying/controller/phone/TicketController.java +++ b/src/main/java/com/boying/controller/phone/TicketController.java @@ -10,6 +10,7 @@ import com.boying.entity.*; import com.boying.service.*; import com.boying.util.DateUtilOther; +import com.boying.util.FileUtil; import com.boying.util.NumberToCN; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; @@ -170,6 +171,11 @@ public R getById(@PathVariable("id" ) Integer id) { Ticket byId = ticketService.getById(id); byId.setContent(violationTypeService.getById(byId.getViolationTypeId()).getContent()); + String shouQianMing = byId.getShouQianMing(); + if(shouQianMing != null){ + String get = FileUtil.netSourceToBase64(shouQianMing, "GET"); + byId.setShouQianMing(get); + } return R.ok(byId); } @@ -230,6 +236,7 @@ tb.setCarType(ticket.getCarType()); tb.setColor(ticket.getColor()); tb.setViolationCount(1); + tb.setIsActive(0); ticketBlackService.saveOrUpdate(tb); }else { TicketBlack ticketBlack = all.get(0); -- Gitblit v1.9.1