OrdersAccessOryMapper.xml
2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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.yoho.unions.dal.OrdersAccessOryMapper" >
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.OrdersAccessOry" >
<id column="order_code" property="orderCode" jdbcType="BIGINT" />
<result column="is_new" property="isNew" jdbcType="CHAR" />
<result column="unionid" property="unionid" jdbcType="BIGINT" />
<result column="union_name" property="unionName" jdbcType="CHAR" />
<result column="redenvelopes_number" property="redenvelopesNumber" jdbcType="DECIMAL" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="storehouse_id" property="storehouseId" jdbcType="INTEGER" />
<result column="tail_pay_notice_phone" property="tailPayNoticePhone" jdbcType="VARCHAR" />
<result column="order_deposit_amount" property="orderDepositAmount" jdbcType="DECIMAL" />
<result column="last_order_deposit_amount" property="lastOrderDepositAmount" jdbcType="DECIMAL" />
<result column="last_order_tail_pay_amount" property="lastOrderTailPayAmount" jdbcType="DECIMAL" />
<result column="udid" property="udid" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
order_code, is_new, unionid, union_name, redenvelopes_number,
create_time, storehouse_id, tail_pay_notice_phone, order_deposit_amount,
last_order_deposit_amount, last_order_tail_pay_amount, udid
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from orders_accessory
where order_code = #{orderCode,jdbcType=BIGINT}
</select>
<select id="selectByOrderCodeList" resultMap="BaseResultMap">
select <include refid="Base_Column_List" />
from orders_accessory where order_code in
<foreach collection="list" item="item" separator="," index="index" open="(" close=")">
#{item}
</foreach>
</select>
</mapper>