| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectCompletedInhospFollowups" resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | where del_flag = '0' |
| | | and sendstate = 6 |
| | | and hosp_type in ('2', '6') |
| | | and orgid = #{orgid} |
| | | and finishtime >= #{startTime} |
| | | <if test="serviceTypes != null and serviceTypes.size() > 0"> |
| | | and service_type in |
| | | <foreach collection="serviceTypes" item="serviceType" open="(" separator="," close=")"> |
| | | #{serviceType} |
| | | </foreach> |
| | | </if> |
| | | order by id asc |
| | | limit #{limit} |
| | | </select> |
| | | |
| | | <select id="selectServiceSubtaskByDiagname" parameterType="com.ruoyi.task.domain.ServiceSubtask" |
| | | resultMap="ServiceSubtaskResult"> |
| | | select sendstate,starttime,endtime,nurse_name,phone,sex,task_name,sendname,leavediagname,visit_time FROM |