fix
This commit is contained in:
parent
48aa195355
commit
1bee120fcf
4
item.go
4
item.go
@ -212,12 +212,12 @@ func loadObjItem() error {
|
||||
|
||||
err = json.Unmarshal(b, &objItems)
|
||||
var k int64
|
||||
for k = 0; k < len(objItems); k++ {
|
||||
for k = 0; k < int64(len(objItems)); k++ {
|
||||
if len(objItems[k].Names) == 0 {
|
||||
log.Printf("loadObjItems : %s : name missing.\n", objItems[k].Code)
|
||||
} else {
|
||||
if id, ok := cacheObjItem[objItems[k].Code]; ok {
|
||||
log.Printf("loadObjItem : %s : duplicate code found. Belong to %s\n", objItems[id].Code, obj.Names[0])
|
||||
log.Printf("loadObjItem : %s : duplicate code found. Belong to %s\n", objItems[id].Code, objItems[id].Names[0])
|
||||
} else {
|
||||
cacheObjItem[objItems[k].Code] = k
|
||||
objItems[k].ItemTypeID = cacheObjSubType[i.ItemType]
|
||||
|
Loading…
Reference in New Issue
Block a user