第一种:
#mapper List<EmotionCommentsVO> selectComment@Param("studentNo") String studentNo); #mapper.xml <select id="selectComment" resultType="org.jeecg.modules.aigoes.vo.EmotionCommentsVO"> SELECT * FROM student_ement WHERE student_no LIKE '%'+#{studentNo}+'%' </select>
第二种:
#mapper List<EmotionCommentsVO> selectComment@Param("studentNo") String studentNo); #mapper.xml <select id="selectComment" resultType="org.jeecg.modules.aigoes.vo.EmotionCommentsVO"> SELECT * FROM student_ement WHERE student_no LIKE CONCAT('%',#{studentNo},'%') </select>