edb_info_stat.go 665 B

123456789101112131415161718192021222324252627282930
  1. package controllers
  2. import (
  3. "eta/eta_index_lib/models"
  4. "eta/eta_index_lib/services"
  5. )
  6. type EdbInfoStatController struct {
  7. BaseAuthController
  8. }
  9. // SetEdbSourceStat
  10. // @Title 指标终端更新情况定时汇总
  11. // @Description 指标终端情况定时汇总
  12. // @Success 200 {object}
  13. // @router /source_update [post]
  14. func (this *EdbInfoStatController) SetEdbSourceStat() {
  15. br := new(models.BaseResponse).Init()
  16. defer func() {
  17. this.Data["json"] = br
  18. this.ServeJSON()
  19. }()
  20. // 钢联终端统计汇总
  21. _ = services.SetMysteelChemicalEdbInfoUpdateStat(true)
  22. _ = services.SetEdbSourceStat(true)
  23. br.Ret = 200
  24. br.Success = true
  25. br.Msg = "获取成功"
  26. }