1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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.UserAllocation;
- import cn.com.ctop.common.module.service.ICtopOauthTokenService;
- import cn.com.ctop.common.module.service.ICustomDataByAccountService;
- import cn.com.ctop.common.module.service.IUReportExportService;
- import cn.com.ctop.common.module.service.IUserAllocationService;
- import cn.com.ctop.common.module.service.impl.CustomDataByAccountImpl;
- import cn.com.ctop.common.module.service.impl.UserAllocationServiceImpl;
- import cn.com.ctop.notice.handler.SendWeChatHandle;
- 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.util.List;
- @RestController
- @RequestMapping("/rest/script")
- public class TestGroovyScript {
- @Autowired
- ICtopCheckTaskListService checkTaskListService;
- @Autowired
- ICtopOauthTokenService ctopOauthTokenService;
- @Autowired
- GroovyScriptExecutor groovyScriptExecutor;
- @Autowired
- SendWeChatHandle sendWeChatHandle;
- @Autowired
- IUserAllocationService userAllocationService;
- @Autowired
- ICustomDataByAccountService customDataByAccountService;
- @Autowired
- IUReportExportService iuReportExportService;
- @GetMapping("/test")
- public Result testGroovy(){
- //groovyScriptExecutor.execute(2,"CheckAccountStatusScript");
- //groovyScriptExecutor.execute(13,"CheckKsDataDiffScript");
- //groovyScriptExecutor.execute(14,"CheckByDataDiffScript");
- iuReportExportService.exportExcel("file:2048球球大作战-日报.ureport.xml ");
- return Result.ok();
- }
- }
|