Browse Source

日志分析添加就诊次数

lighter 3 years ago
parent
commit
964a81d27f

+ 8 - 1
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/SiLogDao.java

@@ -23,7 +23,11 @@ public interface SiLogDao extends BaseMapper<SiLog> {
             "</if>" +
             "<if test=\"ftclg.patNo!=null and ftclg.patNo!=''\">" +
             "and pat_no=#{ftclg.patNo} " +
-            "</if> order by create_datetime" +
+            "</if> " +
+            "<if test=\"ftclg.times!=null\">" +
+            "and times=#{ftclg.times} " +
+            "</if> " +
+            "order by create_datetime" +
             "</script>")
     IPage<SiLog> selectSiLogs(IPage<SiLog> iPage,
                               @Param("ftclg") FetchLog ftclg);
@@ -40,6 +44,9 @@ public interface SiLogDao extends BaseMapper<SiLog> {
             "<if test=\"ftclg.patNo!=null and ftclg.patNo!=''\">" +
             "and pat_no=#{ftclg.patNo} " +
             "</if>" +
+            "<if test=\"ftclg.times!=null\">" +
+            "and times=#{ftclg.times} " +
+            "</if> " +
             "</script>")
     Integer selectSuccessSiLogCount(@Param("ftclg") FetchLog ftclg);
 }

+ 1 - 0
src/main/java/thyyxxk/webserver/entity/medicalinsurance/log/FetchLog.java

@@ -11,6 +11,7 @@ public class FetchLog {
     private Date begntime;
     private Date endtime;
     private String patNo;
+    private Integer times;
     private Boolean needCalTips;
     private Integer currentPage;
     private Integer pageSize;