|
@@ -462,15 +462,42 @@
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
<select id="countTechProjectDone" parameterType="java.lang.String" resultType="java.lang.Integer">
|
|
<select id="countTechProjectDone" parameterType="java.lang.String" resultType="java.lang.Integer">
|
|
|
- select count(1) from tech_project
|
|
|
|
|
|
|
+ select
|
|
|
|
|
+ count(1)
|
|
|
|
|
+ from tech_project
|
|
|
where uid = #{uid,jdbcType=VARCHAR}
|
|
where uid = #{uid,jdbcType=VARCHAR}
|
|
|
- and deleted_sign = 0 and state in (6,8)
|
|
|
|
|
|
|
+ and
|
|
|
|
|
+ deleted_sign = 0
|
|
|
|
|
+ and state in (6,8)
|
|
|
|
|
+ and approved_date >=
|
|
|
|
|
+ (
|
|
|
|
|
+ select
|
|
|
|
|
+ str_to_date(CONCAT(#{year,jdbcType=INTEGER}-3,'-01-01'), '%Y-%m-%d %H')
|
|
|
|
|
+ )
|
|
|
|
|
+ and approved_date <![CDATA[ < ]]>
|
|
|
|
|
+ (
|
|
|
|
|
+ select
|
|
|
|
|
+ str_to_date(CONCAT(#{year,jdbcType=INTEGER},'-01-01'), '%Y-%m-%d %H')
|
|
|
|
|
+ )
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="countTechProjectUndone" parameterType="java.lang.String" resultType="java.lang.Integer">
|
|
<select id="countTechProjectUndone" parameterType="java.lang.String" resultType="java.lang.Integer">
|
|
|
- select count(1) from tech_project
|
|
|
|
|
|
|
+ select
|
|
|
|
|
+ count(1)
|
|
|
|
|
+ from tech_project
|
|
|
where uid = #{uid,jdbcType=VARCHAR}
|
|
where uid = #{uid,jdbcType=VARCHAR}
|
|
|
- and deleted_sign = 0 and state in (1,2,3,4,5,7)
|
|
|
|
|
|
|
+ and deleted_sign = 0
|
|
|
|
|
+ and state in (1,2,3,4,5,7)
|
|
|
|
|
+ and approved_date >=
|
|
|
|
|
+ (
|
|
|
|
|
+ select
|
|
|
|
|
+ str_to_date(CONCAT(#{year,jdbcType=INTEGER}-3,'-01-01'), '%Y-%m-%d %H')
|
|
|
|
|
+ )
|
|
|
|
|
+ and approved_date <![CDATA[ < ]]>
|
|
|
|
|
+ (
|
|
|
|
|
+ select
|
|
|
|
|
+ str_to_date(CONCAT(#{year,jdbcType=INTEGER},'-01-01'), '%Y-%m-%d %H')
|
|
|
|
|
+ )
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectWebsiteUnitNames" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
|
|
<select id="selectWebsiteUnitNames" parameterType="java.lang.String" resultType="com.goafanti.user.bo.OrgUnitNames">
|