工单管理-字段类型修改

This commit is contained in:
2025-07-11 16:43:47 +08:00
parent 05a2af8c92
commit 84757ab358
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ public class EmsTicket extends BaseEntity
/** 提交用户ID */ /** 提交用户ID */
@Excel(name = "提交用户ID") @Excel(name = "提交用户ID")
private String userId; private Long userId;
/** 工单标题 */ /** 工单标题 */
@Excel(name = "工单标题") @Excel(name = "工单标题")
@ -77,12 +77,12 @@ public class EmsTicket extends BaseEntity
return ticketNo; return ticketNo;
} }
public void setUserId(String userId) public void setUserId(Long userId)
{ {
this.userId = userId; this.userId = userId;
} }
public String getUserId() public Long getUserId()
{ {
return userId; return userId;
} }

View File

@ -143,7 +143,7 @@ public class EmsAlarmRecordsServiceImpl implements IEmsAlarmRecordsService
emsTicket.setTicketNo(ticketNo); emsTicket.setTicketNo(ticketNo);
emsTicket.setTitle("工单"+id.toString()); emsTicket.setTitle("工单"+id.toString());
emsTicket.setContent(emsAlarmRecords.getAlarmContent()); emsTicket.setContent(emsAlarmRecords.getAlarmContent());
emsTicket.setUserId(userId.toString()); emsTicket.setUserId(userId);
emsTicket.setWorkUserId(userId); emsTicket.setWorkUserId(userId);
emsTicket.setCreateTime(DateUtils.getNowDate()); emsTicket.setCreateTime(DateUtils.getNowDate());
emsTicket.setCreateBy(user.getUserName()); emsTicket.setCreateBy(user.getUserName());