一、从DB中获取到一个List
List<StudentInfo> list=studentInfoDao.selectList(new LambdaQueryWrapper<SysOrgEntity>().eq(StudentInfo::getOrgCode, Constants.ORG_SUPPLIER));
二、如果List为空的话,执行list.add方法会报空指针异常
list.add(studentInfo1);
Django Rest Framework框架的安装
阅读 35
2023-12-24
List<StudentInfo> list=studentInfoDao.selectList(new LambdaQueryWrapper<SysOrgEntity>().eq(StudentInfo::getOrgCode, Constants.ORG_SUPPLIER));
list.add(studentInfo1);
相关推荐
精彩评论(0)