dyh_notice_apply id, case_id, task_id, title, apply_type, apply_time, apply_reason, help_names, apply_status, user_id, user_name, visit_url, read_status, read_time, delete_status, cust_id, create_time, update_time case_id = #{entity.caseId}, task_id = #{entity.taskId}, title = #{entity.title}, apply_type = #{entity.applyType}, apply_time = #{entity.applyTime}, apply_reason = #{entity.applyReason}, help_names = #{entity.helpNames}, apply_status = #{entity.applyStatus}, user_id = #{entity.userId}, user_name = #{entity.userName}, visit_url = #{entity.visitUrl}, read_status = #{entity.readStatus}, read_time = #{entity.readTime}, delete_status = #{entity.deleteStatus}, cust_id = #{entity.custId}, create_time = #{entity.createTime}, update_time = #{entity.updateTime} and id = #{terms.id} and case_id = #{terms.caseId} and task_id = #{terms.taskId} and title = #{terms.title} and apply_type = #{terms.applyType} and apply_time = #{terms.applyTime} and apply_reason = #{terms.applyReason} and help_names = #{terms.helpNames} and apply_status = #{terms.applyStatus} and user_id = #{terms.userId} and user_name = #{terms.userName} and visit_url = #{terms.visitUrl} and read_status = #{terms.readStatus} and read_time = #{terms.readTime} and delete_status = '1' and delete_status = #{terms.deleteStatus} and cust_id = #{terms.custId} and DATE_FORMAT(create_time,'%Y-%m-%d') = #{terms.createTime} and (DATE_FORMAT(create_time,'%Y-%m-%d') = ]]> #{terms.createStart} and DATE_FORMAT(create_time,'%Y-%m-%d') #{terms.createEnd}) and DATE_FORMAT(update_time,'%Y-%m-%d') = #{terms.updateTime} and (DATE_FORMAT(update_time,'%Y-%m-%d') = ]]> #{terms.updateStart} and DATE_FORMAT(update_time,'%Y-%m-%d') #{terms.updateEnd}) update id = #{entity.id} update delete from where id = #{id}