csx 3 年 前
コミット
a0fc26c23f
共有3 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 1 2
      controllers/doctors_api_controller.go
  2. 1 1
      controllers/mobile_api_controllers/doctor_advice_api_controller.go
  3. 1 0
      service/mobile_dialysis_service.go

+ 1 - 2
controllers/doctors_api_controller.go ファイルの表示

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

+ 1 - 1
controllers/mobile_api_controllers/doctor_advice_api_controller.go ファイルの表示

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

+ 1 - 0
service/mobile_dialysis_service.go ファイルの表示

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