|
@@ -1332,14 +1332,14 @@ public class PageServiceImpl implements PageService {
|
|
|
private Integer checkArchivePermission(Integer productId, Integer productClassify, Integer userId) {
|
|
|
// 根据用户Id查询用户身份
|
|
|
Integer identity = priceMapper.getIdentityByUserId(userId);
|
|
|
- // 1生美机构,2医美机构
|
|
|
+ // 1医美机构,2生美机构
|
|
|
Integer clubType = pageMapper.getClubTypeByUserId(userId);
|
|
|
// permission:0可查看,1未登录,2需升级会员机构(已弃用),3需升级医美会员机构,4需要抵扣采美豆(已弃用),5无权限查看
|
|
|
int permission;
|
|
|
if (null == identity) {
|
|
|
// 未登录
|
|
|
permission = 1;
|
|
|
- } else if (1 == identity || 7 == identity || 2 == clubType) {
|
|
|
+ } else if (1 == identity || 7 == identity || 1 == clubType) {
|
|
|
if (7 == identity) {
|
|
|
//分销人员可查看团队所有资料
|
|
|
CmDistribution byCmDistribution = cmDistributionMapper.getByCmDistribution(new CmDistribution().userId(userId));
|
|
@@ -1354,8 +1354,8 @@ public class PageServiceImpl implements PageService {
|
|
|
}
|
|
|
//协销和医美可查看所有资料
|
|
|
permission = 0;
|
|
|
- } else if (2 != clubType) {
|
|
|
- //个人机构、医美、生美、项目公司、其他 仅可以访问生美资料
|
|
|
+ } else if (1 != clubType) {
|
|
|
+ //个人机构、生美、项目公司、其他 仅可以访问生美资料
|
|
|
permission = 1 == productClassify ? 3 : 0;
|
|
|
} else {
|
|
|
permission = 5;
|