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