|
@@ -86,9 +86,6 @@ public class AppCoureseServiceImpl extends ServiceImpl<AppCoursesMapper, AppCour
|
|
|
appCourses.setTenantId(site.getTenantId());
|
|
|
appCourses.setSiteId(site.getId());
|
|
|
}
|
|
|
- if (ObjUtil.isNotEmpty(appCourses.getOriginalPrice())){
|
|
|
- appCourses.setOriginalPrice(appCourses.getSellingPrice());
|
|
|
- }
|
|
|
if (appCoursesDTO.getCourses().getSellingPrice() == null ||
|
|
|
appCoursesDTO.getCourses().getSellingPrice().compareTo(BigDecimal.ZERO) == 0) {
|
|
|
appCourses.setPriceType(1);
|
|
@@ -96,6 +93,10 @@ public class AppCoureseServiceImpl extends ServiceImpl<AppCoursesMapper, AppCour
|
|
|
appCourses.setPriceType(0);
|
|
|
}
|
|
|
|
|
|
+ if (ObjUtil.isNotEmpty(appCourses.getOriginalPrice())){
|
|
|
+ appCourses.setOriginalPrice(appCourses.getSellingPrice());
|
|
|
+ }
|
|
|
+
|
|
|
appCourses.setUserId(coursesCuDTO.getUserId());
|
|
|
appCourses.setAddressSiteId(coursesCuDTO.getAddressSiteId());
|
|
|
List<AppCoursesRuleDTO> coursesRuleDTOS = appCoursesDTO.getPriceRulesList();
|