Commit 2bed7bca by 徐高华

导购设置

parent 6feeb455
...@@ -128,20 +128,27 @@ public class ApplicationController extends WebBaseController { ...@@ -128,20 +128,27 @@ public class ApplicationController extends WebBaseController {
} }
@RequestMapping("open-or-close") @RequestMapping("open-or-close")
public HaobanResponse applicationList(String dataJson , ClerkEditInfoVO clerkEditInfo) { public HaobanResponse saveOpenOrClose(String dataJson) {
WebLoginDTO login = AuthWebRequestUtil.getLoginUser(); WebLoginDTO login = AuthWebRequestUtil.getLoginUser();
String wxEnterpriseId = login.getWxEnterpriseId(); String wxEnterpriseId = login.getWxEnterpriseId();
String enterpriseId = login.getEnterpriseId(); log.info("dataJson={}",dataJson);
log.info("dataJson={},{}",dataJson,JSON.toJSONString(clerkEditInfo)); if(StringUtils.isBlank(dataJson)) {
if(StringUtils.isNotBlank(dataJson)) { return resultResponse(HaoBanErrCode.ERR_2);
JSONArray jsonArr = JSONArray.parseArray(dataJson) ; }
if(jsonArr.size()<=0) { JSONArray jsonArr = JSONArray.parseArray(dataJson) ;
return resultResponse(HaoBanErrCode.ERR_2); if(jsonArr.size()<=0) {
} return resultResponse(HaoBanErrCode.ERR_2);
this.applicationSettingApiService.saveSetting(wxEnterpriseId,jsonArr);
}else {
this.wxEnterpriseRelatedApiService.saveClerkEditFlag(wxEnterpriseId, enterpriseId, ClerkEditInfoVO.getValue(clerkEditInfo));
} }
this.applicationSettingApiService.saveSetting(wxEnterpriseId,jsonArr);
return resultResponse(HaoBanErrCode.ERR_1);
}
@RequestMapping("save-clerk-edit-flag")
public HaobanResponse saveClerkEditFlag(ClerkEditInfoVO clerkEditInfo) {
WebLoginDTO login = AuthWebRequestUtil.getLoginUser();
String wxEnterpriseId = login.getWxEnterpriseId();
String enterpriseId = login.getEnterpriseId();
this.wxEnterpriseRelatedApiService.saveClerkEditFlag(wxEnterpriseId, enterpriseId, ClerkEditInfoVO.getValue(clerkEditInfo));
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
......
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