|
|
@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollectionUtil; |
|
|
|
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.alibaba.fastjson.JSONObject; |
|
|
|
import com.dxhy.base.file.common.ExcelReadContext; |
|
|
|
import com.dxhy.base.file.common.ExcelReadContext; |
|
|
|
import com.dxhy.base.file.handle.ExcelReadHandle; |
|
|
|
import com.dxhy.base.file.handle.ExcelReadHandle; |
|
|
|
import com.dxhy.order.baseservice.config.BaseServiceConfig; |
|
|
|
import com.dxhy.order.baseservice.config.BaseServiceConfig; |
|
|
@ -3172,7 +3173,7 @@ public class SpecialInvoiceServiceImpl implements SpecialInvoiceService { |
|
|
|
try { |
|
|
|
try { |
|
|
|
InterfaceData interfaceData = ProtocolUtil.decodeData(data); |
|
|
|
InterfaceData interfaceData = ProtocolUtil.decodeData(data); |
|
|
|
log.info("{}方格信息表下载结果,解密后数据为:{}", LOGGER_MSG, interfaceData.getData()); |
|
|
|
log.info("{}方格信息表下载结果,解密后数据为:{}", LOGGER_MSG, interfaceData.getData()); |
|
|
|
FgRedInvoiceDownloadReqNew fgRedInvoiceDownloadReqBO = JsonUtils.getInstance().parseObject(interfaceData.getData(), FgRedInvoiceDownloadReqNew.class); |
|
|
|
FgRedInvoiceDownloadReqNew fgRedInvoiceDownloadReqBO = JSONObject.parseObject(interfaceData.getData(), FgRedInvoiceDownloadReqNew.class); |
|
|
|
|
|
|
|
|
|
|
|
boolean success = false; |
|
|
|
boolean success = false; |
|
|
|
if(ObjectUtil.isNotNull(fgRedInvoiceDownloadReqBO) && ObjectUtil.isNotEmpty(fgRedInvoiceDownloadReqBO.getRED_INVOICE_FORM_DOWNLOADS())){ |
|
|
|
if(ObjectUtil.isNotNull(fgRedInvoiceDownloadReqBO) && ObjectUtil.isNotEmpty(fgRedInvoiceDownloadReqBO.getRED_INVOICE_FORM_DOWNLOADS())){ |
|
|
@ -3441,4 +3442,13 @@ public class SpecialInvoiceServiceImpl implements SpecialInvoiceService { |
|
|
|
return hpResponseExtend; |
|
|
|
return hpResponseExtend; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
String data = "{\"bZSL\":\"1\",\"dQBS\":\"1\",\"rED_INVOICE_FORM_DOWNLOADS\":[{\"rED_INVOICE_FORM_DOWN_DETAIL\":[{\"dW\":\"\",\"fPHXZ\":\"\",\"gGXH\":\"\",\"hSBZ\":\"0\",\"lSLBS\":\"\",\"sE\":\"-186110.06\",\"sL\":\"0.090000\",\"sPBM\":\"3040502029902000000\",\"xMDJ\":\"0.000000\",\"xMJE\":\"-2067889.94\",\"xMMC\":\"*经营租赁*土地租赁费\",\"xMSL\":\"0.000000\",\"xMXH\":\"1\",\"yHZCBS\":\"0\",\"zXBM\":\"\",\"zZSTSGL\":\"\"}],\"rED_INVOICE_FORM_DOWN_HEAD\":{\"bMB_BBH\":\"51.0\",\"dSLBZ\":\"0\",\"fPZLDM\":\"\",\"gMF_MC\":\"山东新宝龙工业科技有限公司\",\"gMF_NSRSBH\":\"91370883MA3UQ8PK6W\",\"hJJE\":\"-2067889.94\",\"hJSE\":\"-186110.06\",\"sQBSCLSH\":\"667902776911231213094743\",\"sQDH\":\"667902776911231213094743\",\"sQSM\":\"Y\",\"tKSJ\":\"20231213\",\"xSF_MC\":\"兖矿集团唐村实业有限公司\",\"xSF_NSRSBH\":\"913708831661200960\",\"xXBBH\":\"3708832312005653\",\"xXBLX\":\"0\",\"xXBZT\":\"TZD0000\",\"yFP_DM\":\"0000000000\",\"yFP_HM\":\"00000000\",\"yYSBZ\":\"0000000000\",\"zTMS\":\"审核通过\"}}],\"sUCCESS_COUNT\":\"1\"}"; |
|
|
|
|
|
|
|
FgRedInvoiceDownloadReqNew fgRedInvoiceDownloadReqBO = JSONObject.parseObject(data, FgRedInvoiceDownloadReqNew.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean success = false; |
|
|
|
|
|
|
|
if(ObjectUtil.isNotNull(fgRedInvoiceDownloadReqBO) && ObjectUtil.isNotEmpty(fgRedInvoiceDownloadReqBO.getRED_INVOICE_FORM_DOWNLOADS())){ |
|
|
|
|
|
|
|
success = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|