fix(machines): 修复机器服务中的ID类型映射问题
This commit is contained in:
parent
24f63aa3ed
commit
0482415535
@ -76,9 +76,9 @@ public class MachineServiceImpl extends ServiceImpl<MachineMapper, MachineEntity
|
||||
List<ProLineEntity> proLineList = proLineService.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));
|
||||
Map<Long, String> procMap = procList.stream()
|
||||
Map<String, String> procMap = procList.stream()
|
||||
.collect(Collectors.toMap(ProcEntity::getId, ProcEntity::getProcName));
|
||||
|
||||
// 设置产线和工序名称
|
||||
|
||||
@ -13,7 +13,7 @@ import java.util.Date;
|
||||
@TableName("tba_proc")
|
||||
public class ProcEntity {
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
private String id;
|
||||
@TableField(value = "f_creator_user_id", fill = FieldFill.INSERT)
|
||||
private String creatorUserId;
|
||||
@TableField(value = "f_creator_time", fill = FieldFill.INSERT)
|
||||
|
||||
@ -13,7 +13,7 @@ import java.util.Date;
|
||||
@TableName("tba_pro_line")
|
||||
public class ProLineEntity {
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
private String id;
|
||||
@TableField(value = "f_creator_user_id", fill = FieldFill.INSERT)
|
||||
private String creatorUserId;
|
||||
@TableField(value = "f_creator_time", fill = FieldFill.INSERT)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user