|
@@ -60,6 +60,10 @@
|
|
|
<result column="e_invoice_url" jdbcType="VARCHAR" property="eInvoiceUrl" />
|
|
|
<result column="serial_no" jdbcType="VARCHAR" property="serialNo" />
|
|
|
<result column="specifications" jdbcType="VARCHAR" property="specifications" />
|
|
|
+ <result column="nc_code" jdbcType="VARCHAR" property="ncCode" />
|
|
|
+ </resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.idea.invoice.model.InvoiceManage">
|
|
|
+ <result column="nc_json" jdbcType="LONGVARCHAR" property="ncJson" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -130,8 +134,27 @@
|
|
|
invoice_header_bank_number, bad_debt_reason, create_user, create_time, update_user,
|
|
|
update_time, invoice_file, take_status, take_user, take_date, take_notes, take_update_user,
|
|
|
red_invoice_no, red_confirm_uuid, red_confirm_no, red_confirm_serial_no, confirm_state,
|
|
|
- remark, e_invoice_url, serial_no, specifications
|
|
|
+ remark, e_invoice_url, serial_no, specifications, nc_code
|
|
|
+ </sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ nc_json
|
|
|
</sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.idea.invoice.model.InvoiceManageExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from invoice_manage
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
<select id="selectByExample" parameterType="com.idea.invoice.model.InvoiceManageExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<if test="distinct">
|
|
@@ -146,9 +169,11 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
from invoice_manage
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
@@ -183,7 +208,8 @@
|
|
|
take_notes, take_update_user, red_invoice_no,
|
|
|
red_confirm_uuid, red_confirm_no, red_confirm_serial_no,
|
|
|
confirm_state, remark, e_invoice_url,
|
|
|
- serial_no, specifications)
|
|
|
+ serial_no, specifications, nc_code,
|
|
|
+ nc_json)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR}, #{customerManagementId,jdbcType=VARCHAR},
|
|
|
#{contractNumber,jdbcType=VARCHAR}, #{recordNumber,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
|
|
|
#{costType,jdbcType=VARCHAR}, #{paymentType,jdbcType=VARCHAR}, #{sendStatus,jdbcType=VARCHAR},
|
|
@@ -204,7 +230,8 @@
|
|
|
#{takeNotes,jdbcType=VARCHAR}, #{takeUpdateUser,jdbcType=VARCHAR}, #{redInvoiceNo,jdbcType=VARCHAR},
|
|
|
#{redConfirmUuid,jdbcType=VARCHAR}, #{redConfirmNo,jdbcType=VARCHAR}, #{redConfirmSerialNo,jdbcType=VARCHAR},
|
|
|
#{confirmState,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{eInvoiceUrl,jdbcType=VARCHAR},
|
|
|
- #{serialNo,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR})
|
|
|
+ #{serialNo,jdbcType=VARCHAR}, #{specifications,jdbcType=VARCHAR}, #{ncCode,jdbcType=VARCHAR},
|
|
|
+ #{ncJson,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.idea.invoice.model.InvoiceManage">
|
|
|
insert into invoice_manage
|
|
@@ -383,6 +410,12 @@
|
|
|
<if test="specifications != null">
|
|
|
specifications,
|
|
|
</if>
|
|
|
+ <if test="ncCode != null">
|
|
|
+ nc_code,
|
|
|
+ </if>
|
|
|
+ <if test="ncJson != null">
|
|
|
+ nc_json,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -559,6 +592,12 @@
|
|
|
<if test="specifications != null">
|
|
|
#{specifications,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="ncCode != null">
|
|
|
+ #{ncCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ncJson != null">
|
|
|
+ #{ncJson,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.idea.invoice.model.InvoiceManageExample" resultType="java.lang.Long">
|
|
@@ -744,11 +783,83 @@
|
|
|
<if test="record.specifications != null">
|
|
|
specifications = #{record.specifications,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.ncCode != null">
|
|
|
+ nc_code = #{record.ncCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.ncJson != null">
|
|
|
+ nc_json = #{record.ncJson,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
+ update invoice_manage
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{record.contractId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
+ contract_number = #{record.contractNumber,jdbcType=VARCHAR},
|
|
|
+ record_number = #{record.recordNumber,jdbcType=VARCHAR},
|
|
|
+ type = #{record.type,jdbcType=VARCHAR},
|
|
|
+ cost_type = #{record.costType,jdbcType=VARCHAR},
|
|
|
+ payment_type = #{record.paymentType,jdbcType=VARCHAR},
|
|
|
+ send_status = #{record.sendStatus,jdbcType=VARCHAR},
|
|
|
+ invoice_status = #{record.invoiceStatus,jdbcType=VARCHAR},
|
|
|
+ invoice_date = #{record.invoiceDate,jdbcType=TIMESTAMP},
|
|
|
+ invoice_code = #{record.invoiceCode,jdbcType=VARCHAR},
|
|
|
+ invoice_no = #{record.invoiceNo,jdbcType=VARCHAR},
|
|
|
+ invoice_type = #{record.invoiceType,jdbcType=VARCHAR},
|
|
|
+ invoice_amount = #{record.invoiceAmount,jdbcType=DECIMAL},
|
|
|
+ invoice_tax = #{record.invoiceTax,jdbcType=VARCHAR},
|
|
|
+ invoice_count = #{record.invoiceCount,jdbcType=DECIMAL},
|
|
|
+ invoice_price = #{record.invoicePrice,jdbcType=DECIMAL},
|
|
|
+ invoice_goods_code = #{record.invoiceGoodsCode,jdbcType=VARCHAR},
|
|
|
+ invoice_goods_name = #{record.invoiceGoodsName,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_name = #{record.invoiceSellerName,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_number = #{record.invoiceSellerNumber,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_bank = #{record.invoiceSellerBank,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_bank_number = #{record.invoiceSellerBankNumber,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_address = #{record.invoiceSellerAddress,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_phone = #{record.invoiceSellerPhone,jdbcType=VARCHAR},
|
|
|
+ invoice_email = #{record.invoiceEmail,jdbcType=VARCHAR},
|
|
|
+ invoice_phone = #{record.invoicePhone,jdbcType=VARCHAR},
|
|
|
+ invoice_content = #{record.invoiceContent,jdbcType=VARCHAR},
|
|
|
+ submit_time = #{record.submitTime,jdbcType=TIMESTAMP},
|
|
|
+ submit_user = #{record.submitUser,jdbcType=VARCHAR},
|
|
|
+ invoice_header_id = #{record.invoiceHeaderId,jdbcType=VARCHAR},
|
|
|
+ invoice_header_name = #{record.invoiceHeaderName,jdbcType=VARCHAR},
|
|
|
+ invoice_header_number = #{record.invoiceHeaderNumber,jdbcType=VARCHAR},
|
|
|
+ invoice_header_address = #{record.invoiceHeaderAddress,jdbcType=VARCHAR},
|
|
|
+ invoice_header_phone = #{record.invoiceHeaderPhone,jdbcType=VARCHAR},
|
|
|
+ invoice_header_bank = #{record.invoiceHeaderBank,jdbcType=VARCHAR},
|
|
|
+ invoice_header_bank_number = #{record.invoiceHeaderBankNumber,jdbcType=VARCHAR},
|
|
|
+ bad_debt_reason = #{record.badDebtReason,jdbcType=VARCHAR},
|
|
|
+ create_user = #{record.createUser,jdbcType=VARCHAR},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_user = #{record.updateUser,jdbcType=VARCHAR},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ invoice_file = #{record.invoiceFile,jdbcType=VARCHAR},
|
|
|
+ take_status = #{record.takeStatus,jdbcType=VARCHAR},
|
|
|
+ take_user = #{record.takeUser,jdbcType=VARCHAR},
|
|
|
+ take_date = #{record.takeDate,jdbcType=TIMESTAMP},
|
|
|
+ take_notes = #{record.takeNotes,jdbcType=VARCHAR},
|
|
|
+ take_update_user = #{record.takeUpdateUser,jdbcType=VARCHAR},
|
|
|
+ red_invoice_no = #{record.redInvoiceNo,jdbcType=VARCHAR},
|
|
|
+ red_confirm_uuid = #{record.redConfirmUuid,jdbcType=VARCHAR},
|
|
|
+ red_confirm_no = #{record.redConfirmNo,jdbcType=VARCHAR},
|
|
|
+ red_confirm_serial_no = #{record.redConfirmSerialNo,jdbcType=VARCHAR},
|
|
|
+ confirm_state = #{record.confirmState,jdbcType=VARCHAR},
|
|
|
+ remark = #{record.remark,jdbcType=VARCHAR},
|
|
|
+ e_invoice_url = #{record.eInvoiceUrl,jdbcType=VARCHAR},
|
|
|
+ serial_no = #{record.serialNo,jdbcType=VARCHAR},
|
|
|
+ specifications = #{record.specifications,jdbcType=VARCHAR},
|
|
|
+ nc_code = #{record.ncCode,jdbcType=VARCHAR},
|
|
|
+ nc_json = #{record.ncJson,jdbcType=LONGVARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update invoice_manage
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
@@ -808,7 +919,8 @@
|
|
|
remark = #{record.remark,jdbcType=VARCHAR},
|
|
|
e_invoice_url = #{record.eInvoiceUrl,jdbcType=VARCHAR},
|
|
|
serial_no = #{record.serialNo,jdbcType=VARCHAR},
|
|
|
- specifications = #{record.specifications,jdbcType=VARCHAR}
|
|
|
+ specifications = #{record.specifications,jdbcType=VARCHAR},
|
|
|
+ nc_code = #{record.ncCode,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -987,9 +1099,78 @@
|
|
|
<if test="specifications != null">
|
|
|
specifications = #{specifications,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="ncCode != null">
|
|
|
+ nc_code = #{ncCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ncJson != null">
|
|
|
+ nc_json = #{ncJson,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.invoice.model.InvoiceManage">
|
|
|
+ update invoice_manage
|
|
|
+ set contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ contract_number = #{contractNumber,jdbcType=VARCHAR},
|
|
|
+ record_number = #{recordNumber,jdbcType=VARCHAR},
|
|
|
+ type = #{type,jdbcType=VARCHAR},
|
|
|
+ cost_type = #{costType,jdbcType=VARCHAR},
|
|
|
+ payment_type = #{paymentType,jdbcType=VARCHAR},
|
|
|
+ send_status = #{sendStatus,jdbcType=VARCHAR},
|
|
|
+ invoice_status = #{invoiceStatus,jdbcType=VARCHAR},
|
|
|
+ invoice_date = #{invoiceDate,jdbcType=TIMESTAMP},
|
|
|
+ invoice_code = #{invoiceCode,jdbcType=VARCHAR},
|
|
|
+ invoice_no = #{invoiceNo,jdbcType=VARCHAR},
|
|
|
+ invoice_type = #{invoiceType,jdbcType=VARCHAR},
|
|
|
+ invoice_amount = #{invoiceAmount,jdbcType=DECIMAL},
|
|
|
+ invoice_tax = #{invoiceTax,jdbcType=VARCHAR},
|
|
|
+ invoice_count = #{invoiceCount,jdbcType=DECIMAL},
|
|
|
+ invoice_price = #{invoicePrice,jdbcType=DECIMAL},
|
|
|
+ invoice_goods_code = #{invoiceGoodsCode,jdbcType=VARCHAR},
|
|
|
+ invoice_goods_name = #{invoiceGoodsName,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_name = #{invoiceSellerName,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_number = #{invoiceSellerNumber,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_bank = #{invoiceSellerBank,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_bank_number = #{invoiceSellerBankNumber,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_address = #{invoiceSellerAddress,jdbcType=VARCHAR},
|
|
|
+ invoice_seller_phone = #{invoiceSellerPhone,jdbcType=VARCHAR},
|
|
|
+ invoice_email = #{invoiceEmail,jdbcType=VARCHAR},
|
|
|
+ invoice_phone = #{invoicePhone,jdbcType=VARCHAR},
|
|
|
+ invoice_content = #{invoiceContent,jdbcType=VARCHAR},
|
|
|
+ submit_time = #{submitTime,jdbcType=TIMESTAMP},
|
|
|
+ submit_user = #{submitUser,jdbcType=VARCHAR},
|
|
|
+ invoice_header_id = #{invoiceHeaderId,jdbcType=VARCHAR},
|
|
|
+ invoice_header_name = #{invoiceHeaderName,jdbcType=VARCHAR},
|
|
|
+ invoice_header_number = #{invoiceHeaderNumber,jdbcType=VARCHAR},
|
|
|
+ invoice_header_address = #{invoiceHeaderAddress,jdbcType=VARCHAR},
|
|
|
+ invoice_header_phone = #{invoiceHeaderPhone,jdbcType=VARCHAR},
|
|
|
+ invoice_header_bank = #{invoiceHeaderBank,jdbcType=VARCHAR},
|
|
|
+ invoice_header_bank_number = #{invoiceHeaderBankNumber,jdbcType=VARCHAR},
|
|
|
+ bad_debt_reason = #{badDebtReason,jdbcType=VARCHAR},
|
|
|
+ create_user = #{createUser,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_user = #{updateUser,jdbcType=VARCHAR},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ invoice_file = #{invoiceFile,jdbcType=VARCHAR},
|
|
|
+ take_status = #{takeStatus,jdbcType=VARCHAR},
|
|
|
+ take_user = #{takeUser,jdbcType=VARCHAR},
|
|
|
+ take_date = #{takeDate,jdbcType=TIMESTAMP},
|
|
|
+ take_notes = #{takeNotes,jdbcType=VARCHAR},
|
|
|
+ take_update_user = #{takeUpdateUser,jdbcType=VARCHAR},
|
|
|
+ red_invoice_no = #{redInvoiceNo,jdbcType=VARCHAR},
|
|
|
+ red_confirm_uuid = #{redConfirmUuid,jdbcType=VARCHAR},
|
|
|
+ red_confirm_no = #{redConfirmNo,jdbcType=VARCHAR},
|
|
|
+ red_confirm_serial_no = #{redConfirmSerialNo,jdbcType=VARCHAR},
|
|
|
+ confirm_state = #{confirmState,jdbcType=VARCHAR},
|
|
|
+ remark = #{remark,jdbcType=VARCHAR},
|
|
|
+ e_invoice_url = #{eInvoiceUrl,jdbcType=VARCHAR},
|
|
|
+ serial_no = #{serialNo,jdbcType=VARCHAR},
|
|
|
+ specifications = #{specifications,jdbcType=VARCHAR},
|
|
|
+ nc_code = #{ncCode,jdbcType=VARCHAR},
|
|
|
+ nc_json = #{ncJson,jdbcType=LONGVARCHAR}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.idea.invoice.model.InvoiceManage">
|
|
|
update invoice_manage
|
|
|
set contract_id = #{contractId,jdbcType=VARCHAR},
|
|
@@ -1048,7 +1229,8 @@
|
|
|
remark = #{remark,jdbcType=VARCHAR},
|
|
|
e_invoice_url = #{eInvoiceUrl,jdbcType=VARCHAR},
|
|
|
serial_no = #{serialNo,jdbcType=VARCHAR},
|
|
|
- specifications = #{specifications,jdbcType=VARCHAR}
|
|
|
+ specifications = #{specifications,jdbcType=VARCHAR},
|
|
|
+ nc_code = #{ncCode,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|