|
@@ -43,12 +43,6 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
IJyPlatformService platformService;
|
|
|
@Autowired
|
|
|
IJyUserService jyUserService;
|
|
|
- @Override
|
|
|
- public JyUserPlatform getByIdCard(String idCard) {
|
|
|
- LambdaQueryWrapper<JyUserPlatform> wrapper = new LambdaQueryWrapper<>();
|
|
|
- wrapper.eq(JyUserPlatform::getIdCard,idCard);
|
|
|
- return this.getOne(wrapper);
|
|
|
- }
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -156,12 +150,12 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
private Integer addPlatformUsers(List<JyUserPlatformAddParam> params) {
|
|
|
Integer count = 0;
|
|
|
for (JyUserPlatformAddParam param : params) {
|
|
|
- JyUserPlatform userPlatform = this.getByIdCard(param.getIdCard());
|
|
|
- if(userPlatform == null){
|
|
|
+ JyUser byIdCard = jyUserService.getByIdCard(param.getIdCard());
|
|
|
+ if(byIdCard == null){
|
|
|
continue;
|
|
|
}
|
|
|
count ++;
|
|
|
- param.setId(userPlatform.getId());
|
|
|
+ param.setId(byIdCard.getId());
|
|
|
this.addByParam(param);
|
|
|
}
|
|
|
return count;
|