添加数据同步代码
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.njcn.oracle.config;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2024/1/9 10:51【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Configuration
|
||||
public class CorsConfig implements WebMvcConfigurer {
|
||||
|
||||
@Override
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
// 允许所有域名访问
|
||||
registry.addMapping("/**")
|
||||
.allowedOrigins("*")
|
||||
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
|
||||
.allowedHeaders("*")
|
||||
.allowCredentials(true)
|
||||
.maxAge(3600);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.njcn.oracle.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.njcn.oracle.bo.param.JobQueryParam;
|
||||
import com.njcn.oracle.bo.po.JobDetail;
|
||||
import com.njcn.oracle.service.JobDetailService;
|
||||
@@ -36,8 +37,8 @@ public class JobDetailController {
|
||||
@PostMapping("/jobQuery")
|
||||
@ApiOperation("任务查询")
|
||||
@ApiImplicitParam(name = "jobQueryParam", value = "任务查询参数", required = true)
|
||||
public List<JobDetail> jobQuery(@RequestBody JobQueryParam jobQueryParam){
|
||||
List<JobDetail> jobDetails = jobDetailService.selectByParam(jobQueryParam);
|
||||
public IPage<JobDetail> jobQuery(@RequestBody JobQueryParam jobQueryParam){
|
||||
IPage<JobDetail> jobDetails = jobDetailService.selectByParam(jobQueryParam);
|
||||
return jobDetails;//HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, jobDetails, "任务查询");
|
||||
}
|
||||
@PostMapping("/jobRemove")
|
||||
|
||||
Reference in New Issue
Block a user