Просмотр исходного кода

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 4 лет назад
Родитель
Сommit
12a6158e7e
2 измененных файлов: 5 добавлений и 5 удалений
  1. 1 1
      conf/app.conf
  2. 4 4
      controllers/sg/his_api_controller.go

+ 1 - 1
conf/app.conf Просмотреть файл

1
 appname = 血透
1
 appname = 血透
2
 httpport = 9532
2
 httpport = 9532
3
-runmode = prod
3
+runmode = dev
4
 
4
 
5
 #
5
 #
6
 copyrequestbody = true
6
 copyrequestbody = true

+ 4 - 4
controllers/sg/his_api_controller.go Просмотреть файл

1779
 				insutype = "310"
1779
 				insutype = "310"
1780
 			}
1780
 			}
1781
 
1781
 
1782
-			insutype = "390"
1782
+			//insutype = "390"
1783
 
1783
 
1784
 			//if count == 1 {
1784
 			//if count == 1 {
1785
 			//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterRepeatException)
1785
 			//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterRepeatException)
2037
 
2037
 
2038
 	roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
2038
 	roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
2039
 	fmt.Println(his_patient_id)
2039
 	fmt.Println(his_patient_id)
2040
-	his, _ := service.GetHisPatientInfo(adminUser.CurrentOrgId, id, recordDateTime)
2040
+	his, _ := service.GetNewHisPatientInfo(adminUser.CurrentOrgId, his_patient_id, recordDateTime)
2041
 	timestamp := time.Now().Unix()
2041
 	timestamp := time.Now().Unix()
2042
 	tempTime := time.Unix(timestamp, 0)
2042
 	tempTime := time.Unix(timestamp, 0)
2043
 	timeFormat := tempTime.Format("20060102150405")
2043
 	timeFormat := tempTime.Format("20060102150405")
2044
 	chrgBchno := rand.Intn(100000) + 10000
2044
 	chrgBchno := rand.Intn(100000) + 10000
2045
 	chrg_bchno := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(his.PatientId, 10)
2045
 	chrg_bchno := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(his.PatientId, 10)
2046
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
2046
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
2047
-	patientPrescription, _ := service.FindPatientPrescriptionInfo(adminUser.CurrentOrgId, id, recordDateTime)
2047
+	patientPrescription, _ := service.FindHisPatientPrescriptionInfo(adminUser.CurrentOrgId, his_patient_id, recordDateTime)
2048
 	department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
2048
 	department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
2049
 	strconv.FormatInt(his.PatientId, 10)
2049
 	strconv.FormatInt(his.PatientId, 10)
2050
 
2050
 
2261
 					insutype = "310"
2261
 					insutype = "310"
2262
 				}
2262
 				}
2263
 
2263
 
2264
-				insutype = "390"
2264
+				//insutype = "390"
2265
 				if his.IdCardType == 1 {
2265
 				if his.IdCardType == 1 {
2266
 					cert_no = his.MedicalInsuranceNumber
2266
 					cert_no = his.MedicalInsuranceNumber
2267
 
2267