|
@@ -44,8 +44,8 @@ public class ProductModuleServiceImpl implements ProductModuleService {
|
|
|
String caiMeiImage = ProductUtils.getImageURL("caiMeiImage", null, 0, domain);
|
|
|
bigType.setWwwIcon(StringUtils.isEmpty(bigType.getWwwIcon())?caiMeiImage:bigType.getWwwIcon());
|
|
|
bigType.setCrmIcon(StringUtils.isEmpty(bigType.getCrmIcon())?caiMeiImage:bigType.getCrmIcon());
|
|
|
- List<SmalltypeVo> SmalltypeList = productModuleDao.getSmallType(bigType.getBigTypeID(), source);
|
|
|
- for (SmalltypeVo smalltype : SmalltypeList) {
|
|
|
+ List<SmalltypeVo> smalltypeList = productModuleDao.getSmallType(bigType.getBigTypeID(), source);
|
|
|
+ for (SmalltypeVo smalltype : smalltypeList) {
|
|
|
smalltype.setWwwIcon(StringUtils.isEmpty(smalltype.getWwwIcon())?caiMeiImage:smalltype.getWwwIcon());
|
|
|
smalltype.setCrmIcon(StringUtils.isEmpty(smalltype.getCrmIcon())?caiMeiImage:smalltype.getCrmIcon());
|
|
|
List<TinytypeVo> tinytypeList = productModuleDao.getTinytype(smalltype.getSmallTypeID(), source);
|
|
@@ -57,7 +57,9 @@ public class ProductModuleServiceImpl implements ProductModuleService {
|
|
|
smalltype.setTinytypeList(tinytypeList);
|
|
|
}
|
|
|
}
|
|
|
- bigType.setSmalltypeList(SmalltypeList);
|
|
|
+ if (!CollectionUtils.isEmpty(smalltypeList)) {
|
|
|
+ bigType.setSmalltypeList(smalltypeList);
|
|
|
+ }
|
|
|
}
|
|
|
return bigTypeList;
|
|
|
}
|