面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svc_enterprise.go 406 B

9 months ago
123456789101112131415161718192021
  1. package svc
  2. import (
  3. "applet/app/db"
  4. )
  5. func EnterpriseDelete(enterpriseIds []int) (err error) {
  6. session := db.Db.NewSession()
  7. defer session.Close()
  8. session.Begin()
  9. //1、删除所在单位
  10. enterpriseDb := db.EnterpriseDb{}
  11. enterpriseDb.Set()
  12. _, err = enterpriseDb.EnterpriseDeleteBySession(session, enterpriseIds)
  13. if err != nil {
  14. _ = session.Rollback()
  15. return
  16. }
  17. return session.Commit()
  18. }