Bladeren bron

更新代码

XMLWAN 5 jaren geleden
bovenliggende
commit
ce888f33cd

+ 2 - 0
controllers/mobile_api_controllers/dialysis_api_controller.go Bestand weergeven

220
 // @param patient_id:int
220
 // @param patient_id:int
221
 // @param date:string (yyyy-MM-dd)
221
 // @param date:string (yyyy-MM-dd)
222
 func (this *DialysisAPIController) DialysisRecord() {
222
 func (this *DialysisAPIController) DialysisRecord() {
223
+
223
 	patientID, _ := this.GetInt64("patient_id")
224
 	patientID, _ := this.GetInt64("patient_id")
224
 	recordDateStr := this.GetString("date")
225
 	recordDateStr := this.GetString("date")
225
 	if patientID <= 0 {
226
 	if patientID <= 0 {
284
 	}
285
 	}
285
 
286
 
286
 	dialysisOrder, getDialysisOrderErr := service.MobileGetSchedualDialysisRecord(adminInfo.Org.Id, patientID, date.Unix())
287
 	dialysisOrder, getDialysisOrderErr := service.MobileGetSchedualDialysisRecord(adminInfo.Org.Id, patientID, date.Unix())
288
+	fmt.Println("----------------------------", getDialysisOrderErr)
287
 	if getDialysisOrderErr != nil {
289
 	if getDialysisOrderErr != nil {
288
 		this.ErrorLog("获取透析记录失败:%v", getDialysisOrderErr)
290
 		this.ErrorLog("获取透析记录失败:%v", getDialysisOrderErr)
289
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
291
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)

+ 1 - 1
controllers/mobile_api_controllers/patient_api_controller.go Bestand weergeven

2080
 }
2080
 }
2081
 
2081
 
2082
 func (c *PatientApiController) GetPrintDialysisOrder() {
2082
 func (c *PatientApiController) GetPrintDialysisOrder() {
2083
+	fmt.Println("触发-------------------------")
2083
 	xtno := c.GetString("xtno")
2084
 	xtno := c.GetString("xtno")
2084
 	xtdate := c.GetString("xtdate")
2085
 	xtdate := c.GetString("xtdate")
2085
 
2086
 
2154
 	operators, _ := service.GetAdminUserES(adminUserInfo.Org.Id, adminUserInfo.App.Id, operatorIDs)
2155
 	operators, _ := service.GetAdminUserES(adminUserInfo.Org.Id, adminUserInfo.App.Id, operatorIDs)
2155
 	templateInfo, _ := service.GetOrgInfoTemplate(adminUserInfo.Org.Id)
2156
 	templateInfo, _ := service.GetOrgInfoTemplate(adminUserInfo.Org.Id)
2156
 	check, _ := service.FindDoubleCheckById(adminUserInfo.Org.Id, patientInfo.ID, xttime)
2157
 	check, _ := service.FindDoubleCheckById(adminUserInfo.Org.Id, patientInfo.ID, xttime)
2157
-
2158
 	c.ServeSuccessJSON(map[string]interface{}{
2158
 	c.ServeSuccessJSON(map[string]interface{}{
2159
 		"users":                   adminUser,
2159
 		"users":                   adminUser,
2160
 		"patientInfo":             patientInfo,
2160
 		"patientInfo":             patientInfo,