ソースを参照

认证通供应商后台参赛机构新增机构类型筛选条件

JiangChongBo 2 年 前
コミット
79763b9ab5

+ 2 - 2
src/main/java/com/caimei/controller/admin/auth/AuthApi.java

@@ -865,7 +865,7 @@ public class AuthApi {
      */
      */
     @GetMapping("/get/auth/info")
     @GetMapping("/get/auth/info")
     public ResponseJson<PageInfo<RossChallengeRoundVo>> getAuthInfo(String mobile,
     public ResponseJson<PageInfo<RossChallengeRoundVo>> getAuthInfo(String mobile,
-                                                                    @CurrentUser SysUser sysUser,
+                                                                    @CurrentUser SysUser sysUser,Integer authenticationStatus,
                                                                 @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                                                                 @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                                                                 @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize){
                                                                 @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize){
         if (null == sysUser) {
         if (null == sysUser) {
@@ -877,7 +877,7 @@ public class AuthApi {
         if (null == authUserId) {
         if (null == authUserId) {
             return ResponseJson.error("供应商用户id不能为空", null);
             return ResponseJson.error("供应商用户id不能为空", null);
         }
         }
-        return authService.getAuthInfo(mobile,pageNum,pageSize,authUserId);
+        return authService.getAuthInfo(mobile,pageNum,pageSize,authUserId,authenticationStatus);
     }
     }
     /**
     /**
      * 根据id删除机构信息
      * 根据id删除机构信息

+ 1 - 1
src/main/java/com/caimei/mapper/cmMapper/AuthMapper.java

@@ -206,7 +206,7 @@ public interface AuthMapper {
 
 
     void upVideoDiggCount(Integer videoId,Integer diggFlag,@Param("clubUserIds")String clubUserIds);
     void upVideoDiggCount(Integer videoId,Integer diggFlag,@Param("clubUserIds")String clubUserIds);
 
 
-    List<RossChallengeRoundVo> getAuthInfo(@Param("mobile")String mobile,@Param("authUserId")Integer authUserId,@Param("StartTime")String StartTime,@Param("endTime")String endTime);
+    List<RossChallengeRoundVo> getAuthInfo(@Param("mobile")String mobile,@Param("authUserId")Integer authUserId,@Param("StartTime")String StartTime,@Param("endTime")String endTime,Integer authenticationStatus);
 
 
     void delAuthInfoById(Integer id);
     void delAuthInfoById(Integer id);
 
 

+ 1 - 1
src/main/java/com/caimei/service/auth/AuthService.java

@@ -357,7 +357,7 @@ public interface AuthService {
      * @param mobile
      * @param mobile
      * @return
      * @return
      */
      */
-    ResponseJson<PageInfo<RossChallengeRoundVo>> getAuthInfo(String mobile,Integer pageNum,Integer pageSize,Integer authUserId);
+    ResponseJson<PageInfo<RossChallengeRoundVo>> getAuthInfo(String mobile,Integer pageNum,Integer pageSize,Integer authUserId,Integer authenticationStatus);
     /**
     /**
      * 根据id删除机构信息
      * 根据id删除机构信息
      * @param id
      * @param id

+ 2 - 2
src/main/java/com/caimei/service/auth/impl/AuthServiceImpl.java

@@ -2111,11 +2111,11 @@ public class AuthServiceImpl implements AuthService {
      * @return
      * @return
      */
      */
     @Override
     @Override
-    public ResponseJson<PageInfo<RossChallengeRoundVo>> getAuthInfo(String mobile,Integer pageNum,Integer pageSize,Integer authUserId){
+    public ResponseJson<PageInfo<RossChallengeRoundVo>> getAuthInfo(String mobile,Integer pageNum,Integer pageSize,Integer authUserId,Integer authenticationStatus){
         //获取活动时间内的机构列表信息
         //获取活动时间内的机构列表信息
         ChallengeActivityVo activityTime = authMapper.getActivityTime(authUserId);
         ChallengeActivityVo activityTime = authMapper.getActivityTime(authUserId);
         PageHelper.startPage(pageNum, pageSize);
         PageHelper.startPage(pageNum, pageSize);
-        List<RossChallengeRoundVo> authInfo = authMapper.getAuthInfo(mobile,authUserId,activityTime.getStartTime(),activityTime.getEndTime());
+        List<RossChallengeRoundVo> authInfo = authMapper.getAuthInfo(mobile,authUserId,activityTime.getStartTime(),activityTime.getEndTime(),authenticationStatus);
         PageInfo<RossChallengeRoundVo> pageData = new PageInfo<>(authInfo);
         PageInfo<RossChallengeRoundVo> pageData = new PageInfo<>(authInfo);
         if(null!=authInfo&&authInfo.size()>0){
         if(null!=authInfo&&authInfo.size()>0){
             for (RossChallengeRoundVo search:authInfo) {
             for (RossChallengeRoundVo search:authInfo) {

+ 3 - 0
src/main/resources/mapper/AuthMapper.xml

@@ -892,6 +892,9 @@
         <if test="null!=mobile and mobile !=''">
         <if test="null!=mobile and mobile !=''">
             and  cr.userName like concat('%', #{mobile})
             and  cr.userName like concat('%', #{mobile})
         </if>
         </if>
+        <if test="null!=authenticationStatus">
+            and  cr.authenticationStatus=#{authenticationStatus}
+        </if>
         order by contestTime desc
         order by contestTime desc
     </select>
     </select>
     <delete id="delAuthInfoById">
     <delete id="delAuthInfoById">