|
@@ -15,6 +15,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fdkankan.manage.vo.request.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -45,6 +46,8 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
ISysUserService sysUserService;
|
|
|
@Autowired
|
|
|
ISysRoleService sysRoleService;
|
|
|
+ @Autowired
|
|
|
+ IJyPlatformUserWaitService platformUserWaitService;
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -150,6 +153,13 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
sysRoles.forEach(e -> roleMap.put(e.getId(),e));
|
|
|
}
|
|
|
}
|
|
|
+ JyPlatformUserWait jyPlatformUserWait = platformUserWaitService.getByName(param.getQueryKey());
|
|
|
+ if(jyPlatformUserWait != null){
|
|
|
+ JyUserPlatform jyUserPlatform = new JyUserPlatform();
|
|
|
+ BeanUtils.copyProperties(jyPlatformUserWait,jyUserPlatform);
|
|
|
+ jyUserPlatforms.add(jyUserPlatform);
|
|
|
+ }
|
|
|
+
|
|
|
for (JyUserPlatform jyUserPlatform : jyUserPlatforms) {
|
|
|
if(jyUserPlatform.getPlatformId()!=null){
|
|
|
JyPlatform jyPlatform =map.get(jyUserPlatform.getPlatformId());
|
|
@@ -191,13 +201,13 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
List<Integer> updatePlatformUserList = new ArrayList<>();
|
|
|
Integer index = 0;
|
|
|
for (HashMap<Integer, String> map : excelRowList) {
|
|
|
+ if (index == 0 && !map.get(0).equals("平台用户模板")) {
|
|
|
+ throw new BusinessException(ResultCode.TEMPLATE_TYPE_ERROR);
|
|
|
+ }
|
|
|
index++;
|
|
|
if (map.isEmpty()) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (index == 0 && !map.get(0).equals("平台用户模板")) {
|
|
|
- throw new BusinessException(ResultCode.TEMPLATE_TYPE_ERROR);
|
|
|
- }
|
|
|
if (index < 4) {
|
|
|
continue;
|
|
|
}
|
|
@@ -246,8 +256,6 @@ public class JyUserPlatformServiceImpl extends ServiceImpl<IJyUserPlatformMapper
|
|
|
return count1 + count;
|
|
|
}
|
|
|
|
|
|
- @Autowired
|
|
|
- IJyPlatformUserWaitService platformUserWaitService;
|
|
|
|
|
|
private Integer addPlatformUsers(List<JyUserPlatformAddParam> params) {
|
|
|
Integer count = 0;
|