Commit 2211fc3d by 徐高华

返回corpid

parent bf948831
......@@ -145,8 +145,7 @@ public class WxEnterpriseController extends WebBaseController {
}
wxEnterpriseDTO.setSmallVersion("免费版");
wxEnterpriseDTO.setStoreTotal(departmentApiService.totalStoreCountByEnterpriseId(wxEnterpriseId));
String corpid = Arrays.asList(wxEnterpriseDTO.getWxCorpid(),wxEnterpriseDTO.getOpenCorpid()).stream().filter(str -> StringUtils.isNotBlank(str)).collect(Collectors.joining("/")) ;
wxEnterpriseDTO.setCorpid(corpid);
wxEnterpriseDTO.setCorpid(getCorpid(wxEnterpriseDTO));
return resultResponse(HaoBanErrCode.ERR_1, wxEnterpriseDTO);
}
......@@ -178,11 +177,15 @@ public class WxEnterpriseController extends WebBaseController {
wxDTO.setContactFlag(1);
}
wxEnterpriseApiService.update(wxDTO);
String corpid = Arrays.asList(wxEnterpriseDTO.getWxCorpid(),wxEnterpriseDTO.getOpenCorpid()).stream().filter(str -> StringUtils.isNotBlank(str)).collect(Collectors.joining("/")) ;
wxEnterpriseDTO.setCorpid(corpid);
wxEnterpriseDTO.setCorpid(getCorpid(wxEnterpriseDTO));
return resultResponse(HaoBanErrCode.ERR_1, wxEnterpriseDTO);
}
private String getCorpid(WxEnterpriseDTO wxEnterpriseDTO) {
return Arrays.asList(wxEnterpriseDTO.getWxCorpid(),wxEnterpriseDTO.getOpenCorpid()).stream().filter(str -> StringUtils.isNotBlank(str)).collect(Collectors.joining(" / "));
}
//gic企业列表
@IgnoreLogin
@RequestMapping("enterprise-search")
......
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