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 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"/>
     </select>