浏览代码

查看质检信息返客户身份证号

zxz 3 年之前
父节点
当前提交
ee663709ad

+ 11 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/QualityInspectionManagementServiceImpl.java

@@ -48,6 +48,8 @@ public class QualityInspectionManagementServiceImpl extends ServiceImpl<QualityI
     @Autowired
     private IContractManagementInfoService contractManagementInfoService;
     @Autowired
+    private IIdentityAuthenticationInfoService identityAuthenticationInfoService;
+    @Autowired
     private ICommonStaffService staffService;
     @Autowired
     private QRCodeUtil qrCodeUtil ;
@@ -147,6 +149,15 @@ public class QualityInspectionManagementServiceImpl extends ServiceImpl<QualityI
                 qualityInspectionManagement.setPerson(warehouseBaseInfo.getPersonCharge());
                 qualityInspectionManagement.setPersonPhone(warehouseBaseInfo.getPersonPhone());
             }
+            //客户信息
+            IdentityAuthenticationInfo identityAuthenticationInfo = identityAuthenticationInfoService.selectOne(new EntityWrapper<IdentityAuthenticationInfo>()
+                    .eq("comp_id", qualityInspectionManagement.getCompId())
+                    .eq("customer_name",qualityInspectionManagement.getCustomerName())
+                    .eq("customer_phone",qualityInspectionManagement.getCustomerPhone()));
+            if(identityAuthenticationInfo != null){
+                //客户身份证号
+                qualityInspectionManagement.setCustomerNumberCard(identityAuthenticationInfo.getCustomerNumberCard());
+            }
             //检斤信息
             WeighingManagement weighingManagement = weighingManagementService.selectOne(new EntityWrapper<WeighingManagement>()
                     .eq("relation_id", qualityInspectionManagement.getRelationId())