|
@@ -66,219 +66,223 @@
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Othspendings" >
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Othspendings" >
|
|
|
insert into othspendings
|
|
insert into othspendings
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="osCode != null" >
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <if test="os_code != null" >
|
|
|
os_code,
|
|
os_code,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osDate != null" >
|
|
|
|
|
|
|
+ <if test="os_date != null" >
|
|
|
os_date,
|
|
os_date,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendid != null" >
|
|
|
|
|
|
|
+ <if test="os_vendid != null" >
|
|
|
os_vendid,
|
|
os_vendid,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendcode != null" >
|
|
|
|
|
|
|
+ <if test="os_vendcode != null" >
|
|
|
os_vendcode,
|
|
os_vendcode,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendname != null" >
|
|
|
|
|
|
|
+ <if test="os_vendname != null" >
|
|
|
os_vendname,
|
|
os_vendname,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankid != null" >
|
|
|
|
|
|
|
+ <if test="os_bankid != null" >
|
|
|
os_bankid,
|
|
os_bankid,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankcode != null" >
|
|
|
|
|
|
|
+ <if test="os_bankcode != null" >
|
|
|
os_bankcode,
|
|
os_bankcode,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankname != null" >
|
|
|
|
|
|
|
+ <if test="os_bankname != null" >
|
|
|
os_bankname,
|
|
os_bankname,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osAmount != null" >
|
|
|
|
|
|
|
+ <if test="os_amount != null" >
|
|
|
os_amount,
|
|
os_amount,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorderid != null" >
|
|
|
|
|
|
|
+ <if test="os_recorderid != null" >
|
|
|
os_recorderid,
|
|
os_recorderid,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorder != null" >
|
|
|
|
|
|
|
+ <if test="os_recorder != null" >
|
|
|
os_recorder,
|
|
os_recorder,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorddate != null" >
|
|
|
|
|
|
|
+ <if test="os_recorddate != null" >
|
|
|
os_recorddate,
|
|
os_recorddate,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osStatus != null" >
|
|
|
|
|
|
|
+ <if test="os_status != null" >
|
|
|
os_status,
|
|
os_status,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osStatuscode != null" >
|
|
|
|
|
|
|
+ <if test="os_statuscode != null" >
|
|
|
os_statuscode,
|
|
os_statuscode,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRemark != null" >
|
|
|
|
|
|
|
+ <if test="os_remark != null" >
|
|
|
os_remark,
|
|
os_remark,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null" >
|
|
<if test="companyId != null" >
|
|
|
companyId,
|
|
companyId,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updaterid != null" >
|
|
|
|
|
|
|
+ <if test="updaterId != null" >
|
|
|
updaterId,
|
|
updaterId,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="updatedate != null" >
|
|
<if test="updatedate != null" >
|
|
|
updatedate,
|
|
updatedate,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText1 != null" >
|
|
|
|
|
|
|
+ <if test="os_text1 != null" >
|
|
|
os_text1,
|
|
os_text1,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText2 != null" >
|
|
|
|
|
|
|
+ <if test="os_text2 != null" >
|
|
|
os_text2,
|
|
os_text2,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText3 != null" >
|
|
|
|
|
|
|
+ <if test="os_text3 != null" >
|
|
|
os_text3,
|
|
os_text3,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText4 != null" >
|
|
|
|
|
|
|
+ <if test="os_text4 != null" >
|
|
|
os_text4,
|
|
os_text4,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText5 != null" >
|
|
|
|
|
|
|
+ <if test="os_text5 != null" >
|
|
|
os_text5,
|
|
os_text5,
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="osCode != null" >
|
|
|
|
|
- #{osCode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_code != null" >
|
|
|
|
|
+ #{os_code,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osDate != null" >
|
|
|
|
|
- #{osDate,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ <if test="os_date != null" >
|
|
|
|
|
+ #{os_date,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendid != null" >
|
|
|
|
|
- #{osVendid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="os_vendid != null" >
|
|
|
|
|
+ #{os_vendid,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendcode != null" >
|
|
|
|
|
- #{osVendcode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_vendcode != null" >
|
|
|
|
|
+ #{os_vendcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendname != null" >
|
|
|
|
|
- #{osVendname,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_vendname != null" >
|
|
|
|
|
+ #{os_vendname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankid != null" >
|
|
|
|
|
- #{osBankid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="os_bankid != null" >
|
|
|
|
|
+ #{os_bankid,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankcode != null" >
|
|
|
|
|
- #{osBankcode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_bankcode != null" >
|
|
|
|
|
+ #{os_bankcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankname != null" >
|
|
|
|
|
- #{osBankname,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_bankname != null" >
|
|
|
|
|
+ #{os_bankname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osAmount != null" >
|
|
|
|
|
- #{osAmount,jdbcType=DOUBLE},
|
|
|
|
|
|
|
+ <if test="os_amount != null" >
|
|
|
|
|
+ #{os_amount,jdbcType=DOUBLE},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorderid != null" >
|
|
|
|
|
- #{osRecorderid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="os_recorderid != null" >
|
|
|
|
|
+ #{os_recorderid,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorder != null" >
|
|
|
|
|
- #{osRecorder,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_recorder != null" >
|
|
|
|
|
+ #{os_recorder,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorddate != null" >
|
|
|
|
|
- #{osRecorddate,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ <if test="os_recorddate != null" >
|
|
|
|
|
+ #{os_recorddate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osStatus != null" >
|
|
|
|
|
- #{osStatus,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="os_status != null" >
|
|
|
|
|
+ #{os_status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osStatuscode != null" >
|
|
|
|
|
- #{osStatuscode,jdbcType=DECIMAL},
|
|
|
|
|
|
|
+ <if test="os_statuscode != null" >
|
|
|
|
|
+ #{os_statuscode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRemark != null" >
|
|
|
|
|
- #{osRemark,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_remark != null" >
|
|
|
|
|
+ #{os_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null" >
|
|
<if test="companyId != null" >
|
|
|
#{companyId,jdbcType=INTEGER},
|
|
#{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updaterid != null" >
|
|
|
|
|
- #{updaterid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="updaterId != null" >
|
|
|
|
|
+ #{updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="updatedate != null" >
|
|
<if test="updatedate != null" >
|
|
|
#{updatedate,jdbcType=TIMESTAMP},
|
|
#{updatedate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText1 != null" >
|
|
|
|
|
- #{osText1,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text1 != null" >
|
|
|
|
|
+ #{os_text1,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText2 != null" >
|
|
|
|
|
- #{osText2,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text2 != null" >
|
|
|
|
|
+ #{os_text2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText3 != null" >
|
|
|
|
|
- #{osText3,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text3 != null" >
|
|
|
|
|
+ #{os_text3,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText4 != null" >
|
|
|
|
|
- #{osText4,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text4 != null" >
|
|
|
|
|
+ #{os_text4,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText5 != null" >
|
|
|
|
|
- #{osText5,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text5 != null" >
|
|
|
|
|
+ #{os_text5,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
|
|
+ <selectKey resultType="Long" keyProperty="id" order="AFTER">
|
|
|
|
|
+ SELECT LAST_INSERT_ID()
|
|
|
|
|
+ </selectKey>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Othspendings" >
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Othspendings" >
|
|
|
update othspendings
|
|
update othspendings
|
|
|
<set >
|
|
<set >
|
|
|
- <if test="osCode != null" >
|
|
|
|
|
- os_code = #{osCode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_code != null" >
|
|
|
|
|
+ os_code = #{os_code,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osDate != null" >
|
|
|
|
|
- os_date = #{osDate,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ <if test="os_date != null" >
|
|
|
|
|
+ os_date = #{os_date,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendid != null" >
|
|
|
|
|
- os_vendid = #{osVendid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="os_vendid != null" >
|
|
|
|
|
+ os_vendid = #{os_vendid,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendcode != null" >
|
|
|
|
|
- os_vendcode = #{osVendcode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_vendcode != null" >
|
|
|
|
|
+ os_vendcode = #{os_vendcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osVendname != null" >
|
|
|
|
|
- os_vendname = #{osVendname,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_vendname != null" >
|
|
|
|
|
+ os_vendname = #{os_vendname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankid != null" >
|
|
|
|
|
- os_bankid = #{osBankid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="os_bankid != null" >
|
|
|
|
|
+ os_bankid = #{os_bankid,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankcode != null" >
|
|
|
|
|
- os_bankcode = #{osBankcode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_bankcode != null" >
|
|
|
|
|
+ os_bankcode = #{os_bankcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osBankname != null" >
|
|
|
|
|
- os_bankname = #{osBankname,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_bankname != null" >
|
|
|
|
|
+ os_bankname = #{os_bankname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osAmount != null" >
|
|
|
|
|
- os_amount = #{osAmount,jdbcType=DOUBLE},
|
|
|
|
|
|
|
+ <if test="os_amount != null" >
|
|
|
|
|
+ os_amount = #{os_amount,jdbcType=DOUBLE},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorderid != null" >
|
|
|
|
|
- os_recorderid = #{osRecorderid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="os_recorderid != null" >
|
|
|
|
|
+ os_recorderid = #{os_recorderid,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorder != null" >
|
|
|
|
|
- os_recorder = #{osRecorder,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_recorder != null" >
|
|
|
|
|
+ os_recorder = #{os_recorder,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRecorddate != null" >
|
|
|
|
|
- os_recorddate = #{osRecorddate,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ <if test="os_recorddate != null" >
|
|
|
|
|
+ os_recorddate = #{os_recorddate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osStatus != null" >
|
|
|
|
|
- os_status = #{osStatus,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="os_status != null" >
|
|
|
|
|
+ os_status = #{os_status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osStatuscode != null" >
|
|
|
|
|
- os_statuscode = #{osStatuscode,jdbcType=DECIMAL},
|
|
|
|
|
|
|
+ <if test="os_statuscode != null" >
|
|
|
|
|
+ os_statuscode = #{os_statuscode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osRemark != null" >
|
|
|
|
|
- os_remark = #{osRemark,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_remark != null" >
|
|
|
|
|
+ os_remark = #{os_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyId != null" >
|
|
<if test="companyId != null" >
|
|
|
companyId = #{companyId,jdbcType=INTEGER},
|
|
companyId = #{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updaterid != null" >
|
|
|
|
|
- updaterId = #{updaterid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="updaterId != null" >
|
|
|
|
|
+ updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="updatedate != null" >
|
|
<if test="updatedate != null" >
|
|
|
updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText1 != null" >
|
|
|
|
|
- os_text1 = #{osText1,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text1 != null" >
|
|
|
|
|
+ os_text1 = #{os_text1,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText2 != null" >
|
|
|
|
|
- os_text2 = #{osText2,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text2 != null" >
|
|
|
|
|
+ os_text2 = #{os_text2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText3 != null" >
|
|
|
|
|
- os_text3 = #{osText3,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text3 != null" >
|
|
|
|
|
+ os_text3 = #{os_text3,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText4 != null" >
|
|
|
|
|
- os_text4 = #{osText4,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text4 != null" >
|
|
|
|
|
+ os_text4 = #{os_text4,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="osText5 != null" >
|
|
|
|
|
- os_text5 = #{osText5,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="os_text5 != null" >
|
|
|
|
|
+ os_text5 = #{os_text5,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
</set>
|
|
</set>
|
|
|
where os_id = #{id,jdbcType=INTEGER}
|
|
where os_id = #{id,jdbcType=INTEGER}
|