Browse Source

需求更改

XMLWAN 5 years ago
parent
commit
e28707b01c
1 changed files with 26 additions and 26 deletions
  1. 26 26
      controllers/mobile_api_controllers/dialysis_api_controller.go

+ 26 - 26
controllers/mobile_api_controllers/dialysis_api_controller.go View File

335
 		return
335
 		return
336
 	}
336
 	}
337
 
337
 
338
-	dialysisPrescribe, getDialysisPrescribeErr := service.MobileGetDialysisPrescribeByModeId(adminInfo.Org.Id, patientID, date.Unix(), schedual.ModeId)
339
-	if getDialysisPrescribeErr != nil {
340
-		this.ErrorLog("获取透析处方失败:%v", getDialysisPrescribeErr)
341
-		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
342
-		return
343
-	}
338
+	dialysisPrescribe, _ := service.MobileGetDialysisPrescribeByModeId(adminInfo.Org.Id, patientID, date.Unix(), schedual.ModeId)
339
+	//if getDialysisPrescribeErr != nil {
340
+	//	this.ErrorLog("获取透析处方失败:%v", getDialysisPrescribeErr)
341
+	//	this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
342
+	//	return
343
+	//}
344
 
344
 
345
-	dialysisSolution, getDialysisSolutionErr := service.MobileGetDialysisSolutionByModeId(adminInfo.Org.Id, patientID, schedual.ModeId)
346
-	if getDialysisSolutionErr != nil {
347
-		this.ErrorLog("获取透析方案失败:%v", getDialysisSolutionErr)
348
-		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
349
-		return
350
-	}
345
+	dialysisSolution, _ := service.MobileGetDialysisSolutionByModeId(adminInfo.Org.Id, patientID, schedual.ModeId)
346
+	//if getDialysisSolutionErr != nil {
347
+	//	this.ErrorLog("获取透析方案失败:%v", getDialysisSolutionErr)
348
+	//	this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
349
+	//	return
350
+	//}
351
 
351
 
352
-	lastDialysisPrescribe, getDialysisPrescribeErr := service.MobileGetLastDialysisPrescribeByModeId(adminInfo.Org.Id, patientID, schedual.ModeId)
353
-	if getDialysisPrescribeErr != nil {
354
-		this.ErrorLog("获取透析处方失败:%v", getDialysisPrescribeErr)
355
-		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
356
-		return
357
-	}
352
+	lastDialysisPrescribe, _ := service.MobileGetLastDialysisPrescribeByModeId(adminInfo.Org.Id, patientID, schedual.ModeId)
353
+	//fmt.Println("上次透析处方",lastDialysisPrescribe.DialyzerPerfusionApparatus)
354
+	//if getDialysisPrescribeErr != nil {
355
+	//	this.ErrorLog("获取透析处方失败:%v", getDialysisPrescribeErr)
356
+	//	this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
357
+	//	return
358
+	//}
358
 
359
 
359
 	//获取系统透析处方模版
360
 	//获取系统透析处方模版
360
-	systemDialysisPrescribe, getSystemDialysisPrescribeErr := service.MobileGetSystemDialysisPrescribeByModeId(adminInfo.Org.Id, schedual.ModeId)
361
-	if getSystemDialysisPrescribeErr != nil {
362
-		this.ErrorLog("获取系统透析处方失败:%v", getSystemDialysisPrescribeErr)
363
-		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
364
-		return
365
-	}
361
+	systemDialysisPrescribe, _ := service.MobileGetSystemDialysisPrescribeByModeId(adminInfo.Org.Id, schedual.ModeId)
362
+	//if getSystemDialysisPrescribeErr != nil {
363
+	//	this.ErrorLog("获取系统透析处方失败:%v", getSystemDialysisPrescribeErr)
364
+	//	this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
365
+	//	return
366
+	//}
366
 
367
 
367
 	//dialysisSolution, getDialysisSolutionErr := service.MobileGetDialysisSolution(adminInfo.Org.Id, patientID)
368
 	//dialysisSolution, getDialysisSolutionErr := service.MobileGetDialysisSolution(adminInfo.Org.Id, patientID)
368
 
369
 
388
 	goodInfos, _ := service.FindAllGoodInfo(adminInfo.Org.Id) //查出所有库存配置的系统类型
389
 	goodInfos, _ := service.FindAllGoodInfo(adminInfo.Org.Id) //查出所有库存配置的系统类型
389
 
390
 
390
 	operators, err := service.GetAllStarfEs(adminInfo.Org.Id)
391
 	operators, err := service.GetAllStarfEs(adminInfo.Org.Id)
391
-	fmt.Println("报错-------", err)
392
-	fmt.Println("op----------------------------------------------------------", operators)
392
+	fmt.Println("报错", err)
393
 
393
 
394
 	returnData := map[string]interface{}{
394
 	returnData := map[string]interface{}{
395
 		"patient":                        patient,
395
 		"patient":                        patient,