指令预览-历史的增加返回类别细分
This commit is contained in:
parent
f3cf0ebe99
commit
e5c6f7089e
|
|
@ -285,10 +285,29 @@ public class CareDirectiveApi {
|
||||||
//给数据加标识
|
//给数据加标识
|
||||||
if (!CollectionUtils.isEmpty(history)) {
|
if (!CollectionUtils.isEmpty(history)) {
|
||||||
history.stream().forEach(item -> {
|
history.stream().forEach(item -> {
|
||||||
if ("Y".equals(item.getIzFinish())) {
|
if("N".equals(item.getIzStart())) {
|
||||||
item.setExecuteStatus("hisOk");
|
//未开始
|
||||||
} else {
|
item.setExecuteStatus("hisUnExe");
|
||||||
item.setExecuteStatus("hisFaild");
|
}else{
|
||||||
|
//判断是否超时
|
||||||
|
//如果izStrart = 'Y' && beginTime > (endTime + 容错时长) 也是超时
|
||||||
|
// {
|
||||||
|
// //如果没点结束
|
||||||
|
// if("N".equals(item.getIzFinish())){
|
||||||
|
// //todo 超时 (beginTime + serviceDura + 容错时长) > now()
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//已开始
|
||||||
|
if ("Y".equals(item.getIzTimeout())) {
|
||||||
|
//超时
|
||||||
|
item.setExecuteStatus("hisTimeOut");
|
||||||
|
}else{
|
||||||
|
//未超时
|
||||||
|
item.setExecuteStatus("hisOk");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue