select id, title, addr, rule, time, other, type, url, search_key, dep_type, dep, price, word, regex from zb_gc
and title = #{title}
and addr = #{addr}
and rule = #{rule}
and time between #{params.beginTime} and #{params.endTime}
and other = #{other}
and type = #{type}
and url = #{url}
and search_key = #{searchKey}
and dep_type = #{depType}
and dep = #{dep}
and price = #{price}
and word like concat('%', #{word}, '%')
and regex = #{regex}
SELECT count(id) as 'count' FROM zb_gc
SELECT count(id) as 'count' FROM zb_gc WHERE regex=-1
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 GROUP BY type
SELECT sum(price) as 'sum' FROM zb_gc WHERE regex =1 and type='中标结果公示'
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 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 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 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 search_key FROM zb_gc GROUP BY search_key
select COALESCE(sum(price),0) as 'value',REPLACE(search_key,' 工程','') as 'name' from zb_gc WHERE regex =1 and search_key=#{key}
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=2 group by DATE_FORMAT(time,'%Y-%m')
where id = #{id}
insert into zb_gc
title,
addr,
rule,
time,
other,
type,
url,
search_key,
dep_type,
dep,
price,
word,
regex,
#{title},
#{addr},
#{rule},
#{time},
#{other},
#{type},
#{url},
#{searchKey},
#{depType},
#{dep},
#{price},
#{word},
#{regex},
update zb_gc
title = #{title},
addr = #{addr},
rule = #{rule},
time = #{time},
other = #{other},
type = #{type},
url = #{url},
search_key = #{searchKey},
dep_type = #{depType},
dep = #{dep},
price = #{price},
word = #{word},
regex = #{regex},
where id = #{id}
delete from zb_gc where id = #{id}
delete from zb_gc where id in
#{id}