|
@@ -52,6 +52,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
SELECT count(id) as 'count' FROM zb_gc WHERE regex=-1
|
|
SELECT count(id) as 'count' FROM zb_gc WHERE regex=-1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectAllIsDirty" resultType="Integer">
|
|
|
|
+ SELECT count(id) as 'count' FROM zb_gc WHERE regex=3
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="selectAllNotDoneByType" resultType="Map">
|
|
<select id="selectAllNotDoneByType" resultType="Map">
|
|
SELECT type,count(id) as 'count' FROM zb_gc WHERE regex is not null and regex =-1 GROUP BY type
|
|
SELECT type,count(id) as 'count' FROM zb_gc WHERE regex is not null and regex =-1 GROUP BY type
|
|
</select>
|
|
</select>
|
|
@@ -60,21 +64,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
SELECT type,count(id) as 'count' FROM zb_gc WHERE regex is not null GROUP BY type
|
|
SELECT type,count(id) as 'count' FROM zb_gc WHERE regex is not null GROUP BY type
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectAllDirtyByType" resultType="Map">
|
|
|
|
+ SELECT type,count(id) as 'count' FROM zb_gc WHERE regex is not null and regex =3 GROUP BY type
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="selectAllSumPrice" resultType="BigDecimal">
|
|
<select id="selectAllSumPrice" resultType="BigDecimal">
|
|
SELECT sum(price) as 'sum' FROM zb_gc WHERE regex =1 and type='中标结果公示'
|
|
SELECT sum(price) as 'sum' FROM zb_gc WHERE regex =1 and type='中标结果公示'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="selectAllCountJGByMon" resultType="Map">
|
|
|
|
- select DATE_FORMAT(time,'%Y-%m') as 'mon',count(id) as 'count' from zb_gc WHERE regex =1 and type='中标结果公示' and time>'2021-06' group by DATE_FORMAT(time,'%Y-%m')
|
|
|
|
|
|
+ <select id="selectAllCountJGByMon" parameterType="String" resultType="Map">
|
|
|
|
+ select DATE_FORMAT(time,'%Y-%m') as 'mon',count(id) as 'count' from zb_gc
|
|
|
|
+
|
|
|
|
+ where
|
|
|
|
+ regex =1 and
|
|
|
|
+ type='中标结果公示' and
|
|
|
|
+ time <![CDATA[>]]> '2021-06'
|
|
|
|
+ <if test="searchKey != null and searchKey != ''"> and search_key = #{searchKey}</if>
|
|
|
|
+ group by DATE_FORMAT(time,'%Y-%m')
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="selectAllCountGGByMon" resultType="Map">
|
|
|
|
- select DATE_FORMAT(time,'%Y-%m') as 'mon',count(id) as 'count' from zb_gc WHERE regex =1 and type='招标公告' and time>'2021-06' group by DATE_FORMAT(time,'%Y-%m')
|
|
|
|
|
|
+ <select id="selectAllCountGGByMon" parameterType="String" resultType="Map">
|
|
|
|
+ select DATE_FORMAT(time,'%Y-%m') as 'mon',count(id) as 'count' from zb_gc
|
|
|
|
+ where
|
|
|
|
+ regex =1 and
|
|
|
|
+ type='招标公告' and time <![CDATA[>]]> '2021-06'
|
|
|
|
+ <if test="searchKey != null and searchKey != ''"> and search_key = #{searchKey}</if>
|
|
|
|
+ group by DATE_FORMAT(time,'%Y-%m')
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
- <select id="selectAllSumPriceByMon" resultType="map">
|
|
|
|
- select DATE_FORMAT(time,'%Y-%m') as 'mon',COALESCE(sum(price),0) as 'price' from zb_gc WHERE regex =1 and type='中标结果公示' group by DATE_FORMAT(time,'%Y-%m')
|
|
|
|
|
|
+ <select id="selectAllSumPriceByMon" parameterType="String" resultType="map">
|
|
|
|
+ select DATE_FORMAT(time,'%Y-%m') as 'mon',COALESCE(sum(price),0) as 'price' from zb_gc
|
|
|
|
+
|
|
|
|
+ WHERE regex =1 and type='中标结果公示'
|
|
|
|
+ <if test="searchKey != null and searchKey != ''"> and search_key = #{searchKey}</if>
|
|
|
|
+ group by DATE_FORMAT(time,'%Y-%m')
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectAllJGCountByDep" resultType="Map">
|
|
<select id="selectAllJGCountByDep" resultType="Map">
|
|
@@ -92,12 +116,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
select COALESCE(sum(price),0) as 'value',REPLACE(search_key,' 工程','') as 'name' from zb_gc WHERE regex =1 and search_key=#{key}
|
|
select COALESCE(sum(price),0) as 'value',REPLACE(search_key,' 工程','') as 'name' from zb_gc WHERE regex =1 and search_key=#{key}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="selectAllZBCountByDepDateOne" resultType="map">
|
|
|
|
- select DATE_FORMAT(time,'%Y-%m') as 'mon',count(id) as 'count' from zb_gc WHERE regex =1 and type='招标公告' and time>'2021-06' and dep_type=1 group by DATE_FORMAT(time,'%Y-%m')
|
|
|
|
|
|
+ <select id="selectAllZBCountByDepDateOne" parameterType="String" resultType="map">
|
|
|
|
+ select DATE_FORMAT(time,'%Y-%m') as 'mon',count(id) as 'count' from zb_gc
|
|
|
|
+
|
|
|
|
+ WHERE regex =1 and type='招标公告' and time>'2021-06' and dep_type=1
|
|
|
|
+ <if test="searchKey != null and searchKey != ''"> and search_key = #{searchKey}</if>
|
|
|
|
+ group by DATE_FORMAT(time,'%Y-%m')
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="selectAllZBCountByDepDateTwo" resultType="map">
|
|
|
|
- select DATE_FORMAT(time,'%Y-%m') as 'mon',count(id) as 'count' from zb_gc WHERE regex =1 and type='招标公告' and time>'2021-06' and dep_type=2 group by DATE_FORMAT(time,'%Y-%m')
|
|
|
|
|
|
+ <select id="selectAllZBCountByDepDateTwo" parameterType="String" resultType="map">
|
|
|
|
+ select DATE_FORMAT(time,'%Y-%m') as 'mon',count(id) as 'count' from zb_gc
|
|
|
|
+
|
|
|
|
+ WHERE regex =1 and type='招标公告' and time>'2021-06' and dep_type=2
|
|
|
|
+ <if test="searchKey != null and searchKey != ''"> and search_key = #{searchKey}</if>
|
|
|
|
+ group by DATE_FORMAT(time,'%Y-%m')
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectZbGcById" parameterType="Long" resultMap="ZbGcResult">
|
|
<select id="selectZbGcById" parameterType="Long" resultMap="ZbGcResult">
|