INSERT INTO hrm_job_postings (title, department_id, employment_type, headcount, description, requirements, status, start_date, end_date, created_by) VALUES (#{title}, #{departmentId}, #{employmentType}, #{headcount}, #{description}, #{requirements}, #{status}, #{startDate}, #{endDate}, #{createdBy}) UPDATE hrm_job_postings SET title=#{title}, department_id=#{departmentId}, employment_type=#{employmentType}, headcount=#{headcount}, description=#{description}, requirements=#{requirements}, start_date=#{startDate}, end_date=#{endDate}, updated_at=NOW() WHERE id=#{id} UPDATE hrm_job_postings SET status=#{status}, updated_at=NOW() WHERE id=#{id} INSERT INTO hrm_applicants (posting_id, applicant_name, email, phone, resume_url, cover_letter, status, apply_date, created_by) VALUES (#{postingId}, #{applicantName}, #{email}, #{phone}, #{resumeUrl}, #{coverLetter}, #{status}, NOW(), #{createdBy}) UPDATE hrm_applicants SET status=#{status}, memo=#{memo}, updated_at=NOW() WHERE id=#{id} INSERT INTO hrm_interviews (posting_id, applicant_id, interview_type, scheduled_at, location, interviewers, created_by) VALUES (#{postingId}, #{applicantId}, #{interviewType}, #{scheduledAt}, #{location}, #{interviewers}, #{createdBy}) UPDATE hrm_interviews SET interview_type=#{interviewType}, scheduled_at=#{scheduledAt}, location=#{location}, result=#{result}, notes=#{notes}, updated_at=NOW() WHERE id=#{id}