jcdm-framework/src/main/java/com/jcdm/framework/config/SecurityConfig.java
@@ -111,7 +111,7 @@ // 过滤请求 .authorizeRequests() // 对于登录login 注册register 验证码captchaImage 允许匿名访问 .antMatchers("/login", "/register", "/captchaImage","/websocket/**","/postWebsocket/**").permitAll() .antMatchers("/login", "/register", "/captchaImage","/websocket/**","/postWebsocket/**","/em/inspectionPlanTask/noPageList","/em/inspectionPlanItemsProject/findPlanItemsProjectByPlanId").permitAll() // 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() jcdm-main/src/main/java/com/jcdm/main/em/inspectionPlanItemsProject/controller/EmInspectionPlanItemsProjectController.java
@@ -2,16 +2,12 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import org.aspectj.weaver.loadtime.Aj; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.*; import com.jcdm.common.annotation.Log; import com.jcdm.common.core.controller.BaseController; import com.jcdm.common.core.domain.AjaxResult; @@ -34,6 +30,13 @@ @Autowired private IEmInspectionPlanItemsProjectService emInspectionPlanItemsProjectService; @RequestMapping("/findPlanItemsProjectByPlanId") public AjaxResult list(@RequestParam String planId) { List<EmInspectionPlanItemsProject> planTaskIdList = emInspectionPlanItemsProjectService.list(new QueryWrapper<EmInspectionPlanItemsProject>().eq("plan_task_id", planId)); return AjaxResult.success(planTaskIdList); } /** * 查询点检任务-项目列表 */ jcdm-main/src/main/java/com/jcdm/main/em/inspectionPlanTask/controller/EmInspectionPlanTaskController.java
@@ -35,6 +35,16 @@ private IEmInspectionPlanTaskService emInspectionPlanTaskService; /** * 查询点检任务列表不分页 */ @PostMapping("/noPageList") public AjaxResult noPageList() { List<EmInspectionPlanTask> list = emInspectionPlanTaskService.list(); return AjaxResult.success(list); } /** * 查询点检任务列表 */ @PreAuthorize("@ss.hasPermi('em:inspectionPlanTask:list')") jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java
@@ -25,4 +25,8 @@ { System.out.println("执行无参方法"); } public void inspectionPlanInfoHour(){ } }