|
@@ -6,9 +6,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<insert id="insertDealRecord" parameterType="NascDealRecord" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT INTO nasc_deal_record (serial_number, barcode, with_type, contacts, phone, id_card, with_status,
|
|
|
- materials, matter_id, deal_user, create_time)
|
|
|
+ enterprise_name, materials, matter_id, deal_user, create_time)
|
|
|
VALUES (#{serialNumber}, #{barcode}, #{withType}, #{contacts}, #{phone}, #{idCard}, #{withStatus},
|
|
|
- #{materials}, #{matterId}, #{dealUser}, sysdate());
|
|
|
+ #{enterpriseName}, #{materials}, #{matterId}, #{dealUser}, sysdate());
|
|
|
</insert>
|
|
|
|
|
|
<resultMap id="dealRecordResult" type="java.util.HashMap">
|
|
@@ -26,11 +26,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="itemName" column="item_name"/>
|
|
|
<result property="userName" column="user_name"/>
|
|
|
<result property="deptName" column="dept_name"/>
|
|
|
+ <result property="enterpriseName" column="enterprise_name"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectDealRecordList" parameterType="NascDealRecord" resultMap="dealRecordResult">
|
|
|
SELECT dr.id, dr.serial_number, dr.with_type, dr.contacts, dr.barcode, dr.matter_id,
|
|
|
- dr.phone, dr.id_card, dr.with_status, dr.materials,
|
|
|
+ dr.phone, dr.id_card, dr.with_status, dr.materials, dr.enterprise_name,
|
|
|
DATE_FORMAT(dr.create_time, '%Y-%m-%d %H:%i:%s') AS create_time,
|
|
|
m.item_name, u.user_name, d.dept_name
|
|
|
FROM nasc_deal_record dr
|
|
@@ -50,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="getDealRecordById" resultMap="dealRecordResult">
|
|
|
SELECT dr.id, dr.serial_number, dr.with_type, dr.contacts, dr.barcode,
|
|
|
- dr.phone, dr.id_card, dr.with_status, dr.materials,
|
|
|
+ dr.phone, dr.id_card, dr.with_status, dr.materials, dr.enterprise_name,
|
|
|
DATE_FORMAT(dr.create_time, '%Y-%m-%d %H:%i:%s') AS create_time,
|
|
|
m.item_name, u.user_name
|
|
|
FROM nasc_deal_record dr
|