t
.
id
, t.salary_archive_id
, t.employee_id
, t.effective_time
, t.adjust_reason
, t.tax_agent_id
, t.operator
, t.operate_time
, t.description
, t.create_time
, t.update_time
, t.creator
, t.delete_type
, t.tenant_key
INSERT INTO hrsa_salary_archive_tax_agent
id,
salary_archive_id,
employee_id,
effective_time,
adjust_reason,
tax_agent_id,
operator,
operate_time,
description,
create_time,
update_time,
creator,
delete_type,
tenant_key,
#{id},
#{salaryArchiveId},
#{employeeId},
#{effectiveTime},
#{adjustReason},
#{taxAgentId},
#{operator},
#{operateTime},
#{description},
#{createTime},
#{updateTime},
#{creator},
#{deleteType},
#{tenantKey},
UPDATE hrsa_salary_archive_tax_agent
salary_archive_id=#{salaryArchiveId},
employee_id=#{employeeId},
effective_time=#{effectiveTime},
adjust_reason=#{adjustReason},
tax_agent_id=#{taxAgentId},
operator=#{operator},
operate_time=#{operateTime},
description=#{description},
create_time=#{createTime},
update_time=#{updateTime},
creator=#{creator},
delete_type=#{deleteType},
tenant_key=#{tenantKey},
WHERE id = #{id} AND delete_type = 0
UPDATE hrsa_salary_archive_tax_agent
salary_archive_id=#{salaryArchiveId},
employee_id=#{employeeId},
effective_time=#{effectiveTime},
adjust_reason=#{adjustReason},
tax_agent_id=#{taxAgentId},
operator=#{operator},
operate_time=#{operateTime},
description=#{description},
create_time=#{createTime},
update_time=#{updateTime},
creator=#{creator},
delete_type=#{deleteType},
tenant_key=#{tenantKey},
WHERE id = #{id} AND delete_type = 0
UPDATE hrsa_salary_archive_tax_agent
SET delete_type=1
WHERE id = #{id}
AND delete_type = 0