puzhibing
2023-07-19 b15eab0860ab180108eb9a954e862fee6b0d8bab
更新预约场地部分接口
3个文件已修改
1个文件已添加
31 ■■■■■ 已修改文件
cloud-server-other/src/main/java/com/dsh/OtherApplication.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cloud-server-other/src/main/java/com/dsh/other/model/QueryMySiteVo.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
cloud-server-other/src/main/java/com/dsh/other/util/TaskUtil.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cloud-server-other/src/main/resources/mapper/SiteMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
cloud-server-other/src/main/java/com/dsh/OtherApplication.java
@@ -11,6 +11,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import javax.annotation.PostConstruct;
@@ -20,6 +21,7 @@
 * @author jason
 */
@EnableSwagger2
@EnableScheduling
@EnableFeignClients
@MBCloudApplication
@Import({WebConfig.class})
cloud-server-other/src/main/java/com/dsh/other/model/QueryMySiteVo.java
@@ -32,5 +32,5 @@
    @ApiModelProperty("状态(0=待支付,1=待核销,2=已到店,3=已完成,4=已过期,5=已取消)")
    private Integer status;
    @ApiModelProperty("创建时间")
    private String insertTime;
    private Long insertTime;
}
cloud-server-other/src/main/java/com/dsh/other/util/TaskUtil.java
New file
@@ -0,0 +1,25 @@
package com.dsh.other.util;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
 * @author zhibing.pu
 * @Date 2023/7/19 14:19
 */
@Component
public class TaskUtil {
    /**
     * 每隔一分钟去处理的定时任务
     */
    @Scheduled(fixedRate = 60000)
    public void taskMinute(){
        try {
            //定时修改赛事状态
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
cloud-server-other/src/main/resources/mapper/SiteMapper.xml
@@ -50,7 +50,7 @@
        a.payMoney as payMoney,
        CONCAT(DATE_FORMAT(a.startTime, '%Y-%m-%d %H:%i'), '-', DATE_FORMAT(a.endTime, '%H:%i')) as appointment,
        a.`status`,
        DATE_FORMAT(a.insertTime, '%Y-%m-%d %H:%i:%s') as insertTime
        UNIX_TIMESTAMP(a.insertTime) * 1000 as insertTime
        from t_site_booking a
        left join t_site b on (a.siteId = b.id)
        left join t_store c on (b.storeId = c.id)