BillSettlementDetailMapper.xml
2.85 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
53
54
55
56
57
58
59
60
61
<?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.billsettlement.BillSettlementDetailDao">
<!--BaseResultMap -->
<resultMap id="BaseResultMap"
type="com.phxl.modules.goods.entity.billsettlement.BillSettlementDetail">
<id column="id" property="id" jdbcType="BIGINT" />
<result column="settle_bill_no" property="billNo" jdbcType="VARCHAR" />
<result column="row_no" property="rowNo" jdbcType="TINYINT" />
<result column="goods_cate" property="goodsCate" jdbcType="VARCHAR" />
<result column="goods_code" property="goodsCode" jdbcType="VARCHAR" />
<result column="goods_name" property="goodsName" jdbcType="VARCHAR" />
<result column="settle_qty" property="settleQty" jdbcType="DECIMAL" />
<result column="unit" property="unit" jdbcType="VARCHAR" />
<result column="settle_price" property="settleUnit" jdbcType="DECIMAL" />
<result column="settle_amount" property="settlePrice" jdbcType="DECIMAL" />
<result column="regist_key" property="registKey" jdbcType="VARCHAR" />
<result column="producer_name" property="producerName" jdbcType="VARCHAR" />
<result column="lot" property="lot" jdbcType="VARCHAR" />
<result column="production_date" property="productionDate" jdbcType="TIMESTAMP" />
<result column="expire_date" property="expireDate" jdbcType="TIMESTAMP" />
<result column="Tax" property="Tax" jdbcType="DECIMAL"/>
<result column="Discount" property="Discount" jdbcType="DECIMAL"/>
<result column="create_time" property="create_time" jdbcType="TIMESTAMP" />
<result column="update_time" property="update_time" jdbcType="TIMESTAMP" />
</resultMap>
<!--Base_Column_List -->
<sql id="Base_Column_List">id,settle_bill_no,row_no,goods_code,goods_name,settle_qty,unit,settle_price,settle_amount,regist_key,producer_name,lot,production_date,expire_date,create_time,update_time,goods_cate</sql>
<!--批量插入BillBackDetail -->
<insert id="batchInsert" parameterType="list">
insert into med_bill_settlement_detail (id,settle_bill_no,row_no,goods_code,goods_name,settle_qty,unit,settle_price,settle_amount,regist_key,producer_name,lot,production_date,expire_date,tax,discount,create_time,update_time,goods_cate)
values
<foreach collection ="list" item="obj" separator =",">
<trim prefix=" (" suffix=")" suffixOverrides=",">
#{obj.id},
#{obj.settleBillNo},
#{obj.rowNo},
#{obj.goodsCode},
#{obj.goodsName},
#{obj.settleQty},
#{obj.unit},
#{obj.settlePrice},
#{obj.settleAmount},
#{obj.registKey},
#{obj.producerName},
#{obj.lot},
#{obj.productionDate},
#{obj.expireDate},
#{obj.Tax},
#{obj.Discount},
#{obj.create_time},
#{obj.update_time},
#{obj.goodsCate}
</trim>
</foreach>
</insert>
</mapper>