|
@@ -933,3 +933,52 @@ func (this *NewDialysisApiController) GetEducationDetail() {
|
933
|
933
|
"education": education,
|
934
|
934
|
})
|
935
|
935
|
}
|
|
936
|
+
|
|
937
|
+func (this *NewDialysisApiController) DeleteEducation() {
|
|
938
|
+ id, _ := this.GetInt64("id")
|
|
939
|
+ fmt.Print("id", id)
|
|
940
|
+ err := service.DeleteEducation(id)
|
|
941
|
+ fmt.Println("错误是什么", err)
|
|
942
|
+ returnData := make(map[string]interface{}, 0)
|
|
943
|
+ returnData["msg"] = "ok"
|
|
944
|
+ this.ServeSuccessJSON(returnData)
|
|
945
|
+ return
|
|
946
|
+}
|
|
947
|
+
|
|
948
|
+func (this *NewDialysisApiController) GetRescueRecordDetail() {
|
|
949
|
+ id, _ := this.GetInt64("id")
|
|
950
|
+ fmt.Print("id========", id)
|
|
951
|
+ recordDetail, err := service.GetRescueRecordDetail(id)
|
|
952
|
+ if err != nil {
|
|
953
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
954
|
+ return
|
|
955
|
+ }
|
|
956
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
957
|
+ "recordDetail": recordDetail,
|
|
958
|
+ })
|
|
959
|
+}
|
|
960
|
+
|
|
961
|
+func (this *NewDialysisApiController) DeleteRescueRecord() {
|
|
962
|
+ id, _ := this.GetInt64("id")
|
|
963
|
+ err := service.DeleteRescueRecord(id)
|
|
964
|
+ fmt.Println("错误是什么", err)
|
|
965
|
+ returnData := make(map[string]interface{}, 0)
|
|
966
|
+ returnData["msg"] = "ok"
|
|
967
|
+ this.ServeSuccessJSON(returnData)
|
|
968
|
+ return
|
|
969
|
+}
|
|
970
|
+
|
|
971
|
+func (this *NewDialysisApiController) ToSearchePatient() {
|
|
972
|
+ keyword := this.GetString("keyword")
|
|
973
|
+ fmt.Print("关键字", keyword)
|
|
974
|
+ adminUserinfo := this.GetMobileAdminUserInfo()
|
|
975
|
+ orgid := adminUserinfo.Org.Id
|
|
976
|
+ patient, err := service.ToSearchePatient(keyword, orgid)
|
|
977
|
+ if err != nil {
|
|
978
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
979
|
+ return
|
|
980
|
+ }
|
|
981
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
982
|
+ "patient": patient,
|
|
983
|
+ })
|
|
984
|
+}
|