Commit 22692482 by 王祖波

Merge branch 'feature-recommend2' into 'master'

配置

See merge request !2925
parents 47690bc1 e18a95dd
......@@ -288,14 +288,18 @@ public class WxStaffController extends WebBaseController {
*/
@IgnoreLogin
@RequestMapping("/get-audit-setting")
public HaobanResponse getAuditSetting(String wxEnterpriseId) {
public HaobanResponse getAuditSetting(String wxEnterpriseId,String enterpriseId) {
if (StringUtils.isAnyBlank(wxEnterpriseId)) {
return resultResponse(HaoBanErrCode.ERR_2);
}
AuditSettingDTO auditSetting = auditSettingApiService.findSettingByWxEnterpriseId(wxEnterpriseId);
AuditSettingVO auditSettingVO = EntityUtil.changeEntityNew(AuditSettingVO.class, auditSetting);
int potentialHide = StringUtils.isNotBlank(MarketingSwitcher.POTENTIAL_HIDE_STORE_ENTERPRISE_ID)
&& StringUtils.isNotBlank(enterpriseId)
&& MarketingSwitcher.POTENTIAL_HIDE_STORE_ENTERPRISE_ID.contains(enterpriseId)
? 1 : 0;
auditSettingVO.setPotentialHide(potentialHide);
return resultResponse(HaoBanErrCode.ERR_1, auditSettingVO);
}
......@@ -308,7 +312,7 @@ public class WxStaffController extends WebBaseController {
*/
@IgnoreLogin
@RequestMapping("/get-user-setting")
public HaobanResponse getUserSetting(String wxEnterpriseId, String staffId,String enterpriseId) {
public HaobanResponse getUserSetting(String wxEnterpriseId, String staffId) {
if (StringUtils.isAnyBlank(wxEnterpriseId)) {
return resultResponse(HaoBanErrCode.ERR_2);
}
......@@ -354,11 +358,6 @@ public class WxStaffController extends WebBaseController {
auditSettingVO.setShowAiCustom(this.aiCustom(storeDTO.getEnterpriseId()));
int potentialHide = StringUtils.isNotBlank(MarketingSwitcher.POTENTIAL_HIDE_STORE_ENTERPRISE_ID)
&& StringUtils.isNotBlank(enterpriseId)
&& MarketingSwitcher.POTENTIAL_HIDE_STORE_ENTERPRISE_ID.contains(enterpriseId)
? 1 : 0;
auditSettingVO.setPotentialHide(potentialHide);
return resultResponse(HaoBanErrCode.ERR_1, auditSettingVO);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment