移动破添加解决方案时增加问题部位设置

This commit is contained in:
曹鹏飞 2026-02-04 09:58:09 +08:00
parent 802334cdf5
commit 775691fe9e
2 changed files with 3 additions and 6 deletions

View File

@ -918,7 +918,6 @@ public class TicketController extends ControllerBase {
@GetMapping("getSolutionMeasures") @GetMapping("getSolutionMeasures")
@ApiMark(moduleName = "工单管理", apiName = "获取工单解决方案措施") @ApiMark(moduleName = "工单管理", apiName = "获取工单解决方案措施")
public ApiResult<SolutionMeasuresVO> getSolutionMeasures(@Valid @RequestParam @NotNull Long ticketId) { public ApiResult<SolutionMeasuresVO> getSolutionMeasures(@Valid @RequestParam @NotNull Long ticketId) {
return ApiResult.success(ticketSolutionService.getSolutionMeasures(ticketId)); return ApiResult.success(ticketSolutionService.getSolutionMeasures(ticketId));
} }

View File

@ -133,11 +133,9 @@ public class TicketSolutionServiceImpl extends ServiceImpl<TicketSolutionMapper,
} }
} }
vo.setMeasures(items); vo.setMeasures(items);
if (Objects.equals(ticket.getType(), 1)) { DeviceInfoVO deviceInfoVO = deviceService.getByDeviceNo(ticket.getDeviceNo());
DeviceInfoVO deviceInfoVO = deviceService.getByDeviceNo(ticket.getDeviceNo()); if (Objects.nonNull(deviceInfoVO)) {
if (Objects.nonNull(deviceInfoVO)) { vo.setComponents(deviceInfoVO.getComponents());
vo.setComponents(deviceInfoVO.getComponents());
}
} }
return vo; return vo;
} }