Commit 52e37911 by 徐高华

test

parent 7944fb23
......@@ -441,8 +441,34 @@ public class TestController extends WebBaseController {
return "企业不存在" ;
}
Map<String,Object> map = new HashMap<>();
map.put("企微加密说明", "1(全明文) 2(全密文) 3(第三方密文,代开明文) 4(第三方明文,代开密文)") ;
map.put("当前企业加密方式", getCorpid(qwDTO)) ;
map.put("企微信息", qwDTO) ;
return map ;
}
private String getCorpid(WxEnterpriseQwDTO wxEnterpriseDTO) {
int wxType = wxEnterpriseDTO.getWxSecurityType() ;
String desc = " -- " ;
if(wxType==1) {
desc = "(全部明文)" ;
}
if(wxType==2) {
desc = "(全部密文)" ;
}
if(wxType==3) {
desc = "(第三方密文,代开明文)" ;
}
if(wxType==4) {
desc = "(第三方明文,代开密文)" ;
}
return Arrays.asList(wxEnterpriseDTO.getThirdCorpid()+"(第三方)",wxEnterpriseDTO.getDkCorpid()+"()").stream().filter(str -> StringUtils.isNotBlank(str)).collect(Collectors.joining(" / ")) + desc;
}
}
......@@ -621,6 +621,7 @@ public class WxEnterpriseController extends WebBaseController {
List<String> finalWxEids = wxEids;
enterpriseList.forEach(dto -> {
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseApiService.getOne(dto.getWxEnterpriseId());
logger.info("wxEnterpriseDTO={},dto={}", JSON.toJSONString(wxEnterpriseDTO),JSON.toJSONString(dto));
dto.setEnterpriseName(wxEnterpriseDTO.getCorpName());
if (finalWxEids.contains(dto.getWxEnterpriseId())) {
dto.setBindFlag(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