WFallbackInfoMapper.xml 875 B

1234567891011121314151617181920212223242526272829303132
  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="bus.mapper.WFallbackInfoMapper">
  4. <select id="list" parameterType="bus.model.dto.WFallbackInfoPageDto" resultType="bus.model.vo.WFallbackInfoVo">
  5. select
  6. id,
  7. content,
  8. create_time,
  9. update_time,
  10. creator_id,
  11. updater_id,
  12. creator_name,
  13. updater_name,
  14. is_delete
  15. from
  16. w_fallback_info
  17. <where>
  18. is_delete = 0
  19. <if test="creatorName != null and creatorName != ''">
  20. and creator_name like concat('%', #{creatorName}, '%')
  21. </if>
  22. <if test="startTime != null ">
  23. and create_time &gt;= #{startTime}
  24. </if>
  25. <if test="endTime != null ">
  26. and create_time &lt;= #{endTime}
  27. </if>
  28. </where>
  29. </select>
  30. </mapper>