1. DAO
List<String> search(@Param("type") String type, @Param("keyword") String keyword);
2. Mapper.xml
<select id="search" parameterType="hashmap" resultType="string">
SELECT fname
FROM t_model where ftype = #{type} and fname LIKE concat('%',#{keyword},'%') and Fis_delete = 0
order by Fsequence desc, fid
</select>
3. ServiceImpl
public List<String> search(modelType type, String keyword) {
return modelDao.search(type, keyword);
}