浏览代码

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

csx 3 年前
父节点
当前提交
57744efab8
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      controllers/sg/his_api_controller.go

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

@@ -1847,11 +1847,6 @@ func (c *HisApiController) GetRegisterInfo() {
1847 1847
 			his.Status = 0
1848 1848
 			service.CreateHisPatientTwo(&his)
1849 1849
 
1850
-			lists, _ := service.GetHisPatientInfoList(adminInfo.CurrentOrgId, patient.ID, recordDateTime)
1851
-			if len(lists) == 1 {
1852
-				service.UpdateHisPrescriptionHisID(his.ID, patient.ID, recordDateTime, adminInfo.CurrentOrgId)
1853
-			}
1854
-
1855 1850
 			if err == nil {
1856 1851
 				api2 := "http://127.0.0.1:9532/" + "gdyb/four?psn_no=" + his.PsnNo +
1857 1852
 					"&mdtrt_id=" + his.Number + "&doctor=" + patientPrescription.Doctor + "&department=" + department.Name +
@@ -1905,6 +1900,10 @@ func (c *HisApiController) GetRegisterInfo() {
1905 1900
 				} else {
1906 1901
 					his.Status = 1
1907 1902
 					service.UpdateHisPatientStatus(&his)
1903
+					lists, _ := service.GetHisPatientInfoList(adminInfo.CurrentOrgId, patient.ID, recordDateTime)
1904
+					if len(lists) == 1 {
1905
+						service.UpdateHisPrescriptionHisID(his.ID, patient.ID, recordDateTime, adminInfo.CurrentOrgId)
1906
+					}
1908 1907
 
1909 1908
 					c.ServeSuccessJSON(map[string]interface{}{
1910 1909
 						"his_info": his,