|
|
@ -4,6 +4,7 @@ import cn.hutool.core.date.DateTime; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.RandomUtil; |
|
|
|
import cn.hutool.core.util.RandomUtil; |
|
|
|
|
|
|
|
import com.dxhy.order.baseservice.config.BaseServiceConfig; |
|
|
|
import com.dxhy.order.constant.*; |
|
|
|
import com.dxhy.order.constant.*; |
|
|
|
import com.dxhy.order.model.InvoicePrintInfo; |
|
|
|
import com.dxhy.order.model.InvoicePrintInfo; |
|
|
|
import com.dxhy.order.model.OrderInvoiceInfo; |
|
|
|
import com.dxhy.order.model.OrderInvoiceInfo; |
|
|
@ -74,6 +75,9 @@ public class FangGeServiceImpl implements FangGeService { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private FangGeService fangGeService; |
|
|
|
private FangGeService fangGeService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private BaseServiceConfig baseServiceConfig; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void updateUploadRedInvoice(SpecialInvoiceReversalEntity entity) { |
|
|
|
public void updateUploadRedInvoice(SpecialInvoiceReversalEntity entity) { |
|
|
|
specialInvoiceReversalMapper.updateByPrimaryKeySelective(entity); |
|
|
|
specialInvoiceReversalMapper.updateByPrimaryKeySelective(entity); |
|
|
@ -279,7 +283,20 @@ public class FangGeServiceImpl implements FangGeService { |
|
|
|
spxxParams.add(spxxParam); |
|
|
|
spxxParams.add(spxxParam); |
|
|
|
tbSpxxParam.setJSPXX(spxxParams); |
|
|
|
tbSpxxParam.setJSPXX(spxxParams); |
|
|
|
// 调用税控接口,同步税盘信息
|
|
|
|
// 调用税控接口,同步税盘信息
|
|
|
|
HttpInvoiceRequestUtilFg.tbSpxx(invoiceConfig.configTbSpxxFg(), tbSpxxParam, OrderInfoEnum.TAX_EQUIPMENT_FGHX.getKey()); |
|
|
|
String url = invoiceConfig.configTbSpxxFg(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String fgSkKpShList = baseServiceConfig.getFgSkKpShList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(fgSkKpShList) && StringUtils.isNotBlank(xhfNsrsbh)) { |
|
|
|
|
|
|
|
String[] fgSkKpList = fgSkKpShList.split(ConfigureConstant.STRING_POINT2); |
|
|
|
|
|
|
|
for (String fgSkKp : fgSkKpList) { |
|
|
|
|
|
|
|
if (xhfNsrsbh.equals(fgSkKp)) { |
|
|
|
|
|
|
|
url = invoiceConfig.configTbSpxxFgJDC(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HttpInvoiceRequestUtilFg.tbSpxx(url, tbSpxxParam, OrderInfoEnum.TAX_EQUIPMENT_FGHX.getKey()); |
|
|
|
registrationCode.setSpzt(spzt); |
|
|
|
registrationCode.setSpzt(spzt); |
|
|
|
saveCodeToRedis(registrationCode); |
|
|
|
saveCodeToRedis(registrationCode); |
|
|
|
log.warn("{}同步税盘状态成功,当前税盘状态为:{}(0:在线,1:离线),税号:{},机器编号:{}", LOGGER_MSG, spzt, xhfNsrsbh, jqbh); |
|
|
|
log.warn("{}同步税盘状态成功,当前税盘状态为:{}(0:在线,1:离线),税号:{},机器编号:{}", LOGGER_MSG, spzt, xhfNsrsbh, jqbh); |
|
|
|