CikuMapper.xml 660 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.cdxw.system.mapper.CikuMapper">
  4. <!-- 条件分页查询 -->
  5. <resultMap id="CikuMap" type="com.cdxw.model,system" autoMapping="true"></resultMap>
  6. <select id="selectPage" resultMap="CikuMap">
  7. SELECT word,chinese,online FROM ciku
  8. <where>
  9. <if test="vo.word != null and vo.word != ''">
  10. and word like CONCAT('%',#{word},'%')
  11. </if>
  12. and is_deleted = 0
  13. </where>
  14. order by id desc
  15. </select>
  16. </mapper>