| | |
| | | leavehospitaldistrictname, |
| | | orgid, |
| | | nexttaskflag, |
| | | nexttaskid, |
| | | nexttaskname |
| | | nexttaskid, |
| | | nexttaskname |
| | | from service_task |
| | | </sql> |
| | | |
| | |
| | | service_task.orgid from service_task |
| | | <where> |
| | | service_task.del_flag=0 |
| | | and taskid in ( |
| | | select task_id from service_taskdept |
| | | <where> |
| | | <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0"> |
| | | dept_code in |
| | | <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," |
| | | close=")"> |
| | | #{leaveldeptcode} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | ) |
| | | <!-- and taskid in (--> |
| | | <!-- select task_id from service_taskdept--> |
| | | <!-- <where>--> |
| | | <!-- <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0">--> |
| | | <!-- dept_code in--> |
| | | <!-- <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator=","--> |
| | | <!-- close=")">--> |
| | | <!-- #{leaveldeptcode}--> |
| | | <!-- </foreach>--> |
| | | <!-- </if>--> |
| | | <!-- </where>--> |
| | | <!-- )--> |
| | | <if test="taskName != null and taskName != ''">and service_task.task_name like concat('%', #{taskName}, |
| | | '%') |
| | | </if> |
| | |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="nexttaskflag != null">#{nexttaskflag},</if> |
| | | <if test="nexttaskid != null">#{nexttaskid},</if> |
| | | <if test="nexttaskname != null">#{nexttaskname},</if> |
| | | <if test="nexttaskflag != null">nexttaskflag = #{nexttaskflag},</if> |
| | | <if test="nexttaskid != null">nexttaskid = #{nexttaskid},</if> |
| | | <if test="nexttaskname != null">nexttaskname = #{nexttaskname},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="preachform != null">preachform = #{preachform},</if> |