记得上下班打卡 | git大法好,push需谨慎

Commit de59b98c authored by 张国柄's avatar 张国柄

验票 + log;

parent d6d7a086
......@@ -33,6 +33,7 @@ import org.springframework.util.DigestUtils;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.spring.web.json.Json;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
......@@ -136,6 +137,7 @@ public class KylinStationController {
if (null != checkUserRelationVo) {
List<CheckPerformanceRelationParam> performanceRelationList = checkUserRelationVo.getRelationParams();
if (!CollectionUtils.isEmpty(performanceRelationList)) {
log.debug("performanceRelationList:{}", JsonUtils.toJson(performanceRelationList));
LocalDateTime tmpDt = LocalDateTime.of(LocalDate.now(), LocalTime.of(0, 0, 0, 0));
String tmpDtStr = DateUtil.format(tmpDt, DateUtil.Formatter.yyyyMMddHHmmss);
Criteria criteria = Criteria.where("performancesId").in(
......@@ -174,7 +176,7 @@ public class KylinStationController {
performancesVoQuery.with(PageRequest.of(pageNo - 1, pageSize));
performancesVoQuery.with(Sort.by(Sort.Order.asc("timeEnd"), Sort.Order.desc("sort")));
voList = mongoTemplate.find(performancesVoQuery, KylinStationPerformanceVo.class, KylinPerformanceVo.class.getSimpleName());
log.debug("voList:{}", JsonUtils.toJson(voList));
// 查取演出对应的订单票明细
Query orderTicketEntitiesVoQuery = Query.query(Criteria.where("performanceId").in(
voList.stream().map(KylinStationPerformanceVo::getPerformancesId).toArray()
......@@ -192,7 +194,7 @@ public class KylinStationController {
Map<String, KylinTicketVo> performanceTicketMap = performanceTicketVoList.stream().collect(Collectors.toMap(KylinTicketVo::getTicketsId, Function.identity(), (k1, k2) -> k2));
// 转换Map<performanceId, canDownTime>
Map<String, String> performanceRelationMap = performanceRelationList.stream().collect(Collectors.toMap(CheckPerformanceRelationParam::getPerformanceId, CheckPerformanceRelationParam::getCanDownTime));
log.debug("performanceRelationMap:{}", JsonUtils.toJson(performanceRelationMap));
// 补充演出列表票种统计
for (KylinStationPerformanceVo r : voList) {
// 演出的所有订单票明细
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment