票务抽数改造 #57
@ -1,7 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.datacenter.controller.app.saledata;
|
package cn.iocoder.yudao.module.datacenter.controller.app.saledata;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.datacenter.service.saledata.SaleDataService;
|
import cn.iocoder.yudao.module.datacenter.service.saledata.SaleDataService;
|
||||||
import cn.iocoder.yudao.module.infra.api.websocket.WebSocketSenderApi;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@ -9,13 +8,8 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.util.Calendar;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.regex.Matcher;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description 售票
|
* @Description 售票
|
||||||
|
@ -3,7 +3,8 @@ package cn.iocoder.yudao.module.datacenter.dal.dataobject.checkticket;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
||||||
|
|
||||||
@Document("checkticket")
|
//@Document("checkticket")
|
||||||
|
@Document("check_ticket_today")
|
||||||
//@Document("checktickettest")
|
//@Document("checktickettest")
|
||||||
@Data
|
@Data
|
||||||
public class CheckTicket {
|
public class CheckTicket {
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.datacenter.dal.dataobject.checkticket;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import org.springframework.data.mongodb.core.mapping.Document;
|
|
||||||
|
|
||||||
@Document("check_ticket_today")
|
|
||||||
//@Document("checktickettest")
|
|
||||||
@Data
|
|
||||||
public class CheckTicketToday {
|
|
||||||
private String id;
|
|
||||||
private String dataId;
|
|
||||||
private String checkstation;
|
|
||||||
private String checkstationname;
|
|
||||||
private String ticket;
|
|
||||||
private String checkticketdate;
|
|
||||||
private String checktickettime;
|
|
||||||
private Integer personcount;
|
|
||||||
private String sdshipping;
|
|
||||||
private String salepropetyvaluename;
|
|
||||||
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.datacenter.dal.mongodb.checkticket;
|
|
||||||
|
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.datacenter.dal.dataobject.checkticket.CheckTicket;
|
|
||||||
import org.springframework.data.domain.Page;
|
|
||||||
import org.springframework.data.domain.PageRequest;
|
|
||||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
|
||||||
import org.springframework.data.mongodb.repository.Query;
|
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
public interface CheckTicketTodayRepository extends MongoRepository<CheckTicket,String> {
|
|
||||||
@Query("{'name': {'$regex': '?0', '$options': 'i'}}")
|
|
||||||
Page<CheckTicket> findByName(String q, PageRequest pageable);
|
|
||||||
|
|
||||||
@Query("{'checkticketdate':{'$gte': ?0, '$lt': ?1}}")
|
|
||||||
List<CheckTicket> countByCheckticketdateBetween(String starTime, String endTime);
|
|
||||||
|
|
||||||
@Query("{'checktickettime':{'$gte': ?0, '$lt': ?1},'checkticketdate':{'$dt': ?2}}")
|
|
||||||
List<CheckTicket> findByTimestampBetweenAndCheckticketdate(String startTime, String endTime,String day);
|
|
||||||
|
|
||||||
List<CheckTicket> findByCheckticketdateAndChecktickettimeBetween(String day,String startTime, String endTime);
|
|
||||||
|
|
||||||
@Query("{'checkticketdate':{'$gte': ?0, '$lt': ?1} , 'checktickettime':{'$gte': ?2, '$lt': ?3}}")
|
|
||||||
List<CheckTicket> findByCheckticketdateBetweenAndChecktickettimeBetween(String startTime, String endTime,String beingTime, String resultTime);
|
|
||||||
}
|
|
@ -2,7 +2,7 @@ package cn.iocoder.yudao.module.datacenter.service.checkticket;
|
|||||||
|
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.datacenter.dal.dataobject.checkticket.CheckTicket;
|
import cn.iocoder.yudao.module.datacenter.dal.dataobject.checkticket.CheckTicket;
|
||||||
import cn.iocoder.yudao.module.datacenter.dal.mongodb.checkticket.CheckTicketTodayRepository;
|
import cn.iocoder.yudao.module.datacenter.dal.mongodb.checkticket.CheckTicketRepository;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ import java.util.Map;
|
|||||||
public class CheckTicketServiceImpl implements CheckTicketService {
|
public class CheckTicketServiceImpl implements CheckTicketService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private CheckTicketTodayRepository checkTicketRepository;
|
private CheckTicketRepository checkTicketRepository;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user