SellerServiceFeeRuleMapper.xml
928 Bytes
<?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.SellerServiceFeeRuleMapper" >
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.SellerServiceFeeRule" >
<id column="id" property="id" jdbcType="BIGINT" />
<result column="stats_code" property="statsCode" jdbcType="VARCHAR" />
<result column="enter_type" property="enterType" jdbcType="INTEGER" />
<result column="rule_param" property="ruleParam" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, stats_code, enter_type, rule_param
</sql>
<select id="selectEnabledRules" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from seller_service_fee_rule
where status = 'Y'
</select>
</mapper>