|
|
@@ -12,6 +12,7 @@ import cn.hutool.json.JSONUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.hz.pm.api.common.model.constant.ExistsSqlConst; |
|
|
|
import com.hz.pm.api.common.util.BizUtils; |
|
|
|
import com.hz.pm.api.expert.entity.ExpertUserFullInfo; |
|
|
|
import com.hz.pm.api.expert.service.IExpertUserFullInfoService; |
|
|
@@ -162,7 +163,8 @@ public class SyncMhUserOrgManage { |
|
|
|
} |
|
|
|
if (syncDateTime == null) { |
|
|
|
Wrapper<UserInfo> delQuery = Wrappers.lambdaQuery(UserInfo.class) |
|
|
|
.lt(UserInfo::getSyncTime, now.minusSeconds(1)); |
|
|
|
.lt(UserInfo::getSyncTime, now.minusSeconds(1)) |
|
|
|
.notExists(ExistsSqlConst.USER_EXISTS_EXPERT_USER); |
|
|
|
userInfoService.remove(delQuery); |
|
|
|
} |
|
|
|
} else { |
|
|
|