|
@@ -3,6 +3,8 @@ package org.jeecg.modules.itdmGongDan.vo;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
import org.jeecg.common.aspect.annotation.Dict;
|
|
|
import org.jeecg.modules.itdmGongDan.entity.ItdmGongdanMaster;
|
|
|
import org.jeecg.modules.itdmGongDan.entity.ItdmTestPlan;
|
|
@@ -14,6 +16,8 @@ import java.util.Date;
|
|
|
/**
|
|
|
* 计划员查询返回的列表对象(完整版,包括各种名称)
|
|
|
* */
|
|
|
+@Data
|
|
|
+@Accessors(chain = true)
|
|
|
public class ItdmJHYQueryListVO {
|
|
|
|
|
|
/**委托id*/
|
|
@@ -102,166 +106,23 @@ public class ItdmJHYQueryListVO {
|
|
|
@ApiModelProperty(value = "试验计划id")
|
|
|
private String id;
|
|
|
|
|
|
+ /**实绩开始日期*/
|
|
|
+ @Excel(name = "实绩开始日期", width = 15, format = "yyyy-MM-dd")
|
|
|
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
|
|
+ @DateTimeFormat(pattern="yyyy-MM-dd")
|
|
|
+ @ApiModelProperty(value = "实绩开始日期")
|
|
|
+ private java.util.Date shijiStartDate;
|
|
|
+ /**实绩结束日期*/
|
|
|
+ @Excel(name = "实绩结束日期", width = 15, format = "yyyy-MM-dd")
|
|
|
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
|
|
+ @DateTimeFormat(pattern="yyyy-MM-dd")
|
|
|
+ @ApiModelProperty(value = "实绩结束日期")
|
|
|
+ private java.util.Date shijiEndDate;
|
|
|
|
|
|
+ /**是否为实绩,1为实绩,0非实绩*/
|
|
|
+ @ApiModelProperty(value = "是否为实绩,1为实绩,0非实绩")
|
|
|
+ private java.lang.String izShiji;
|
|
|
|
|
|
- public String getWeituoId() {
|
|
|
- return weituoId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setWeituoId(String weituoId) {
|
|
|
- this.weituoId = weituoId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getYangpinId() {
|
|
|
- return yangpinId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setYangpinId(String yangpinId) {
|
|
|
- this.yangpinId = yangpinId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getTestItems() {
|
|
|
- return testItems;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTestItems(String testItems) {
|
|
|
- this.testItems = testItems;
|
|
|
- }
|
|
|
-
|
|
|
- public String getShebeiId() {
|
|
|
- return shebeiId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setShebeiId(String shebeiId) {
|
|
|
- this.shebeiId = shebeiId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getPm() {
|
|
|
- return pm;
|
|
|
- }
|
|
|
-
|
|
|
- public void setPm(String pm) {
|
|
|
- this.pm = pm;
|
|
|
- }
|
|
|
-
|
|
|
- public String getWeituoNo() {
|
|
|
- return weituoNo;
|
|
|
- }
|
|
|
-
|
|
|
- public void setWeituoNo(String weituoNo) {
|
|
|
- this.weituoNo = weituoNo;
|
|
|
- }
|
|
|
-
|
|
|
- public String getSampleName() {
|
|
|
- return sampleName;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSampleName(String sampleName) {
|
|
|
- this.sampleName = sampleName;
|
|
|
- }
|
|
|
-
|
|
|
- public String getDeviceName() {
|
|
|
- return deviceName;
|
|
|
- }
|
|
|
-
|
|
|
- public void setDeviceName(String deviceName) {
|
|
|
- this.deviceName = deviceName;
|
|
|
- }
|
|
|
-
|
|
|
- public Date getJihuaStartDate() {
|
|
|
- return jihuaStartDate;
|
|
|
- }
|
|
|
-
|
|
|
- public void setJihuaStartDate(Date jihuaStartDate) {
|
|
|
- this.jihuaStartDate = jihuaStartDate;
|
|
|
- }
|
|
|
-
|
|
|
- public Date getJihuaEndDate() {
|
|
|
- return jihuaEndDate;
|
|
|
- }
|
|
|
-
|
|
|
- public void setJihuaEndDate(Date jihuaEndDate) {
|
|
|
- this.jihuaEndDate = jihuaEndDate;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getStatus() {
|
|
|
- return status;
|
|
|
- }
|
|
|
-
|
|
|
- public void setStatus(Integer status) {
|
|
|
- this.status = status;
|
|
|
- }
|
|
|
-
|
|
|
- public String getReportNo() {
|
|
|
- return reportNo;
|
|
|
- }
|
|
|
-
|
|
|
- public void setReportNo(String reportNo) {
|
|
|
- this.reportNo = reportNo;
|
|
|
- }
|
|
|
-
|
|
|
- public String getChuanganqi() {
|
|
|
- return chuanganqi;
|
|
|
- }
|
|
|
-
|
|
|
- public void setChuanganqi(String chuanganqi) {
|
|
|
- this.chuanganqi = chuanganqi;
|
|
|
- }
|
|
|
-
|
|
|
- public String getParent() {
|
|
|
- return parent;
|
|
|
- }
|
|
|
-
|
|
|
- public void setParent(String parent) {
|
|
|
- this.parent = parent;
|
|
|
- }
|
|
|
-
|
|
|
- public String getTestPlanId() {
|
|
|
- return testPlanId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTestPlanId(String testPlanId) {
|
|
|
- this.testPlanId = testPlanId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getTestItemsId() {
|
|
|
- return testItemsId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTestItemsId(String testItemsId) {
|
|
|
- this.testItemsId = testItemsId;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getLastTime() {
|
|
|
- return lastTime;
|
|
|
- }
|
|
|
-
|
|
|
- public void setLastTime(Integer lastTime) {
|
|
|
- this.lastTime = lastTime;
|
|
|
- }
|
|
|
-
|
|
|
- public String getStatusC() {
|
|
|
- return statusC;
|
|
|
- }
|
|
|
-
|
|
|
- public void setStatusC(String statusC) {
|
|
|
- this.statusC = statusC;
|
|
|
- }
|
|
|
- public String[] getChuanganqiArray() {
|
|
|
- return chuanganqiArray;
|
|
|
- }
|
|
|
-
|
|
|
- public void setChuanganqiArray(String[] chuanganqiArray) {
|
|
|
- this.chuanganqiArray = chuanganqiArray;
|
|
|
- }
|
|
|
-
|
|
|
- public String getId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setId(String id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
|
|
|
/**测试*/
|
|
|
public static ItdmJHYQueryListVO toItdmJHYQueryListVO(ItdmJCXMAndSYJHVO itdmVO, String weituoNo, String sampleName, String deviceName){
|
|
@@ -290,8 +151,9 @@ public class ItdmJHYQueryListVO {
|
|
|
}
|
|
|
|
|
|
/**填入委托编号,计算持续时间,状态转化——计划员查询列表对象*/
|
|
|
- public static ItdmJHYQueryListVO toItdmJHYQueryListVO3(ItdmJHYQueryListVO vo, String weituoNo){
|
|
|
+ public static ItdmJHYQueryListVO toItdmJHYQueryListVO3(ItdmJHYQueryListVO vo, String weituoNo, ShijiDate shijiDate){
|
|
|
vo.setId(vo.getTestItemsId());//用来放检测项目id
|
|
|
+ vo.setWeituoNo(weituoNo);
|
|
|
if(vo.getJihuaEndDate()!=null && vo.getTestItemsId()!=null){
|
|
|
int days = (int) ((vo.getJihuaEndDate().getTime() - vo.getJihuaStartDate().getTime()) / (1000*3600*24));
|
|
|
vo.setLastTime(days+1);
|
|
@@ -304,13 +166,16 @@ public class ItdmJHYQueryListVO {
|
|
|
if(vo.getStatus()==0) vo.setStatusC("未确认");
|
|
|
else if(vo.getStatus()==1) vo.setStatusC("已确认");
|
|
|
else if(vo.getStatus()==2) vo.setStatusC("完成");
|
|
|
- vo.setWeituoNo(weituoNo);
|
|
|
}
|
|
|
|
|
|
if(vo.getChuanganqi()!=null && !vo.getChuanganqi().equals("")){
|
|
|
String[] arr = vo.getChuanganqi().split(",");
|
|
|
vo.setChuanganqiArray(arr);
|
|
|
}
|
|
|
+ if(shijiDate!=null){
|
|
|
+ vo.setShijiStartDate(shijiDate.getShijiStartDate());
|
|
|
+ vo.setShijiEndDate(shijiDate.getShijiEndDate());
|
|
|
+ }
|
|
|
return vo;
|
|
|
}
|
|
|
|
|
@@ -367,7 +232,4 @@ public class ItdmJHYQueryListVO {
|
|
|
|
|
|
return m;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|