|
@@ -253,7 +253,8 @@ public interface MzPatientMiMapper {
|
|
|
* @param times
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select count(1) from t_si_setlinfo where pat_no=#{patientId} and times=#{times} and revoked=0 ")
|
|
|
+ @Select("select ((select count(1) from t_si_setlinfo where pat_no=#{patientId} and times=#{times} and revoked=0) + " +
|
|
|
+ "(select count(1) from t_si_presetlinfo where pat_no=#{patientId} and times=#{times}) )")
|
|
|
int countYbZf(@Param(value = "patientId") String patientId, @Param("times") Integer times);
|
|
|
/**
|
|
|
* @description:分页查询病人信息
|