Commit 6d52d6e6 by 王祖波

Merge branch 'feature-recommend2' into 'developer'

配置

See merge request !2926
parents b53e1bc2 e18a95dd
......@@ -273,14 +273,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);
}
......@@ -293,7 +297,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);
}
......@@ -339,11 +343,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