Merge branch 'develop_3' into 'develop_master'

Develop 3

See merge request LiuChao/foton-slrs-system-rest!299
This commit is contained in:
王夏晖
2021-12-20 17:02:18 +08:00
5 changed files with 64 additions and 4 deletions
@@ -159,7 +159,13 @@ public class QualityEvaluationServiceImpl extends ServiceImpl<QualityEvaluationD
Collectors.averagingDouble(item ->{
Double score;
switch (item.getProcessNode()){
String value;
if (item.getProcessNode()==null){
value="";
}else {
value=item.getProcessNode();
}
switch (value){
case "会签征求意见":
score=Double.valueOf(item.getScore()) * 0.3;
break;
@@ -172,6 +178,7 @@ public class QualityEvaluationServiceImpl extends ServiceImpl<QualityEvaluationD
case "标准法规部部长审核":
score=Double.valueOf(item.getScore()) * 0.3;
break;
default: score=Double.valueOf(item.getScore());
}
@@ -51,6 +51,7 @@ public class SarStandUnqualified extends BaseEntity {
@TableField("STAND_NAME")
private String standName;
@ExcelIgnore
@ApiModelProperty(value = "项目编号")
@TableField("product_id")
private String productId;
@@ -146,13 +147,21 @@ public class SarStandUnqualified extends BaseEntity {
@TableField("DUTY_ENGINEER")
private String dutyEngineer;
@ExcelProperty("计划关闭时间")
@ExcelIgnore
@ApiModelProperty(value = "计划关闭时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField("PLAN_CLOSE_TIME")
private Date planCloseTime;
@ExcelProperty("计划关闭时间")
@ApiModelProperty(value = "计划关闭时间excel导出")
@TableField(exist = false)
private String planCloseTimeExport;
@ExcelIgnore
@ApiModelProperty(value = "主键")
@TableId(type = IdType.UUID)
@@ -18,6 +18,8 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
/**
@@ -165,6 +167,18 @@ public class SarStandUnqualifiedServiceImpl extends ServiceImpl<SarStandUnqualif
sarStandUnqualifiedQueryWrapper.in("id",standUnqualifiedExcelVO.getIds());
}
List<SarStandUnqualified> stand = sarStandUnqualifiedDao.selectList(sarStandUnqualifiedQueryWrapper);
// 去掉日期时分秒
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
stand.forEach(item->{
Optional.ofNullable(item.getPlanCloseTime())
.ifPresent(time ->{
item.setPlanCloseTimeExport(sdf.format(time));
});
});
List<SarStandUnqualified> a = stand;
return a;
}
@@ -88,8 +88,19 @@ public class SarStandardsInfoEOPage extends BasePage {
private String orderBy1 = "SAR_STANDARDS_INFO.issue_time";
private String order1 = "";
// zhaokaiyao
private String textStatus;//文本状态
/**
* zhaokaiyao
* 文本状态
*/
private String textStatus;
/**
* 日期范围查询发布日期开始
*/
private String startIssueTime;
/**
* 日期范围查询发布日期结束
*/
private String endIssueTime;
}