|
@@ -84,6 +84,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="selectAllZBCountByDep" resultType="map">
|
|
<select id="selectAllZBCountByDep" resultType="map">
|
|
SELECT dep_type,count(id) as 'count' FROM zb_gc WHERE regex=1 and type='招标公告' GROUP BY dep_type
|
|
SELECT dep_type,count(id) as 'count' FROM zb_gc WHERE regex=1 and type='招标公告' GROUP BY dep_type
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="selectAddrBySearchKey" resultType="String">
|
|
|
|
+ SELECT search_key FROM zb_gc GROUP BY search_key
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectSumPriceByAddr" resultType="map">
|
|
|
|
+ select COALESCE(sum(price),0) as 'value',REPLACE(search_key,' 工程','') as 'name' from zb_gc WHERE regex =1 and search_key=#{key}
|
|
|
|
+ </select>
|
|
|
|
|
|
<select id="selectAllZBCountByDepDateOne" resultType="map">
|
|
<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 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')
|