select summary_id, summary_month, payable_amount, transaction_count, status, create_time, update_time, remark, del_flag, create_by, update_by, dept_id, user_id, bw_djbh, bw_dzfp_pdf_url, bw_dzfp_ofd_url, bw_dzfp_xml_url from rpt_financial_month_summary insert into rpt_financial_month_summary summary_month, payable_amount, transaction_count, status, create_time, update_time, remark, del_flag, create_by, update_by, dept_id, user_id, bw_djbh, bw_dzfp_pdf_url, bw_dzfp_ofd_url, bw_dzfp_xml_url, #{summaryMonth}, #{payableAmount}, #{transactionCount}, #{status}, #{createTime}, #{updateTime}, #{remark}, #{delFlag}, #{createBy}, #{updateBy}, #{deptId}, #{userId}, #{bwDjbh}, #{bwDzfpPdfUrl}, #{bwDzfpOfdUrl}, #{bwDzfpXmlUrl}, update rpt_financial_month_summary summary_month = #{summaryMonth}, payable_amount = #{payableAmount}, transaction_count = #{transactionCount}, status = #{status}, create_time = #{createTime}, update_time = #{updateTime}, remark = #{remark}, del_flag = #{delFlag}, create_by = #{createBy}, update_by = #{updateBy}, dept_id = #{deptId}, user_id = #{userId}, bw_djbh = #{bwDjbh}, bw_dzfp_pdf_url = #{bwDzfpPdfUrl}, bw_dzfp_ofd_url = #{bwDzfpOfdUrl}, bw_dzfp_xml_url = #{bwDzfpXmlUrl}, where summary_id = #{summaryId} delete from rpt_financial_month_summary where summary_id = #{summaryId} delete from rpt_financial_month_summary where summary_id in #{summaryId} INSERT INTO rpt_financial_month_summary (summary_month, payable_amount, transaction_count,dept_id,status,create_time) VALUES (#{item.summary_month}, #{item.payable_amount}, #{item.transaction_count}, #{item.dept_id},'1',now()) ON DUPLICATE KEY UPDATE payable_amount = VALUES(payable_amount), transaction_count = VALUES(transaction_count), dept_id = VALUES(dept_id), update_time = NOW()