| | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.FieldStrategy; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | |
| | | * 开始时间 |
| | | */ |
| | | @ApiModelProperty(value= "开始时间") |
| | | @TableField("start_time") |
| | | @TableField(value = "start_time", strategy = FieldStrategy.IGNORED) |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date startTime; |
| | | |
| | |
| | | * 结束时间 |
| | | */ |
| | | @ApiModelProperty(value= "结束时间") |
| | | @TableField("end_time") |
| | | @TableField(value = "end_time" ,strategy = FieldStrategy.IGNORED) |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | |
| | | private String type; |
| | | |
| | | |
| | | @TableField("real_start_time") |
| | | @TableField(value = "real_start_time", strategy = FieldStrategy.IGNORED) |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date realStartTime; |
| | | |
| | | |
| | | @TableField("real_end_time") |
| | | @TableField(value = "real_end_time", strategy = FieldStrategy.IGNORED) |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date realEndTime; |
| | | |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime); |
| | | } |
| | | |
| | | public String getStartTime0$(){ |
| | | if (Cools.isEmpty(this.startTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd").format(this.startTime); |
| | | } |
| | | |
| | | public void setStartTime(Date startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime); |
| | | } |
| | | public String getEndTime0$(){ |
| | | if (Cools.isEmpty(this.endTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd").format(this.endTime); |
| | | } |
| | | |
| | | public void setEndTime(Date endTime) { |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | public String getRealStartTime0$(){ |
| | | if (!Cools.isEmpty(this.realStartTime)) { |
| | | return new SimpleDateFormat("yyyy-MM-dd").format(this.realStartTime); |
| | | }else { |
| | | return ""; |
| | | } |
| | | |
| | | } |
| | | |
| | | public String getRealEndTime$(){ |
| | | if (!Cools.isEmpty(this.realEndTime)) { |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.realEndTime); |
| | |
| | | return ""; |
| | | } |
| | | } |
| | | public String getRealEndTime0$(){ |
| | | if (!Cools.isEmpty(this.realEndTime)) { |
| | | return new SimpleDateFormat("yyyy-MM-dd").format(this.realEndTime); |
| | | }else { |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | public String getType$(){ |
| | | ProjectTypeService bean = SpringUtils.getBean(ProjectTypeService.class); |
| | | ProjectType id = bean.selectOne(new EntityWrapper<ProjectType>() |