FengChaoYu 10 månader sedan
förälder
incheckning
acb812eab5

+ 2 - 2
mall-server-api/src/main/java/com/gree/mall/manager/commonmapper/CommonMapper.java

@@ -73,10 +73,10 @@ public interface CommonMapper {
      * 师傅列表
      * @param page
      * @param zfireParamBean
-     * @param isWait
+     * @param isOK
      * @return
      */
-    public IPage<UserVO> userList(IPage page, @Param("ex") WorkerParamBean zfireParamBean, @Param("type") UserTypeEnum type, @Param("isWait") Boolean isWait);
+    public IPage<UserVO> userList(IPage page, @Param("ex") WorkerParamBean zfireParamBean, @Param("type") UserTypeEnum type, @Param("isOK") Boolean isOK);
 
 
     /**

+ 4 - 4
mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

@@ -114,17 +114,17 @@ public class UserLogic {
      */
     public IPage<UserVO> page2(WorkerParamBean userZfireParamBean) {
         AdminUserCom adminUser = commonLogic.getAdminUser();
-        boolean isWait = false;
+        boolean isOK = false;
         if (CollectionUtils.isNotEmpty(userZfireParamBean.getParams())) {
             final long count = userZfireParamBean.getParams().stream()
-                    .filter(v -> v.getParam().equals("b.examine_status") && v.getValue().equals(ExamineStatusEnum.WAIT.getKey()))
+                    .filter(v -> v.getParam().equals("b.examine_status") && v.getValue().equals(ExamineStatusEnum.OK.getKey()))
                     .count();
-            isWait = count > 0;
+            isOK = count > 0;
         }
 
         ZfireParamBean zfireParamBean = FieldUtils.supplyParam(userZfireParamBean, UserVO.class, adminUser);
 
-        IPage<UserVO> userVOIPage = commonMapper.userList(new Page(userZfireParamBean.getPageNum(), userZfireParamBean.getPageSize()), userZfireParamBean, null, isWait);
+        IPage<UserVO> userVOIPage = commonMapper.userList(new Page(userZfireParamBean.getPageNum(), userZfireParamBean.getPageSize()), userZfireParamBean, null, isOK);
         return userVOIPage;
     }
 

+ 1 - 1
mall-server-api/src/main/resources/mapper/CommonMapper.xml

@@ -103,7 +103,7 @@
             </foreach>
         </if>
         and a.apply_type='WORKER'
-        <if test="isWait != null and isWait == false">
+        <if test="isOK != null and isOK == true">
             AND a.worker_number IS NOT NULL
         </if>
         <if test="ex.isGroupByWorkerId != null and ex.isGroupByWorkerId == true">