|
@@ -5,6 +5,7 @@ import com.jkcredit.invoice.common.DataResult;
|
|
|
import com.jkcredit.invoice.mapper.customer.CustomerMapper;
|
|
|
import com.jkcredit.invoice.mapper.customer.CustomerRecMapper;
|
|
|
import com.jkcredit.invoice.model.entity.customer.Customer;
|
|
|
+import com.jkcredit.invoice.model.entity.customer.CustomerCarRec;
|
|
|
import com.jkcredit.invoice.model.entity.customer.CustomerRec;
|
|
|
import com.jkcredit.invoice.service.customer.CustomerService;
|
|
|
import com.jkcredit.invoice.service.lowerservice.CustomeLowerService;
|
|
@@ -240,10 +241,24 @@ public class CustomerInterLowerServiceImpl implements CustomerInterLowerService
|
|
|
//企业名称
|
|
|
String companyName = jsonObject.getString("companyName");
|
|
|
//企业税号
|
|
|
- String taxpayerCode = jsonObject.getString("taxplayerCode");
|
|
|
+ String taxpayerCode = "";
|
|
|
if (StringUtils.isEmpty(data) || null == jsonObject) {
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ CustomerCarRec customerCarRec = new CustomerCarRec();
|
|
|
+ customerCarRec.setCustomerName(appKey);
|
|
|
+ Customer cust = customerMapper.selectByCustomerName(appKey);
|
|
|
+ if(null == cust){
|
|
|
+ result.setMsg("查询错误");
|
|
|
+ result.setCode(9998);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ if( 0 == cust.getBussinessType()){
|
|
|
+ taxpayerCode = jsonObject.getString("taxplayerCode");
|
|
|
+ }else{
|
|
|
+ taxpayerCode = jsonObject.getString("taxpayerCode");
|
|
|
+ }
|
|
|
if (StringUtils.isEmpty(companyName) || StringUtils.isEmpty(taxpayerCode)) {
|
|
|
|
|
|
result.setMsg("查询错误");
|