|
@@ -15,13 +15,13 @@ public interface SiLogDao extends BaseMapper<SiLog> {
|
|
|
"select msgid,infno,insuplc_admdvs,opter, " +
|
|
|
"create_datetime,pat_no,times,infcode from t_si_log " +
|
|
|
"where log_type=#{ftclg.logType} " +
|
|
|
- "<if test=\"ftclg.infno!=null\">" +
|
|
|
+ "<if test=\"ftclg.infno!=null and ftclg.infno!=''\">" +
|
|
|
"and infno=#{ftclg.infno} " +
|
|
|
"</if>" +
|
|
|
"<if test=\"ftclg.begntime!=null and ftclg.endtime!=null\">" +
|
|
|
"and create_datetime>=#{ftclg.begntime} and create_datetime<=#{ftclg.endtime} " +
|
|
|
"</if>" +
|
|
|
- "<if test=\"ftclg.patNo!=null\">" +
|
|
|
+ "<if test=\"ftclg.patNo!=null and ftclg.patNo!=''\">" +
|
|
|
"and pat_no=#{ftclg.patNo} " +
|
|
|
"</if>" +
|
|
|
"</script>")
|
|
@@ -30,4 +30,19 @@ public interface SiLogDao extends BaseMapper<SiLog> {
|
|
|
|
|
|
@Select("select rtrim(name) from a_employee_mi where code=#{code}")
|
|
|
String selectUserName(@Param("code") String code);
|
|
|
+
|
|
|
+ @Select("<script>" +
|
|
|
+ "select count(1) from t_si_log " +
|
|
|
+ "where log_type=#{ftclg.logType} and infcode=0 " +
|
|
|
+ "<if test=\"ftclg.infno!=null and ftclg.infno!=''\">" +
|
|
|
+ "and infno=#{ftclg.infno} " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"ftclg.begntime!=null and ftclg.endtime!=null\">" +
|
|
|
+ "and create_datetime>=#{ftclg.begntime} and create_datetime<=#{ftclg.endtime} " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"ftclg.patNo!=null and ftclg.patNo!=''\">" +
|
|
|
+ "and pat_no=#{ftclg.patNo} " +
|
|
|
+ "</if>" +
|
|
|
+ "</script>")
|
|
|
+ Integer selectSuccessSiLogCount(@Param("ftclg") FetchLog ftclg);
|
|
|
}
|