|
|
@@ -4,17 +4,17 @@
|
|
|
<resultMap id="BaseResultMap" type="com.goafanti.common.model.OrgFinance" >
|
|
|
<id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
<result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
|
- <result column="main_business_income" property="mainBusinessIncome" jdbcType="INTEGER" />
|
|
|
- <result column="management_cost" property="managementCost" jdbcType="INTEGER" />
|
|
|
- <result column="operating_profit" property="operatingProfit" jdbcType="INTEGER" />
|
|
|
- <result column="various_tax" property="variousTax" jdbcType="INTEGER" />
|
|
|
- <result column="current_asset" property="currentAsset" jdbcType="INTEGER" />
|
|
|
- <result column="net_fixed_asset" property="netFixedAsset" jdbcType="INTEGER" />
|
|
|
- <result column="total_asset" property="totalAsset" jdbcType="INTEGER" />
|
|
|
- <result column="net_asset" property="netAsset" jdbcType="INTEGER" />
|
|
|
- <result column="gross_profit" property="grossProfit" jdbcType="INTEGER" />
|
|
|
- <result column="net_profit" property="netProfit" jdbcType="INTEGER" />
|
|
|
- <result column="sales_revenue" property="salesRevenue" jdbcType="INTEGER" />
|
|
|
+ <result column="main_business_income" property="mainBusinessIncome" jdbcType="DECIMAL" />
|
|
|
+ <result column="management_cost" property="managementCost" jdbcType="DECIMAL" />
|
|
|
+ <result column="operating_profit" property="operatingProfit" jdbcType="DECIMAL" />
|
|
|
+ <result column="various_tax" property="variousTax" jdbcType="DECIMAL" />
|
|
|
+ <result column="current_asset" property="currentAsset" jdbcType="DECIMAL" />
|
|
|
+ <result column="net_fixed_asset" property="netFixedAsset" jdbcType="DECIMAL" />
|
|
|
+ <result column="total_asset" property="totalAsset" jdbcType="DECIMAL" />
|
|
|
+ <result column="net_asset" property="netAsset" jdbcType="DECIMAL" />
|
|
|
+ <result column="gross_profit" property="grossProfit" jdbcType="DECIMAL" />
|
|
|
+ <result column="net_profit" property="netProfit" jdbcType="DECIMAL" />
|
|
|
+ <result column="sales_revenue" property="salesRevenue" jdbcType="DECIMAL" />
|
|
|
<result column="year" property="year" jdbcType="INTEGER" />
|
|
|
<result column="finance_url" property="financeUrl" jdbcType="VARCHAR" />
|
|
|
<result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
|
|
|
@@ -40,11 +40,11 @@
|
|
|
current_asset, net_fixed_asset, total_asset,
|
|
|
net_asset, gross_profit, net_profit,
|
|
|
sales_revenue, year, finance_url, deleted_sign)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{mainBusinessIncome,jdbcType=INTEGER},
|
|
|
- #{managementCost,jdbcType=INTEGER}, #{operatingProfit,jdbcType=INTEGER}, #{variousTax,jdbcType=INTEGER},
|
|
|
- #{currentAsset,jdbcType=INTEGER}, #{netFixedAsset,jdbcType=INTEGER}, #{totalAsset,jdbcType=INTEGER},
|
|
|
- #{netAsset,jdbcType=INTEGER}, #{grossProfit,jdbcType=INTEGER}, #{netProfit,jdbcType=INTEGER},
|
|
|
- #{salesRevenue,jdbcType=INTEGER}, #{year,jdbcType=INTEGER}, #{financeUrl,jdbcType=VARCHAR},
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{mainBusinessIncome,jdbcType=DECIMAL},
|
|
|
+ #{managementCost,jdbcType=DECIMAL}, #{operatingProfit,jdbcType=DECIMAL}, #{variousTax,jdbcType=DECIMAL},
|
|
|
+ #{currentAsset,jdbcType=DECIMAL}, #{netFixedAsset,jdbcType=DECIMAL}, #{totalAsset,jdbcType=DECIMAL},
|
|
|
+ #{netAsset,jdbcType=DECIMAL}, #{grossProfit,jdbcType=DECIMAL}, #{netProfit,jdbcType=DECIMAL},
|
|
|
+ #{salesRevenue,jdbcType=DECIMAL}, #{year,jdbcType=INTEGER}, #{financeUrl,jdbcType=VARCHAR},
|
|
|
#{deletedSign,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrgFinance" >
|
|
|
@@ -107,37 +107,37 @@
|
|
|
#{uid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="mainBusinessIncome != null" >
|
|
|
- #{mainBusinessIncome,jdbcType=INTEGER},
|
|
|
+ #{mainBusinessIncome,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="managementCost != null" >
|
|
|
- #{managementCost,jdbcType=INTEGER},
|
|
|
+ #{managementCost,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="operatingProfit != null" >
|
|
|
- #{operatingProfit,jdbcType=INTEGER},
|
|
|
+ #{operatingProfit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="variousTax != null" >
|
|
|
- #{variousTax,jdbcType=INTEGER},
|
|
|
+ #{variousTax,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="currentAsset != null" >
|
|
|
- #{currentAsset,jdbcType=INTEGER},
|
|
|
+ #{currentAsset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="netFixedAsset != null" >
|
|
|
- #{netFixedAsset,jdbcType=INTEGER},
|
|
|
+ #{netFixedAsset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="totalAsset != null" >
|
|
|
- #{totalAsset,jdbcType=INTEGER},
|
|
|
+ #{totalAsset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="netAsset != null" >
|
|
|
- #{netAsset,jdbcType=INTEGER},
|
|
|
+ #{netAsset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="grossProfit != null" >
|
|
|
- #{grossProfit,jdbcType=INTEGER},
|
|
|
+ #{grossProfit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="netProfit != null" >
|
|
|
- #{netProfit,jdbcType=INTEGER},
|
|
|
+ #{netProfit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="salesRevenue != null" >
|
|
|
- #{salesRevenue,jdbcType=INTEGER},
|
|
|
+ #{salesRevenue,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="year != null" >
|
|
|
#{year,jdbcType=INTEGER},
|
|
|
@@ -157,37 +157,37 @@
|
|
|
uid = #{uid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="mainBusinessIncome != null" >
|
|
|
- main_business_income = #{mainBusinessIncome,jdbcType=INTEGER},
|
|
|
+ main_business_income = #{mainBusinessIncome,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="managementCost != null" >
|
|
|
- management_cost = #{managementCost,jdbcType=INTEGER},
|
|
|
+ management_cost = #{managementCost,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="operatingProfit != null" >
|
|
|
- operating_profit = #{operatingProfit,jdbcType=INTEGER},
|
|
|
+ operating_profit = #{operatingProfit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="variousTax != null" >
|
|
|
- various_tax = #{variousTax,jdbcType=INTEGER},
|
|
|
+ various_tax = #{variousTax,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="currentAsset != null" >
|
|
|
- current_asset = #{currentAsset,jdbcType=INTEGER},
|
|
|
+ current_asset = #{currentAsset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="netFixedAsset != null" >
|
|
|
- net_fixed_asset = #{netFixedAsset,jdbcType=INTEGER},
|
|
|
+ net_fixed_asset = #{netFixedAsset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="totalAsset != null" >
|
|
|
- total_asset = #{totalAsset,jdbcType=INTEGER},
|
|
|
+ total_asset = #{totalAsset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="netAsset != null" >
|
|
|
- net_asset = #{netAsset,jdbcType=INTEGER},
|
|
|
+ net_asset = #{netAsset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="grossProfit != null" >
|
|
|
- gross_profit = #{grossProfit,jdbcType=INTEGER},
|
|
|
+ gross_profit = #{grossProfit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="netProfit != null" >
|
|
|
- net_profit = #{netProfit,jdbcType=INTEGER},
|
|
|
+ net_profit = #{netProfit,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="salesRevenue != null" >
|
|
|
- sales_revenue = #{salesRevenue,jdbcType=INTEGER},
|
|
|
+ sales_revenue = #{salesRevenue,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="year != null" >
|
|
|
year = #{year,jdbcType=INTEGER},
|
|
|
@@ -205,16 +205,16 @@
|
|
|
update org_finance
|
|
|
set uid = #{uid,jdbcType=VARCHAR},
|
|
|
main_business_income = #{mainBusinessIncome,jdbcType=INTEGER},
|
|
|
- management_cost = #{managementCost,jdbcType=INTEGER},
|
|
|
- operating_profit = #{operatingProfit,jdbcType=INTEGER},
|
|
|
- various_tax = #{variousTax,jdbcType=INTEGER},
|
|
|
- current_asset = #{currentAsset,jdbcType=INTEGER},
|
|
|
- net_fixed_asset = #{netFixedAsset,jdbcType=INTEGER},
|
|
|
- total_asset = #{totalAsset,jdbcType=INTEGER},
|
|
|
- net_asset = #{netAsset,jdbcType=INTEGER},
|
|
|
- gross_profit = #{grossProfit,jdbcType=INTEGER},
|
|
|
- net_profit = #{netProfit,jdbcType=INTEGER},
|
|
|
- sales_revenue = #{salesRevenue,jdbcType=INTEGER},
|
|
|
+ management_cost = #{managementCost,jdbcType=DECIMAL},
|
|
|
+ operating_profit = #{operatingProfit,jdbcType=DECIMAL},
|
|
|
+ various_tax = #{variousTax,jdbcType=DECIMAL},
|
|
|
+ current_asset = #{currentAsset,jdbcType=DECIMAL},
|
|
|
+ net_fixed_asset = #{netFixedAsset,jdbcType=DECIMAL},
|
|
|
+ total_asset = #{totalAsset,jdbcType=DECIMAL},
|
|
|
+ net_asset = #{netAsset,jdbcType=DECIMAL},
|
|
|
+ gross_profit = #{grossProfit,jdbcType=DECIMAL},
|
|
|
+ net_profit = #{netProfit,jdbcType=DECIMAL},
|
|
|
+ sales_revenue = #{salesRevenue,jdbcType=DECIMAL},
|
|
|
year = #{year,jdbcType=INTEGER},
|
|
|
finance_url = #{financeUrl,jdbcType=VARCHAR},
|
|
|
deleted_sign = #{deletedSign,jdbcType=INTEGER}
|