|
|
@@ -29,13 +29,17 @@
|
|
|
<result column="osd_type" property="osd_type" jdbcType="VARCHAR" />
|
|
|
<result column="osd_nowbalance" property="osd_nowbalance" jdbcType="DOUBLE" />
|
|
|
<result column="osd_remark" property="osd_remark" jdbcType="VARCHAR" />
|
|
|
+ <result column="creatorName" property="creatorName" jdbcType="VARCHAR" />
|
|
|
+ <result column="createTime" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="os_auditman" property="os_auditman" jdbcType="VARCHAR" />
|
|
|
+ <result column="os_auditdate" property="os_auditdate" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
os_id, os_code, os_date, os_vendid, os_vendcode, os_vendname, os_bankid, os_bankcode,
|
|
|
os_bankname, os_amount, os_recorderid, os_recorder, os_recorddate, os_status, os_statuscode,
|
|
|
os_remark, othspendings.companyId, othspendings.updaterId,
|
|
|
othspendings.updatedate, os_text1, os_text2, os_text3, os_text4,
|
|
|
- os_text5
|
|
|
+ os_text5,othspendings.creatorName, othspendings.createTime, os_auditman, os_auditdate
|
|
|
</sql>
|
|
|
<sql id="Detail_Column_List" >
|
|
|
osd_type,osd_nowbalance,osd_remark
|
|
|
@@ -138,6 +142,12 @@
|
|
|
<if test="os_text5 != null" >
|
|
|
os_text5,
|
|
|
</if>
|
|
|
+ <if test="creatorName != null" >
|
|
|
+ creatorName,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ createTime,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="os_code != null" >
|
|
|
@@ -167,13 +177,13 @@
|
|
|
<if test="os_amount != null" >
|
|
|
#{os_amount,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
- now(),
|
|
|
+ <if test="os_recorderid != null" >
|
|
|
+ #{os_recorderid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="os_recorder != null" >
|
|
|
#{os_recorder,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="os_recorddate != null" >
|
|
|
- #{os_recorddate,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
+ now(),
|
|
|
<if test="os_status != null" >
|
|
|
#{os_status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -204,6 +214,12 @@
|
|
|
<if test="os_text5 != null" >
|
|
|
#{os_text5,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="creatorName != null" >
|
|
|
+ #{creatorName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<selectKey resultType="Long" keyProperty="id" order="AFTER">
|
|
|
SELECT LAST_INSERT_ID()
|