<select id="selectLittleStagename" resultType="org.jeecg.modules.stage.entity.Stage"> select id,stage_name from ctc_stage where id in <foreach collection="lisstage" item="item" open="(" close=")" separator=","> #{item} </foreach> </select> List<Stage> selectLittleStagename(@Param("lisstage") String[] lisstage); @Override public List<Stage> selectLittleStagename(String[] lisstage) { return baseMapper.selectLittleStagename(lisstage); } Set<String> setStageMessage = new LinkedHashSet<>(stageMessage); ArrayList<String> lisstage = new ArrayList(setStageMessage); String[] klas = (String[]) lisstage.toArray(new String[lisstage.size()]); // 小阶段名字 List<Stage> LittleMessages = stageService.selectLittleStagename(klas);