|
|
@ -27,6 +27,8 @@ import com.jianshui.invoice.domain.dto.api.jcsk.add.InvoiceAllAddmxListTwoDTO; |
|
|
|
import com.jianshui.invoice.mapper.*; |
|
|
|
import com.jianshui.invoice.mapper.*; |
|
|
|
import com.jianshui.invoice.service.IInvoiceApiService; |
|
|
|
import com.jianshui.invoice.service.IInvoiceApiService; |
|
|
|
import com.jianshui.invoice.utils.aisino.console.AisinoConsoleUtil; |
|
|
|
import com.jianshui.invoice.utils.aisino.console.AisinoConsoleUtil; |
|
|
|
|
|
|
|
import com.jianshui.system.domain.InvoiceAllApiLog; |
|
|
|
|
|
|
|
import com.jianshui.system.mapper.InvoiceAllApiLogMapper; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
@ -54,6 +56,8 @@ public class JcskInvoiceApiServiceImpl implements IInvoiceApiService { |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private RedinfoMapper redinfoMapper; |
|
|
|
private RedinfoMapper redinfoMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private InvoiceAllApiLogMapper allApiLogMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -88,7 +92,7 @@ public class JcskInvoiceApiServiceImpl implements IInvoiceApiService { |
|
|
|
for (InvoiceAllAddmxListTwoDTO addmxListDTO : mxList) { |
|
|
|
for (InvoiceAllAddmxListTwoDTO addmxListDTO : mxList) { |
|
|
|
ValidateUtils.validate(addmxListDTO); |
|
|
|
ValidateUtils.validate(addmxListDTO); |
|
|
|
} |
|
|
|
} |
|
|
|
// 2022/12/12 现在只是倒下手,那么就是只存一下就行,返回的也是存。不用转回去。
|
|
|
|
|
|
|
|
// 报文转换存储
|
|
|
|
// 报文转换存储
|
|
|
|
billInfo.setCompanyId(companyservice.getCompanyid()); |
|
|
|
billInfo.setCompanyId(companyservice.getCompanyid()); |
|
|
|
billInfo.setServiceSupplierKey("JCSK"); |
|
|
|
billInfo.setServiceSupplierKey("JCSK"); |
|
|
@ -130,7 +134,7 @@ public class JcskInvoiceApiServiceImpl implements IInvoiceApiService { |
|
|
|
billInfoMapper.updateBillInfo(billInfoRes); |
|
|
|
billInfoMapper.updateBillInfo(billInfoRes); |
|
|
|
|
|
|
|
|
|
|
|
// 保存日志
|
|
|
|
// 保存日志
|
|
|
|
/*InvoiceAllApiLog allApiLog = new InvoiceAllApiLog(); |
|
|
|
InvoiceAllApiLog allApiLog = new InvoiceAllApiLog(); |
|
|
|
allApiLog.setUrl(WebServiceConstant.LZFPKJ); |
|
|
|
allApiLog.setUrl(WebServiceConstant.LZFPKJ); |
|
|
|
allApiLog.setSendMsg(""); |
|
|
|
allApiLog.setSendMsg(""); |
|
|
|
allApiLog.setResultMsg(""); |
|
|
|
allApiLog.setResultMsg(""); |
|
|
@ -145,7 +149,7 @@ public class JcskInvoiceApiServiceImpl implements IInvoiceApiService { |
|
|
|
allApiLogMapper.insertInvoiceAllApiLog(allApiLog); |
|
|
|
allApiLogMapper.insertInvoiceAllApiLog(allApiLog); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
);*/ |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return new HXResponse("0000",json); |
|
|
|
return new HXResponse("0000",json); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|