|
@@ -1229,7 +1229,11 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
if (appOrder.getOrderType() == 0) {
|
|
|
//商品信息
|
|
|
String productIds = appOrder.getProductIds();
|
|
|
- AppSitePriceRules appSitePriceRules = appSitePriceRulesMapper.selectById(productIds);
|
|
|
+ AppSitePriceRules appSitePriceRules = appSitePriceRulesMapper.selectAllById(productIds);
|
|
|
+ if (ObjectUtil.isEmpty(appSitePriceRules)){
|
|
|
+ log.info("当前学校场地预约商品已下架!{}", productIds);
|
|
|
+ throw new JeecgBootException("当前商品已下架!");
|
|
|
+ }
|
|
|
AppSitePlace appSitePlace = appSitePlaceMapper.selectById(appSitePriceRules.getSitePlaceId());
|
|
|
//使用须知
|
|
|
if (ObjectUtils.isNotEmpty(appSitePlace.getReminder())) {
|
|
@@ -1260,7 +1264,7 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
//商品信息
|
|
|
String productIds = appOrder.getProductIds();
|
|
|
String[] split = productIds.split(",");
|
|
|
- AppSitePriceRules appSitePriceRules = appSitePriceRulesMapper.selectById(split[0].split("\\|")[0]);
|
|
|
+ AppSitePriceRules appSitePriceRules = appSitePriceRulesMapper.selectAllById(split[0].split("\\|")[0]);
|
|
|
AppSitePlace appSitePlace = appSitePlaceMapper.selectById(appSitePriceRules.getSitePlaceId());
|
|
|
//使用须知
|
|
|
if (ObjectUtils.isNotEmpty(appSitePlace.getReminder())) {
|
|
@@ -1285,7 +1289,7 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
if (appOrder.getOrderType() == 2) {
|
|
|
//商品信息
|
|
|
String productIds = appOrder.getProductIds();
|
|
|
- AppSitePriceRules appSitePriceRules = appSitePriceRulesMapper.selectById(productIds);
|
|
|
+ AppSitePriceRules appSitePriceRules = appSitePriceRulesMapper.selectAllById(productIds);
|
|
|
AppSitePlace appSitePlace = appSitePlaceMapper.selectById(appSitePriceRules.getSitePlaceId());
|
|
|
//使用须知
|
|
|
if (ObjectUtils.isNotEmpty(appSitePlace.getReminder())) {
|
|
@@ -1339,7 +1343,7 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
if (appOrder.getType().equals(CommonConstant.ORDER_TYPE_2)) {
|
|
|
//商品信息
|
|
|
String productIds = appOrder.getProductIds();
|
|
|
- AppCourses appCourses = appCoursesMapper.selectById(productIds);
|
|
|
+ AppCourses appCourses = appCoursesMapper.selectAllById(productIds);
|
|
|
appOrderInfoDTO.setAppCourses(appCourses);
|
|
|
//使用须知
|
|
|
if (ObjectUtils.isNotEmpty(appCourses.getReminder())) {
|