TestGroovyScript.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package cn.com.ctop.check.script;
  2. import cn.com.ctop.check.component.execute.GroovyScriptExecutor;
  3. import cn.com.ctop.check.service.ICtopCheckTaskListService;
  4. import cn.com.ctop.common.module.entity.CtopOauthToken;
  5. import cn.com.ctop.common.module.entity.UserAllocation;
  6. import cn.com.ctop.common.module.service.ICtopOauthTokenService;
  7. import cn.com.ctop.common.module.service.IUserAllocationService;
  8. import cn.com.ctop.kuaishou.modules.report.mapper.AccountReportMapper;
  9. import cn.com.ctop.toutiao.modules.report.mapper.BytedanceAccountReportMapper;
  10. import com.alibaba.fastjson.JSONObject;
  11. import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  12. import org.checkerframework.checker.units.qual.A;
  13. import org.jeecg.common.api.vo.Result;
  14. import org.jeecg.common.constant.SystemDateConstant;
  15. import org.jeecg.common.util.DateUtils;
  16. import org.springframework.beans.factory.annotation.Autowired;
  17. import org.springframework.web.bind.annotation.GetMapping;
  18. import org.springframework.web.bind.annotation.RequestMapping;
  19. import org.springframework.web.bind.annotation.RestController;
  20. import java.math.BigDecimal;
  21. import java.text.SimpleDateFormat;
  22. import java.util.Date;
  23. import java.util.List;
  24. @RestController
  25. @RequestMapping("/rest/script")
  26. public class TestGroovyScript {
  27. @Autowired
  28. ICtopCheckTaskListService checkTaskListService;
  29. @Autowired
  30. ICtopOauthTokenService ctopOauthTokenService;
  31. @Autowired
  32. GroovyScriptExecutor groovyScriptExecutor;
  33. @GetMapping("/test")
  34. public Result testGroovy(){
  35. groovyScriptExecutor.execute(1,"CheckTokenExecuteStateScript");
  36. return Result.ok();
  37. }
  38. }