|
@@ -148,7 +148,8 @@
|
|
SELECT ifnull(COUNT(demand_id), 0) num, ifnull(sum(evaluation), 0) evaluationTotal
|
|
SELECT ifnull(COUNT(demand_id), 0) num, ifnull(sum(evaluation), 0) evaluationTotal
|
|
FROM `pm_demand`
|
|
FROM `pm_demand`
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
- now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time)
|
|
|
|
|
|
+ ((now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time))
|
|
|
|
+ or (real_purchase_finish_time > plan_purchase_finish_time))
|
|
and YEAR(plan_demand_sub_time) = YEAR(NOW())
|
|
and YEAR(plan_demand_sub_time) = YEAR(NOW())
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -157,7 +158,8 @@
|
|
SELECT ifnull(COUNT(demand_id), 0) num, ifnull(sum(evaluation), 0) evaluationTotal
|
|
SELECT ifnull(COUNT(demand_id), 0) num, ifnull(sum(evaluation), 0) evaluationTotal
|
|
FROM `pm_demand`
|
|
FROM `pm_demand`
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
- now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time)
|
|
|
|
|
|
+ ((now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time))
|
|
|
|
+ or (real_purchase_finish_time > plan_purchase_finish_time))
|
|
and quarter(plan_demand_sub_time) = quarter(NOW())
|
|
and quarter(plan_demand_sub_time) = quarter(NOW())
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -166,6 +168,8 @@
|
|
SELECT ifnull(COUNT(demand_id), 0) num, ifnull(sum(evaluation), 0) evaluationTotal
|
|
SELECT ifnull(COUNT(demand_id), 0) num, ifnull(sum(evaluation), 0) evaluationTotal
|
|
FROM `pm_demand`
|
|
FROM `pm_demand`
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
|
|
+ ((now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time))
|
|
|
|
+ or (real_purchase_finish_time > plan_purchase_finish_time))
|
|
now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time)
|
|
now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time)
|
|
and MONTH(plan_demand_sub_time) = MONTH(NOW())
|
|
and MONTH(plan_demand_sub_time) = MONTH(NOW())
|
|
</select>
|
|
</select>
|
|
@@ -175,7 +179,8 @@
|
|
SELECT ifnull(COUNT(demand_id), 0) num, ifnull(sum(evaluation), 0) evaluationTotal
|
|
SELECT ifnull(COUNT(demand_id), 0) num, ifnull(sum(evaluation), 0) evaluationTotal
|
|
FROM `pm_demand`
|
|
FROM `pm_demand`
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
- now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time)
|
|
|
|
|
|
+ ((now()> plan_purchase_finish_time and ISNULL(real_purchase_finish_time))
|
|
|
|
+ or (real_purchase_finish_time > plan_purchase_finish_time))
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="countProjectExceedTZ" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
<select id="countProjectExceedTZ" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|