zhangyuewww 3 år sedan
förälder
incheckning
2f09911376

+ 4 - 2
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/PaymentManagementServiceImpl.java

@@ -219,8 +219,10 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
             qualityInspectionManagement.setWaterMin(purchasePrice.getWaterMin());
         }
         IdentityAuthenticationInfo identityAuthenticationInfo=iIdentityAuthenticationInfoService.selectOne(new EntityWrapper<IdentityAuthenticationInfo>()
-        .eq("customer_name",paymentManagement.getCustomerName()).eq("cover","0")
-        .eq("customer_type_flag","1"));
+                .eq("customer_name",paymentManagement.getCustomerName())
+                .eq("customer_phone",paymentManagement.getCustomerPhone())
+                .eq("cover","0")
+                .eq("customer_type_flag","1"));
         paymentManagement.setIdentityAuthenticationInfo(identityAuthenticationInfo);
         paymentManagement.setQualityInspectionManagement(qualityInspectionManagement);
         paymentManagement.setWeighingManagement(weighingManagement);

+ 1 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/PaymentManagementMapper.xml

@@ -94,6 +94,7 @@
         amount_not_collectable as amountNotCollectable,
         management_type as managementType,
         customer_name as customerName,
+        customer_phone as customerPhone,
         collection_date as collectionDate,
         status,
         picture_address as pictureAddress,