Ver Fonte

字符串類型的sql要加引號

hurugang há 3 anos atrás
pai
commit
9551216e57

+ 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);