| | |
| | | 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; |
| | |
| | | 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); |
| | | } |
| | | |
| | |
| | | tb.setCarType(ticket.getCarType()); |
| | | tb.setColor(ticket.getColor()); |
| | | tb.setViolationCount(1); |
| | | tb.setIsActive(0); |
| | | ticketBlackService.saveOrUpdate(tb); |
| | | }else { |
| | | TicketBlack ticketBlack = all.get(0); |