|
@@ -35,6 +35,16 @@ public interface ClinicSatisfiedDao {
|
|
|
List<SatisfiedBody> selectAllSatisfiedBodies(@Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper,
|
|
|
@Param("table") String table);
|
|
|
|
|
|
+ @Select("select *,deptName=(select rtrim(d.name) from zd_unit_code d where d.code=a.dept_code) " +
|
|
|
+ "from t_clinic_satisfied_assessment a ${ew.customSqlSegment} order by id")
|
|
|
+ List<SatisfiedBody> selectAllOutpatientSatisfiedBodies(@Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper);
|
|
|
+
|
|
|
+
|
|
|
+ @Select("select *,deptName=(select rtrim(d.name) from zd_unit_code d where d.code=" +
|
|
|
+ "(select e.zk_ward from zy_inactpatient e where e.inpatient_no=a.inpatient_no and e.admiss_times=a.admiss_times)) " +
|
|
|
+ "from t_inpatient_satisfied_assessment a ${ew.customSqlSegment} order by id")
|
|
|
+ List<SatisfiedBody> selectAllInpatientSatisfiedBodies(@Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper);
|
|
|
+
|
|
|
@Select("select count(1) from ${table} ${ew.customSqlSegment}")
|
|
|
int selectUnsatisfiedCount(@Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper,
|
|
|
@Param("table") String table);
|