csx 3 年 前
コミット
0e83201b80
共有1 個のファイルを変更した3 個の追加2 個の削除を含む
  1. 3 2
      controllers/his_api_controller.go

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

@@ -2076,7 +2076,7 @@ func (c *HisApiController) setProjectWithJSON(project *models.HisPrescriptionPro
2076 2076
 		project.Checker = temp_project.Checker
2077 2077
 		project.CheckState = temp_project.CheckState
2078 2078
 		project.CheckTime = temp_project.CheckTime
2079
-
2079
+		project.TeamId = temp_project.TeamId
2080 2080
 	}
2081 2081
 	if json["type"] != nil || reflect.TypeOf(json["type"]).String() == "float64" {
2082 2082
 		types := int64(json["type"].(float64))
@@ -2089,11 +2089,12 @@ func (c *HisApiController) setProjectWithJSON(project *models.HisPrescriptionPro
2089 2089
 		fmt.Println(project.ProjectId)
2090 2090
 	}
2091 2091
 
2092
-	if json["team_id"] != nil || reflect.TypeOf(json["team_id"]).String() == "float64" {
2092
+	if json["team_id"] != nil && reflect.TypeOf(json["team_id"]).String() == "float64" {
2093 2093
 		team_id := int64(json["team_id"].(float64))
2094 2094
 		project.TeamId = team_id
2095 2095
 
2096 2096
 	}
2097
+
2097 2098
 	if json["price"] != nil || reflect.TypeOf(json["price"]).String() == "string" {
2098 2099
 		price, _ := strconv.ParseFloat(json["price"].(string), 64)
2099 2100
 		project.Price = price