PrivilegeApplyRecordMapper.xml 809 B

12345678910111213141516171819202122232425
  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.zy.bms.mapper.PrivilegeApplyRecordMapper">
  4. <select id="listPage" resultType="com.zy.bms.entity.PrivilegeApplyRecord">
  5. SELECT
  6. *
  7. FROM
  8. privilege_apply_record
  9. <where>
  10. <if test="io.phone != null and io.phone != ''">
  11. AND phone LIKE CONCAT('%',#{io.phone},'%')
  12. </if>
  13. <if test="io.remark != null and io.remark != ''">
  14. AND remark LIKE CONCAT('%',#{io.phone},'%')
  15. </if>
  16. <if test="io.status != null">
  17. AND status = #{io.status}
  18. </if>
  19. </where>
  20. </select>
  21. </mapper>