id, salary_month, salary_accounting_id, salary_sob_id, send_num, send_total, last_send_time, send_status, salary_acct_type, creator, create_time, update_time, delete_type, tenant_key t1.id, t1.salary_accounting_id AS salaryAcctId, t1.send_status AS sendStatus, t1.salary_acct_type AS salaryAcctType, t2.salary_month AS salaryYearMonth, t3.name AS salarySob, t3.id AS salarySobId, t1.send_num, t1.send_total, t1.last_send_time, t2.acct_times, t2.back_calc_status AS salaryAcctRecordType AND t2.salary_month = #{param.salaryMonthDate[0]} AND (t2.salary_month BETWEEN #{param.salaryMonthDate[0]} AND #{param.salaryMonthDate[1]}) AND t3.id IN #{id} update hrsa_salary_send set delete_type = 1 where salary_accounting_id in #{id} UPDATE hrsa_salary_send salary_month=#{salaryMonth}, salary_accounting_id=#{salaryAccountingId}, salary_sob_id=#{salarySobId}, send_num=#{sendNum}, send_total=#{sendTotal}, last_send_time=#{lastSendTime}, creator=#{creator}, create_time=#{createTime}, update_time=#{updateTime}, delete_type=#{deleteType}, tenant_key=#{tenantKey}, send_status=#{sendStatus}, WHERE id = #{id} AND delete_type = 0 update hrsa_salary_send set send_status = 0 where send_status is NULL update hrsa_salary_send set salary_acct_type = 0 where salary_acct_type is NULL INSERT INTO hrsa_salary_send id, salary_month, salary_accounting_id, salary_sob_id, send_num, send_total, send_status, salary_acct_type, last_send_time, creator, create_time, update_time, delete_type, tenant_key, #{id}, #{salaryMonth}, #{salaryAccountingId}, #{salarySobId}, #{sendNum}, #{sendTotal}, #{sendStatus}, #{salaryAcctType}, #{lastSendTime}, #{creator}, #{createTime}, #{updateTime}, #{deleteType}, #{tenantKey},