|
|
|
@ -60,8 +60,10 @@ import com.jianshui.queue.utils.RedisQueueUtil; |
|
|
|
|
import com.jianshui.storage.domain.StorageUrlDTO; |
|
|
|
|
import com.jianshui.storage.factory.StorageFactory; |
|
|
|
|
import com.jianshui.storage.service.IStorageService; |
|
|
|
|
import com.jianshui.system.domain.CompanyserviceProp; |
|
|
|
|
import com.jianshui.system.domain.InvoiceAllApiLog; |
|
|
|
|
import com.jianshui.system.mapper.CompanyserviceMapper; |
|
|
|
|
import com.jianshui.system.mapper.CompanyservicePropMapper; |
|
|
|
|
import com.jianshui.system.mapper.InvoiceAllApiLogMapper; |
|
|
|
|
import com.jianshui.system.service.ISysConfigService; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
@ -107,6 +109,9 @@ public class ElephantInvoiceApiV6ServiceImpl implements IInvoiceApiService { |
|
|
|
|
@Autowired |
|
|
|
|
private CompanyserviceMapper companyserviceMapper; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private CompanyservicePropMapper companyservicePropMapper; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private StorageFactory storageFactory; |
|
|
|
|
|
|
|
|
@ -152,6 +157,21 @@ public class ElephantInvoiceApiV6ServiceImpl implements IInvoiceApiService { |
|
|
|
|
// 订单头信息
|
|
|
|
|
DDTXX ddtxx = new DDTXX(billInfo); |
|
|
|
|
|
|
|
|
|
CompanyserviceProp companyserviceProp = companyservicePropMapper.selectPropByKey(companyservice.getCompanyid(), "account_show"); |
|
|
|
|
|
|
|
|
|
if (companyserviceProp != null && "1".equals(companyserviceProp.getValue())){ |
|
|
|
|
StringBuilder bz = new StringBuilder(); |
|
|
|
|
if (StringUtils.isNotBlank(ddtxx.getBZ())){ |
|
|
|
|
bz.append(ddtxx.getBZ()+"\n"); |
|
|
|
|
} |
|
|
|
|
bz.append("购方开户银行:"+ddtxx.getGMFYH()+"\t银行账号:"+ddtxx.getGMFYH()+"\n"); |
|
|
|
|
bz.append("销方开户银行:"+ddtxx.getGMFYH()+"\t银行账号:"+ddtxx.getGMFYH()); |
|
|
|
|
ddtxx.setBZ(bz.toString()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 订单票面信息
|
|
|
|
|
DDPCXX ddpcxx = new DDPCXX(); |
|
|
|
|
// ddpcxx.setKPFS("1"); // 设置开票方式为手动开票
|
|
|
|
@ -2543,5 +2563,4 @@ public class ElephantInvoiceApiV6ServiceImpl implements IInvoiceApiService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|