Commit d5672cea by QianQiXiang

增加一个企业简称字段

parent 0afda885
......@@ -148,6 +148,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
nameMap.put(infoDTO.getEnterpriseId(), enterpriseDTO.getBrandName()+"_"+enterpriseDTO.getEnterpriseName());
logger.info(enterpriseDTO.getEnterpriseName());
logger.info(enterpriseDTO.getBrandName());
logger.info(enterpriseDTO.getBrandName()+"_"+enterpriseDTO.getEnterpriseName());
} else {
nameMap.put(infoDTO.getEnterpriseId(), "未知商户");
}
......@@ -176,11 +177,17 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
infoDTO.setClerkName(nameMap.get(infoDTO.getClerkId()));
infoDTO.setStoreName(nameMap.get(infoDTO.getStoreId()));
logger.info("企业名和品牌名");
if (nameMap.get(infoDTO.getEnterpriseName())!=null){
String EnterpriseandBrandName= nameMap.get(infoDTO.getEnterpriseName());
logger.info("全名"+EnterpriseandBrandName);
String split[]=EnterpriseandBrandName.split("_");
infoDTO.setEnterpriseName(split[0]);
if (split[1]!=null)infoDTO.setBrandName(split[1]);
logger.info(split[0]);
if (split[1]!=null){
infoDTO.setBrandName(split[1]);
logger.info(split[1]);
}
}
// infoDTO.setEnterpriseName(nameMap.get(infoDTO.getEnterpriseId()));
});
......
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