Ver Fonte

学时审核

change há 3 anos atrás
pai
commit
9b8b963c9f

+ 19 - 0
zhongzheng-admin/src/main/java/com/zhongzheng/controller/grade/ClassGradeController.java

@@ -7,6 +7,7 @@ import com.zhongzheng.common.utils.ServletUtils;
 import com.zhongzheng.modules.grade.bo.*;
 import com.zhongzheng.modules.grade.service.*;
 import com.zhongzheng.modules.grade.vo.*;
+import io.swagger.models.auth.In;
 import lombok.RequiredArgsConstructor;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -63,6 +64,24 @@ public class ClassGradeController extends BaseController {
         return getDataTable(list);
     }
 
+    /**
+     * 查询班级列表
+     */
+    @ApiOperation("是否出现官方按钮选择 1无官方接口按钮 2只有官方推送 3都有")
+    @PreAuthorize("@ss.hasPermi('grade:grade:select')")
+    @GetMapping("/selectButton")
+    public AjaxResult<Integer> selectButton(ClassGradeQueryBo bo) {
+        ClassGradeVo classGradeVo = iClassGradeService.queryList(bo).get(0);
+        Integer status =1;
+        if (classGradeVo.getInterfaceAccountId() != null && classGradeVo.getInterfacePushId()!=null){
+            status=3;
+        }
+        if (classGradeVo.getInterfaceAccountId() == null && classGradeVo.getInterfacePushId()!=null){
+            status=2;
+        }
+        return AjaxResult.success(status);
+    }
+
 
     /**
      * 查询班级列表