csx před 3 roky
rodič
revize
a0fc26c23f

+ 1 - 2
controllers/doctors_api_controller.go Zobrazit soubor

@@ -86,8 +86,8 @@ func (c *DoctorsApiController) ScheduleAdvices() {
86 86
 
87 87
 	project, _ := service.GetPCHisPrescriptionProject(orgID, date.Unix(), delivery_way, patientType, partition_type, patient_id)
88 88
 
89
-	index := 0
90 89
 	for _, item := range project {
90
+		index := 0
91 91
 		for _, subItem := range item.HisPrescriptionTeamProject {
92 92
 
93 93
 			if subItem.HisProject.CostClassify != 3 {
@@ -104,7 +104,6 @@ func (c *DoctorsApiController) ScheduleAdvices() {
104 104
 			}
105 105
 		}
106 106
 	}
107
-
108 107
 	config, _ := service.GetHisDoctorConfig(orgID)
109 108
 	project_config, _ := service.GetHisProjectConfig(orgID)
110 109
 

+ 1 - 1
controllers/mobile_api_controllers/doctor_advice_api_controller.go Zobrazit soubor

@@ -45,8 +45,8 @@ func (this *DoctorAdviceAPIController) ScheduleAdvices() {
45 45
 		//获取his医嘱数据
46 46
 		project, _ := service.GetMobileHisPrescriptionProject(orgID, date.Unix(), delivery_way, patientType, adminInfo.AdminUser.Id)
47 47
 		//team_project, _ := service.GetMobileHisPrescriptionTeamProject(orgID, date.Unix(), delivery_way, patientType, adminInfo.AdminUser.Id)
48
-		index := 0
49 48
 		for _, item := range project {
49
+			index := 0
50 50
 			for _, subItem := range item.HisPrescriptionTeamProject {
51 51
 
52 52
 				if subItem.HisProject.CostClassify != 3 {

+ 1 - 0
service/mobile_dialysis_service.go Zobrazit soubor

@@ -2547,6 +2547,7 @@ func GetHisPrescriptionProject(org_id int64, patient_id int64, record_date int64
2547 2547
 
2548 2548
 func GetPCHisPrescriptionProject(orgID int64, scheduleDate int64, deliverWay string, patientType int, adminUserId int64, patient_id int64) ([]*HisMScheduleProjectVM, error) {
2549 2549
 	var vms []*HisMScheduleProjectVM
2550
+
2550 2551
 	if patientType == 0 {
2551 2552
 
2552 2553
 		if patient_id > 0 {