|
@@ -5,21 +5,22 @@
|
|
|
<mapper namespace="com.jpsoft.prices.modules.base.dao.InvoiceInfoDAO">
|
|
|
<resultMap id="InvoiceInfoMap" type="com.jpsoft.prices.modules.base.entity.InvoiceInfo">
|
|
|
<id property="id" column="id_" />
|
|
|
- <result property="invoiceId" column="invoice_id" />
|
|
|
- <result property="orderNumber" column="order_number" />
|
|
|
- <result property="name" column="name_" />
|
|
|
- <result property="barCode" column="bar_code" />
|
|
|
- <result property="boxLength" column="box_length" />
|
|
|
- <result property="boxWidth" column="box_width" />
|
|
|
- <result property="boxHight" column="box_hight" />
|
|
|
- <result property="netWeight" column="net_weight" />
|
|
|
- <result property="grossWeight" column="gross_weight" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- </resultMap>
|
|
|
+ <result property="invoiceId" column="invoice_id" />
|
|
|
+ <result property="orderNumber" column="order_number" />
|
|
|
+ <result property="name" column="name_" />
|
|
|
+ <result property="type" column="type_" />
|
|
|
+ <result property="barCode" column="bar_code" />
|
|
|
+ <result property="boxLength" column="box_length" />
|
|
|
+ <result property="boxWidth" column="box_width" />
|
|
|
+ <result property="boxHight" column="box_hight" />
|
|
|
+ <result property="netWeight" column="net_weight" />
|
|
|
+ <result property="grossWeight" column="gross_weight" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ </resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.prices.modules.base.entity.InvoiceInfo">
|
|
|
<!--
|
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
@@ -28,13 +29,14 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_invoice_info
|
|
|
- (id_,invoice_id,order_number,name_,bar_code,box_length,box_width,box_hight,net_weight,gross_weight,del_flag,create_time,create_by,update_time,update_by)
|
|
|
+ (id_,invoice_id,order_number,name_,type_,bar_code,box_length,box_width,box_hight,net_weight,gross_weight,del_flag,create_time,create_by,update_time,update_by)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
|
,#{invoiceId,jdbcType=VARCHAR}
|
|
|
,#{orderNumber,jdbcType=VARCHAR}
|
|
|
,#{name,jdbcType=VARCHAR}
|
|
|
+,#{type,jdbcType=VARCHAR}
|
|
|
,#{barCode,jdbcType=VARCHAR}
|
|
|
,#{boxLength,jdbcType= NUMERIC }
|
|
|
,#{boxWidth,jdbcType= NUMERIC }
|
|
@@ -63,6 +65,9 @@
|
|
|
</if>
|
|
|
<if test="name!=null">
|
|
|
name_=#{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type!=null">
|
|
|
+ type_=#{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="barCode!=null">
|
|
|
bar_code=#{barCode,jdbcType=VARCHAR},
|
|
@@ -102,7 +107,7 @@
|
|
|
</update>
|
|
|
<select id="get" parameterType="string" resultMap="InvoiceInfoMap">
|
|
|
select
|
|
|
-id_,invoice_id,order_number,name_,bar_code,box_length,box_width,box_hight,net_weight,gross_weight,del_flag,create_time,create_by,update_time,update_by from base_invoice_info where id_=#{0}
|
|
|
+id_,invoice_id,order_number,name_,type_,bar_code,box_length,box_width,box_hight,net_weight,gross_weight,del_flag,create_time,create_by,update_time,update_by from base_invoice_info where id_=#{0}
|
|
|
</select>
|
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
|
select count(*) from base_invoice_info where id_=#{0}
|