|
|
|
@@ -58,9 +58,7 @@ public class WxScoreRulesController extends BaseController { |
|
|
|
wxScoreRules.updateTenantInfo(tenantEntity); |
|
|
|
}else if(wxScoreRules.getType().equals(EnumScoreRules.CREDIT_DOUBLE.getCode())){ |
|
|
|
TenantEntity tenantEntity = getTenantInfo(); |
|
|
|
WxMall mall = wxMallService.getByTenantId(getUser().getTenantId()); |
|
|
|
if(mall.getGroupSupport().equals(EnumGroupSupport.SUPPORT.getCode()) |
|
|
|
&& StringUtils.isBlank(mall.getParentTenantId())){ |
|
|
|
if(wxMallService.isgroupSupport(tenantEntity)){ |
|
|
|
return new ResultData(ErrorCode.USER_NO_PERMISSION.getCode(), "集团用户无此权限"); |
|
|
|
} |
|
|
|
wxScoreRules.updateTenantInfo(tenantEntity); |
|
|
|
@@ -88,9 +86,7 @@ public class WxScoreRulesController extends BaseController { |
|
|
|
@SystemControllerLog(description = "积分-配置") |
|
|
|
public ResultData creditDoubleRulesList() { |
|
|
|
logger.debug("[" + getIpAddr() + "] creditDoubleRulesList::list"); |
|
|
|
WxMall mall = wxMallService.getByTenantId(getUser().getTenantId()); |
|
|
|
if(mall.getGroupSupport().equals(EnumGroupSupport.SUPPORT.getCode()) |
|
|
|
&& StringUtils.isBlank(mall.getParentTenantId())){ |
|
|
|
if(wxMallService.isgroupSupport(getUser())){ |
|
|
|
return new ResultData(ErrorCode.USER_NO_PERMISSION.getCode(), "集团用户无此权限"); |
|
|
|
} |
|
|
|
WxScoreRules scoreRules = wxScoreRulesService.getCreditDoubleRules(getTenantInfo().getTenantId()); |
|
|
|
|