|
@@ -99,23 +99,23 @@ public class ProductService {
|
|
|
|
|
|
ProductTypeEnum type = product.getType();
|
|
|
if (ProductTypeEnum.COURSE.equals(type)){
|
|
|
- Course entity = courseService.getCourse2(productId);
|
|
|
+ Course entity = courseService.findCourseById(productId);
|
|
|
if(null == entity){
|
|
|
return null;
|
|
|
}
|
|
|
result = BeanUtil.convertToMap(entity, true);
|
|
|
result.put("type", ProductTypeEnum.COURSE);
|
|
|
- result.put("name", result.get("title") +"|"+result.get("subTitle"));
|
|
|
+ result.put("name", result.get("title") +" | "+result.get("subTitle"));
|
|
|
}else if (ProductTypeEnum.SUPPORT.equals(type)) {
|
|
|
- Support entity = supportService.getSupport2(productId);
|
|
|
+ Support entity = supportService.findSupportById(productId);
|
|
|
if(null == entity){
|
|
|
return null;
|
|
|
}
|
|
|
result = BeanUtil.convertToMap(entity, true);
|
|
|
result.put("type", ProductTypeEnum.SUPPORT);
|
|
|
- result.put("name", result.get("title") +"|"+result.get("subTitle"));
|
|
|
+ result.put("name", result.get("title") +" | "+result.get("subTitle"));
|
|
|
}else if (ProductTypeEnum.PACKAGE.equals(type)) {
|
|
|
- Package entity = packageService.getPackage2(productId);
|
|
|
+ Package entity = packageService.findPackageById(productId);
|
|
|
if(null == entity){
|
|
|
return null;
|
|
|
}
|
|
@@ -128,6 +128,7 @@ public class ProductService {
|
|
|
}
|
|
|
result = BeanUtil.convertToMap(entity, true);
|
|
|
result.put("type", ProductTypeEnum.TRAINING);
|
|
|
+ result.put("name", result.get("title"));
|
|
|
|
|
|
}
|
|
|
|