移动破工单详情增加问题部位id
This commit is contained in:
parent
775691fe9e
commit
151a418fed
|
|
@ -642,7 +642,6 @@ public class TicketController extends ControllerBase {
|
|||
**/
|
||||
@GetMapping("getTicket")
|
||||
public ApiResult<TicketInfoVO> getTicket(@Valid @RequestParam @NotNull Integer id) {
|
||||
|
||||
Ticket ticket = ticketService.getById(id);
|
||||
AdminUser adminUser = StrUtil.equals(ticket.getUserPlatform(), Constant.FROM_ADMIN) ? adminUserService.getById(ticket.getUserId()) : null;
|
||||
AppUser user = StrUtil.equals(ticket.getUserPlatform(), Constant.FROM_APP) ? appUserService.getById(ticket.getUserId()) : null;
|
||||
|
|
@ -694,6 +693,7 @@ public class TicketController extends ControllerBase {
|
|||
.setDeviceAddress(ticket.getDeviceAddress())
|
||||
.setModelNo(device.getModelNo())
|
||||
.setDeviceType(device.getDeviceType())
|
||||
.setComponentId(Long.valueOf(ticket.getComponentId()))
|
||||
.setComponent(Objects.nonNull(part) ? part.getPartName() : "")
|
||||
.setUseTime(ticket.getUseTime())
|
||||
.setDescription(ticket.getDescription())
|
||||
|
|
|
|||
Loading…
Reference in New Issue