t . id , t.salary_year_month , t.year , t.month , t.salary_sob_id , t.source_type , t.salary_accounting_status , t.attend_cycle , t.salary_cycle , t.description , t.create_time , t.update_time , t.creator , t.delete_type , t.tenant_key INSERT INTO hrsa_attend_quote id, salary_year_month, year, month, salary_sob_id, source_type, salary_accounting_status, attend_cycle, salary_cycle, description, create_time, update_time, creator, delete_type, tenant_key, #{id}, #{salaryYearMonth}, #{year}, #{month}, #{salarySobId}, #{sourceType}, #{salaryAccountingStatus}, #{attendCycle}, #{salaryCycle}, #{description}, #{createTime}, #{updateTime}, #{creator}, #{deleteType}, #{tenantKey}, UPDATE hrsa_attend_quote salary_year_month=#{salaryYearMonth}, year=#{year}, month=#{month}, salary_sob_id=#{salarySobId}, source_type=#{sourceType}, salary_accounting_status=#{salaryAccountingStatus}, attend_cycle=#{attendCycle}, salary_cycle=#{salaryCycle}, 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_attend_quote salary_year_month=#{salaryYearMonth}, year=#{year}, month=#{month}, salary_sob_id=#{salarySobId}, source_type=#{sourceType}, salary_accounting_status=#{salaryAccountingStatus}, attend_cycle=#{attendCycle}, salary_cycle=#{salaryCycle}, 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_attend_quote SET delete_type=1 WHERE id = #{id} AND delete_type = 0 t1 . id , t1.salary_year_month, t1.salary_sob_id AS salarySobId, t2.name AS salary_sob_name, t1.source_type, t1.attend_cycle, t1.salary_cycle, t1.description, e.lastname AS creator, t1.salary_accounting_status AND t1.id IN #{id} AND t1.salary_sob_id IN #{id} AND t1.salary_year_month = #{param.salaryYearMonthDate[0]} AND (t1.salary_year_month BETWEEN #{param.salaryYearMonthDate[0]} AND #{param.salaryYearMonthDate[1]}) UPDATE hrsa_attend_quote SET delete_type = 1 WHERE delete_type = 0 AND id IN #{id}