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