Commit f1892d74 by 墨竹

Merge remote-tracking branch 'origin/developer' into developer

parents 0cf85aa0 4b15772b
......@@ -17,6 +17,8 @@ public class StaffClerkInfoDTO implements Serializable {
private String enterpriseId;
private String BrandName;
private String enterpriseName;
private String storeId;
......@@ -121,6 +123,14 @@ public class StaffClerkInfoDTO implements Serializable {
this.enterpriseId = enterpriseId == null ? null : enterpriseId.trim();
}
public String getBrandName() {
return BrandName;
}
public void setBrandName(String brandName) {
BrandName = brandName;
}
public String getStoreId() {
return storeId;
}
......
......@@ -144,7 +144,7 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
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.getEnterpriseName()+"_"+enterpriseDTO.getBrandName());
} else {
nameMap.put(infoDTO.getEnterpriseId(), "未知商户");
}
......@@ -173,7 +173,13 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
infoDTO.setClerkName(nameMap.get(infoDTO.getClerkId()));
infoDTO.setStoreName(nameMap.get(infoDTO.getStoreId()));
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