package cn.com.ctop.check.script; import cn.com.ctop.check.component.execute.GroovyScriptExecutor; import cn.com.ctop.check.service.ICtopCheckTaskListService; import cn.com.ctop.common.module.entity.CtopOauthToken; import cn.com.ctop.common.module.entity.UserAllocation; import cn.com.ctop.common.module.service.ICtopOauthTokenService; import cn.com.ctop.common.module.service.IUserAllocationService; import cn.com.ctop.kuaishou.modules.report.mapper.AccountReportMapper; import cn.com.ctop.toutiao.modules.report.mapper.BytedanceAccountReportMapper; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import org.checkerframework.checker.units.qual.A; import org.jeecg.common.api.vo.Result; import org.jeecg.common.constant.SystemDateConstant; import org.jeecg.common.util.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; @RestController @RequestMapping("/rest/script") public class TestGroovyScript { @Autowired ICtopCheckTaskListService checkTaskListService; @Autowired ICtopOauthTokenService ctopOauthTokenService; @Autowired GroovyScriptExecutor groovyScriptExecutor; @GetMapping("/test") public Result testGroovy(){ groovyScriptExecutor.execute(1,"CheckTokenExecuteStateScript"); return Result.ok(); } }