Ver código fonte

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

28169 1 ano atrás
pai
commit
f4ed65a071
1 arquivos alterados com 0 adições e 3 exclusões
  1. 0 3
      service/patientmanage_service.go

+ 0 - 3
service/patientmanage_service.go Ver arquivo

981
 }
981
 }
982
 
982
 
983
 func UpdatedCustomer(customer models.SgjUserCustomer, id int64) error {
983
 func UpdatedCustomer(customer models.SgjUserCustomer, id int64) error {
984
-
985
 	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
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
 	return err
985
 	return err
987
 }
986
 }
996
 		return nil, err
995
 		return nil, err
997
 	}
996
 	}
998
 	return &diseases, nil
997
 	return &diseases, nil
999
-
1000
 }
998
 }
1001
 
999
 
1002
 func GetAllProjectName(date int64, orgid int64, patientid int64) (inspection []*models.XtInspection, err error) {
1000
 func GetAllProjectName(date int64, orgid int64, patientid int64) (inspection []*models.XtInspection, err error) {
1005
 }
1003
 }
1006
 
1004
 
1007
 func GetAllInspection(orgid int64) (inspection []*models.XtInspectionReference, err error) {
1005
 func GetAllInspection(orgid int64) (inspection []*models.XtInspectionReference, err error) {
1008
-
1009
 	err = XTReadDB().Model(&inspection).Where("org_id = ? and status = 1", orgid).Group("project_name").Find(&inspection).Error
1006
 	err = XTReadDB().Model(&inspection).Where("org_id = ? and status = 1", orgid).Group("project_name").Find(&inspection).Error
1010
 	return inspection, err
1007
 	return inspection, err
1011
 }
1008
 }