|
@@ -2,7 +2,7 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.usoftchina.saas.money.mapper.BanksubledgerMapper">
|
|
<mapper namespace="com.usoftchina.saas.money.mapper.BanksubledgerMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Banksubledger">
|
|
<resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
- <id column="bl_id" jdbcType="INTEGER" property="bl_id" />
|
|
|
|
|
|
|
+ <id column="bl_id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="bl_ym" jdbcType="INTEGER" property="bl_ym" />
|
|
<result column="bl_ym" jdbcType="INTEGER" property="bl_ym" />
|
|
|
<result column="bl_bankid" jdbcType="INTEGER" property="bl_bankid" />
|
|
<result column="bl_bankid" jdbcType="INTEGER" property="bl_bankid" />
|
|
|
<result column="bl_bankcode" jdbcType="VARCHAR" property="bl_bankcode" />
|
|
<result column="bl_bankcode" jdbcType="VARCHAR" property="bl_bankcode" />
|
|
@@ -17,9 +17,12 @@
|
|
|
<result column="bl_spending" jdbcType="DOUBLE" property="bl_spending" />
|
|
<result column="bl_spending" jdbcType="DOUBLE" property="bl_spending" />
|
|
|
<result column="bl_manname" jdbcType="VARCHAR" property="bl_manname" />
|
|
<result column="bl_manname" jdbcType="VARCHAR" property="bl_manname" />
|
|
|
<result column="bl_remark" jdbcType="VARCHAR" property="bl_remark" />
|
|
<result column="bl_remark" jdbcType="VARCHAR" property="bl_remark" />
|
|
|
- <result column="companyid" jdbcType="INTEGER" property="companyid" />
|
|
|
|
|
|
|
+ <result column="companyId" jdbcType="INTEGER" property="companyId" />
|
|
|
<result column="updaterId" jdbcType="INTEGER" property="updaterId" />
|
|
<result column="updaterId" jdbcType="INTEGER" property="updaterId" />
|
|
|
<result column="updatedate" jdbcType="TIMESTAMP" property="updatedate" />
|
|
<result column="updatedate" jdbcType="TIMESTAMP" property="updatedate" />
|
|
|
|
|
+ <result column="bl_orderamount" property="bl_orderamount" jdbcType="DOUBLE" />
|
|
|
|
|
+ <result column="bl_assid" property="bl_assid" jdbcType="INTEGER" />
|
|
|
|
|
+ <result column="bl_item" property="bl_item" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
<where>
|
|
@@ -81,8 +84,8 @@
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
bl_id, bl_ym, bl_bankid, bl_bankcode, bl_bankname, bl_code, bl_kind, bl_date, bl_asstype,
|
|
bl_id, bl_ym, bl_bankid, bl_bankcode, bl_bankname, bl_code, bl_kind, bl_date, bl_asstype,
|
|
|
- bl_asscode, bl_assname, bl_income, bl_spending, bl_manname, bl_remark, companyid,
|
|
|
|
|
- updaterId, updatedate
|
|
|
|
|
|
|
+ bl_asscode, bl_assname, bl_income, bl_spending, bl_manname, bl_remark, companyId,
|
|
|
|
|
+ updaterId, updatedate, bl_orderamount, bl_assid, bl_item
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -106,7 +109,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from banksubledger
|
|
delete from banksubledger
|
|
|
- where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ where bl_id = #{code,jdbcType=VARCHAR} and bl_kind = #{kind, jdbcType=VARCHAR}
|
|
|
</delete>
|
|
</delete>
|
|
|
<delete id="deleteByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample">
|
|
<delete id="deleteByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample">
|
|
|
delete from banksubledger
|
|
delete from banksubledger
|
|
@@ -120,22 +123,19 @@
|
|
|
bl_kind, bl_date, bl_asstype,
|
|
bl_kind, bl_date, bl_asstype,
|
|
|
bl_asscode, bl_assname, bl_income,
|
|
bl_asscode, bl_assname, bl_income,
|
|
|
bl_spending, bl_manname, bl_remark,
|
|
bl_spending, bl_manname, bl_remark,
|
|
|
- companyid, updaterId, updatedate
|
|
|
|
|
|
|
+ companyId, updaterId, updatedate
|
|
|
)
|
|
)
|
|
|
values (#{bl_id,jdbcType=INTEGER}, #{bl_ym,jdbcType=INTEGER}, #{bl_bankid,jdbcType=INTEGER},
|
|
values (#{bl_id,jdbcType=INTEGER}, #{bl_ym,jdbcType=INTEGER}, #{bl_bankid,jdbcType=INTEGER},
|
|
|
#{bl_bankcode,jdbcType=VARCHAR}, #{bl_bankname,jdbcType=VARCHAR}, #{bl_code,jdbcType=VARCHAR},
|
|
#{bl_bankcode,jdbcType=VARCHAR}, #{bl_bankname,jdbcType=VARCHAR}, #{bl_code,jdbcType=VARCHAR},
|
|
|
#{bl_kind,jdbcType=VARCHAR}, #{bl_date,jdbcType=TIMESTAMP}, #{bl_asstype,jdbcType=VARCHAR},
|
|
#{bl_kind,jdbcType=VARCHAR}, #{bl_date,jdbcType=TIMESTAMP}, #{bl_asstype,jdbcType=VARCHAR},
|
|
|
#{bl_asscode,jdbcType=VARCHAR}, #{bl_assname,jdbcType=VARCHAR}, #{bl_income,jdbcType=DOUBLE},
|
|
#{bl_asscode,jdbcType=VARCHAR}, #{bl_assname,jdbcType=VARCHAR}, #{bl_income,jdbcType=DOUBLE},
|
|
|
#{bl_spending,jdbcType=DOUBLE}, #{bl_manname,jdbcType=VARCHAR}, #{bl_remark,jdbcType=VARCHAR},
|
|
#{bl_spending,jdbcType=DOUBLE}, #{bl_manname,jdbcType=VARCHAR}, #{bl_remark,jdbcType=VARCHAR},
|
|
|
- #{companyid,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
|
|
|
insert into banksubledger
|
|
insert into banksubledger
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="bl_id != null">
|
|
|
|
|
- bl_id,
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="bl_ym != null">
|
|
<if test="bl_ym != null">
|
|
|
bl_ym,
|
|
bl_ym,
|
|
|
</if>
|
|
</if>
|
|
@@ -178,20 +178,26 @@
|
|
|
<if test="bl_remark != null">
|
|
<if test="bl_remark != null">
|
|
|
bl_remark,
|
|
bl_remark,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyid != null">
|
|
|
|
|
- companyid,
|
|
|
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
|
+ companyId,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="updaterId != null">
|
|
<if test="updaterId != null">
|
|
|
updaterId,
|
|
updaterId,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updatedate != null">
|
|
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
updatedate,
|
|
updatedate,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="bl_orderamount != null" >
|
|
|
|
|
+ bl_orderamount,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="bl_assid != null" >
|
|
|
|
|
+ bl_assid,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="bl_item != null" >
|
|
|
|
|
+ bl_item,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="bl_id != null">
|
|
|
|
|
- #{bl_id,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="bl_ym != null">
|
|
<if test="bl_ym != null">
|
|
|
#{bl_ym,jdbcType=INTEGER},
|
|
#{bl_ym,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
@@ -234,14 +240,23 @@
|
|
|
<if test="bl_remark != null">
|
|
<if test="bl_remark != null">
|
|
|
#{bl_remark,jdbcType=VARCHAR},
|
|
#{bl_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyid != null">
|
|
|
|
|
- #{companyid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
|
+ #{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="updaterId != null">
|
|
<if test="updaterId != null">
|
|
|
#{updaterId,jdbcType=INTEGER},
|
|
#{updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updatedate != null">
|
|
|
|
|
- #{updatedate,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="bl_orderamount != null" >
|
|
|
|
|
+ #{bl_orderamount,jdbcType=DOUBLE},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="bl_assid != null" >
|
|
|
|
|
+ #{bl_assid,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="bl_item != null" >
|
|
|
|
|
+ #{bl_item,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -299,8 +314,8 @@
|
|
|
<if test="record.bl_remark != null">
|
|
<if test="record.bl_remark != null">
|
|
|
bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
|
|
bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.companyid != null">
|
|
|
|
|
- companyid = #{record.companyid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="record.companyId != null">
|
|
|
|
|
+ companyId = #{record.companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="record.updaterId != null">
|
|
<if test="record.updaterId != null">
|
|
|
updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
@@ -330,7 +345,7 @@
|
|
|
bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
|
|
bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
|
|
|
bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
|
|
bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
|
|
|
bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
|
|
bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
|
|
|
- companyid = #{record.companyid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ companyId = #{record.companyId,jdbcType=INTEGER},
|
|
|
updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
updaterId = #{record.updaterId,jdbcType=INTEGER},
|
|
|
updatedate = #{record.updatedate,jdbcType=TIMESTAMP}
|
|
updatedate = #{record.updatedate,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -382,8 +397,8 @@
|
|
|
<if test="bl_remark != null">
|
|
<if test="bl_remark != null">
|
|
|
bl_remark = #{bl_remark,jdbcType=VARCHAR},
|
|
bl_remark = #{bl_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyid != null">
|
|
|
|
|
- companyid = #{companyid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
|
+ companyId = #{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="updaterId != null">
|
|
<if test="updaterId != null">
|
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
@@ -410,7 +425,7 @@
|
|
|
bl_spending = #{bl_spending,jdbcType=DOUBLE},
|
|
bl_spending = #{bl_spending,jdbcType=DOUBLE},
|
|
|
bl_manname = #{bl_manname,jdbcType=VARCHAR},
|
|
bl_manname = #{bl_manname,jdbcType=VARCHAR},
|
|
|
bl_remark = #{bl_remark,jdbcType=VARCHAR},
|
|
bl_remark = #{bl_remark,jdbcType=VARCHAR},
|
|
|
- companyid = #{companyid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ companyId = #{companyId,jdbcType=INTEGER},
|
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
updatedate = #{updatedate,jdbcType=TIMESTAMP}
|
|
updatedate = #{updatedate,jdbcType=TIMESTAMP}
|
|
|
where bl_id = #{bl_id,jdbcType=INTEGER}
|
|
where bl_id = #{bl_id,jdbcType=INTEGER}
|