KKSU
2024-03-01 c9b90514e7493ccaf3419af7f28afd1e2ac6029a
抽奖
3 files modified
17 ■■■■ changed files
src/main/java/cc/mrbird/febs/mall/dto/RegisterDto.java 6 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/quartz/ProfitJob.java 8 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/AgentServiceImpl.java 3 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/dto/RegisterDto.java
@@ -18,9 +18,9 @@
    @ApiModelProperty(value = "账号", example = "hjsj")
    private String accountLogin;
    @NotBlank(message = "密钥不能为空")
    @ApiModelProperty(value = "密钥", example = "15773001234")
    private String userKey;
//    @NotBlank(message = "密钥不能为空")
//    @ApiModelProperty(value = "密钥", example = "15773001234")
//    private String userKey;
    @NotBlank(message = "登录密码不能为空")
    @ApiModelProperty(value = "登录密码", example = "123456")
src/main/java/cc/mrbird/febs/mall/quartz/ProfitJob.java
@@ -155,10 +155,10 @@
     * 买单
     * 看是否是开始显示订单的时间段,超出结束时间的买单,全部超时返还令牌
     */
    @Scheduled(cron = "0 0/2 * * * ? ")
    public void timeGetOrderBuyCancel() {
        agentService.timeGetOrderBuyCancel();
    }
//    @Scheduled(cron = "0 0/2 * * * ? ")
//    public void timeGetOrderBuyCancel() {
//        agentService.timeGetOrderBuyCancel();
//    }
    /**
src/main/java/cc/mrbird/febs/mall/service/impl/AgentServiceImpl.java
@@ -1067,7 +1067,8 @@
         * 当前时间比结束时间大
         */
        if(nowTime.compareTo(endTime) >= 0){
            List<MallProductBuyRecord> mallProductBuyRecords = mallProductBuyRecordMapper.selectByState(ProductEnum.PRODUCT_MATE_STATE_WAIT_PAY.getValue());
            List<MallProductBuyRecord> mallProductBuyRecords = mallProductBuyRecordMapper.selectByState(
                    ProductEnum.PRODUCT_MATE_STATE_WAIT_PAY.getValue());
            if(CollUtil.isNotEmpty(mallProductBuyRecords)){
                for(MallProductBuyRecord mallProductBuyRecord : mallProductBuyRecords){
                    /**