MedPlanDetailMapper.xml
1.81 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
<?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.phxl.modules.goods.dao.medplan.MedPlanDetailDao">
<!--BaseResultMap -->
<resultMap id="BaseResultMap"
type="com.phxl.modules.goods.entity.medplan.MedPlanDetail">
<id column="id" property="id" jdbcType="BIGINT" />
<result column="bill_no" property="billNo" jdbcType="VARCHAR" />
<result column="row_no" property="rowNo" jdbcType="TINYINT" />
<result column="goods_code" property="goodsCode" jdbcType="VARCHAR" />
<result column="goods_name" property="goodsName" jdbcType="VARCHAR" />
<result column="goods_spec" property="goodsSpec" jdbcType="VARCHAR" />
<result column="manufacturer" property="manufacturer" jdbcType="VARCHAR" />
<result column="po_qty" property="poQty" jdbcType="DECIMAL" />
<result column="unit" property="unit" jdbcType="VARCHAR" />
<result column="taxprice" property="taxprice" jdbcType="DECIMAL" />
<result column="taxsum" property="taxsum" jdbcType="DECIMAL" />
</resultMap>
<!--Base_Column_List -->
<sql id="Base_Column_List">id,bill_no,row_no,goods_code,goods_name,goods_spec,manufacturer,po_qty,unit,taxprice,taxsum</sql>
<!--批量插入MedPlanDetail -->
<insert id="batchInsert" parameterType="list">
insert into med_hli_plan_detail (id,bill_no,row_no,goods_code,goods_name,goods_spec,manufacturer,po_qty,unit,taxprice,taxsum)
values
<foreach collection ="list" item="obj" separator =",">
<trim prefix=" (" suffix=")" suffixOverrides=",">
#{obj.id},
#{obj.billNo},
#{obj.rowNo},
#{obj.goodsCode},
#{obj.goodsName},
#{obj.goodsSpec},
#{obj.manufacturer},
#{obj.poQty},
#{obj.unit},
#{obj.taxprice},
#{obj.taxsum}
</trim>
</foreach>
</insert>
</mapper>