|
|
@@ -13,9 +13,9 @@
|
|
|
<result column="vcd_amount" property="vcd_amount" jdbcType="DOUBLE" />
|
|
|
<result column="vcd_nowbalance" property="vcd_nowbalance" jdbcType="DOUBLE" />
|
|
|
<result column="vcd_remark" property="vcd_remark" jdbcType="VARCHAR" />
|
|
|
- <result column="companyid" property="companyid" jdbcType="INTEGER" />
|
|
|
+ <result column="companyId" property="companyId" jdbcType="INTEGER" />
|
|
|
<result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
- <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="vcd_text1" property="vcd_text1" jdbcType="VARCHAR" />
|
|
|
<result column="vcd_text2" property="vcd_text2" jdbcType="VARCHAR" />
|
|
|
<result column="vcd_text3" property="vcd_text3" jdbcType="VARCHAR" />
|
|
|
@@ -81,8 +81,8 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List" >
|
|
|
- vcd_id, vcd_vcid, vcd_detno, vcd_ym, vcd_slid, vcd_slcode, vcd_slkind, vcd_sldate,
|
|
|
- vcd_amount, vcd_nowbalance, vcd_remark, companyid, updaterId, updatedate, vcd_text1,
|
|
|
+ vcd_id, vcd_vcid, vcd_detno, vcd_ym, vcd_slid, vcd_slcode, vcd_slkind, vcd_sldate,
|
|
|
+ vcd_amount, vcd_nowbalance, vcd_remark, companyId, updaterId, updateTime, vcd_text1,
|
|
|
vcd_text2, vcd_text3, vcd_text4, vcd_text5
|
|
|
</sql>
|
|
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.usoftchina.saas.money.po.VerificationdetailExample" >
|
|
|
@@ -100,7 +100,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from verificationdetail
|
|
|
where vcd_id = #{vcd_id,jdbcType=INTEGER}
|
|
|
@@ -116,19 +116,19 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.usoftchina.saas.money.po.Verificationdetail" >
|
|
|
- insert into verificationdetail (vcd_id, vcd_vcid, vcd_detno,
|
|
|
- vcd_ym, vcd_slid, vcd_slcode,
|
|
|
- vcd_slkind, vcd_sldate, vcd_amount,
|
|
|
- vcd_nowbalance, vcd_remark, companyid,
|
|
|
- updaterId, updatedate, vcd_text1,
|
|
|
- vcd_text2, vcd_text3, vcd_text4,
|
|
|
+ insert into verificationdetail (vcd_id, vcd_vcid, vcd_detno,
|
|
|
+ vcd_ym, vcd_slid, vcd_slcode,
|
|
|
+ vcd_slkind, vcd_sldate, vcd_amount,
|
|
|
+ vcd_nowbalance, vcd_remark, companyId,
|
|
|
+ updaterId, updateTime, vcd_text1,
|
|
|
+ vcd_text2, vcd_text3, vcd_text4,
|
|
|
vcd_text5)
|
|
|
- values (#{vcd_id,jdbcType=INTEGER}, #{vcd_vcid,jdbcType=INTEGER}, #{vcd_detno,jdbcType=INTEGER},
|
|
|
- #{vcd_ym,jdbcType=INTEGER}, #{vcd_slid,jdbcType=INTEGER}, #{vcd_slcode,jdbcType=VARCHAR},
|
|
|
- #{vcd_slkind,jdbcType=VARCHAR}, #{vcd_sldate,jdbcType=TIMESTAMP}, #{vcd_amount,jdbcType=DOUBLE},
|
|
|
- #{vcd_nowbalance,jdbcType=DOUBLE}, #{vcd_remark,jdbcType=VARCHAR}, #{companyid,jdbcType=INTEGER},
|
|
|
- #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}, #{vcd_text1,jdbcType=VARCHAR},
|
|
|
- #{vcd_text2,jdbcType=VARCHAR}, #{vcd_text3,jdbcType=VARCHAR}, #{vcd_text4,jdbcType=VARCHAR},
|
|
|
+ values (#{vcd_id,jdbcType=INTEGER}, #{vcd_vcid,jdbcType=INTEGER}, #{vcd_detno,jdbcType=INTEGER},
|
|
|
+ #{vcd_ym,jdbcType=INTEGER}, #{vcd_slid,jdbcType=INTEGER}, #{vcd_slcode,jdbcType=VARCHAR},
|
|
|
+ #{vcd_slkind,jdbcType=VARCHAR}, #{vcd_sldate,jdbcType=TIMESTAMP}, #{vcd_amount,jdbcType=DOUBLE},
|
|
|
+ #{vcd_nowbalance,jdbcType=DOUBLE}, #{vcd_remark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER},
|
|
|
+ #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{vcd_text1,jdbcType=VARCHAR},
|
|
|
+ #{vcd_text2,jdbcType=VARCHAR}, #{vcd_text3,jdbcType=VARCHAR}, #{vcd_text4,jdbcType=VARCHAR},
|
|
|
#{vcd_text5,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Verificationdetail" >
|
|
|
@@ -167,14 +167,14 @@
|
|
|
<if test="vcd_remark != null" >
|
|
|
vcd_remark,
|
|
|
</if>
|
|
|
- <if test="companyid != null" >
|
|
|
- companyid,
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId,
|
|
|
</if>
|
|
|
<if test="updaterId != null" >
|
|
|
updaterId,
|
|
|
</if>
|
|
|
- <if test="updatedate != null" >
|
|
|
- updatedate,
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ updateTime,
|
|
|
</if>
|
|
|
<if test="vcd_text1 != null" >
|
|
|
vcd_text1,
|
|
|
@@ -226,14 +226,14 @@
|
|
|
<if test="vcd_remark != null" >
|
|
|
#{vcd_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="companyid != null" >
|
|
|
- #{companyid,jdbcType=INTEGER},
|
|
|
+ <if test="companyId != null" >
|
|
|
+ #{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updaterId != null" >
|
|
|
#{updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="updatedate != null" >
|
|
|
- #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="vcd_text1 != null" >
|
|
|
#{vcd_text1,jdbcType=VARCHAR},
|
|
|
@@ -294,14 +294,14 @@
|
|
|
<if test="record.vcd_remark != null" >
|
|
|
vcd_remark = #{record.vcd_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.companyid != null" >
|
|
|
- companyid = #{record.companyid,jdbcType=INTEGER},
|
|
|
+ <if test="record.companyId != null" >
|
|
|
+ companyId = #{record.companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="record.updaterId != null" >
|
|
|
updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.updatedate != null" >
|
|
|
- updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
|
+ <if test="record.updateTime != null" >
|
|
|
+ updateTime = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="record.vcd_text1 != null" >
|
|
|
vcd_text1 = #{record.vcd_text1,jdbcType=VARCHAR},
|
|
|
@@ -336,9 +336,9 @@
|
|
|
vcd_amount = #{record.vcd_amount,jdbcType=DOUBLE},
|
|
|
vcd_nowbalance = #{record.vcd_nowbalance,jdbcType=DOUBLE},
|
|
|
vcd_remark = #{record.vcd_remark,jdbcType=VARCHAR},
|
|
|
- companyid = #{record.companyid,jdbcType=INTEGER},
|
|
|
+ companyId = #{record.companyId,jdbcType=INTEGER},
|
|
|
updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
|
- updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
|
+ updateTime = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
vcd_text1 = #{record.vcd_text1,jdbcType=VARCHAR},
|
|
|
vcd_text2 = #{record.vcd_text2,jdbcType=VARCHAR},
|
|
|
vcd_text3 = #{record.vcd_text3,jdbcType=VARCHAR},
|
|
|
@@ -381,14 +381,14 @@
|
|
|
<if test="vcd_remark != null" >
|
|
|
vcd_remark = #{vcd_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="companyid != null" >
|
|
|
- companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId = #{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="updaterId != null" >
|
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="updatedate != null" >
|
|
|
- updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="vcd_text1 != null" >
|
|
|
vcd_text1 = #{vcd_text1,jdbcType=VARCHAR},
|
|
|
@@ -420,9 +420,9 @@
|
|
|
vcd_amount = #{vcd_amount,jdbcType=DOUBLE},
|
|
|
vcd_nowbalance = #{vcd_nowbalance,jdbcType=DOUBLE},
|
|
|
vcd_remark = #{vcd_remark,jdbcType=VARCHAR},
|
|
|
- companyid = #{companyid,jdbcType=INTEGER},
|
|
|
+ companyId = #{companyId,jdbcType=INTEGER},
|
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
- updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
|
+ updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
vcd_text1 = #{vcd_text1,jdbcType=VARCHAR},
|
|
|
vcd_text2 = #{vcd_text2,jdbcType=VARCHAR},
|
|
|
vcd_text3 = #{vcd_text3,jdbcType=VARCHAR},
|
|
|
@@ -434,48 +434,52 @@
|
|
|
insert into verificationdetail
|
|
|
(
|
|
|
vcd_id,vcd_vcid,vcd_detno,vcd_ym,vcd_slid,vcd_slcode,vcd_slkind,vcd_sldate,
|
|
|
- vcd_amount,vcd_nowbalance,vcd_remark,companyid,updaterId,updatedate,vcd_text1,
|
|
|
+ vcd_amount,vcd_nowbalance,vcd_remark,companyId,updaterId,updateTime,vcd_text1,
|
|
|
vcd_text2,vcd_text3,vcd_text4,vcd_text5
|
|
|
)
|
|
|
values
|
|
|
- <foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
|
|
+ <foreach collection="list" item="items2" index="index" open="" close="" separator=",">
|
|
|
(
|
|
|
- #{item.vcd_id,jdbcType=INTEGER},#{item.vcd_vcid,jdbcType=INTEGER},#{item.vcd_detno,jdbcType=INTEGER},#{item.vcd_ym,jdbcType=INTEGER},#{item.vcd_slid,jdbcType=INTEGER},
|
|
|
- #{item.vcd_slcode,jdbcType=VARCHAR},#{item.vcd_slkind,jdbcType=VARCHAR},#{item.vcd_sldate,jdbcType=DATE},#{item.vcd_amount,jdbcType=DOUBLE},
|
|
|
- #{item.vcd_nowbalance,jdbcType=DOUBLE},#{item.vcd_remark,jdbcType=VARCHAR},#{item.companyid,jdbcType=INTEGER},#{item.updaterId,jdbcType=INTEGER},#{item.updatedate,jdbcType=DATE},
|
|
|
- #{item.vcd_text1,jdbcType=VARCHAR},#{item.vcd_text2,jdbcType=VARCHAR},#{item.vcd_text3,jdbcType=VARCHAR},#{item.vcd_text4,jdbcType=VARCHAR},
|
|
|
- #{item.vcd_text5,jdbcType=VARCHAR}
|
|
|
+ #{items2.vcd_id,jdbcType=INTEGER},#{items2.vcd_vcid,jdbcType=INTEGER},#{items2.vcd_detno,jdbcType=INTEGER},#{items2.vcd_ym,jdbcType=INTEGER},#{items2.vcd_slid,jdbcType=INTEGER},
|
|
|
+ #{items2.vcd_slcode,jdbcType=VARCHAR},#{items2.vcd_slkind,jdbcType=VARCHAR},#{items2.vcd_sldate,jdbcType=DATE},#{items2.vcd_amount,jdbcType=DOUBLE},
|
|
|
+ #{items2.vcd_nowbalance,jdbcType=DOUBLE},#{items2.vcd_remark,jdbcType=VARCHAR},#{items2.companyId,jdbcType=INTEGER},#{items2.updaterId,jdbcType=INTEGER},#{items2.updateTime,jdbcType=DATE},
|
|
|
+ #{items2.vcd_text1,jdbcType=VARCHAR},#{items2.vcd_text2,jdbcType=VARCHAR},#{items2.vcd_text3,jdbcType=VARCHAR},#{items2.vcd_text4,jdbcType=VARCHAR},
|
|
|
+ #{items2.vcd_text5,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="com.usoftchina.saas.money.po.Verificationdetail" >
|
|
|
- <foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
+ <foreach collection="list" item="items2" index="index" open="" close="" separator=";">
|
|
|
update verificationdetail <set>
|
|
|
- vcd_id = #{item.vcd_id},
|
|
|
- vcd_vcid = #{item.vcd_vcid},
|
|
|
- vcd_detno = #{item.vcd_detno},
|
|
|
- vcd_ym = #{item.vcd_ym},
|
|
|
- vcd_slid = #{item.vcd_slid},
|
|
|
- vcd_slcode = #{item.vcd_slcode},
|
|
|
- vcd_slkind = #{item.vcd_slkind},
|
|
|
- vcd_sldate = #{item.vcd_sldate},
|
|
|
- vcd_amount = #{item.vcd_amount},
|
|
|
- vcd_nowbalance = #{item.vcd_nowbalance},
|
|
|
- vcd_remark = #{item.vcd_remark},
|
|
|
- companyid = #{item.companyid},
|
|
|
- updaterId = #{item.updaterId},
|
|
|
- updatedate = #{item.updatedate},
|
|
|
- vcd_text1 = #{item.vcd_text1},
|
|
|
- vcd_text2 = #{item.vcd_text2},
|
|
|
- vcd_text3= #{item.vcd_text3},
|
|
|
- vcd_text4= #{item.vcd_text4},
|
|
|
- vcd_text5= #{item.vcd_text5}
|
|
|
+ vcd_id = #{items2.vcd_id},
|
|
|
+ vcd_vcid = #{items2.vcd_vcid},
|
|
|
+ vcd_detno = #{items2.vcd_detno},
|
|
|
+ vcd_ym = #{items2.vcd_ym},
|
|
|
+ vcd_slid = #{items2.vcd_slid},
|
|
|
+ vcd_slcode = #{items2.vcd_slcode},
|
|
|
+ vcd_slkind = #{items2.vcd_slkind},
|
|
|
+ vcd_sldate = #{items2.vcd_sldate},
|
|
|
+ vcd_amount = #{items2.vcd_amount},
|
|
|
+ vcd_nowbalance = #{items2.vcd_nowbalance},
|
|
|
+ vcd_remark = #{items2.vcd_remark},
|
|
|
+ companyId = #{items2.companyId},
|
|
|
+ updaterId = #{items2.updaterId},
|
|
|
+ updateTime = #{items2.updateTime},
|
|
|
+ vcd_text1 = #{items2.vcd_text1},
|
|
|
+ vcd_text2 = #{items2.vcd_text2},
|
|
|
+ vcd_text3= #{items2.vcd_text3},
|
|
|
+ vcd_text4= #{items2.vcd_text4},
|
|
|
+ vcd_text5= #{items2.vcd_text5}
|
|
|
</set>
|
|
|
- where vcd_vcid = #{item.id,jdbcType=INTEGER}
|
|
|
+ where vcd_vcid = #{items2.id,jdbcType=INTEGER}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
<delete id="deleteByParentPrimaryKey" parameterType="java.lang.Long" >
|
|
|
delete from verificationdetail
|
|
|
where vd_id = #{vcd_vcid,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
+ <select id="selectByFK" parameterType="long" resultMap="BaseResultMap">
|
|
|
+ select * from verificationdetail
|
|
|
+ where vcd_vcid=#{vc_id} order by vcd_id
|
|
|
+ </select>
|
|
|
</mapper>
|