`invoice_id` ,invoice_type, `receive_email`, `title_type`, `title_content`, `duty_number`, `invoice_content`, `invoice_money`, `invoice_order_eletric_total_money`, `invoice_order_service_total_money`, `firm_address`, `firm_phone`, `firm_bank`, `firm_bank_account`, `is_show_date`, `user_notes`, `creator_id`, `creator_type`, `creator`, `create_time`, `status`, `invoicing_time`, `drawer`, `finance_notes`, `electric_invoice_url`, `updator`, `update_time`, `is_read`, tenant_id, invoice_status, `del_flag` delete from xhpc_invoice where invoice_id = #{invoiceId,jdbcType=BIGINT} insert into xhpc_invoice (receive_email, title_type, title_content, duty_number, invoice_content, invoice_money, invoice_order_eletric_total_money, invoice_order_service_total_money, firm_address, firm_phone, firm_bank, firm_bank_account, is_show_date, user_notes, creator_id, creator_type, creator, create_time, `status`, invoicing_time, drawer, finance_notes, electric_invoice_url, updator, update_time, del_flag, tenant_id) values (#{receiveEmail,jdbcType=VARCHAR}, #{titleType,jdbcType=INTEGER}, #{titleContent,jdbcType=VARCHAR}, #{dutyNumber,jdbcType=VARCHAR}, #{invoiceContent,jdbcType=VARCHAR}, #{invoiceMoney,jdbcType=DECIMAL}, #{invoiceOrderEletricTotalMoney,jdbcType=DECIMAL}, #{invoiceOrderServiceTotalMoney,jdbcType=DECIMAL}, #{firmAddress,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{firmBank,jdbcType=VARCHAR}, #{firmBankAccount,jdbcType=VARCHAR}, #{isShowDate,jdbcType=INTEGER}, #{userNotes,jdbcType=VARCHAR}, #{creatorId,jdbcType=BIGINT}, #{creatorType,jdbcType=INTEGER}, #{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{invoicingTime,jdbcType=TIMESTAMP}, #{drawer,jdbcType=VARCHAR}, #{financeNotes,jdbcType=VARCHAR}, #{electricInvoiceUrl,jdbcType=VARCHAR}, #{updator,jdbcType=BIGINT}, #{updateTime,jdbcType=DATE}, #{delFlag,jdbcType=INTEGER}, #{tenantId,jdbcType=VARCHAR}) insert into xhpc_invoice receive_email, title_type, title_content, duty_number, invoice_content, invoice_money, invoice_order_eletric_total_money, invoice_order_service_total_money, firm_address, firm_phone, firm_bank, firm_bank_account, is_show_date, user_notes, creator_id, creator_type, creator, create_time, `status`, invoicing_time, drawer, finance_notes, electric_invoice_url, updator, update_time, del_flag, tenant_id #{receiveEmail,jdbcType=VARCHAR}, #{titleType,jdbcType=INTEGER}, #{titleContent,jdbcType=VARCHAR}, #{dutyNumber,jdbcType=VARCHAR}, #{invoiceContent,jdbcType=VARCHAR}, #{invoiceMoney,jdbcType=DECIMAL}, #{invoiceOrderEletricTotalMoney,jdbcType=DECIMAL}, #{invoiceOrderServiceTotalMoney,jdbcType=DECIMAL}, #{firmAddress,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{firmBank,jdbcType=VARCHAR}, #{firmBankAccount,jdbcType=VARCHAR}, #{isShowDate,jdbcType=INTEGER}, #{userNotes,jdbcType=VARCHAR}, #{creatorId,jdbcType=BIGINT}, #{creatorType,jdbcType=INTEGER}, #{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{invoicingTime,jdbcType=TIMESTAMP}, #{drawer,jdbcType=VARCHAR}, #{financeNotes,jdbcType=VARCHAR}, #{electricInvoiceUrl,jdbcType=VARCHAR}, #{updator,jdbcType=BIGINT}, #{updateTime,jdbcType=DATE}, #{delFlag,jdbcType=INTEGER}, #{tenantId,jdbcType=INTEGER}, insert into xhpc_invoice receive_email, title_type, title_content, duty_number, invoice_content, invoice_money, invoice_order_eletric_total_money, invoice_order_service_total_money, firm_address, firm_phone, firm_bank, firm_bank_account, is_show_date, user_notes, creator_id, creator_type, creator, create_time, `status`, invoicing_time, drawer, finance_notes, electric_invoice_url, updator, update_time, del_flag, tenant_id, invoice_status, #{receiveEmail,jdbcType=VARCHAR}, #{titleType,jdbcType=INTEGER}, #{titleContent,jdbcType=VARCHAR}, #{dutyNumber,jdbcType=VARCHAR}, #{invoiceContent,jdbcType=VARCHAR}, #{invoiceMoney,jdbcType=DECIMAL}, #{invoiceOrderEletricTotalMoney,jdbcType=DECIMAL}, #{invoiceOrderServiceTotalMoney,jdbcType=DECIMAL}, #{firmAddress,jdbcType=VARCHAR}, #{firmPhone,jdbcType=VARCHAR}, #{firmBank,jdbcType=VARCHAR}, #{firmBankAccount,jdbcType=VARCHAR}, #{isShowDate,jdbcType=INTEGER}, #{userNotes,jdbcType=VARCHAR}, #{creatorId,jdbcType=BIGINT}, #{creatorType,jdbcType=INTEGER}, #{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{invoicingTime,jdbcType=TIMESTAMP}, #{drawer,jdbcType=VARCHAR}, #{financeNotes,jdbcType=VARCHAR}, #{electricInvoiceUrl,jdbcType=VARCHAR}, #{updator,jdbcType=BIGINT}, #{updateTime,jdbcType=DATE}, #{delFlag,jdbcType=INTEGER}, #{tenantId,jdbcType=INTEGER}, #{invoiceStatus,jdbcType=INTEGER}, update xhpc_invoice receive_email = #{receiveEmail,jdbcType=VARCHAR}, title_type = #{titleType,jdbcType=INTEGER}, title_content = #{titleContent,jdbcType=VARCHAR}, duty_number = #{dutyNumber,jdbcType=VARCHAR}, invoice_content = #{invoiceContent,jdbcType=VARCHAR}, invoice_money = #{invoiceMoney,jdbcType=DECIMAL}, invoice_order_eletric_total_money = #{invoiceOrderEletricTotalMoney,jdbcType=DECIMAL}, invoice_order_service_total_money = #{invoiceOrderServiceTotalMoney,jdbcType=DECIMAL}, firm_address = #{firmAddress,jdbcType=VARCHAR}, firm_phone = #{firmPhone,jdbcType=VARCHAR}, firm_bank = #{firmBank,jdbcType=VARCHAR}, firm_bank_account = #{firmBankAccount,jdbcType=VARCHAR}, is_show_date = #{isShowDate,jdbcType=INTEGER}, user_notes = #{userNotes,jdbcType=VARCHAR}, creator_id = #{creatorId,jdbcType=BIGINT}, creator_type = #{creatorType,jdbcType=INTEGER}, creator = #{creator,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, `status` = #{status,jdbcType=INTEGER}, invoicing_time = #{invoicingTime,jdbcType=TIMESTAMP}, drawer = #{drawer,jdbcType=VARCHAR}, finance_notes = #{financeNotes,jdbcType=VARCHAR}, electric_invoice_url = #{electricInvoiceUrl,jdbcType=VARCHAR}, updator = #{updator,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=DATE}, del_flag = #{delFlag,jdbcType=INTEGER}, where invoice_id = #{invoiceId,jdbcType=BIGINT} update xhpc_invoice set receive_email = #{receiveEmail,jdbcType=VARCHAR}, title_type = #{titleType,jdbcType=INTEGER}, title_content = #{titleContent,jdbcType=VARCHAR}, duty_number = #{dutyNumber,jdbcType=VARCHAR}, invoice_content = #{invoiceContent,jdbcType=VARCHAR}, invoice_money = #{invoiceMoney,jdbcType=DECIMAL}, invoice_order_eletric_total_money = #{invoiceOrderEletricTotalMoney,jdbcType=DECIMAL}, invoice_order_service_total_money = #{invoiceOrderServiceTotalMoney,jdbcType=DECIMAL}, firm_address = #{firmAddress,jdbcType=VARCHAR}, firm_phone = #{firmPhone,jdbcType=VARCHAR}, firm_bank = #{firmBank,jdbcType=VARCHAR}, firm_bank_account = #{firmBankAccount,jdbcType=VARCHAR}, is_show_date = #{isShowDate,jdbcType=INTEGER}, user_notes = #{userNotes,jdbcType=VARCHAR}, creator_id = #{creatorId,jdbcType=BIGINT}, creator_type = #{creatorType,jdbcType=INTEGER}, creator = #{creator,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, `status` = #{status,jdbcType=INTEGER}, invoicing_time = #{invoicingTime,jdbcType=TIMESTAMP}, drawer = #{drawer,jdbcType=VARCHAR}, finance_notes = #{financeNotes,jdbcType=VARCHAR}, electric_invoice_url = #{electricInvoiceUrl,jdbcType=VARCHAR}, updator = #{updator,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=DATE}, del_flag = #{delFlag,jdbcType=INTEGER} where invoice_id = #{invoiceId,jdbcType=BIGINT} UPDATE xhpc_invoice SET finance_notes = #{financeNotes}, invoicing_time = #{invoicingTime}, electric_invoice_url = #{eletricInvoiceUrl}, `status` = #{status}, drawer = #{drawer}, is_read = 0 WHERE invoice_id = #{invoiceId}; UPDATE xhpc_invoice SET finance_notes = #{financeNotes}, invoicing_time = #{invoicingTime}, electric_invoice_url = #{eletricInvoiceUrl}, `status` = #{status}, drawer = #{drawer}, is_read = 0 WHERE invoice_id = #{invoiceId} UPDATE xhpc_invoice SET is_read = 1 WHERE del_flag IS NULL AND invoice_id = #{invoiceId} UPDATE xhpc_invoice SET invoice_order_eletric_total_money = #{invoiceOrderEletricTotalMoney}, invoice_order_service_total_money = #{invoiceOrderServiceTotalMoney} WHERE invoice_id = #{invoiceId};