Browse Source

企业查询接口拦截修复

mashengyi 1 year ago
parent
commit
5f61078e76

+ 2 - 2
src/main/java/com/jkcredit/invoice/credit/interserver/CustomerInterLowerServiceImpl.java

@@ -255,9 +255,9 @@ public class CustomerInterLowerServiceImpl implements CustomerInterLowerService
                 return result;
             }
             if( 0 == cust.getBussinessType()){
-                taxpayerCode = jsonObject.getString("taxplayerCode");
-            }else{
                 taxpayerCode = jsonObject.getString("taxpayerCode");
+            }else if(2 == cust.getBussinessType()){
+                taxpayerCode = jsonObject.getString("taxplayerCode");
             }
             if (StringUtils.isEmpty(companyName) || StringUtils.isEmpty(taxpayerCode)) {