yonge 5 年之前
父節點
當前提交
5622e0f697
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/DegreeRegistrationMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/DegreeRegistrationMapper.xml

@@ -97,7 +97,7 @@
     </select>
     </select>
 
 
     <select id="getTotalAmount" parameterType="map" resultMap="DegreeRegistration">
     <select id="getTotalAmount" parameterType="map" resultMap="DegreeRegistration">
-        SELECT SUM(money_) money_ ,SUM(theory_money_) theory_money_ FROM degree_registration
+        SELECT SUM(case when status_ = 2 then money_ else 0 end) money_ ,SUM(case when status_ = 2 then theory_money_ else 0 end) theory_money_ FROM degree_registration
         <include refid="queryPageSql"/>
         <include refid="queryPageSql"/>
     </select>
     </select>