@@ -319,7 +319,7 @@
and t2.name like concat('%', #{dto.studentName}, '%')
</if>
<if test="dto.payStatus != null">
- and (t8.factrecarmny >= t8.factar) = #{dto.payStatus}
+ and (SELECT (SUM(factrecarmny) >= SUM(factar)) FROM pb_v_xsxxsfytb WHERE Studentcode = t2.credential_number) = #{dto.payStatus}
</select>