| | |
| | | <if test="creatorId != null">#{creatorId},</if> |
| | | <if test="assigneeId != null">#{assigneeId},</if> |
| | | <if test="deptId != null">#{deptId},</if> |
| | | <if test="isHeadPush != null">#{isHeadPush},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | now(), |
| | | <if test="createBy != null">#{createBy},</if> |
| | |
| | | #{taskId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <!-- 根据联系人电话和创建日期查询任务数量 --> |
| | | <select id="countTaskByPhoneAndDate" resultType="int"> |
| | | select count(1) |
| | | from sys_task t |
| | | inner join sys_task_emergency e on t.task_id = e.task_id |
| | | where t.del_flag = '0' |
| | | and e.patient_phone = #{phone} |
| | | and DATE(t.create_time) = #{createDate} |
| | | </select> |
| | | </mapper> |