SysMapper.xml 1.1 KB

123456789101112131415161718192021222324252627282930
  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.ssj.mapper.sys.SysMapper">
  4. <select id="findCodeExchangeListByPage" parameterType="java.util.Map" resultType="com.ssj.bean.sys.codeexchange.CodeExchange">
  5. select t.id,
  6. t.code,
  7. t.is_valid isValid,
  8. t.user_id userId,
  9. t.user_name userName,
  10. t.module,
  11. t.type,
  12. t.months,
  13. t.days,
  14. t.start_time startTime,
  15. t.end_time endTime,
  16. t.is_lock isLock,
  17. t.create_time createTime
  18. from tb_code_exchange t
  19. where 1=1
  20. <if test="map.code != null and map.code != '' ">
  21. and t.code regexp #{map.code}
  22. </if>
  23. <if test="map.user_name != null and map.user_name != '' ">
  24. and t.user_name regexp #{map.user_name}
  25. </if>
  26. <if test="map.module != null and map.module != '' ">
  27. and t.module = #{map.module}
  28. </if>
  29. </select>
  30. </mapper>