Ver Fonte

fix:sql bug

zhangwei há 3 anos atrás
pai
commit
f4db59dff0
1 ficheiros alterados com 0 adições e 2 exclusões
  1. 0 2
      src/main/resources/mapper/RepalRemindHistoryMapper.xml

+ 0 - 2
src/main/resources/mapper/RepalRemindHistoryMapper.xml

@@ -55,7 +55,6 @@
         and REPAL_BILL_ID = #{repalBillId}
         AND ID > #{riskId}) AS unreadRiskCount,
         (select count(*) from ACCOUNT_REMIND_HISTORY where REMIND_TYPE = 'FINANCE'
-        AND USER_ID = #{userId}
         and REPAL_BILL_ID = #{repalBillId}
         AND REMIND_TIME >= #{localDateTime}) AS financeCount,
         (select count(*) from ACCOUNT_REMIND_HISTORY where REMIND_TYPE = 'FINANCE'
@@ -63,7 +62,6 @@
         and REPAL_BILL_ID = #{repalBillId}
         AND ID > #{financeId} ) AS unreadFinanceCount,
         (select count(*) from ACCOUNT_REMIND_HISTORY where REMIND_TYPE = 'RANK'
-        AND USER_ID = #{userId}
         and REPAL_BILL_ID = #{repalBillId}
         AND REMIND_TIME >= #{localDateTime}) AS rankCount,
         (select count(*) from ACCOUNT_REMIND_HISTORY where REMIND_TYPE = 'RANK'