/*原型*/ SELECT count(did) AS sum, date_format(releasetime, '%Y-%m-%d') AS releasetime FROM hengtu_demand WHERE 1 GROUP BY date_format(releasetime, '%Y-%m-%d') /*按年分组 @参数 需求id sid=1*/ SELECT b.sid, b.`name` as sname, count(did) AS value, date_format(re…