mainqaq 3 лет назад
Родитель
Сommit
6e68c8f011
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2 2
      service/supply_service.go

+ 2 - 2
service/supply_service.go Просмотреть файл

@@ -52,7 +52,7 @@ func UpdateSupplyAndContact(thisStockIn []interface{}, suid, orgId, supplierType
52 52
 		name := items["name"].(string)
53 53
 		phone := items["phone"].(string)
54 54
 		address := items["address"].(string)
55
-		isfirst := int64(items["is_first"].(int))
55
+		isfirst := int64(items["is_first"].(float64))
56 56
 		updatecontacts := models.SpSupplierContacts{
57 57
 			ID:           id,
58 58
 			Name:         name,
@@ -176,7 +176,7 @@ func SaveSupplyAndContact(thisStockIn []interface{}, orgId, supplierType, tcreat
176 176
 		name := items["name"].(string)
177 177
 		phone := items["phone"].(string)
178 178
 		address := items["address"].(string)
179
-		isfirst := int64(items["is_first"].(int))
179
+		isfirst := int64(items["is_first"].(float64))
180 180
 
181 181
 		spcontacts := models.SpSupplierContacts{
182 182
 			Name:         name,