Commit 608871de by QianQiXiang

增加一个企业简称字段

parent 2fde1980
......@@ -141,10 +141,11 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
Map<String, String> nameMap = new HashMap<>();
infoDTOS.forEach(infoDTO -> {
//企业
if (1==1) {
if (!nameMap.containsKey(infoDTO.getEnterpriseId())) {
EnterpriseDTO enterpriseDTO = enterpriseService.getEnterpriseById(infoDTO.getEnterpriseId());
if (null != enterpriseDTO) {
nameMap.put(infoDTO.getEnterpriseId(), enterpriseDTO.getEnterpriseName());
nameMap.put(infoDTO.getEnterpriseId(), enterpriseDTO.getBrandName()+"_"+enterpriseDTO.getEnterpriseName());
} else {
nameMap.put(infoDTO.getEnterpriseId(), "未知商户");
}
......@@ -173,13 +174,13 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
infoDTO.setClerkName(nameMap.get(infoDTO.getClerkId()));
infoDTO.setStoreName(nameMap.get(infoDTO.getStoreId()));
// if (nameMap.get(infoDTO.getEnterpriseName())!=null){
// String EnterpriseandBrandName= nameMap.get(infoDTO.getEnterpriseName());
// String split[]=EnterpriseandBrandName.split("_");
// infoDTO.setEnterpriseName(split[1]);
// if (split[1]!=null)infoDTO.setBrandName(split[0]);
// }
infoDTO.setEnterpriseName(nameMap.get(infoDTO.getEnterpriseId()));
if (nameMap.get(infoDTO.getEnterpriseName())!=null){
String EnterpriseandBrandName= nameMap.get(infoDTO.getEnterpriseName());
String split[]=EnterpriseandBrandName.split("_");
infoDTO.setEnterpriseName(split[0]);
if (split[1]!=null)infoDTO.setBrandName(split[1]);
}
// infoDTO.setEnterpriseName(nameMap.get(infoDTO.getEnterpriseId()));
});
return infoDTOS;
}
......
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