ReceptionSourceMapper.xml 1.55 KB
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="cn.com.glsx.dj.mindworkplate.mapper.ReceptionSourceMapper" >
  <resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.ReceptionSource">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="type" jdbcType="INTEGER" property="type" />
    <result column="title" jdbcType="VARCHAR" property="title" />
    <result column="thumbnail" jdbcType="VARCHAR" property="thumbnail" />
    <result column="sort" jdbcType="INTEGER" property="sort" />
    <result column="short_sort" jdbcType="INTEGER" property="shortSort" />
    <result column="short_title" jdbcType="VARCHAR" property="shortTitle" />
    <result column="short_title_url" jdbcType="VARCHAR" property="shortTitleUrl" />
    <result column="detail_title" jdbcType="VARCHAR" property="detailTitle" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
    -->
    id, type, title, thumbnail, sort, short_title, short_title_url, detail_title
  </sql>
  <select id="findSoureList"
          resultMap="BaseResultMap">
    select * from reception_source
    WHERE type=#{bussinessType} and merchant_no is null
    order by sort
  </select>
  <select id="findSoureListByMerchantNo"
    resultMap="BaseResultMap">
    select * from reception_source
    WHERE type=#{bussinessType} and merchant_no=#{merchantNo}
    order by sort
  </select>
</mapper>