|
@@ -657,7 +657,8 @@
|
|
|
|
|
|
<select id="purchaseProjectNumberAnalysisQuarter" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
|
resultType="java.util.Map">
|
|
|
- select ifnull(COUNT(demand_id), 0) countNum, ifnull(sum(evaluation), 0) evaluationSum, quarter(create_time) yy
|
|
|
+ select ifnull(COUNT(demand_id), 0) countNum, ifnull(sum(evaluation), 0) evaluationSum,
|
|
|
+ quarter(task_release_time) yy
|
|
|
from pm_demand
|
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
|
year(task_release_time) = year(NOW())
|
|
@@ -666,7 +667,8 @@
|
|
|
|
|
|
<select id="purchaseProjectNumberAnalysisOldYearQuarter" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
|
resultType="java.util.Map">
|
|
|
- select ifnull(COUNT(demand_id), 0) countNum, ifnull(sum(evaluation), 0) evaluationSum, quarter(create_time) yy
|
|
|
+ select ifnull(COUNT(demand_id), 0) countNum, ifnull(sum(evaluation), 0) evaluationSum,
|
|
|
+ quarter(task_release_time) yy
|
|
|
from pm_demand
|
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
|
year(task_release_time) = year(NOW() - 1)
|
|
@@ -677,7 +679,7 @@
|
|
|
resultType="java.util.Map">
|
|
|
select ifnull(COUNT(demand_id), 0) countNum,
|
|
|
ifnull(sum(evaluation), 0) evaluationSum,
|
|
|
- date_format(create_time, '%m') yy
|
|
|
+ date_format(task_release_time, '%m') yy
|
|
|
from pm_demand
|
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
|
year(task_release_time) = year(NOW())
|