Bladeren bron

字符串類型的sql要加引號

hurugang 3 jaren geleden
bovenliggende
commit
9551216e57
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzDepositFileMapper.java

+ 1 - 1
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzDepositFileMapper.java

@@ -275,7 +275,7 @@ public interface MzDepositFileMapper {
      * @param times
      * @return
      */
-    @Select("select count(1) from mz_deposit_file where patient_id =#{patientId} and times=#{times} and pay_mark =0 and cheque_type=2 ")
+    @Select("select count(1) from mz_deposit_file where patient_id =#{patientId} and times=#{times} and pay_mark =0 and cheque_type='2' ")
     int countYbZf(@Param(value = "patientId") String patientId, @Param("times") Integer times);