Merge branch 'dev' into test
# Conflicts: # cash-service/market-service/src/main/java/com/czg/service/market/service/impl/MkDistributionUserServiceImpl.java
This commit is contained in:
@@ -48,7 +48,8 @@ public class DistributionUserController {
|
||||
@RequestParam(required = false, defaultValue = "1") Integer page,
|
||||
@RequestParam(required = false, defaultValue = "10") Integer size) {
|
||||
AssertUtil.isNull(id, "邀请人ID");
|
||||
return CzgResult.success(distributionUserService.getInviteUser(id, shopUserId, distributionLevelId, page, size));
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
return CzgResult.success(distributionUserService.getInviteUser(id,shopId, shopUserId, distributionLevelId, page, size));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -99,7 +100,8 @@ public class DistributionUserController {
|
||||
@SaAdminCheckPermission(value = "distribution:user:delete", name = "分销员删除")
|
||||
public CzgResult<String> deleteDistributionUser(@RequestParam Long id) {
|
||||
AssertUtil.isNull(id, "{}不能为空", "id");
|
||||
distributionUserService.deleteDistributionUser(id);
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
distributionUserService.deleteDistributionUser(id,shopId);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
|
||||
@@ -119,10 +119,11 @@ public class UDistributionController {
|
||||
@GetMapping("/inviteUser")
|
||||
public CzgResult<Page<InviteUserVO>> getInviteUser(
|
||||
@RequestParam Long id,
|
||||
@RequestParam Long shopId,
|
||||
@RequestParam(required = false, defaultValue = "1") Integer page,
|
||||
@RequestParam(required = false, defaultValue = "10") Integer size) {
|
||||
AssertUtil.isNull(id, "邀请人ID");
|
||||
return CzgResult.success(distributionUserService.getInviteUser(id, null, null, page, size));
|
||||
return CzgResult.success(distributionUserService.getInviteUser(id, shopId, null, null, page, size));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user