【修复】工服匿名工单的问题
This commit is contained in:
parent
6c188b1863
commit
4e6100a7db
|
|
@ -12,7 +12,7 @@ import java.util.List;
|
|||
public class AnonymousTicketInfoVO {
|
||||
|
||||
//工单id
|
||||
private int id;
|
||||
private Long id;
|
||||
|
||||
//工单编号
|
||||
private String no;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class AnonymousTicketSearchVO {
|
|||
/**
|
||||
* 工单id
|
||||
*/
|
||||
private int id;
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 工单编号
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,5 +21,5 @@ public interface IGongfuAnonymousTicketService extends IService<GongfuAnonymousT
|
|||
|
||||
IPage<AnonymousTicketSearchVO> search(AnonymousTicketSearchRequest request);
|
||||
|
||||
AnonymousTicketInfoVO getInfo(Integer ticketId);
|
||||
AnonymousTicketInfoVO getInfo(Long ticketId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue