ly 1 年間 前
コミット
847776c143

+ 8 - 9
src/main/java/cn/ezhizao/project/business/invoice/controller/BizInvoiceController.java

@@ -143,10 +143,10 @@ public class BizInvoiceController extends BaseController {
         if (one != null) {
             info1.setId(one.getId());
         }
-        info1.setName(one.getName());
-        info1.setAddress(one.getAddress());
-        info1.setAccount(one.getAccount());
-        info1.setCode(one.getCode());
+        info1.setName(bizInvoice.getInvoiceMy());
+        info1.setAddress(bizInvoice.getMyAddress());
+        info1.setAccount(bizInvoice.getMyAccount());
+        info1.setCode(bizInvoice.getMyCreditSocietyCode());
         info1.setTenantId(tenantId);
         bizCopyInfoService.saveOrUpdate(info1);
         //收票户
@@ -180,11 +180,10 @@ public class BizInvoiceController extends BaseController {
         if (one != null) {
             info1.setId(one.getId());
         }
-        info1.setName(one.getName());
-        info1.setAddress(one.getAddress());
-        info1.setAccount(one.getAccount());
-        info1.setCode(one.getCode());
-        info1.setTenantId(tenantId);
+        info1.setName(bizInvoice.getInvoiceMy());
+        info1.setAddress(bizInvoice.getMyAddress());
+        info1.setAccount(bizInvoice.getMyAccount());
+        info1.setCode(bizInvoice.getMyCreditSocietyCode());
         bizCopyInfoService.saveOrUpdate(info1);
         //收票户
         String invoiceOther = bizInvoice.getInvoiceOther();

+ 3 - 0
src/main/resources/mybatis/business/BizInvoiceMapper.xml

@@ -22,6 +22,9 @@
             <if test="invoiceMy != null  and invoiceMy != ''">
                 AND t1.invoice_my like concat('%',#{invoiceMy}, '%')
             </if>
+            <if test="invoiceOther != null  and invoiceOther != ''">
+                AND t1.invoice_other like concat('%',#{invoiceOther}, '%')
+            </if>
             <if test="contractNo != null  and contractNo != ''">
                 AND t2.contract_no like concat('%',#{contractNo}, '%')
             </if>