xiangpei
2024-03-29 dcaea52b2c0778ec4f929f60752cc6baf37b5a50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.mindskip.xzs.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mindskip.xzs.utility.DateTimeUtil;
import lombok.Data;
import org.springframework.util.StringUtils;
 
import java.util.Date;
 
/**
 * @author:xp
 * @date:2024/3/28 16:40
 */
@Data
public class QuestionExportVO {
 
    /**
     * 题型
     */
    private Integer questionType;
 
    /**
     * 开始时间
     */
    private String startStr;
    private Date start;
 
    /**
     * 结束时间
     */
    private String endStr;
    private Date end;
 
    public void formartTime() {
        if (StringUtils.hasText(startStr)) {
            start = DateTimeUtil.parse(startStr, "yyyy-MM-dd HH:mm:ss");
        }
        if (StringUtils.hasText(endStr)) {
            end = DateTimeUtil.parse(endStr, "yyyy-MM-dd HH:mm:ss");
        }
    }
 
}