bug修改
This commit is contained in:
parent
53b0c330b2
commit
55ee46b341
@ -70,7 +70,12 @@ public class AsyncWorker {
|
|||||||
List<WorkerInfo> list = workerInfoMapper.selectProjectWorkerInfoList(map);
|
List<WorkerInfo> list = workerInfoMapper.selectProjectWorkerInfoList(map);
|
||||||
if (list.size() > 0) {
|
if (list.size() > 0) {
|
||||||
for (WorkerInfo info : list) {
|
for (WorkerInfo info : list) {
|
||||||
projectUfaceConfigService.sendBatchWorkerInfo(info, projectUfaceConfig, devList);
|
try {
|
||||||
|
projectUfaceConfigService.sendBatchWorkerInfo(info, projectUfaceConfig, devList);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("下发人员异常:人员名称:{}", info.getWorkerName());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Long userId = MapUtils.getLong(map, "userId");
|
Long userId = MapUtils.getLong(map, "userId");
|
||||||
|
|||||||
@ -94,8 +94,14 @@ public class RtWorkTicketServiceImpl extends ServiceImpl<RtWorkTicketMapper, RtW
|
|||||||
.or().isNull(endTime));
|
.or().isNull(endTime));
|
||||||
queryWrapper.and(qw -> qw.isNotNull(startTime)
|
queryWrapper.and(qw -> qw.isNotNull(startTime)
|
||||||
.or().isNotNull(endTime));
|
.or().isNotNull(endTime));
|
||||||
|
} else if (Objects.equals(type, 2)) {
|
||||||
|
String startTime = alias + RefUtil.fieldNameUlc(RtWorkTicket::getStartTime);
|
||||||
|
String endTime = alias + RefUtil.fieldNameUlc(RtWorkTicket::getEndTime);
|
||||||
|
queryWrapper.not(qw -> qw.and(qw1 -> qw1.le(startTime, DateUtil.now())
|
||||||
|
.or().isNull(startTime)).and(qw2 -> qw2.ge(endTime, DateUtil.now())
|
||||||
|
.or().isNull(endTime)).and(qw3 -> qw3.isNotNull(startTime)
|
||||||
|
.or().isNotNull(endTime)));
|
||||||
}
|
}
|
||||||
queryWrapper.le(Objects.equals(type, 2), RefUtil.fieldNameUlc(RtWorkTicket::getCreateTime), DateUtil.formatDateTime(DateUtil.endOfDay(DateUtil.offsetDay(DateUtil.date(), -1))));
|
|
||||||
return queryWrapper;
|
return queryWrapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user