integral_flow.go 662 B

123456789101112131415161718192021222324252627
  1. package entity
  2. import (
  3. . "online_datasync/config"
  4. . "online_datasync/db"
  5. )
  6. var (
  7. Integral_flow *integral_flow
  8. )
  9. type integral_flow struct {
  10. }
  11. func (i *integral_flow) TableName() string {
  12. return "integral_flow"
  13. }
  14. //
  15. func (i *integral_flow) SaveFields() []string {
  16. return []string{"id", "userId", "pointType", "SourceId", "sourceType", "point", "createTime", "endDate", "appId", "sort", "abstract", "operationType", "serialNumber"}
  17. }
  18. //
  19. func (i *integral_flow) Run(start_unix, end_unix int64, start_layout, end_layout string) {
  20. TimeTask.Integral_flow_id = sync_add(Mysql_From_Jypoints, i.TableName(), i.SaveFields(), TimeTask.Integral_flow_id, nil)
  21. }