|
|
@@ -239,53 +239,53 @@
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
|
|
|
- <select id="checkRdNo" resultType="java.lang.Integer">
|
|
|
- select count(*)
|
|
|
- from rd_details
|
|
|
- where rd_no =#{rdNo}
|
|
|
- </select>
|
|
|
- <sql id="details_List">
|
|
|
- a.id, a.user_name userName, a.rd_no rdNo, a.ip_no ipNo, a.rd_name rdName,a.technical_field technicalField,
|
|
|
- a.technology_source technologySource, a.total_amount totalAmount, a.recent_three_amount recentThreeAmount,
|
|
|
- a.rd_objective rdObjective, a.core_technology coreTechnology, a.achieve_results achieveResults,
|
|
|
- a.consultant_name consultantName, a.status, date_format(a.rd_start, '%Y-%m-%d %H:%i:%s') rdStartS,
|
|
|
- date_format(a.rd_end , '%Y-%m-%d %H:%i:%s') rdEndS,date_format(a.open_time, '%Y-%m-%d %H:%i:%s')openTimeS,
|
|
|
- date_format(a.create_time, '%Y-%m-%d %H:%i:%s') createTimeS
|
|
|
- </sql>
|
|
|
- <select id="details" resultType="com.goafanti.RD.bo.OutRdDetails">
|
|
|
- select
|
|
|
- <include refid="details_List" />
|
|
|
- from rd_details a
|
|
|
- where a.id =#{id}
|
|
|
- </select>
|
|
|
+<!-- <select id="checkRdNo" resultType="java.lang.Integer">-->
|
|
|
+<!-- select count(*)-->
|
|
|
+<!-- from rd_details-->
|
|
|
+<!-- where rd_no =#{rdNo}-->
|
|
|
+<!-- </select>-->
|
|
|
+<!-- <sql id="details_List">-->
|
|
|
+<!-- a.id, a.user_name userName, a.rd_no rdNo, a.ip_no ipNo, a.rd_name rdName,a.technical_field technicalField,-->
|
|
|
+<!-- a.technology_source technologySource, a.total_amount totalAmount, a.recent_three_amount recentThreeAmount,-->
|
|
|
+<!-- a.rd_objective rdObjective, a.core_technology coreTechnology, a.achieve_results achieveResults,-->
|
|
|
+<!-- a.consultant_name consultantName, a.status, date_format(a.rd_start, '%Y-%m-%d %H:%i:%s') rdStartS,-->
|
|
|
+<!-- date_format(a.rd_end , '%Y-%m-%d %H:%i:%s') rdEndS,date_format(a.open_time, '%Y-%m-%d %H:%i:%s')openTimeS,-->
|
|
|
+<!-- date_format(a.create_time, '%Y-%m-%d %H:%i:%s') createTimeS-->
|
|
|
+<!-- </sql>-->
|
|
|
+<!-- <select id="details" resultType="com.goafanti.RD.bo.OutRdDetails">-->
|
|
|
+<!-- select-->
|
|
|
+<!-- <include refid="details_List" />-->
|
|
|
+<!-- from rd_details a-->
|
|
|
+<!-- where a.id =#{id}-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
- <select id="RdDetailsList" resultType="com.goafanti.RD.bo.OutRdDetails">
|
|
|
- select
|
|
|
- <include refid="details_List" />
|
|
|
- from rd_details a
|
|
|
- where 1=1
|
|
|
- <if test="RdStart !=null and RdEnd !=null">
|
|
|
- and a.rd_start >= #{RdStart} and a.rd_end <![CDATA[ <= ]]> #{RdEnd}
|
|
|
- </if>
|
|
|
- <if test="RdName !=null ">
|
|
|
- and a.rd_name =#{RdName}
|
|
|
- </if>
|
|
|
- <if test="page_sql !=null ">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
- <select id="RdDetailsCount" resultType="java.lang.Integer">
|
|
|
- select
|
|
|
- count(*)
|
|
|
- from rd_details a
|
|
|
- where 1=1
|
|
|
- <if test="RdStart !=null and RdEnd !=null">
|
|
|
- and a.rd_start >= #{RdStart} and a.rd_end <![CDATA[ <= ]]> #{RdEnd}
|
|
|
- </if>
|
|
|
- <if test="RdName !=null ">
|
|
|
- and a.rd_name =#{RdName}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
+<!-- <select id="RdDetailsList" resultType="com.goafanti.RD.bo.OutRdDetails">-->
|
|
|
+<!-- select-->
|
|
|
+<!-- <include refid="details_List" />-->
|
|
|
+<!-- from rd_details a-->
|
|
|
+<!-- where 1=1-->
|
|
|
+<!-- <if test="RdStart !=null and RdEnd !=null">-->
|
|
|
+<!-- and a.rd_start >= #{RdStart} and a.rd_end <![CDATA[ <= ]]> #{RdEnd}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="RdName !=null ">-->
|
|
|
+<!-- and a.rd_name =#{RdName}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="page_sql !=null ">-->
|
|
|
+<!-- ${page_sql}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- </select>-->
|
|
|
+<!-- <select id="RdDetailsCount" resultType="java.lang.Integer">-->
|
|
|
+<!-- select-->
|
|
|
+<!-- count(*)-->
|
|
|
+<!-- from rd_details a-->
|
|
|
+<!-- where 1=1-->
|
|
|
+<!-- <if test="RdStart !=null and RdEnd !=null">-->
|
|
|
+<!-- and a.rd_start >= #{RdStart} and a.rd_end <![CDATA[ <= ]]> #{RdEnd}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="RdName !=null ">-->
|
|
|
+<!-- and a.rd_name =#{RdName}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
|
|
|
</mapper>
|