SellerOrderStatsConfigMapper.xml
1.21 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="com.yohoufo.dal.order.SellerOrderStatsConfigMapper" >
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.SellerOrderStatsConfig" >
<id column="id" property="id" jdbcType="BIGINT" />
<result column="stats_code" property="statsCode" jdbcType="VARCHAR" />
<result column="exclude_uid" property="excludeUid" jdbcType="VARCHAR" />
<result column="skup_type" property="skupType" jdbcType="VARCHAR" />
<result column="stats_unit" property="statsUnit" jdbcType="VARCHAR" />
<result column="stats_period" property="statsPeriod" jdbcType="INTEGER" />
<result column="stats_processor" property="statsProcessor" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, stats_code, exclude_uid, skup_type, stats_unit, stats_period, stats_processor
</sql>
<select id="selectEnabledStatsConfig" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from seller_order_stats_config
where stats_enabled = 'Y'
</select>
</mapper>