|
|
@ -203,12 +203,14 @@ public class ExpprojectController { |
|
|
|
Expandpro expandpro =new Expandpro(); |
|
|
|
Expandpro expandpro =new Expandpro(); |
|
|
|
List<Expert> expertList = expertService.query().in("seusername",randomUsers).list(); |
|
|
|
List<Expert> expertList = expertService.query().in("seusername",randomUsers).list(); |
|
|
|
for (int i=0;i<expertList.size();i++){ |
|
|
|
for (int i=0;i<expertList.size();i++){ |
|
|
|
|
|
|
|
SysUser sysUser = sysUserService.query().eq("username",expertList.get(i).getSeusername()).one(); |
|
|
|
expandpro.setExpid(expertList.get(i).getSeusername()); |
|
|
|
expandpro.setExpid(expertList.get(i).getSeusername()); |
|
|
|
expandpro.setExpprojectid(id); |
|
|
|
expandpro.setExpprojectid(id); |
|
|
|
expandpro.setSsdep(expandproService.getdepid(expertList.get(i).getSeusername())); |
|
|
|
expandpro.setSsdep(expandproService.getdepid(expertList.get(i).getSeusername())); |
|
|
|
expandpro.setExptype(expertList.get(i).getDirectioncal()); |
|
|
|
expandpro.setExptype(expertList.get(i).getDirectioncal()); |
|
|
|
expandpro.setPhone(expertList.get(i).getPhone()); |
|
|
|
expandpro.setPhone(sysUser.getPhone()); |
|
|
|
expandpro.setEmil(expertList.get(i).getEmails()); |
|
|
|
expandpro.setEmil(sysUser.getEmail()); |
|
|
|
|
|
|
|
expandpro.setExpname(sysUser.getRealname()); |
|
|
|
expandproService.save(expandpro); |
|
|
|
expandproService.save(expandpro); |
|
|
|
} |
|
|
|
} |
|
|
|
str="生成完成"; |
|
|
|
str="生成完成"; |
|
|
|