|
@@ -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>
|
|
|
|
|