he2802 hace 3 años
padre
commit
8a506802e3

+ 5 - 3
zhongzheng-api/src/main/java/com/zhongzheng/controller/course/CourseBusinessController.java

@@ -17,18 +17,20 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 
 /**
  * 业务层次Controller
- * 
+ *
  * @author ruoyi
  * @date 2021-10-08
  */
 @Api(value = "业务层次控制器", tags = {"业务层次管理"})
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/course/business")
+@RequestMapping("/app/common/course/business")
 public class CourseBusinessController extends BaseController {
 
     private final ICourseBusinessService iCourseBusinessService;
@@ -37,9 +39,9 @@ public class CourseBusinessController extends BaseController {
      * 查询业务层次列表
      */
     @ApiOperation("查询业务层次列表")
-    @PreAuthorize("@ss.hasPermi('course:business:list')")
     @GetMapping("/list")
     public TableDataInfo<CourseBusinessVo> list(CourseBusinessQueryBo bo) {
+        bo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
         startPage();
         List<CourseBusinessVo> list = iCourseBusinessService.queryList(bo);
         return getDataTable(list);

+ 5 - 3
zhongzheng-api/src/main/java/com/zhongzheng/controller/course/CourseEducationTypeController.java

@@ -17,18 +17,20 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 
 /**
  * 教育类型Controller
- * 
+ *
  * @author ruoyi
  * @date 2021-10-08
  */
 @Api(value = "教育类型控制器", tags = {"教育类型管理"})
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/course/educationType")
+@RequestMapping("/app/common/course/educationType")
 public class CourseEducationTypeController extends BaseController {
 
     private final ICourseEducationTypeService iCourseEducationTypeService;
@@ -37,9 +39,9 @@ public class CourseEducationTypeController extends BaseController {
      * 查询教育类型列表
      */
     @ApiOperation("查询教育类型列表")
-    @PreAuthorize("@ss.hasPermi('course:type:list')")
     @GetMapping("/list")
     public TableDataInfo<CourseEducationTypeVo> list(CourseEducationTypeQueryBo bo) {
+        bo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
         startPage();
         List<CourseEducationTypeVo> list = iCourseEducationTypeService.queryList(bo);
         return getDataTable(list);

+ 5 - 3
zhongzheng-api/src/main/java/com/zhongzheng/controller/course/CourseProjectTypeController.java

@@ -17,18 +17,20 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 
 /**
  * 项目类型Controller
- * 
+ *
  * @author ruoyi
  * @date 2021-10-08
  */
 @Api(value = "项目类型控制器", tags = {"项目类型管理"})
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/course/projectType")
+@RequestMapping("/app/common/course/projectType")
 public class CourseProjectTypeController extends BaseController {
 
     private final ICourseProjectTypeService iCourseProjectTypeService;
@@ -37,9 +39,9 @@ public class CourseProjectTypeController extends BaseController {
      * 查询项目类型列表
      */
     @ApiOperation("查询项目类型列表")
-    @PreAuthorize("@ss.hasPermi('course:type:list')")
     @GetMapping("/list")
     public TableDataInfo<CourseProjectTypeVo> list(CourseProjectTypeQueryBo bo) {
+        bo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
         startPage();
         List<CourseProjectTypeVo> list = iCourseProjectTypeService.queryList(bo);
         return getDataTable(list);

+ 5 - 3
zhongzheng-api/src/main/java/com/zhongzheng/controller/course/CourseSubjectController.java

@@ -17,18 +17,20 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 
 /**
  * 科目Controller
- * 
+ *
  * @author ruoyi
  * @date 2021-10-09
  */
 @Api(value = "科目控制器", tags = {"科目管理"})
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/course/subject")
+@RequestMapping("/app/common/course/subject")
 public class CourseSubjectController extends BaseController {
 
     private final ICourseSubjectService iCourseSubjectService;
@@ -37,9 +39,9 @@ public class CourseSubjectController extends BaseController {
      * 查询科目列表
      */
     @ApiOperation("查询科目列表")
-    @PreAuthorize("@ss.hasPermi('course:subject:list')")
     @GetMapping("/list")
     public TableDataInfo<CourseSubjectVo> list(CourseSubjectQueryBo bo) {
+        bo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
         startPage();
         List<CourseSubjectVo> list = iCourseSubjectService.queryList(bo);
         return getDataTable(list);

+ 4 - 0
zhongzheng-api/src/main/java/com/zhongzheng/controller/goods/GoodsController.java

@@ -13,11 +13,14 @@ import com.zhongzheng.modules.goods.vo.GoodsAttachedVo;
 import com.zhongzheng.modules.goods.vo.GoodsVo;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import io.swagger.models.auth.In;
 import lombok.RequiredArgsConstructor;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
+import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 
 /**
@@ -44,6 +47,7 @@ public class GoodsController extends BaseController {
     @ApiOperation("查询商品列表")
     @GetMapping("/list")
     public TableDataInfo<GoodsVo> list(GoodsQueryBo bo) {
+        bo.setStatus(new ArrayList<Integer>(Arrays.asList(1)));
         startPage();
         List<GoodsVo> list = iGoodsService.selectList(bo);
         return getDataTable(list);

+ 1 - 1
zhongzheng-api/src/main/java/com/zhongzheng/controller/user/LoginController.java

@@ -24,7 +24,7 @@ import java.util.Map;
  * @author hjl
  * @date 2021-06-08
  */
-@Api(value = "短信控制器", tags = {"短信控制器"})
+@Api(value = "短信控制器", tags = {"登录控制器"})
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
 @RequestMapping("/app/common/")

+ 1 - 1
zhongzheng-api/src/main/java/com/zhongzheng/controller/user/SmsController.java

@@ -33,7 +33,7 @@ public class SmsController extends BaseController {
     }
 
 
-    @ApiOperation("获取注册短信")
+    @ApiOperation("获取登录短信")
     @PostMapping("/login")
     public AjaxResult login(@RequestBody SmsAddBo bo) {
         iSmsService.sendLoginSms(bo.getTel());