| | |
| | | package zy.cloud.wms.manager.entity; |
| | | |
| | | import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.enums.FieldStrategy; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import zy.cloud.wms.manager.service.FlowStatusService; |
| | | import zy.cloud.wms.manager.service.ItemService; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @TableName("sys_project_plan") |
| | | |
| | | public class ProjectPlan implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | @ApiModelProperty(value= "项目ID") |
| | | @TableId(value = "item_id", type = IdType.INPUT) |
| | | @TableField("item_id") |
| | | |
| | | private Long itemId; |
| | | |
| | | /** |
| | |
| | | * 启动日期 |
| | | */ |
| | | @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("real_start_time") |
| | | @TableField(value = "real_start_time", strategy = FieldStrategy.IGNORED) |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date realStartTime; |
| | | |
| | |
| | | * 结束日期 |
| | | */ |
| | | @ApiModelProperty(value= "结束日期") |
| | | @TableField("end_time") |
| | | @TableField(value = "end_time", strategy = FieldStrategy.IGNORED) |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | |
| | | * 实际结束日期 |
| | | */ |
| | | @ApiModelProperty(value= "实际结束日期") |
| | | @TableField("real_end_time") |
| | | @TableField(value = "real_end_time", strategy = FieldStrategy.IGNORED) |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date realEndTime; |
| | | |
| | |
| | | // null // 节点名称 |
| | | // ); |
| | | |
| | | |
| | | public String getItemId$(){ |
| | | ItemService bean = SpringUtils.getBean(ItemService.class); |
| | | Item id = bean.selectOne(new EntityWrapper<Item>() |
| | | .eq("id", this.itemId)); |
| | | if (!Cools.isEmpty(id)) { |
| | | return id.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | |
| | | if (Cools.isEmpty(this.startTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime); |
| | | return new SimpleDateFormat("yyyy-MM-dd").format(this.startTime); |
| | | } |
| | | |
| | | public void setStartTime(Date startTime) { |
| | |
| | | if (Cools.isEmpty(this.realStartTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.realStartTime); |
| | | return new SimpleDateFormat("yyyy-MM-dd").format(this.realStartTime); |
| | | } |
| | | |
| | | public void setRealStartTime(Date realStartTime) { |
| | |
| | | if (Cools.isEmpty(this.endTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime); |
| | | return new SimpleDateFormat("yyyy-MM-dd").format(this.endTime); |
| | | } |
| | | |
| | | public void setEndTime(Date endTime) { |
| | |
| | | if (Cools.isEmpty(this.realEndTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.realEndTime); |
| | | return new SimpleDateFormat("yyyy-MM-dd").format(this.realEndTime); |
| | | } |
| | | |
| | | public void setRealEndTime(Date realEndTime) { |
| | |
| | | this.flowName = flowName; |
| | | } |
| | | |
| | | |
| | | // public String getItemId$(){ |
| | | // ItemService itemService = SpringUtils.getBean(ItemService.class); |
| | | // Item id = itemService.selectOne(new EntityWrapper<Item>() |
| | | // .eq("id", this.getItemId())); |
| | | // if (!Cools.isEmpty(id)) { |
| | | // |
| | | // return id.getName(); |
| | | // }else { |
| | | // return null; |
| | | // } |
| | | // } |
| | | public String getFlowId$(){ |
| | | FlowStatusService bean = SpringUtils.getBean(FlowStatusService.class); |
| | | FlowStatus id = bean.selectOne(new EntityWrapper<FlowStatus>() |
| | | .eq("id", this.flowId)); |
| | | if (!Cools.isEmpty(id)) { |
| | | return id.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | } |