|
|
@@ -12,12 +12,14 @@
|
|
|
<result column="tax_exempt_income" property="taxExemptIncome" jdbcType="INTEGER" />
|
|
|
<result column="subsidy_income" property="subsidyIncome" jdbcType="INTEGER" />
|
|
|
<result column="year" property="year" jdbcType="INTEGER" />
|
|
|
+ <result column="gross_profit" property="grossProfit" jdbcType="INTEGER" />
|
|
|
+ <result column="research_cost" property="researchCost" jdbcType="INTEGER" />
|
|
|
<result column="tax_return_url" property="taxReturnUrl" jdbcType="VARCHAR" />
|
|
|
<result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, uid, operating_income, management_cost, operating_profit, non_operating_income,
|
|
|
- non_taxable_income, tax_exempt_income, subsidy_income, year, tax_return_url, deleted_sign
|
|
|
+ non_taxable_income, tax_exempt_income, subsidy_income, year, gross_profit, research_cost, tax_return_url, deleted_sign
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -32,12 +34,13 @@
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.OrgRatepay" >
|
|
|
insert into org_ratepay (id, uid, operating_income,
|
|
|
management_cost, operating_profit, non_operating_income,
|
|
|
- non_taxable_income, tax_exempt_income, subsidy_income, year,
|
|
|
+ non_taxable_income, tax_exempt_income, subsidy_income, year, gross_profit, research_cost,
|
|
|
tax_return_url, deleted_sign)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{operatingIncome,jdbcType=INTEGER},
|
|
|
#{managementCost,jdbcType=INTEGER}, #{operatingProfit,jdbcType=INTEGER}, #{nonOperatingIncome,jdbcType=INTEGER},
|
|
|
#{nonTaxableIncome,jdbcType=INTEGER}, #{taxExemptIncome,jdbcType=INTEGER}, #{subsidyIncome,jdbcType=INTEGER},
|
|
|
- #{year,jdbcType=INTEGER}, #{taxReturnUrl,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER})
|
|
|
+ #{year,jdbcType=INTEGER}, #{grossProfit,jdbcType=INTEGER}, #{researchCost,jdbcType=INTEGER},
|
|
|
+ #{taxReturnUrl,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrgRatepay" >
|
|
|
insert into org_ratepay
|
|
|
@@ -72,6 +75,12 @@
|
|
|
<if test="year != null" >
|
|
|
year,
|
|
|
</if>
|
|
|
+ <if test="grossProfit != null" >
|
|
|
+ gross_profit,
|
|
|
+ </if>
|
|
|
+ <if test="researchCost != null" >
|
|
|
+ research_cost,
|
|
|
+ </if>
|
|
|
<if test="taxReturnUrl != null" >
|
|
|
tax_return_url,
|
|
|
</if>
|
|
|
@@ -110,6 +119,12 @@
|
|
|
<if test="year != null" >
|
|
|
#{year,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="grossProfit != null" >
|
|
|
+ #{grossProfit,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="researchCost != null" >
|
|
|
+ #{researchCost,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="taxReturnUrl != null" >
|
|
|
#{taxReturnUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -148,6 +163,12 @@
|
|
|
<if test="year != null" >
|
|
|
year = #{year,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="grossProfit != null" >
|
|
|
+ gross_profit = #{grossProfit,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="researchCost != null" >
|
|
|
+ research_cost = #{researchCost,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="taxReturnUrl != null" >
|
|
|
tax_return_url = #{taxReturnUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -168,6 +189,8 @@
|
|
|
tax_exempt_income = #{taxExemptIncome,jdbcType=INTEGER},
|
|
|
subsidy_income = #{subsidyIncome,jdbcType=INTEGER},
|
|
|
year = #{year,jdbcType=INTEGER},
|
|
|
+ gross_profit = #{grossProfit,jdbcType=INTEGER},
|
|
|
+ research_cost = #{researchCost,jdbcType=INTEGER},
|
|
|
tax_return_url = #{taxReturnUrl,jdbcType=VARCHAR},
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|