Ver Fonte

bug修复

dzx há 1 ano atrás
pai
commit
ea58677fa9
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/main/resources/mapper/room/RoomBedMapper.xml

+ 1 - 1
src/main/resources/mapper/room/RoomBedMapper.xml

@@ -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}
         </if>
     </select>