SmartDeviceOrderMapper.xml 1.23 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.glsx.smart.dao.mapper.SmartDeviceOrderMapper">
    <resultMap id="BaseResultMap" type="com.glsx.smart.dao.entity.SmartDeviceOrder">
        <!--@mbg.generated generated on Wed Mar 17 10:38:04 CST 2021.-->
        <!--@Table smart_device_order-->
        <id column="id" jdbcType="INTEGER" property="id"/>
        <result column="product_id" jdbcType="VARCHAR" property="productId"/>
        <result column="order_code" jdbcType="VARCHAR" property="orderCode"/>
        <result column="order_value" jdbcType="VARCHAR" property="orderValue"/>
        <result column="order_type" jdbcType="VARCHAR" property="orderType"/>
    </resultMap>
    <sql id="Base_Column_List">
        <!--@mbg.generated generated on Wed Mar 17 10:38:04 CST 2021.-->
        id, product_id, order_code, order_value, order_type
    </sql>
    <select id="getListByProductId" parameterType="java.lang.String" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List" />
        from smart_device_order t where t.product_id = #{productId,jdbcType=VARCHAR}
    </select>
</mapper>