ShopConfigMapper.xml 788 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.cyksj.mapper.channel.ShopConfigMapper">
  4. <select id="getByChannelPopularizeId" resultType="com.cyksj.model.entity.ShopConfig">
  5. select sc.*
  6. from shop_config sc,
  7. channel c,
  8. channel_popularize cp
  9. where (sc.app_id = c.wx_shop_id or sc.app_id = c.zfb_shop_id)
  10. and c.id = cp.channel_id
  11. and cp.id = #{popularizeId,jdbcType=BIGINT}
  12. and sc.type = #{type,jdbcType=VARCHAR}
  13. </select>
  14. <select id="getByAppId" resultType="com.cyksj.model.entity.ShopConfig">
  15. select * from shop_config where app_id = #{appId}
  16. </select>
  17. </mapper>