company_ascribe.go 527 B

1234567891011121314151617181920
  1. package company
  2. import (
  3. "fmt"
  4. "hongze/hongze_task/models"
  5. "hongze/hongze_task/services/alarm_msg"
  6. )
  7. // 正式转试用,删除不续约归因内容
  8. func DeleteCompanNoRenewedAscribe(companyId ,productId int) () {
  9. var err error
  10. defer func() {
  11. if err != nil {
  12. msg := fmt.Sprint("companyId:", companyId,"productId:", productId)
  13. go alarm_msg.SendAlarmMsg("正式转试用,删除不续约归因内容失败:"+err.Error()+msg, 2)
  14. }
  15. }()
  16. err = models.DeleteCompanNoRenewedAscribe(companyId,productId)
  17. return
  18. }