Browse Source

SQL错误

buzhanyi 2 years ago
parent
commit
e305f21f20
1 changed files with 1 additions and 1 deletions
  1. 1 1
      purchase-system/src/main/resources/mapper/pm/PmDemandMapper.xml

+ 1 - 1
purchase-system/src/main/resources/mapper/pm/PmDemandMapper.xml

@@ -354,7 +354,7 @@
 
 
     <select id="selectPurchaseTaskFinishYear" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
     <select id="selectPurchaseTaskFinishYear" parameterType="com.ozs.pm.doman.vo.requestVo.PmDemandReqVo"
             resultType="java.util.Map">
             resultType="java.util.Map">
-        select count(demand_id)                  countNum,
+        select count(a.demand_id)                countNum,
                ifnull(sum(a.evaluation), 0)      evaluation,
                ifnull(sum(a.evaluation), 0)      evaluation,
                year(a.plan_demand_sub_time)      yy,
                year(a.plan_demand_sub_time)      yy,
                ifnull(sum(b.contract_amount), 0) contractAmount
                ifnull(sum(b.contract_amount), 0) contractAmount