陈少旭 před 2 měsíci
rodič
revize
5152f6be26
2 změnil soubory, kde provedl 809 přidání a 179 odebrání
  1. 794 179
      controllers/his_api_controller.go
  2. 15 0
      service/his_service.go

Diff nebyl zobrazen, protože je příliš veliký
+ 794 - 179
controllers/his_api_controller.go


+ 15 - 0
service/his_service.go Zobrazit soubor

@@ -2212,6 +2212,11 @@ func GetPrescriptionById(id int64, org_id int64) (prescription models.HisPrescri
2212 2212
 	return
2213 2213
 }
2214 2214
 
2215
+func GetPrescriptionByIdTwo(id int64) (prescription models.HisPrescription, err error) {
2216
+	err = readDb.Model(&models.HisPrescription{}).Where("id = ?  AND status = 1", id).First(&prescription).Error
2217
+	return
2218
+}
2219
+
2215 2220
 type CustomInComeStatistics struct {
2216 2221
 	PsnName            string  `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
2217 2222
 	SetlTime           string  `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
@@ -2946,3 +2951,13 @@ func GetHisPrescriptionByHisPatientID(record_date int64, org_id int64, patient_i
2946 2951
 
2947 2952
 	return
2948 2953
 }
2954
+
2955
+func GetBatchHisDoctorAdviceByIDs(ids []int64) (list []*models.HisDoctorAdviceInfo, err error) {
2956
+	err = readDb.Model(&models.HisDoctorAdviceInfo{}).Where("id in (?) and status = 1", ids).Where(&list).Error
2957
+	return
2958
+}
2959
+
2960
+func GetBatchHisProjectByIDs(ids []int64) (list []*models.HisPrescriptionProject, err error) {
2961
+	err = readDb.Model(&models.HisPrescriptionProject{}).Where("id in (?) and status = 1", ids).Where(&list).Error
2962
+	return
2963
+}