Merge remote-tracking branch 'origin/master'
commit
5bcf064ae9
|
@ -1,5 +1,6 @@
|
|||
package cn.edu.hfut.rmdjzz.projectmanagement.entity;
|
||||
|
||||
import cn.edu.hfut.rmdjzz.projectmanagement.utils.TimeUtils;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
|
@ -45,4 +46,15 @@ public class Project {
|
|||
private Integer projectCreator;
|
||||
private LocalDateTime projectCreatedTime;
|
||||
private LocalDate projectClosedDate;
|
||||
|
||||
Boolean checkProjectDate() {
|
||||
if(!TimeUtils.validateTimeLine(projectStartDate, projectFirstTestDate, projectClosedDate, projectEndDate)) {
|
||||
return false;
|
||||
}
|
||||
if(!TimeUtils.validateTimeLine(projectStartDate, projectOnlineDate)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue