【修改SPKS关联逻辑】

This commit is contained in:
weizhihong 2023-12-06 17:43:08 +08:00
parent bf9d0ab624
commit a7102304fd

View File

@ -916,7 +916,7 @@ func buildStationRelationShip(source *proto.Repository, repo *Repository) error
}
for _, group := range protoData.ElectronicGroup {
if group.Code == "SPKS" {
station.spksComponents = buildRelComponent(repo, group.Components)
station.spksComponents = append(station.spksComponents, buildRelComponent(repo, group.Components)...)
} else if group.Code == "EMP" || strings.HasSuffix(group.Code, "EMPJ") {
station.empGroups = append(station.empGroups, &ElectronicComponentGroup{
code: group.Code,