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

+ 2 - 2
service/supply_service.go 查看文件

52
 		name := items["name"].(string)
52
 		name := items["name"].(string)
53
 		phone := items["phone"].(string)
53
 		phone := items["phone"].(string)
54
 		address := items["address"].(string)
54
 		address := items["address"].(string)
55
-		isfirst := int64(items["isfirst"].(int))
55
+		isfirst := int64(items["is_first"].(int))
56
 		updatecontacts := models.SpSupplierContacts{
56
 		updatecontacts := models.SpSupplierContacts{
57
 			ID:           id,
57
 			ID:           id,
58
 			Name:         name,
58
 			Name:         name,
176
 		name := items["name"].(string)
176
 		name := items["name"].(string)
177
 		phone := items["phone"].(string)
177
 		phone := items["phone"].(string)
178
 		address := items["address"].(string)
178
 		address := items["address"].(string)
179
-		isfirst := int64(items["isfirst"].(int))
179
+		isfirst := int64(items["is_first"].(int))
180
 
180
 
181
 		spcontacts := models.SpSupplierContacts{
181
 		spcontacts := models.SpSupplierContacts{
182
 			Name:         name,
182
 			Name:         name,