fix(machines): 修复机器服务中的ID类型映射问题

This commit is contained in:
zxy 2026-04-13 17:04:30 +08:00
parent 24f63aa3ed
commit 0482415535
3 changed files with 4 additions and 4 deletions

View File

@ -76,9 +76,9 @@ public class MachineServiceImpl extends ServiceImpl<MachineMapper, MachineEntity
List<ProLineEntity> proLineList = proLineService.list(); List<ProLineEntity> proLineList = proLineService.list();
List<ProcEntity> procList = procService.list(); List<ProcEntity> procList = procService.list();
Map<Long, String> proLineMap = proLineList.stream() Map<String, String> proLineMap = proLineList.stream()
.collect(Collectors.toMap(ProLineEntity::getId, ProLineEntity::getProLineName)); .collect(Collectors.toMap(ProLineEntity::getId, ProLineEntity::getProLineName));
Map<Long, String> procMap = procList.stream() Map<String, String> procMap = procList.stream()
.collect(Collectors.toMap(ProcEntity::getId, ProcEntity::getProcName)); .collect(Collectors.toMap(ProcEntity::getId, ProcEntity::getProcName));
// 设置产线和工序名称 // 设置产线和工序名称

View File

@ -13,7 +13,7 @@ import java.util.Date;
@TableName("tba_proc") @TableName("tba_proc")
public class ProcEntity { public class ProcEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private String id;
@TableField(value = "f_creator_user_id", fill = FieldFill.INSERT) @TableField(value = "f_creator_user_id", fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField(value = "f_creator_time", fill = FieldFill.INSERT) @TableField(value = "f_creator_time", fill = FieldFill.INSERT)

View File

@ -13,7 +13,7 @@ import java.util.Date;
@TableName("tba_pro_line") @TableName("tba_pro_line")
public class ProLineEntity { public class ProLineEntity {
@TableId(value = "id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
private Long id; private String id;
@TableField(value = "f_creator_user_id", fill = FieldFill.INSERT) @TableField(value = "f_creator_user_id", fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField(value = "f_creator_time", fill = FieldFill.INSERT) @TableField(value = "f_creator_time", fill = FieldFill.INSERT)