其他附加扣除增加申报类型

This commit is contained in:
钱涛 2025-07-02 13:42:41 +08:00
parent de713c820d
commit cabaed627b
6 changed files with 90 additions and 0 deletions

View File

@ -17,6 +17,7 @@
<result column="tax_year_month" property="taxYearMonth"/>
<result column="tenant_key" property="tenantKey"/>
<result column="update_time" property="updateTime"/>
<result column="income_category" property="incomeCategory"/>
</resultMap>
<!-- 表字段 -->
@ -38,6 +39,7 @@
, t.tax_year_month
, t.tenant_key
, t.update_time
, t.income_category
</sql>
<!-- 查询全部 -->
@ -108,6 +110,9 @@
<if test="updateTime != null">
AND update_time = #{updateTime}
</if>
<if test="incomeCategory != null">
AND income_category = #{incomeCategory}
</if>
<if test="ids != null and ids.size()>0">
AND id IN
<foreach collection="ids" open="(" item="id" separator="," close=")">
@ -168,6 +173,9 @@
<if test="updateTime != null">
update_time,
</if>
<if test="incomeCategory != null">
income_category,
</if>
</trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
<if test="createTime != null">
@ -215,6 +223,9 @@
<if test="updateTime != null">
#{updateTime},
</if>
<if test="incomeCategory != null">
#{incomeCategory},
</if>
</trim>
</insert>
@ -237,6 +248,7 @@
tax_year_month=#{taxYearMonth},
tenant_key=#{tenantKey},
update_time=#{updateTime},
income_category=#{incomeCategory},
</set>
WHERE id = #{id} AND delete_type = 0
</update>
@ -288,6 +300,9 @@
<if test="updateTime != null">
update_time=#{updateTime},
</if>
<if test="incomeCategory != null">
income_category=#{incomeCategory},
</if>
</set>
WHERE id = #{id} AND delete_type = 0
</update>

View File

@ -20,6 +20,7 @@
<result column="tenant_key" property="tenantKey"/>
<result column="update_time" property="updateTime"/>
<result column="year_premium" property="yearPremium"/>
<result column="income_category" property="incomeCategory"/>
</resultMap>
<!-- 表字段 -->
@ -44,6 +45,7 @@
, t.tenant_key
, t.update_time
, t.year_premium
, t.income_category
</sql>
<!-- 查询全部 -->
@ -123,6 +125,9 @@
<if test="yearPremium != null">
AND year_premium = #{yearPremium}
</if>
<if test="incomeCategory != null">
AND income_category = #{incomeCategory}
</if>
<if test="ids != null and ids.size()>0">
AND id IN
<foreach collection="ids" open="(" item="id" separator="," close=")">
@ -192,6 +197,9 @@
<if test="yearPremium != null">
year_premium,
</if>
<if test="incomeCategory != null">
income_category,
</if>
</trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
<if test="accountNumber != null">
@ -248,6 +256,9 @@
<if test="yearPremium != null">
#{yearPremium},
</if>
<if test="incomeCategory != null">
#{incomeCategory},
</if>
</trim>
</insert>
@ -273,6 +284,7 @@
tenant_key=#{tenantKey},
update_time=#{updateTime},
year_premium=#{yearPremium},
income_category=#{incomeCategory},
</set>
WHERE id = #{id} AND delete_type = 0
</update>
@ -333,6 +345,9 @@
<if test="yearPremium != null">
year_premium=#{yearPremium},
</if>
<if test="incomeCategory != null">
income_category=#{incomeCategory},
</if>
</set>
WHERE id = #{id} AND delete_type = 0
</update>

View File

@ -21,6 +21,7 @@
<result column="tax_year_month" property="taxYearMonth"/>
<result column="tenant_key" property="tenantKey"/>
<result column="update_time" property="updateTime"/>
<result column="income_category" property="incomeCategory"/>
</resultMap>
<!-- 表字段 -->
@ -46,6 +47,7 @@
, t.tax_year_month
, t.tenant_key
, t.update_time
, t.income_category
</sql>
<!-- 查询全部 -->
@ -128,6 +130,9 @@
<if test="updateTime != null">
AND update_time = #{updateTime}
</if>
<if test="incomeCategory != null">
AND income_category = #{incomeCategory}
</if>
<if test="ids != null and ids.size()>0">
AND id IN
<foreach collection="ids" open="(" item="id" separator="," close=")">
@ -200,6 +205,9 @@
<if test="updateTime != null">
update_time,
</if>
<if test="incomeCategory != null">
income_category,
</if>
</trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
<if test="actualDeduction != null">
@ -259,6 +267,9 @@
<if test="updateTime != null">
#{updateTime},
</if>
<if test="incomeCategory != null">
#{incomeCategory},
</if>
</trim>
</insert>
@ -285,6 +296,7 @@
tax_year_month=#{taxYearMonth},
tenant_key=#{tenantKey},
update_time=#{updateTime},
income_category=#{incomeCategory},
</set>
WHERE id = #{id} AND delete_type = 0
</update>
@ -348,6 +360,9 @@
<if test="updateTime != null">
update_time=#{updateTime},
</if>
<if test="incomeCategory != null">
income_category=#{incomeCategory},
</if>
</set>
WHERE id = #{id} AND delete_type = 0
</update>

