FsPromotionalActiveMapper.xml 723 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.fs.his.mapper.FsPromotionalActiveMapper">
  6. <select id="selectPromotionalActiveVOList" resultType="com.fs.his.vo.FsPromotionalActiveVO">
  7. select * from fs_promotional_active
  8. where is_del = 0
  9. <if test="title != null and title != ''">
  10. and title like concat('%', #{title}, '%')
  11. </if>
  12. </select>
  13. <select id="selectPromotionalActiveVOById" resultType="com.fs.his.vo.FsPromotionalActiveVO">
  14. select * from fs_promotional_active
  15. where is_del = 0 and id = #{activeId}
  16. </select>
  17. </mapper>