|
@@ -7,6 +7,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="OrderFile" id="OrderFileResult">
|
|
|
<result property="orderId" column="order_id" />
|
|
|
<result property="flowId" column="flow_id" />
|
|
|
+ <result property="customersCode" column="customers_code" />
|
|
|
+ <result property="signerId" column="signer_id" />
|
|
|
+ <result property="signerName" column="signer_name" />
|
|
|
<result property="fileUrl" column="file_url" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
@@ -16,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectOrderFileVo">
|
|
|
- select order_id, flow_id, file_url, create_by, create_time, update_by, update_time, is_delete from ssb_order_file
|
|
|
+ select order_id, flow_id,customers_code,signer_id,signer_name, file_url, create_by, create_time, update_by, update_time, is_delete from ssb_order_file
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectOrderFileList" parameterType="OrderFile" resultMap="OrderFileResult">
|
|
@@ -38,6 +41,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into ssb_order_file
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderId != null">order_id,</if>
|
|
|
+ <if test="customersCode != null">customers_code,</if>
|
|
|
+ <if test="signerId != null">signer_id,</if>
|
|
|
+ <if test="signerName != null">signer_name,</if>
|
|
|
<if test="flowId != null">flow_id,</if>
|
|
|
<if test="fileUrl != null">file_url,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -49,6 +55,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderId != null">#{orderId},</if>
|
|
|
<if test="flowId != null">#{flowId},</if>
|
|
|
+ <if test="customersCode != null">#{customersCode},</if>
|
|
|
+ <if test="signerId != null">#{signerId},</if>
|
|
|
+ <if test="signerName != null">#{signerName},</if>
|
|
|
<if test="fileUrl != null">#{fileUrl},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
@@ -62,6 +71,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update ssb_order_file
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="flowId != null">flow_id = #{flowId},</if>
|
|
|
+ <if test="customersCode != null">customers_code = #{customersCode},</if>
|
|
|
+ <if test="signerId != null">signer_id = #{signerId},</if>
|
|
|
+ <if test="signerName != null">signer_name = #{signerName},</if>
|
|
|
<if test="fileUrl != null">file_url = #{fileUrl},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
@@ -74,6 +86,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateOrderFileByFlowId">
|
|
|
update ssb_order_file
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="customersCode != null">customers_code = #{customersCode},</if>
|
|
|
+ <if test="signerId != null">signer_id = #{signerId},</if>
|
|
|
+ <if test="signerName != null">signer_name = #{signerName},</if>
|
|
|
<if test="fileUrl != null">file_url = #{fileUrl},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|