kongdeqiang
2023-07-10 4f27e2a21aa7c0cbd07447b43fc3b83fd1525f88
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);