Commit 90124160 authored by suhuiguang's avatar suhuiguang

Merge branch 'develop_tzs_register' of…

Merge branch 'develop_tzs_register' of http://39.100.92.250:5000/moa/amos-boot-biz into develop_tzs_register
parents bea4a664 fa454b92
......@@ -858,6 +858,7 @@ public class TzBaseEnterpriseInfoServiceImpl
LambdaQueryWrapper<TzsUserInfo> lambda = new QueryWrapper<TzsUserInfo>().lambda();
lambda.eq(TzsUserInfo::getUnitCode, creditCode);
List<TzsUserInfo> tzsUserInfos = tzsUserInfoMapper.selectList(lambda);
List<TzsUserInfo> newTzsUserInfos = new ArrayList<>();
tzsUserInfos.forEach(item -> {
boolean update = false;
if (!ObjectUtils.isEmpty(item.getEquipType())) {
......@@ -878,10 +879,13 @@ public class TzBaseEnterpriseInfoServiceImpl
} else {
item.setEquipType(null);
}
tzsUserInfoMapper.updateById(item);
newTzsUserInfos.add(item);
}
}
});
if (!ValidationUtil.isEmpty(newTzsUserInfos)) {
userInfoService.saveOrUpdateBatch(newTzsUserInfos, 1000);
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment