Kaynağa Gözat

20211028后端更新代码_2

mashengyi 3 yıl önce
ebeveyn
işleme
4e7c479946

+ 5 - 3
src/main/java/com/jkcredit/invoice/credit/custInterface/CustomerInterLowerServiceImpl.java

@@ -182,11 +182,13 @@ public class CustomerInterLowerServiceImpl implements CustomerInterLowerService
         log.info("[-CustomerInterLowerServiceImpl.customeInterRecQuery-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data);
         JSONObject jsonObject = JSONObject.parseObject(data);
         String companyName =  jsonObject.getString("companyName");//企业名称
-        String taxpayerCode = jsonObject.getString("taxpayerCode");//企业税号
-        if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyName) || StringUtils.isEmpty(taxpayerCode)){
+        String taxpayerCode = jsonObject.getString("taxplayerCode");//企业税号
+        if(StringUtils.isEmpty(data)|| null == jsonObject){
             return  result;
         }
-
+        if( StringUtils.isEmpty(companyName) && StringUtils.isEmpty(taxpayerCode)){
+             return  result;
+         }
 
         CustomerRec customerRec = new CustomerRec();
         customerRec.setCompanyName(companyName);