wlzboy
2026-04-01 c459808efab29dc1b8439fbb90556bdb16f4c88b
ruoyi-system/src/main/resources/mapper/system/LegacyInvoiceMapper.xml
@@ -31,4 +31,25 @@
    <select id="selectLegacyInvoiceByServiceOrderId" parameterType="Long" resultType="Map">
        SELECT * FROM InvoiceData WHERE ServiceOrderIDPK = #{serviceOrderId}
    </select>
    <!-- 编辑时更新旧系统发票记录 -->
    <update id="updateLegacyInvoice" parameterType="Map">
        UPDATE InvoiceData SET
            ServiceOrderIDPK   = #{ServiceOrderIDPK},
            InvoiceType        = #{InvoiceType},
            InvoiceName        = #{InvoiceName},
            InvoiceMakeout     = #{InvoiceMakeout},
            InvoiceCompanyPhone= #{InvoiceCompanyPhone},
            InvoiceCompanyAdd  = #{InvoiceCompanyAdd},
            InvoiceCompanyBank = #{InvoiceCompanyBank},
            InvoiceCompanyBankNo = #{InvoiceCompanyBankNo},
            InvoiceZipCode     = #{InvoiceZipCode},
            Invoice_strAdd     = #{Invoice_strAdd},
            Invoice_strName    = #{Invoice_strName},
            Invoice_strPhone   = #{Invoice_strPhone},
            Invoice_strEmail   = #{Invoice_strEmail},
            InvoiceMoney       = #{InvoiceMoney},
            AuditStatus        = 0
        WHERE InvoiceID = #{InvoiceID}
    </update>
</mapper>