mainqaq 3 年 前
コミット
75a3e78aef
共有2 個のファイルを変更した4 個の追加4 個の削除を含む
  1. 2 2
      controllers/supply_order_api_contorller.go
  2. 2 2
      service/supply_service.go

+ 2 - 2
controllers/supply_order_api_contorller.go ファイルの表示

@@ -267,7 +267,7 @@ func (this *SupplyOrderApiController) UpdateSupply() {
267 267
 			if len(thisStockIn) == 1 {
268 268
 				for _, item := range thisStockIn {
269 269
 					items := item.(map[string]interface{})
270
-					items["isfirst"] = 1
270
+					items["is_first"] = 1
271 271
 				}
272 272
 			}
273 273
 			tmodify := this.GetAdminUserInfo().AdminUser.Id
@@ -505,7 +505,7 @@ func (this *SupplyOrderApiController) SaveSupply() {
505 505
 			if len(thisStockIn) == 1 {
506 506
 				for _, item := range thisStockIn {
507 507
 					items := item.(map[string]interface{})
508
-					items["isfirst"] = 1
508
+					items["is_first"] = 1
509 509
 				}
510 510
 			}
511 511
 			tcreater := this.GetAdminUserInfo().AdminUser.Id

+ 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["isfirst"].(int))
55
+		isfirst := int64(items["is_first"].(int))
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["isfirst"].(int))
179
+		isfirst := int64(items["is_first"].(int))
180 180
 
181 181
 		spcontacts := models.SpSupplierContacts{
182 182
 			Name:         name,