1.dao层写法
@Options(useGeneratedKeys = true)
Integer insertList(List<ProjectDocFileEntity> entities);
List<ProjectDocFileModel> selectByStageList(@Param("projectId") Integer projectId,@Param("stageList") List<String> stageList);
注意:加注解@Options的同时不要写@Param()注解
2.dao.xml写法
3:运行结果