|
@@ -587,13 +587,14 @@
|
|
resultType="java.util.Map">
|
|
resultType="java.util.Map">
|
|
select count(a.demand_id) countNum,
|
|
select count(a.demand_id) countNum,
|
|
ifnull(sum(a.evaluation), 0) evaluation,
|
|
ifnull(sum(a.evaluation), 0) evaluation,
|
|
- year(a.create_time) yy,
|
|
|
|
|
|
+ year(a.up_acceptance_time) yy,
|
|
ifnull(sum(b.contract_amount), 0) contractAmount
|
|
ifnull(sum(b.contract_amount), 0) contractAmount
|
|
from (
|
|
from (
|
|
- select evaluation, create_time, demand_id
|
|
|
|
|
|
+ select evaluation, up_acceptance_time, demand_id
|
|
from pm_demand
|
|
from pm_demand
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
project_status in (15, 16, 17)
|
|
project_status in (15, 16, 17)
|
|
|
|
+ and up_acceptance_time!=null
|
|
) a
|
|
) a
|
|
left join (
|
|
left join (
|
|
select contract_amount, demand_id
|
|
select contract_amount, demand_id
|
|
@@ -605,13 +606,14 @@
|
|
<select id="selectPurchaseTaskFinishQuarter" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
<select id="selectPurchaseTaskFinishQuarter" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
resultType="java.util.Map">
|
|
resultType="java.util.Map">
|
|
select ifnull(sum(a.evaluation), 0) evaluation,
|
|
select ifnull(sum(a.evaluation), 0) evaluation,
|
|
- quarter(a.create_time) yy,
|
|
|
|
|
|
+ quarter(a.up_acceptance_time) yy,
|
|
ifnull(sum(b.contract_amount), 0) contractAmount
|
|
ifnull(sum(b.contract_amount), 0) contractAmount
|
|
from (
|
|
from (
|
|
- select evaluation, create_time, demand_id
|
|
|
|
|
|
+ select evaluation, up_acceptance_time, demand_id
|
|
from pm_demand
|
|
from pm_demand
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
project_status in (15, 16, 17)
|
|
project_status in (15, 16, 17)
|
|
|
|
+ and up_acceptance_time!=null
|
|
and year(up_acceptance_time) = year(NOW())
|
|
and year(up_acceptance_time) = year(NOW())
|
|
) a
|
|
) a
|
|
left join (
|
|
left join (
|
|
@@ -624,13 +626,14 @@
|
|
<select id="selectPurchaseTaskFinishMonth" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
<select id="selectPurchaseTaskFinishMonth" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
resultType="java.util.Map">
|
|
resultType="java.util.Map">
|
|
select ifnull(sum(a.evaluation), 0) evaluation,
|
|
select ifnull(sum(a.evaluation), 0) evaluation,
|
|
- date_format(create_time, '%m') yy,
|
|
|
|
|
|
+ date_format(up_acceptance_time, '%m') yy,
|
|
ifnull(sum(b.contract_amount), 0) contractAmount
|
|
ifnull(sum(b.contract_amount), 0) contractAmount
|
|
from (
|
|
from (
|
|
- select evaluation, create_time, demand_id
|
|
|
|
|
|
+ select evaluation, up_acceptance_time, demand_id
|
|
from pm_demand
|
|
from pm_demand
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
<include refid="deptListOrDemandIdAll"/>
|
|
project_status in (15, 16, 17)
|
|
project_status in (15, 16, 17)
|
|
|
|
+ and up_acceptance_time!=null
|
|
and year(up_acceptance_time) = year(NOW())
|
|
and year(up_acceptance_time) = year(NOW())
|
|
) a
|
|
) a
|
|
left join (
|
|
left join (
|