瀏覽代碼

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

28169 1 月之前
父節點
當前提交
f4ed65a071
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      service/patientmanage_service.go

+ 0 - 3
service/patientmanage_service.go 查看文件

@@ -981,7 +981,6 @@ func UpdateCustomer(cdmpatient models.CdmPatients, id int64) error {
981 981
 }
982 982
 
983 983
 func UpdatedCustomer(customer models.SgjUserCustomer, id int64) error {
984
-
985 984
 	err := UserWriteDB().Model(&customer).Where("id = ?", id).Update(map[string]interface{}{"name": customer.Name, "mobile": customer.Mobile, "gender": customer.Gender, "birthday": customer.Birthday, "ill_date": customer.IllDate, "avatar": customer.Avatar, "illness_id": customer.IllnessId, "treat_type": customer.TreatType}).Error
986 985
 	return err
987 986
 }
@@ -996,7 +995,6 @@ func GetInspectionByOrgId(orgid int64) (*models.XtInspectionReference, error) {
996 995
 		return nil, err
997 996
 	}
998 997
 	return &diseases, nil
999
-
1000 998
 }
1001 999
 
1002 1000
 func GetAllProjectName(date int64, orgid int64, patientid int64) (inspection []*models.XtInspection, err error) {
@@ -1005,7 +1003,6 @@ func GetAllProjectName(date int64, orgid int64, patientid int64) (inspection []*
1005 1003
 }
1006 1004
 
1007 1005
 func GetAllInspection(orgid int64) (inspection []*models.XtInspectionReference, err error) {
1008
-
1009 1006
 	err = XTReadDB().Model(&inspection).Where("org_id = ? and status = 1", orgid).Group("project_name").Find(&inspection).Error
1010 1007
 	return inspection, err
1011 1008
 }