| | |
| | | </trim> |
| | | where 1=1 |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="campusid != null and campusid != ''">and campusid = #{campusid}</if> |
| | |
| | | month, st.service_type, st.id; |
| | | </select> |
| | | |
| | | <select id="getDeptRanking" parameterType="com.smartor.domain.PatMedReq" resultType="com.smartor.domain.PatMedRes"> |
| | | <select id="getDeptRanking" parameterType="com.ruoyi.common.core.service.dto.PatMedReq" resultType="com.ruoyi.common.core.service.dto.PatMedRes"> |
| | | SELECT deptname, |
| | | count(1) AS rc |
| | | FROM service_subtask |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectVisitCount" parameterType="com.smartor.domain.PatMedReq" |
| | | resultType="com.smartor.domain.PatMedRes"> |
| | | <select id="selectVisitCount" parameterType="com.ruoyi.common.core.service.dto.PatMedReq" |
| | | resultType="com.ruoyi.common.core.service.dto.PatMedRes"> |
| | | select |
| | | 0 AS rc, |
| | | count(1) AS rs |
| | |
| | | </select> |
| | | |
| | | <!-- 宣教统计:按病区或科室分组,统计发送总量、发送成功量(sendstate=6)、已读量(finishtime不为空) --> |
| | | <select id="getHeLibraryCount" parameterType="com.smartor.domain.VO.HeLibraryCountVO" resultType="map"> |
| | | <select id="getHeLibraryCount" parameterType="com.ruoyi.template.domain.VO.HeLibraryCountVO" resultType="map"> |
| | | SELECT |
| | | <choose> |
| | | <when test="hospitaldistrictcodes != null and hospitaldistrictcodes.size() > 0"> |
| | |
| | | order by schedule_seq asc, id asc |
| | | </select> |
| | | |
| | | <select id="gethelibraryCountHyperlink" parameterType="com.smartor.domain.VO.HeLibraryCountVO" |
| | | <select id="gethelibraryCountHyperlink" parameterType="com.ruoyi.template.domain.VO.HeLibraryCountVO" |
| | | resultMap="ServiceSubtaskResult"> |
| | | select id, |
| | | visit_count, |