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

Merge remote-tracking branch 'origin/20230223_xt_api_new_branch' into 20230223_xt_api_new_branch

28169 3 дней назад
Родитель
Сommit
2e2916eb36
1 измененных файлов: 44 добавлений и 44 удалений
  1. 44 44
      controllers/his_api_controller.go

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

@@ -1762,7 +1762,7 @@ func (c *HisApiController) GetHisPatientInfo() {
1762 1762
 			if index >= 0 && index < len(sch_prescriptions) {
1763 1763
 				one, _ := service.GetGoodInformationByGoodId(pre.DialysisDialyszersId)
1764 1764
 				two, _ := service.GetGoodInformationByGoodId(pre.DialysisIrrigationId)
1765
-				three, _ := service.GetGoodInformationByGoodId(pre.DialysisStrainerId)
1765
+				//three, _ := service.GetGoodInformationByGoodId(pre.DialysisStrainerId)
1766 1766
 				if one.ID > 0 {
1767 1767
 					var hpt models.HisPrescriptionProjectTemplate
1768 1768
 					hpt.Type = 3
@@ -1805,27 +1805,27 @@ func (c *HisApiController) GetHisPatientInfo() {
1805 1805
 					hpt.GoodInfo = two
1806 1806
 					sch_prescriptions[index].HisPrescriptionProjectTemplate = append(sch_prescriptions[index].HisPrescriptionProjectTemplate, &hpt)
1807 1807
 				}
1808
-				if three.ID > 0 {
1809
-					var hpt models.HisPrescriptionProjectTemplate
1810
-					hpt.Type = 3
1811
-					hpt.ID = 0
1812
-					hpt.PatientId = sch_prescriptions[index].PatientId
1813
-					hpt.Status = 1
1814
-					hpt.UserOrgId = sch_prescriptions[index].UserOrgId
1815
-					hpt.Mtime = time.Now().Unix()
1816
-					hpt.Ctime = time.Now().Unix()
1817
-					hpt.RecordDate = sch_prescriptions[index].RecordDate
1818
-					hpt.Count = "1"
1819
-					hpt.Price = three.RetailPrice
1820
-					hpt.ProjectId = three.ID
1821
-					hpt.FeedetlSn = ""
1822
-					hpt.PrescriptionId = sch_prescriptions[index].ID
1823
-					hpt.Unit = three.PackingUnit
1824
-					hpt.Day = "1"
1825
-					hpt.SingleDose = "1"
1826
-					hpt.GoodInfo = three
1827
-					sch_prescriptions[index].HisPrescriptionProjectTemplate = append(sch_prescriptions[index].HisPrescriptionProjectTemplate, &hpt)
1828
-				}
1808
+				//if three.ID > 0 {
1809
+				//	var hpt models.HisPrescriptionProjectTemplate
1810
+				//	hpt.Type = 3
1811
+				//	hpt.ID = 0
1812
+				//	hpt.PatientId = sch_prescriptions[index].PatientId
1813
+				//	hpt.Status = 1
1814
+				//	hpt.UserOrgId = sch_prescriptions[index].UserOrgId
1815
+				//	hpt.Mtime = time.Now().Unix()
1816
+				//	hpt.Ctime = time.Now().Unix()
1817
+				//	hpt.RecordDate = sch_prescriptions[index].RecordDate
1818
+				//	hpt.Count = "1"
1819
+				//	hpt.Price = three.RetailPrice
1820
+				//	hpt.ProjectId = three.ID
1821
+				//	hpt.FeedetlSn = ""
1822
+				//	hpt.PrescriptionId = sch_prescriptions[index].ID
1823
+				//	hpt.Unit = three.PackingUnit
1824
+				//	hpt.Day = "1"
1825
+				//	hpt.SingleDose = "1"
1826
+				//	hpt.GoodInfo = three
1827
+				//	sch_prescriptions[index].HisPrescriptionProjectTemplate = append(sch_prescriptions[index].HisPrescriptionProjectTemplate, &hpt)
1828
+				//}
1829 1829
 
1830 1830
 				fmt.Println(sch_prescriptions)
1831 1831
 			}
@@ -1840,7 +1840,7 @@ func (c *HisApiController) GetHisPatientInfo() {
1840 1840
 				if index >= 0 && index < len(last_prescriptions) {
1841 1841
 					one, _ := service.GetGoodInformationByGoodId(pre.DialysisDialyszersId)
1842 1842
 					two, _ := service.GetGoodInformationByGoodId(pre.DialysisIrrigationId)
1843
-					three, _ := service.GetGoodInformationByGoodId(pre.DialysisStrainerId)
1843
+					//three, _ := service.GetGoodInformationByGoodId(pre.DialysisStrainerId)
1844 1844
 					if one.ID > 0 {
1845 1845
 						var hpt models.HisPrescriptionProject
1846 1846
 						hpt.Type = 3
@@ -1884,27 +1884,27 @@ func (c *HisApiController) GetHisPatientInfo() {
1884 1884
 						hpt.GoodInfo = two
1885 1885
 						last_prescriptions[index].HisPrescriptionProject = append(last_prescriptions[index].HisPrescriptionProject, &hpt)
1886 1886
 					}
1887
-					if three.ID > 0 {
1888
-						var hpt models.HisPrescriptionProject
1889
-						hpt.Type = 3
1890
-						hpt.ID = 0
1891
-						hpt.PatientId = last_prescriptions[index].PatientId
1892
-						hpt.Status = 1
1893
-						hpt.UserOrgId = last_prescriptions[index].UserOrgId
1894
-						hpt.Mtime = time.Now().Unix()
1895
-						hpt.Ctime = time.Now().Unix()
1896
-						hpt.RecordDate = last_prescriptions[index].RecordDate
1897
-						hpt.Count = "1"
1898
-						hpt.Price = three.RetailPrice
1899
-						hpt.ProjectId = three.ID
1900
-						hpt.FeedetlSn = ""
1901
-						hpt.PrescriptionId = last_prescriptions[index].ID
1902
-						hpt.Unit = three.PackingUnit
1903
-						hpt.Day = "1"
1904
-						hpt.SingleDose = "1"
1905
-						hpt.GoodInfo = three
1906
-						last_prescriptions[index].HisPrescriptionProject = append(last_prescriptions[index].HisPrescriptionProject, &hpt)
1907
-					}
1887
+					//if three.ID > 0 {
1888
+					//	var hpt models.HisPrescriptionProject
1889
+					//	hpt.Type = 3
1890
+					//	hpt.ID = 0
1891
+					//	hpt.PatientId = last_prescriptions[index].PatientId
1892
+					//	hpt.Status = 1
1893
+					//	hpt.UserOrgId = last_prescriptions[index].UserOrgId
1894
+					//	hpt.Mtime = time.Now().Unix()
1895
+					//	hpt.Ctime = time.Now().Unix()
1896
+					//	hpt.RecordDate = last_prescriptions[index].RecordDate
1897
+					//	hpt.Count = "1"
1898
+					//	hpt.Price = three.RetailPrice
1899
+					//	hpt.ProjectId = three.ID
1900
+					//	hpt.FeedetlSn = ""
1901
+					//	hpt.PrescriptionId = last_prescriptions[index].ID
1902
+					//	hpt.Unit = three.PackingUnit
1903
+					//	hpt.Day = "1"
1904
+					//	hpt.SingleDose = "1"
1905
+					//	hpt.GoodInfo = three
1906
+					//	last_prescriptions[index].HisPrescriptionProject = append(last_prescriptions[index].HisPrescriptionProject, &hpt)
1907
+					//}
1908 1908
 				}
1909 1909
 			}
1910 1910
 		}