|
@@ -25,7 +25,30 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="purchaseProjectStatistical" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo" resultType="java.util.Map">
|
|
|
- select * from pm_demand
|
|
|
+ <select id="purchaseProjectStatistical" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
|
+ resultType="java.util.Map">
|
|
|
+ select count(demand_id) countId
|
|
|
+ from pm_demand
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="purchaseProjectStatisticalYWC" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
|
+ resultType="java.util.Map">
|
|
|
+ select count(demand_id) countYWC, ifnull(sum(evaluation), 0) evaluationYWC
|
|
|
+ from pm_demand
|
|
|
+ where project_status = '17'
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="purchaseProjectStatisticalXCJ" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
|
+ resultType="java.util.Map">
|
|
|
+ -- DATE_FORMAT(plan_demand_sub_time,'%Y')
|
|
|
+ select count(demand_id) countXCJ, ifnull(sum(evaluation), 0) evaluationXCJ
|
|
|
+ from pm_demand where project_status != '17' and year(plan_demand_sub_time) = year(NOW())
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="purchaseProjectStatisticalQNWC" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
|
|
|
+ resultType="java.util.Map">
|
|
|
+ -- DATE_FORMAT(plan_demand_sub_time,'%Y')
|
|
|
+ select count(demand_id) countQNWC, ifnull(sum(evaluation), 0) evaluationQNWC
|
|
|
+ from pm_demand where project_status != '17' and year(plan_demand_sub_time) = year(NOW())-1
|
|
|
</select>
|
|
|
</mapper>
|