commit
This commit is contained in:
+5
-1
@@ -33,6 +33,7 @@ import org.nutz.dao.Dao;
|
||||
import org.nutz.ioc.aop.Aop;
|
||||
import org.nutz.ioc.loader.annotation.Inject;
|
||||
import org.nutz.ioc.loader.annotation.IocBean;
|
||||
import org.nutz.lang.Lang;
|
||||
import org.nutz.lang.random.R;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -258,7 +259,10 @@ public class TeacherCongressSessionServiceImpl extends BaseServiceImpl<Teacher_c
|
||||
* @param children 子集
|
||||
*/
|
||||
private void insertInstitution(String sessionId, String parentId, List<Tree<String>> children) {
|
||||
for (Tree<String> child : children) {
|
||||
if(Lang.isEmpty(children)) {
|
||||
return;
|
||||
}
|
||||
for (Tree<String> child : children) {
|
||||
Teacher_congress_institution newInstitution = new Teacher_congress_institution();
|
||||
newInstitution.setId(null);
|
||||
newInstitution.setSessionId(sessionId);
|
||||
|
||||
Reference in New Issue
Block a user