View File

@ -19,6 +19,7 @@
<result column="tenant_key" property="tenantKey"/>
<result column="update_time" property="updateTime"/>
<result column="year_premium" property="yearPremium"/>
<result column="income_category" property="incomeCategory"/>
</resultMap>
<!-- 表字段 -->
@ -42,6 +43,7 @@
, t.tenant_key
, t.update_time
, t.year_premium
, t.income_category
</sql>
<!-- 查询全部 -->
@ -118,6 +120,9 @@
<if test="yearPremium != null">
AND year_premium = #{yearPremium}
</if>
<if test="incomeCategory != null">
AND income_category = #{incomeCategory}
</if>
<if test="ids != null and ids.size()>0">
AND id IN
<foreach collection="ids" open="(" item="id" separator="," close=")">
@ -184,6 +189,9 @@
<if test="yearPremium != null">
year_premium,
</if>
<if test="incomeCategory != null">
income_category,
</if>
</trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
<if test="createTime != null">
@ -237,6 +245,9 @@
<if test="yearPremium != null">
#{yearPremium},
</if>
<if test="incomeCategory != null">
#{incomeCategory},
</if>
</trim>
</insert>
@ -261,6 +272,7 @@
tenant_key=#{tenantKey},
update_time=#{updateTime},
year_premium=#{yearPremium},
income_category=#{incomeCategory},
</set>
WHERE id = #{id} AND delete_type = 0
</update>
@ -318,6 +330,9 @@
<if test="yearPremium != null">
year_premium=#{yearPremium},
</if>
<if test="incomeCategory != null">
income_category=#{incomeCategory},
</if>
</set>
WHERE id = #{id} AND delete_type = 0
</update>

View File

@ -16,6 +16,7 @@
<result column="tax_year_month" property="taxYearMonth"/>
<result column="tenant_key" property="tenantKey"/>
<result column="update_time" property="updateTime"/>
<result column="income_category" property="incomeCategory"/>
</resultMap>
<!-- 表字段 -->
@ -36,6 +37,7 @@
, t.tax_year_month
, t.tenant_key
, t.update_time
, t.income_category
</sql>
<!-- 查询全部 -->
@ -103,6 +105,9 @@
<if test="updateTime != null">
AND update_time = #{updateTime}
</if>
<if test="incomeCategory != null">
AND income_category = #{incomeCategory}
</if>
<if test="ids != null and ids.size()>0">
AND id IN
<foreach collection="ids" open="(" item="id" separator="," close=")">
@ -160,6 +165,9 @@
<if test="updateTime != null">
update_time,
</if>
<if test="incomeCategory != null">
income_category,
</if>
</trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
<if test="createTime != null">
@ -204,6 +212,9 @@
<if test="updateTime != null">
#{updateTime},
</if>
<if test="incomeCategory != null">
#{incomeCategory},
</if>
</trim>
</insert>
@ -225,6 +236,7 @@
tax_year_month=#{taxYearMonth},
tenant_key=#{tenantKey},
update_time=#{updateTime},
income_category=#{incomeCategory},
</set>
WHERE id = #{id} AND delete_type = 0
</update>
@ -273,6 +285,9 @@
<if test="updateTime != null">
update_time=#{updateTime},
</if>
<if test="income_category != null">
income_category=#{incomeCategory},
</if>
</set>
WHERE id = #{id} AND delete_type = 0
</update>

View File

@ -22,6 +22,7 @@
<result column="voucher_no" property="voucherNo"/>
<result column="voucher_type" property="voucherType"/>
<result column="voucher_type_name" property="voucherTypeName"/>
<result column="income_category" property="incomeCategory"/>
</resultMap>
<!-- 表字段 -->
@ -48,6 +49,7 @@
, t.voucher_no
, t.voucher_type
, t.voucher_type_name
, t.income_category
</sql>
<!-- 查询全部 -->
@ -133,6 +135,9 @@
<if test="voucherTypeName != null">
AND voucher_type_name = #{voucherTypeName}
</if>
<if test="incomeCategory != null">
AND income_category = #{incomeCategory}
</if>
<if test="ids != null and ids.size()>0">
AND id IN
<foreach collection="ids" open="(" item="id" separator="," close=")">
@ -208,6 +213,9 @@
<if test="voucherTypeName != null">
voucher_type_name,
</if>
<if test="incomeCategory != null">
income_category,
</if>
</trim>
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
<if test="collectSource != null">
@ -270,6 +278,9 @@
<if test="voucherTypeName != null">
#{voucherTypeName},
</if>
<if test="incomeCategory != null">
#{incomeCategory},
</if>
</trim>
</insert>
@ -297,6 +308,7 @@
voucher_no=#{voucherNo},
voucher_type=#{voucherType},
voucher_type_name=#{voucherTypeName},
income_category=#{incomeCategory},
</set>
WHERE id = #{id} AND delete_type = 0
</update>
@ -363,6 +375,9 @@
<if test="voucherTypeName != null">
voucher_type_name=#{voucherTypeName},
</if>
<if test="incomeCategory != null">
income_category=#{incomeCategory},
</if>
</set>
WHERE id = #{id} AND delete_type = 0
</update>