|
@@ -5,7 +5,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
<result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
@@ -14,14 +14,9 @@
|
|
|
<result column="research_amount" jdbcType="VARCHAR" property="researchAmount" />
|
|
<result column="research_amount" jdbcType="VARCHAR" property="researchAmount" />
|
|
|
<result column="assets" jdbcType="VARCHAR" property="assets" />
|
|
<result column="assets" jdbcType="VARCHAR" property="assets" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
|
|
+ <result column="fixed_assets" jdbcType="VARCHAR" property="fixedAssets" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
-
|
|
|
|
|
<resultMap id="YearProjectMap" type="com.goafanti.common.model.OrganizationYearProject">
|
|
<resultMap id="YearProjectMap" type="com.goafanti.common.model.OrganizationYearProject">
|
|
|
- <!--
|
|
|
|
|
- WARNING - @mbg.generated
|
|
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
- This element was generated on Fri Jul 20 16:32:47 CST 2018.
|
|
|
|
|
- -->
|
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
<result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
|
<result column="year" jdbcType="INTEGER" property="year" />
|
|
<result column="year" jdbcType="INTEGER" property="year" />
|
|
@@ -34,7 +29,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -68,7 +63,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -102,9 +97,9 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
- id, uid, year, sales_amount, research_amount, assets, aid
|
|
|
|
|
|
|
+ id, uid, year, sales_amount, research_amount, assets, aid, fixed_assets
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Year_Project_List">
|
|
<sql id="Year_Project_List">
|
|
|
<!--
|
|
<!--
|
|
@@ -118,7 +113,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -137,7 +132,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -148,7 +143,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
delete from organization_annual_report
|
|
delete from organization_annual_report
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
@@ -157,7 +152,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
delete from organization_annual_report
|
|
delete from organization_annual_report
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -168,20 +163,20 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
insert into organization_annual_report (id, uid, year,
|
|
insert into organization_annual_report (id, uid, year,
|
|
|
sales_amount, research_amount, assets,
|
|
sales_amount, research_amount, assets,
|
|
|
- aid)
|
|
|
|
|
|
|
+ aid, fixed_assets)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{year,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{year,jdbcType=INTEGER},
|
|
|
#{salesAmount,jdbcType=VARCHAR}, #{researchAmount,jdbcType=VARCHAR}, #{assets,jdbcType=VARCHAR},
|
|
#{salesAmount,jdbcType=VARCHAR}, #{researchAmount,jdbcType=VARCHAR}, #{assets,jdbcType=VARCHAR},
|
|
|
- #{aid,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{aid,jdbcType=VARCHAR}, #{fixedAssets,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationAnnualReport">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationAnnualReport">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
insert into organization_annual_report
|
|
insert into organization_annual_report
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -206,6 +201,9 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
aid,
|
|
aid,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="fixedAssets != null">
|
|
|
|
|
+ fixed_assets,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -229,13 +227,16 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
#{aid,jdbcType=VARCHAR},
|
|
#{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="fixedAssets != null">
|
|
|
|
|
+ #{fixedAssets,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.OrganizationAnnualReportExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.OrganizationAnnualReportExample" resultType="java.lang.Long">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
select count(*) from organization_annual_report
|
|
select count(*) from organization_annual_report
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -246,7 +247,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
update organization_annual_report
|
|
update organization_annual_report
|
|
|
<set>
|
|
<set>
|
|
@@ -271,6 +272,9 @@
|
|
|
<if test="record.aid != null">
|
|
<if test="record.aid != null">
|
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.fixedAssets != null">
|
|
|
|
|
+ fixed_assets = #{record.fixedAssets,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -280,7 +284,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
update organization_annual_report
|
|
update organization_annual_report
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
@@ -289,7 +293,8 @@
|
|
|
sales_amount = #{record.salesAmount,jdbcType=VARCHAR},
|
|
sales_amount = #{record.salesAmount,jdbcType=VARCHAR},
|
|
|
research_amount = #{record.researchAmount,jdbcType=VARCHAR},
|
|
research_amount = #{record.researchAmount,jdbcType=VARCHAR},
|
|
|
assets = #{record.assets,jdbcType=VARCHAR},
|
|
assets = #{record.assets,jdbcType=VARCHAR},
|
|
|
- aid = #{record.aid,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ aid = #{record.aid,jdbcType=VARCHAR},
|
|
|
|
|
+ fixed_assets = #{record.fixedAssets,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
@@ -298,7 +303,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
update organization_annual_report
|
|
update organization_annual_report
|
|
|
<set>
|
|
<set>
|
|
@@ -320,6 +325,9 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="fixedAssets != null">
|
|
|
|
|
+ fixed_assets = #{fixedAssets,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -327,7 +335,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jul 20 16:32:29 CST 2018.
|
|
|
|
|
|
|
+ This element was generated on Fri Jul 27 15:10:52 CST 2018.
|
|
|
-->
|
|
-->
|
|
|
update organization_annual_report
|
|
update organization_annual_report
|
|
|
set uid = #{uid,jdbcType=VARCHAR},
|
|
set uid = #{uid,jdbcType=VARCHAR},
|
|
@@ -335,13 +343,14 @@
|
|
|
sales_amount = #{salesAmount,jdbcType=VARCHAR},
|
|
sales_amount = #{salesAmount,jdbcType=VARCHAR},
|
|
|
research_amount = #{researchAmount,jdbcType=VARCHAR},
|
|
research_amount = #{researchAmount,jdbcType=VARCHAR},
|
|
|
assets = #{assets,jdbcType=VARCHAR},
|
|
assets = #{assets,jdbcType=VARCHAR},
|
|
|
- aid = #{aid,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ aid = #{aid,jdbcType=VARCHAR},
|
|
|
|
|
+ fixed_assets = #{fixedAssets,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
- <select id="checkYear" resultType="integer">
|
|
|
|
|
|
|
+ <select id="checkYear" resultType="integer">
|
|
|
select count(*) from organization_annual_report where uid = #{uid,jdbcType=VARCHAR} and year = #{year,jdbcType=INTEGER}
|
|
select count(*) from organization_annual_report where uid = #{uid,jdbcType=VARCHAR} and year = #{year,jdbcType=INTEGER}
|
|
|
</select>
|
|
</select>
|
|
|
- <select id="checkAnnual" resultType="integer">
|
|
|
|
|
|
|
+ <select id="checkAnnual" resultType="integer">
|
|
|
select count(*) from organization_annual_report where id!= #{id,jdbcType=VARCHAR} and uid = #{uid,jdbcType=VARCHAR} and year = #{year,jdbcType=INTEGER}
|
|
select count(*) from organization_annual_report where id!= #{id,jdbcType=VARCHAR} and uid = #{uid,jdbcType=VARCHAR} and year = #{year,jdbcType=INTEGER}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectOrgAnnualList" resultMap="BaseResultMap">
|
|
<select id="selectOrgAnnualList" resultMap="BaseResultMap">
|