Преглед на файлове

Merge branch '20201014_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20201014_xt_api_new_branch

csx преди 4 години
родител
ревизия
2d543787c2
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      controllers/his_api_controller.go

+ 6 - 1
controllers/his_api_controller.go Целия файл

251
 							p.RecordDate = recordDateTime
251
 							p.RecordDate = recordDateTime
252
 							p.UserOrgId = adminInfo.CurrentOrgId
252
 							p.UserOrgId = adminInfo.CurrentOrgId
253
 							p.HisPatientId = his_patient_id
253
 							p.HisPatientId = his_patient_id
254
+							p.Status = 1
254
 							errcode := c.setProjectWithJSON(&p, project.(map[string]interface{}))
255
 							errcode := c.setProjectWithJSON(&p, project.(map[string]interface{}))
255
 							if errcode > 0 {
256
 							if errcode > 0 {
256
 								c.ServeFailJSONWithSGJErrorCode(errcode)
257
 								c.ServeFailJSONWithSGJErrorCode(errcode)
805
 		project.Price = float_price
806
 		project.Price = float_price
806
 	}
807
 	}
807
 
808
 
809
+	if json["total"] != nil && reflect.TypeOf(json["total"]).String() == "string" {
810
+		total, _ := json["total"].(string)
811
+		totals, _ := strconv.ParseInt(total, 10, 64)
812
+		project.Count = totals
813
+	}
808
 	return 0
814
 	return 0
809
-
810
 }
815
 }
811
 
816
 
812
 type ResultFour struct {
817
 type ResultFour struct {