瀏覽代碼

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

csx 3 年之前
父節點
當前提交
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,6 +1,6 @@
1 1
 appname = 血透
2 2
 httpport = 9532
3
-runmode = prod
3
+runmode = dev
4 4
 
5 5
 #
6 6
 copyrequestbody = true

+ 4 - 4
controllers/sg/his_api_controller.go 查看文件

@@ -1779,7 +1779,7 @@ func (c *HisApiController) GetRegisterInfo() {
1779 1779
 				insutype = "310"
1780 1780
 			}
1781 1781
 
1782
-			insutype = "390"
1782
+			//insutype = "390"
1783 1783
 
1784 1784
 			//if count == 1 {
1785 1785
 			//	c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeRegisterRepeatException)
@@ -2037,14 +2037,14 @@ func (c *HisApiController) GetUploadInfo() {
2037 2037
 
2038 2038
 	roles, _ := service.GetAdminUserInfoByID(adminUser.CurrentOrgId, admin_user_id)
2039 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 2041
 	timestamp := time.Now().Unix()
2042 2042
 	tempTime := time.Unix(timestamp, 0)
2043 2043
 	timeFormat := tempTime.Format("20060102150405")
2044 2044
 	chrgBchno := rand.Intn(100000) + 10000
2045 2045
 	chrg_bchno := timeFormat + strconv.FormatInt(int64(chrgBchno), 10) + strconv.FormatInt(his.PatientId, 10)
2046 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 2048
 	department, _ := service.GetDepartMentDetail(patientPrescription.Departments)
2049 2049
 	strconv.FormatInt(his.PatientId, 10)
2050 2050
 
@@ -2261,7 +2261,7 @@ func (c *HisApiController) GetUploadInfo() {
2261 2261
 					insutype = "310"
2262 2262
 				}
2263 2263
 
2264
-				insutype = "390"
2264
+				//insutype = "390"
2265 2265
 				if his.IdCardType == 1 {
2266 2266
 					cert_no = his.MedicalInsuranceNumber
2267 2267