|
@@ -1782,8 +1782,13 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
String appSiteRulesId = record.getProductIds().split(",")[0];
|
|
|
AppSitePriceRules appSitePriceRules = appSitePriceRulesMapper.selectById(appSiteRulesId);
|
|
|
if (ObjectUtil.isNotEmpty(appSitePriceRules)) {
|
|
|
- AppSitePlace appSitePlace = appSitePlaceMapper.selectById(appSitePriceRules.getSitePlaceId());
|
|
|
- record.setEarlyRefundTime(appSitePlace.getEarlyRefundTime());
|
|
|
+ AppSitePlace appSitePlace = appSitePlaceMapper.selectOne(Wrappers.<AppSitePlace>lambdaQuery()
|
|
|
+ .eq(AppSitePlace::getId, appSitePriceRules.getSitePlaceId()));
|
|
|
+ if(null != appSitePlace){
|
|
|
+ record.setEarlyRefundTime(appSitePlace.getEarlyRefundTime());
|
|
|
+ }else {
|
|
|
+ record.setEarlyRefundTime(60);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|