IMProductConfigureMapper.xml 1.1 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.sibu.orderHelper.integral.dao.IMProductConfigureDao">
	<select id="getProductConfigureByType" resultMap="resultProductConfigureBean" parameterType="String">
		SELECT * from im_product_configure where configure_type = #{configureType}
	</select>
	<select id="getProductConfigureBySupplierIdAndConfigureType" resultMap="resultProductConfigureBean">
		SELECT * from im_product_configure where supplier_id=#{supplierId} and configure_type = #{configureType}
	</select>

	<resultMap type="IMProductConfigureBean" id="resultProductConfigureBean">
		<result column="configure_id" property="configureId" />
		<result column="configure_type" property="configureType" />
		<result column="integral" property="integral" />
		<result column="money" property="money" />
		<result column="freight" property="freight" />
		<result column="is_enable" property="isEnable" />
		<result column="supplier_id" property="supplierId" />
		<result column="supplierName" property="supplierName" />
	</resultMap>
</mapper>