소스 검색

中台bug修复

wuchen 2 달 전
부모
커밋
728a8d5122

+ 2 - 2
alien-store/src/main/java/shop/alien/store/controller/StoreUserController.java

@@ -217,7 +217,7 @@ public class StoreUserController {
     }
 
     /**
-     * web端查询用户列表(支持主账号和子账号查询)
+     * web端查询用户列表(支持主账号和子账号查询) 分页查询重构
      */
     @ApiOperation("web端查询用户列表(支持主账号和子账号查询)")
     @ApiOperationSupport(order = 7)
@@ -283,7 +283,7 @@ public class StoreUserController {
 
 
     /**
-     * web端切换商家端用户状态(主账号有子账号时禁止禁用;子账号无限制;返回更新后状态供前端及时展示)
+     * web端切换商家端用户状态  (主账号有子账号时禁止禁用;子账号无限制;返回更新后状态供前端及时展示)
      */
     @ApiOperation("web端切换商家端用户状态(主账号有子账号时禁止禁用;返回更新后状态供前端及时展示)")
     @ApiOperationSupport(order = 7)

+ 2 - 2
alien-store/src/main/java/shop/alien/store/service/StoreUserService.java

@@ -120,13 +120,13 @@ public interface StoreUserService extends IService<StoreUser> {
     /**
      * web端切换商家端用户状态(主账号底下有子账号时禁止禁用;子账号无限制)
      *
-     * @return 更新后的用户信息(含最新 status),供前端及时展示
+     * @return   更新后的用户信息(含最新 status),供前端及时展示
      */
     R<StoreUserVo> switchingStates(StoreUser storeUserParam);
 
 
     /**
-     * web端导出商家端账号相关信息
+     * web端导出商家端主账号和子账号相关信息
      */
     String exportExcel(String id, String phone, String status, Integer accountType) throws IOException;
 

+ 15 - 1
alien-store/src/main/java/shop/alien/store/service/impl/StoreUserServiceImpl.java

@@ -580,7 +580,11 @@ public class StoreUserServiceImpl extends ServiceImpl<StoreUserMapper, StoreUser
     }
 
 
-
+    /**
+     * web端切换商家端用户状态(主账号底下有子账号时禁止禁用;子账号无限制)
+     * @param storeUserParam
+     * @return
+     */
     @Override
     public R<StoreUserVo> switchingStates(StoreUser storeUserParam) {
         StoreUser storeUser = storeUserMapper.selectById(storeUserParam.getId());
@@ -615,6 +619,16 @@ public class StoreUserServiceImpl extends ServiceImpl<StoreUserMapper, StoreUser
         return R.data(vo);
     }
 
+    /**
+     *  分页查询
+     * @param pageNum
+     * @param pageSize
+     * @param id
+     * @param phone
+     * @param status
+     * @param accountType
+     * @return
+     */
     @Override
     public String exportExcel(String id, String phone, String status, Integer accountType) throws IOException {
         DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");