|
@@ -256,14 +256,13 @@ public class WbsTreeSynchronousRecordServiceImpl extends ServiceImpl<WbsTreeSync
|
|
|
* 同步节点表单
|
|
|
* 定时检查同步任务,状态为1的数据如果最后更新时间与当前时间超过10分钟,则修改状态为1
|
|
|
*/
|
|
|
- @Scheduled(fixedDelay = 100000000)
|
|
|
+ @Scheduled(fixedDelay = 10000)
|
|
|
public void syncInit() {
|
|
|
// 本地环境跳过执行(可添加日志输出)
|
|
|
-// if (!schedulerEnabled) return;
|
|
|
+ if (!schedulerEnabled) return;
|
|
|
|
|
|
List<WbsTreeSynchronousRecord> wbsTreeSynchronousRecords = baseMapper.selectList(new QueryWrapper<WbsTreeSynchronousRecord>().lambda()
|
|
|
- .eq(WbsTreeSynchronousRecord::getId, 1962703967901188096L)
|
|
|
- .in(WbsTreeSynchronousRecord::getStatus, 2)
|
|
|
+ .in(WbsTreeSynchronousRecord::getStatus, 0, 1)
|
|
|
.eq(WbsTreeSynchronousRecord::getIsDeleted, 0)
|
|
|
.orderByAsc(WbsTreeSynchronousRecord::getCreateTime)
|
|
|
.last("limit 10")
|