【修复】工服匿名工单的问题

This commit is contained in:
曹鹏飞 2026-04-22 18:09:14 +08:00
parent 6c188b1863
commit 4e6100a7db
6 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ import java.util.List;
public class AnonymousTicketInfoVO {
//工单id
private int id;
private Long id;
//工单编号
private String no;

View File

@ -10,7 +10,7 @@ public class AnonymousTicketSearchVO {
/**
* 工单id
*/
private int id;
private Long id;
/**
* 工单编号

View File

@ -36,7 +36,7 @@ public class AnonymousTicketController {
* @param ticketId 工单编号
*/
@GetMapping("/getInfo")
public ApiResult<AnonymousTicketInfoVO> getInfo(@Valid @RequestParam @NotNull Integer ticketId) {
public ApiResult<AnonymousTicketInfoVO> getInfo(@Valid @RequestParam @NotNull Long ticketId) {
return ApiResult.success(anonymousTicketService.getInfo(ticketId));
}
}

View File

@ -21,5 +21,5 @@ public interface IGongfuAnonymousTicketService extends IService<GongfuAnonymousT
IPage<AnonymousTicketSearchVO> search(AnonymousTicketSearchRequest request);
AnonymousTicketInfoVO getInfo(Integer ticketId);
AnonymousTicketInfoVO getInfo(Long ticketId);
}

View File

@ -117,7 +117,7 @@ public class AnonymousTicketServiceImpl extends ServiceImpl<AnonymousTicketMappe
}
TBasePart part = partService.getByIdAndLanguage(ticket.getComponentId(), MultilingualUtil.getLanguage());
return new AnonymousTicketInfoVO()
.setId(ticketId)
.setId(Long.valueOf(ticketId))
.setNo(ticket.getNo())
.setDeviceNo(ticket.getDeviceNo())
.setModelNo(device.getModelNo())

View File

@ -105,7 +105,7 @@ public class GongfuAnonymousTicketServiceImpl extends ServiceImpl<GongfuAnonymou
}
@Override
public AnonymousTicketInfoVO getInfo(Integer ticketId) {
public AnonymousTicketInfoVO getInfo(Long ticketId) {
GongfuAnonymousTicket ticket = getById(ticketId);
VUtils.trueThrowBusinessError(Objects.isNull(ticket)).throwMessage("未找到工单");
DeviceInfoVO device = deviceService.getByDeviceNo(ticket.getDeviceNo());