|
@@ -168,11 +168,14 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
.last("limit 1").orderByDesc(AppSitePriceRules::getSellingPrice));
|
|
|
PlaceInfoVO.PlaceInfoMsgVO placeInfoMsgVO = new PlaceInfoVO.PlaceInfoMsgVO();
|
|
|
placeInfoMsgVO.setName(appSitePlace.getName())
|
|
|
- .setSales(Math.toIntExact(appOrderMapper.selectCount(Wrappers.<AppOrder>lambdaQuery().eq(AppOrder::getOrderCode, appSitePlace.getOrgCode()))))
|
|
|
.setId(appSitePlace.getId())
|
|
|
.setCategory(getCategoryName(appSite.getCategoryId()))
|
|
|
.setCover(appSitePlace.getCover().split(",")[0])
|
|
|
.setReminder(appSitePlace.getReminder())
|
|
|
+ .setSales(Math.toIntExact(appOrderMapper.selectCount(Wrappers.<AppOrder>lambdaQuery()
|
|
|
+ .eq(AppOrder::getOrderCode, appSitePlace.getOrgCode())
|
|
|
+ .eq(AppOrder::getType,0)
|
|
|
+ .eq(AppOrder::getOrderType,0))))
|
|
|
.setRefundType(appSitePlace.getRefundType());
|
|
|
if(appSitePriceRules!=null){
|
|
|
placeInfoMsgVO.setOriginalPrice(appSitePriceRules.getOriginalPrice());
|
|
@@ -259,6 +262,7 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
courseInfoVO.setSalesYear(getCourseSales(appCourses.getId()));
|
|
|
courseInfoVO.setPriceType(isFirstPurchase(user.getId()));
|
|
|
courseInfoVO.setCover(list.get(0));
|
|
|
+ courseInfoVO.setPeriod(Math.toIntExact(appCoursesPriceRulesMapper.selectCount(Wrappers.<AppCoursesPriceRules>lambdaQuery().eq(AppCoursesPriceRules::getCoursesId, appCourses.getId()))));
|
|
|
courseInfoVO.setHasDiscount(checkOrderOrFree(user.getId(), appCourses.getCategoryId()));
|
|
|
AppSite appSite = appSiteMapper.selectById(appCourses.getAddressSiteId());
|
|
|
if (appSite!=null){
|