Bläddra i källkod

撤销未缴费的门诊结算任务不再查询mz_saved字段

lighter 2 år sedan
förälder
incheckning
ee6b6e3c7e

+ 2 - 3
src/main/java/thyyxxk/simzfeeoprnsystm/dao/ScheduledDao.java

@@ -10,11 +10,10 @@ import java.util.List;
 @Mapper
 public interface ScheduledDao {
     @Select("select pat_no,times,ledger_sn,setl_id,mdtrt_id,psn_no from t_si_setlinfo where setl_type=11 " +
-            "and mz_saved=0 and revoked=0 and datediff(hour, endtime, getdate()) between 12 and 72 ")
+            "and revoked=0 and datediff(hour, endtime, getdate()) between 12 and 72 ")
     List<SiSetlinfo> selectSetlinfos();
 
-    @Select("select count(1) from mz_deposit_file WITH(NOLOCK) where " +
-            "patient_id=#{patNo} and times=#{times} and pay_mark=0")
+    @Select("select count(1) from mz_deposit_file WITH(NOLOCK) where patient_id=#{patNo} and times=#{times} and pay_mark=0")
     int alreadyPayed(String patNo, int times);
 
     @Update("update t_si_setlinfo set mz_saved=1 where setl_id=#{setlId}")

+ 2 - 2
src/main/resources/application.yml

@@ -12,8 +12,8 @@ spring:
   thymeleaf:
     cache: false
   datasource:
-    url: jdbc:jtds:sqlserver://172.16.32.168:1433/thxyhisdb
-#    url: jdbc:jtds:sqlserver://172.16.32.179:1433/thxyhisdb
+#    url: jdbc:jtds:sqlserver://172.16.32.168:1433/thxyhisdb
+    url: jdbc:jtds:sqlserver://172.16.32.179:1433/thxyhisdb
     hikari:
       username: sa
       password: