PolicyGoodsMapper.xml
1.87 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?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="cn.runsa.crmapp.common.mapper.PolicyGoodsMapper" >
<resultMap id="BaseResultMap" type="cn.runsa.crmapp.common.entity.PolicyGoods" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result column="PLCY_ID" property="plcyId" jdbcType="BIGINT" />
<result column="PLCY_TYPE" property="plcyType" jdbcType="TINYINT" />
<result column="GDS_ID" property="gdsId" jdbcType="BIGINT" />
</resultMap>
<insert id="insert" parameterType="cn.runsa.crmapp.common.entity.PolicyGoods" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into crm_policy_goods (`PLCY_ID`, `PLCY_TYPE`, `GDS_ID`
)
values (#{plcyId,jdbcType=BIGINT}, #{plcyType,jdbcType=TINYINT}, #{gdsId,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="cn.runsa.crmapp.common.entity.PolicyGoods" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into crm_policy_goods
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="plcyId != null" >
`PLCY_ID`,
</if>
<if test="plcyType != null" >
`PLCY_TYPE`,
</if>
<if test="gdsId != null" >
`GDS_ID`,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="plcyId != null" >
#{plcyId,jdbcType=BIGINT},
</if>
<if test="plcyType != null" >
#{plcyType,jdbcType=TINYINT},
</if>
<if test="gdsId != null" >
#{gdsId,jdbcType=BIGINT},
</if>
</trim>
</insert>
</mapper>