优化收款单

This commit is contained in:
季圣华
2021-06-30 00:53:56 +08:00
parent dc2ba7237c
commit 4e66aeb98b
23 changed files with 693 additions and 37 deletions

View File

@@ -7,6 +7,8 @@
<result column="account_id" jdbcType="BIGINT" property="accountId" />
<result column="in_out_item_id" jdbcType="BIGINT" property="inOutItemId" />
<result column="bill_id" jdbcType="BIGINT" property="billId" />
<result column="need_debt" jdbcType="DECIMAL" property="needDebt" />
<result column="finish_debt" jdbcType="DECIMAL" property="finishDebt" />
<result column="each_amount" jdbcType="DECIMAL" property="eachAmount" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
@@ -71,8 +73,8 @@
</where>
</sql>
<sql id="Base_Column_List">
id, header_id, account_id, in_out_item_id, bill_id, each_amount, remark, tenant_id,
delete_flag
id, header_id, account_id, in_out_item_id, bill_id, need_debt, finish_debt, each_amount,
remark, tenant_id, delete_flag
</sql>
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.AccountItemExample" resultMap="BaseResultMap">
select
@@ -106,13 +108,13 @@
</delete>
<insert id="insert" parameterType="com.jsh.erp.datasource.entities.AccountItem">
insert into jsh_account_item (id, header_id, account_id,
in_out_item_id, bill_id, each_amount,
remark, tenant_id, delete_flag
)
in_out_item_id, bill_id, need_debt,
finish_debt, each_amount, remark,
tenant_id, delete_flag)
values (#{id,jdbcType=BIGINT}, #{headerId,jdbcType=BIGINT}, #{accountId,jdbcType=BIGINT},
#{inOutItemId,jdbcType=BIGINT}, #{billId,jdbcType=BIGINT}, #{eachAmount,jdbcType=DECIMAL},
#{remark,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
)
#{inOutItemId,jdbcType=BIGINT}, #{billId,jdbcType=BIGINT}, #{needDebt,jdbcType=DECIMAL},
#{finishDebt,jdbcType=DECIMAL}, #{eachAmount,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR},
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.AccountItem">
insert into jsh_account_item
@@ -132,6 +134,12 @@
<if test="billId != null">
bill_id,
</if>
<if test="needDebt != null">
need_debt,
</if>
<if test="finishDebt != null">
finish_debt,
</if>
<if test="eachAmount != null">
each_amount,
</if>
@@ -161,6 +169,12 @@
<if test="billId != null">
#{billId,jdbcType=BIGINT},
</if>
<if test="needDebt != null">
#{needDebt,jdbcType=DECIMAL},
</if>
<if test="finishDebt != null">
#{finishDebt,jdbcType=DECIMAL},
</if>
<if test="eachAmount != null">
#{eachAmount,jdbcType=DECIMAL},
</if>
@@ -199,6 +213,12 @@
<if test="record.billId != null">
bill_id = #{record.billId,jdbcType=BIGINT},
</if>
<if test="record.needDebt != null">
need_debt = #{record.needDebt,jdbcType=DECIMAL},
</if>
<if test="record.finishDebt != null">
finish_debt = #{record.finishDebt,jdbcType=DECIMAL},
</if>
<if test="record.eachAmount != null">
each_amount = #{record.eachAmount,jdbcType=DECIMAL},
</if>
@@ -223,6 +243,8 @@
account_id = #{record.accountId,jdbcType=BIGINT},
in_out_item_id = #{record.inOutItemId,jdbcType=BIGINT},
bill_id = #{record.billId,jdbcType=BIGINT},
need_debt = #{record.needDebt,jdbcType=DECIMAL},
finish_debt = #{record.finishDebt,jdbcType=DECIMAL},
each_amount = #{record.eachAmount,jdbcType=DECIMAL},
remark = #{record.remark,jdbcType=VARCHAR},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
@@ -246,6 +268,12 @@
<if test="billId != null">
bill_id = #{billId,jdbcType=BIGINT},
</if>
<if test="needDebt != null">
need_debt = #{needDebt,jdbcType=DECIMAL},
</if>
<if test="finishDebt != null">
finish_debt = #{finishDebt,jdbcType=DECIMAL},
</if>
<if test="eachAmount != null">
each_amount = #{eachAmount,jdbcType=DECIMAL},
</if>
@@ -267,6 +295,8 @@
account_id = #{accountId,jdbcType=BIGINT},
in_out_item_id = #{inOutItemId,jdbcType=BIGINT},
bill_id = #{billId,jdbcType=BIGINT},
need_debt = #{needDebt,jdbcType=DECIMAL},
finish_debt = #{finishDebt,jdbcType=DECIMAL},
each_amount = #{eachAmount,jdbcType=DECIMAL},
remark = #{remark,jdbcType=VARCHAR},
tenant_id = #{tenantId,jdbcType=BIGINT},