线程实例监控取值应取最新的一个运行日志

pull/37/head
蔡振谦 3 years ago
parent 286f13bccc
commit f97d5ef0b5

@ -119,7 +119,7 @@ public class HisRunDataServiceImpl extends ServiceImpl<HisRunDataMapper, HisRunD
.eq(HisRunDataInfo::getItemId, reqDTO.getItemId())
.eq(HisRunDataInfo::getTpId, reqDTO.getTpId())
.eq(HisRunDataInfo::getInstanceId, reqDTO.getInstanceId())
.orderByAsc(HisRunDataInfo::getTimestamp)
.orderByDesc(HisRunDataInfo::getTimestamp)
.between(HisRunDataInfo::getTimestamp, startTime, currentDate.getTime())
.last("LIMIT 1")
.one();

Loading…
Cancel
Save