Browse Source

优化操作记录查询条件

develop
zhaoxianglong 7 months ago
parent
commit
14160b1cd3
  1. 3
      zc-business/src/main/java/com/zc/business/service/impl/DcOperLogServiceImpl.java

3
zc-business/src/main/java/com/zc/business/service/impl/DcOperLogServiceImpl.java

@ -69,6 +69,9 @@ public class DcOperLogServiceImpl extends ServiceImpl<DcOperLogMapper, DcOperLog
if (endTime != null && startTime != null) {
lambdaQueryWrapper.between(DcOperLog::getOperTime, startTime, endTime);
}
if (dcOperLog.getStatus()!=null){
lambdaQueryWrapper.eq(DcOperLog::getStatus, dcOperLog.getStatus());
}
lambdaQueryWrapper.select(
DcOperLog::getId,
DcOperLog::getDcDeviceId,

Loading…
Cancel
Save