|
@@ -19,7 +19,9 @@ import org.jeecg.modules.app.form.CreateOrderForm;
|
|
|
import org.jeecg.modules.app.form.InsureOrderInfoForm;
|
|
|
import org.jeecg.modules.app.form.UserPayForm;
|
|
|
import org.jeecg.modules.app.service.IOrderService;
|
|
|
+import org.jeecg.modules.app.vo.CoursesPriceRulesVO;
|
|
|
import org.jeecg.modules.app.vo.OrderVO;
|
|
|
+import org.jeecg.modules.app.vo.VerifyCourseInfoDTO;
|
|
|
import org.jeecg.modules.system.app.entity.*;
|
|
|
import org.jeecg.modules.system.app.mapper.*;
|
|
|
import org.jeecg.modules.system.mapper.SysDepartMapper;
|
|
@@ -30,10 +32,7 @@ import javax.annotation.Resource;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.ZoneId;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
import java.util.concurrent.ThreadLocalRandom;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -721,6 +720,27 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
return appOrderInfoDTO;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<Integer, List<AppCoursesVerificationRecord>> queryOrderVerifyRecords(String orderId, String ticketNo) {
|
|
|
+
|
|
|
+ List<VerifyCourseInfoDTO> verifyCourseInfoDTOList = new ArrayList<>();
|
|
|
+
|
|
|
+ AppOrderProInfo proInfo = appOrderProInfoMapper.selectOne(Wrappers.<AppOrderProInfo>lambdaQuery().eq(AppOrderProInfo::getOrderId, orderId).eq(AppOrderProInfo::getTicketNo, ticketNo));
|
|
|
+
|
|
|
+ String familyUserId = proInfo.getFamilyUserId();
|
|
|
+ String appCourseId = proInfo.getProductId();
|
|
|
+
|
|
|
+ List<AppCoursesVerificationRecord> verificationRecordList = appCoursesVerificationRecordMapper.selectList(Wrappers.<AppCoursesVerificationRecord>lambdaQuery()
|
|
|
+ .eq(AppCoursesVerificationRecord::getOrderId, orderId)
|
|
|
+ .eq(AppCoursesVerificationRecord::getCoursesId, appCourseId)
|
|
|
+ .eq(AppCoursesVerificationRecord::getUseUserId, familyUserId));
|
|
|
+
|
|
|
+ Map<Integer, List<AppCoursesVerificationRecord>> map = verificationRecordList.stream().collect(Collectors.groupingBy(AppCoursesVerificationRecord::getCoursesType));
|
|
|
+
|
|
|
+
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* @return boolean
|