Compare commits
No commits in common. "a8e0d79bc4b3097227f8aadcbc972e815e58775f" and "b49326d5e2726987866a8d3dcf6e0f65a0e19423" have entirely different histories.
a8e0d79bc4
...
b49326d5e2
|
@ -32,7 +32,6 @@
|
||||||
,shortname
|
,shortname
|
||||||
,ts
|
,ts
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-BdDefdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdDefdocEntity">
|
<select id="entity_list_base" resultMap="get-BdDefdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdDefdocEntity">
|
||||||
select
|
select
|
||||||
|
|
|
@ -178,7 +178,6 @@
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!--通过主键删除-->
|
<!--通过主键删除-->
|
||||||
<delete id="entity_delete">
|
<delete id="entity_delete">
|
||||||
delete
|
delete
|
||||||
|
|
|
@ -510,9 +510,6 @@ public class ConsignmachiningCinfurmIn extends PluginBaseEntity {
|
||||||
|
|
||||||
ConsignmachiningInBodyDto consignmachiningInBodyDto = new ConsignmachiningInBodyDto();
|
ConsignmachiningInBodyDto consignmachiningInBodyDto = new ConsignmachiningInBodyDto();
|
||||||
consignmachiningInBodyDto.setCinventoryid(bdInvmandocEntity.getPkInvmandoc());//存货主键
|
consignmachiningInBodyDto.setCinventoryid(bdInvmandocEntity.getPkInvmandoc());//存货主键
|
||||||
// if ("40756".equals(new BigDecimal(receivedQty).stripTrailingZeros().toPlainString())) {
|
|
||||||
// System.out.println("111");
|
|
||||||
// }
|
|
||||||
consignmachiningInBodyDto.setNinnum(new BigDecimal(receivedQty).stripTrailingZeros().toPlainString());//实收数量
|
consignmachiningInBodyDto.setNinnum(new BigDecimal(receivedQty).stripTrailingZeros().toPlainString());//实收数量
|
||||||
consignmachiningInBodyDto.setNprice(noriginalcurprice.stripTrailingZeros().toPlainString());//单价(含税单价)
|
consignmachiningInBodyDto.setNprice(noriginalcurprice.stripTrailingZeros().toPlainString());//单价(含税单价)
|
||||||
consignmachiningInBodyDto.setCsourcetype("61");//来源单据类型
|
consignmachiningInBodyDto.setCsourcetype("61");//来源单据类型
|
||||||
|
@ -534,20 +531,6 @@ public class ConsignmachiningCinfurmIn extends PluginBaseEntity {
|
||||||
consignmachiningInBodyDtoArrayList.add(consignmachiningInBodyDto);
|
consignmachiningInBodyDtoArrayList.add(consignmachiningInBodyDto);
|
||||||
}
|
}
|
||||||
|
|
||||||
//加个小验证,如果Cfirstbillbid、Cfirstbillhid、Cfirsttype其中之一没有传,则抛出异常
|
|
||||||
for (int j = 0; j < consignmachiningInBodyDtoArrayList.size(); j++) {
|
|
||||||
ConsignmachiningInBodyDto consignmachiningInBodyDto = consignmachiningInBodyDtoArrayList.get(j);
|
|
||||||
if (consignmachiningInBodyDto.getCfirstbillbid() == null || "".equals(consignmachiningInBodyDto.getCfirstbillbid())) {
|
|
||||||
Assert.state(false, "cfirstbillbid不能为空!");
|
|
||||||
}
|
|
||||||
if (consignmachiningInBodyDto.getCfirstbillhid() == null || "".equals(consignmachiningInBodyDto.getCfirstbillhid())) {
|
|
||||||
Assert.state(false, "cfirstbillhid不能为空!");
|
|
||||||
}
|
|
||||||
if (consignmachiningInBodyDto.getCfirsttype() == null || "".equals(consignmachiningInBodyDto.getCfirsttype())) {
|
|
||||||
Assert.state(false, "cfirsttype不能为空!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
List<ConsignmachiningInHeadBodyDto> consignmachiningInHeadBodyDtoArrayList = new ArrayList<>();
|
List<ConsignmachiningInHeadBodyDto> consignmachiningInHeadBodyDtoArrayList = new ArrayList<>();
|
||||||
ConsignmachiningInHeadBodyDto consignmachiningInHeadBodyDto = new ConsignmachiningInHeadBodyDto();
|
ConsignmachiningInHeadBodyDto consignmachiningInHeadBodyDto = new ConsignmachiningInHeadBodyDto();
|
||||||
consignmachiningInHeadBodyDto.setParentvo(poOrderParentDto);
|
consignmachiningInHeadBodyDto.setParentvo(poOrderParentDto);
|
||||||
|
@ -559,10 +542,7 @@ public class ConsignmachiningCinfurmIn extends PluginBaseEntity {
|
||||||
//2024年8月26日 14:41:46 委外入库核销方式传不了!已经提交总部,2024年8月30日 14:05:25 已经解决,和妮姐确认不用填写
|
//2024年8月26日 14:41:46 委外入库核销方式传不了!已经提交总部,2024年8月30日 14:05:25 已经解决,和妮姐确认不用填写
|
||||||
//2024年8月26日 14:42:19 无法超委外订单数量入库!已经提交给总部
|
//2024年8月26日 14:42:19 无法超委外订单数量入库!已经提交给总部
|
||||||
//2024年9月3日 18:28:24 退货不会出现超订单出库的情况
|
//2024年9月3日 18:28:24 退货不会出现超订单出库的情况
|
||||||
//2025-05-15 15:51:04 记录日志信息
|
IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(JSON.toJSONString(stringStringMap));
|
||||||
String interfaceInputParameters = JSON.toJSONString(stringStringMap);
|
|
||||||
logger.info("O采购入库确认单(委外加工类型)生成U8C委外入库单(关联原单) 接口入参:{}", interfaceInputParameters);
|
|
||||||
IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(interfaceInputParameters);
|
|
||||||
|
|
||||||
String cgeneralhid = null;
|
String cgeneralhid = null;
|
||||||
String vbillcode = null;
|
String vbillcode = null;
|
||||||
|
|
|
@ -520,20 +520,6 @@ public class ConsignmachiningInReturn extends PluginBaseEntity {
|
||||||
consignmachiningInBodyDtoArrayList.add(consignmachiningInBodyDto);
|
consignmachiningInBodyDtoArrayList.add(consignmachiningInBodyDto);
|
||||||
}
|
}
|
||||||
|
|
||||||
//加个小验证,如果Cfirstbillbid、Cfirstbillhid、Cfirsttype其中之一没有传,则抛出异常
|
|
||||||
for (int j = 0; j < consignmachiningInBodyDtoArrayList.size(); j++) {
|
|
||||||
ConsignmachiningInBodyDto consignmachiningInBodyDto = consignmachiningInBodyDtoArrayList.get(j);
|
|
||||||
if (consignmachiningInBodyDto.getCfirstbillbid() == null || "".equals(consignmachiningInBodyDto.getCfirstbillbid())) {
|
|
||||||
Assert.state(false, "cfirstbillbid不能为空!");
|
|
||||||
}
|
|
||||||
if (consignmachiningInBodyDto.getCfirstbillhid() == null || "".equals(consignmachiningInBodyDto.getCfirstbillhid())) {
|
|
||||||
Assert.state(false, "cfirstbillhid不能为空!");
|
|
||||||
}
|
|
||||||
if (consignmachiningInBodyDto.getCfirsttype() == null || "".equals(consignmachiningInBodyDto.getCfirsttype())) {
|
|
||||||
Assert.state(false, "cfirsttype不能为空!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
List<ConsignmachiningInHeadBodyDto> consignmachiningInHeadBodyDtoArrayList = new ArrayList<>();
|
List<ConsignmachiningInHeadBodyDto> consignmachiningInHeadBodyDtoArrayList = new ArrayList<>();
|
||||||
ConsignmachiningInHeadBodyDto consignmachiningInHeadBodyDto = new ConsignmachiningInHeadBodyDto();
|
ConsignmachiningInHeadBodyDto consignmachiningInHeadBodyDto = new ConsignmachiningInHeadBodyDto();
|
||||||
consignmachiningInHeadBodyDto.setParentvo(poOrderParentDto);
|
consignmachiningInHeadBodyDto.setParentvo(poOrderParentDto);
|
||||||
|
@ -545,9 +531,7 @@ public class ConsignmachiningInReturn extends PluginBaseEntity {
|
||||||
//2024年8月26日 14:41:46 委外入库核销方式传不了!已经提交总部,2024年8月30日 14:05:25 已经解决,和妮姐确认不用填写
|
//2024年8月26日 14:41:46 委外入库核销方式传不了!已经提交总部,2024年8月30日 14:05:25 已经解决,和妮姐确认不用填写
|
||||||
//2024年8月26日 14:42:19 无法超委外订单数量入库!已经提交给总部
|
//2024年8月26日 14:42:19 无法超委外订单数量入库!已经提交给总部
|
||||||
//2024年9月3日 18:28:24 退货不会出现超订单出库的情况
|
//2024年9月3日 18:28:24 退货不会出现超订单出库的情况
|
||||||
String interfaceInputParameters = JSON.toJSONString(stringStringMap);
|
IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(JSON.toJSONString(stringStringMap));
|
||||||
logger.info("OFS采退出库单生成U8C红字委外入库单(关联原委外订单) 接口入参:{}", interfaceInputParameters);
|
|
||||||
IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(interfaceInputParameters);
|
|
||||||
|
|
||||||
String cgeneralhid = null;
|
String cgeneralhid = null;
|
||||||
String vbillcode = null;
|
String vbillcode = null;
|
||||||
|
|
|
@ -513,7 +513,7 @@ public class ProxyPurchaseWarehousWarehouse extends PluginBaseEntity {
|
||||||
|
|
||||||
for (int j = 0; j < details.size(); j++) {
|
for (int j = 0; j < details.size(); j++) {
|
||||||
OFSReceiptConfirmSearchResponse.Detail detail = details.get(j);
|
OFSReceiptConfirmSearchResponse.Detail detail = details.get(j);
|
||||||
|
|
||||||
if ("0".equals(new BigDecimal(detail.getReceivedQty()).stripTrailingZeros().toPlainString())) {
|
if ("0".equals(new BigDecimal(detail.getReceivedQty()).stripTrailingZeros().toPlainString())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1376,7 +1376,7 @@ public class SoSaleOutPluginInitializerToB extends PluginBaseEntity {
|
||||||
Assert.notNull(pkCorp, "发货公司主键不能为空");
|
Assert.notNull(pkCorp, "发货公司主键不能为空");
|
||||||
|
|
||||||
BdInvmandocEntity bdInvmandocEntity = new BdInvmandocEntity();
|
BdInvmandocEntity bdInvmandocEntity = new BdInvmandocEntity();
|
||||||
bdInvmandocEntity.setInvcode(detailsDto.getSkuCode().trim());
|
bdInvmandocEntity.setInvcode(detailsDto.getSkuCode());
|
||||||
bdInvmandocEntity.setPkCorp(pkCorp);
|
bdInvmandocEntity.setPkCorp(pkCorp);
|
||||||
List<BdInvmandocEntity> bdInvmandocEntity2 = iBdInvmandocDao.queryBdInvmandocByInvcodeList(bdInvmandocEntity);
|
List<BdInvmandocEntity> bdInvmandocEntity2 = iBdInvmandocDao.queryBdInvmandocByInvcodeList(bdInvmandocEntity);
|
||||||
if (bdInvmandocEntity2.size() == 0) {
|
if (bdInvmandocEntity2.size() == 0) {
|
||||||
|
|
|
@ -2180,13 +2180,9 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
String sceneType = "tran";
|
String sceneType = "tran";
|
||||||
List<SonDetailsDto> sonDetailsDtoList = queryBasicArchivesStock(headerDetailsDtos, sceneType);
|
List<SonDetailsDto> sonDetailsDtoList = queryBasicArchivesStock(headerDetailsDtos, sceneType);
|
||||||
//分组汇总:红蓝
|
//分组汇总:红蓝
|
||||||
// String dimension = "1001&tm-intoyou&intoyou-tmdg&6973391732529&SALES&002";
|
Map<String, List<SonDetailsDto>> summaryDimensionMap = groupSummaryStock(sonDetailsDtoList, null);
|
||||||
String dimension = null;
|
|
||||||
Map<String, List<SonDetailsDto>> summaryDimensionMap = groupSummaryStock(sonDetailsDtoList, dimension);
|
|
||||||
//分组汇总:蓝
|
//分组汇总:蓝
|
||||||
// Map<String, List<SonDetailsDto>> summaryDimensionMap2 = groupSummaryStock(sonDetailsDtoList, "2");
|
// Map<String, List<SonDetailsDto>> summaryDimensionMap2 = groupSummaryStock(sonDetailsDtoList, "2");
|
||||||
// String names = summaryDimensionMap.get(dimension).stream().map(SonDetailsDto::getId).collect(Collectors.joining(","));
|
|
||||||
// System.out.println(names);
|
|
||||||
|
|
||||||
//TOC业务流程-TOC冲回发出商品
|
//TOC业务流程-TOC冲回发出商品
|
||||||
BdBusitypeEntity bdBusitypeEntity = u8cOperationFlowV2();
|
BdBusitypeEntity bdBusitypeEntity = u8cOperationFlowV2();
|
||||||
|
|
|
@ -835,11 +835,6 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
||||||
// BdInvclEntity bdInvclEntity = queryU8CEntityUtil.queryBdInvbasdocByBdInvcl(bdInvbasdocEntity);
|
// BdInvclEntity bdInvclEntity = queryU8CEntityUtil.queryBdInvbasdocByBdInvcl(bdInvbasdocEntity);
|
||||||
// BdCostsubjEntity bdCostsubjEntity = queryU8CEntityUtil.queryBdCostsubj(bdInvclEntity);
|
// BdCostsubjEntity bdCostsubjEntity = queryU8CEntityUtil.queryBdCostsubj(bdInvclEntity);
|
||||||
|
|
||||||
//如果实退数量=0,则过滤掉,不增加到明细列表中
|
|
||||||
if ("0".equals(new BigDecimal(stockinB.getReceivedQty()).stripTrailingZeros().toPlainString())) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 如果是海外的店铺,则税率为零
|
// 如果是海外的店铺,则税率为零
|
||||||
String exportVaue = ExportConstant.exportConstant.get(header.getStoreCode());
|
String exportVaue = ExportConstant.exportConstant.get(header.getStoreCode());
|
||||||
if (exportVaue != null) {
|
if (exportVaue != null) {
|
||||||
|
@ -917,29 +912,27 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
||||||
saleorderRequestDtoList.add(saleorderRequestDto);
|
saleorderRequestDtoList.add(saleorderRequestDto);
|
||||||
|
|
||||||
synchronized (PUSH_LOCK1) {
|
synchronized (PUSH_LOCK1) {
|
||||||
if (saleorderRequestChildrenDtoList.size() > 0) {
|
Boolean aBoolean = checkTobOrder(header.getId(), header.getCode());
|
||||||
Boolean aBoolean = checkTobOrder(header.getId(), header.getCode());
|
if (!aBoolean) {
|
||||||
if (!aBoolean) {
|
logger.error("经过SQL查询判断,在U8C(红字)销售订单不存在OFS入库单号为:{} OFS入库主键为:{}的单据,将调用U8C接口执行推送!", header.getCode(), header.getId());
|
||||||
logger.error("经过SQL查询判断,在U8C(红字)销售订单不存在OFS入库单号为:{} OFS入库主键为:{}的单据,将调用U8C接口执行推送!", header.getCode(), header.getId());
|
Map<String, List<SaleorderRequestDto>> stringStringMap = new HashMap<>();
|
||||||
Map<String, List<SaleorderRequestDto>> stringStringMap = new HashMap<>();
|
stringStringMap.put("saleorder", saleorderRequestDtoList);
|
||||||
stringStringMap.put("saleorder", saleorderRequestDtoList);
|
SoSaleResultRootDto soSaleResultRootDto = sendU8CTOCOrder(JSON.toJSONString(stringStringMap));
|
||||||
SoSaleResultRootDto soSaleResultRootDto = sendU8CTOCOrder(JSON.toJSONString(stringStringMap));
|
String vreceiptcode = null;
|
||||||
String vreceiptcode = null;
|
String csaleid = null;
|
||||||
String csaleid = null;
|
String pk_corp = null;
|
||||||
String pk_corp = null;
|
if (soSaleResultRootDto != null) {
|
||||||
if (soSaleResultRootDto != null) {
|
SoSaleResultHeadDto parentvo = soSaleResultRootDto.getParentvo();
|
||||||
SoSaleResultHeadDto parentvo = soSaleResultRootDto.getParentvo();
|
List<SoSaleResultBodyDto> childrenvo = soSaleResultRootDto.getChildrenvo();
|
||||||
List<SoSaleResultBodyDto> childrenvo = soSaleResultRootDto.getChildrenvo();
|
vreceiptcode = parentvo.getVreceiptcode();
|
||||||
vreceiptcode = parentvo.getVreceiptcode();
|
csaleid = parentvo.getCsaleid();
|
||||||
csaleid = parentvo.getCsaleid();
|
pk_corp = parentvo.getPk_corp();
|
||||||
pk_corp = parentvo.getPk_corp();
|
|
||||||
}
|
|
||||||
logger.info("TOB红字销售订单编号:{} 销售订单主键:{} 销售公司:{}", vreceiptcode, csaleid, pk_corp);
|
|
||||||
//记录成功
|
|
||||||
updateSuccessOrFail1(details, "Y", "success", vreceiptcode, csaleid);
|
|
||||||
} else {
|
|
||||||
logger.error("经过SQL查询判断,在U8C(红字)销售订单存在OFS入库单号为:{} OFS入库主键为:{}的单据,为了避免造成单据重复,不推送到U8C!", header.getCode(), header.getId());
|
|
||||||
}
|
}
|
||||||
|
logger.info("TOB红字销售订单编号:{} 销售订单主键:{} 销售公司:{}", vreceiptcode, csaleid, pk_corp);
|
||||||
|
//记录成功
|
||||||
|
updateSuccessOrFail1(details, "Y", "success", vreceiptcode, csaleid);
|
||||||
|
} else {
|
||||||
|
logger.error("经过SQL查询判断,在U8C(红字)销售订单存在OFS入库单号为:{} OFS入库主键为:{}的单据,为了避免造成单据重复,不推送到U8C!", header.getCode(), header.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -1648,9 +1641,9 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
||||||
Assert.notNull(detailsDto, "sonDetailsDto不能为空");
|
Assert.notNull(detailsDto, "sonDetailsDto不能为空");
|
||||||
Assert.notNull(detailsDto.getSkuCode(), "O存货商家编码不能为空");
|
Assert.notNull(detailsDto.getSkuCode(), "O存货商家编码不能为空");
|
||||||
Assert.notNull(pkCorp, "发货公司主键不能为空");
|
Assert.notNull(pkCorp, "发货公司主键不能为空");
|
||||||
|
|
||||||
BdInvmandocEntity bdInvmandocEntity = new BdInvmandocEntity();
|
BdInvmandocEntity bdInvmandocEntity = new BdInvmandocEntity();
|
||||||
bdInvmandocEntity.setInvcode(detailsDto.getSkuCode().trim());
|
bdInvmandocEntity.setInvcode(detailsDto.getSkuCode());
|
||||||
bdInvmandocEntity.setPkCorp(pkCorp);
|
bdInvmandocEntity.setPkCorp(pkCorp);
|
||||||
List<BdInvmandocEntity> bdInvmandocEntity2 = iBdInvmandocDao.queryBdInvmandocByInvcodeList(bdInvmandocEntity);
|
List<BdInvmandocEntity> bdInvmandocEntity2 = iBdInvmandocDao.queryBdInvmandocByInvcodeList(bdInvmandocEntity);
|
||||||
if (bdInvmandocEntity2.size() == 0) {
|
if (bdInvmandocEntity2.size() == 0) {
|
||||||
|
@ -1931,11 +1924,6 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
||||||
// BdInvclEntity bdInvclEntity = queryU8CEntityUtil.queryBdInvbasdocByBdInvcl(bdInvbasdocEntity);
|
// BdInvclEntity bdInvclEntity = queryU8CEntityUtil.queryBdInvbasdocByBdInvcl(bdInvbasdocEntity);
|
||||||
// BdCostsubjEntity bdCostsubjEntity = queryU8CEntityUtil.queryBdCostsubj(bdInvclEntity);
|
// BdCostsubjEntity bdCostsubjEntity = queryU8CEntityUtil.queryBdCostsubj(bdInvclEntity);
|
||||||
|
|
||||||
//如果实入数量为0则过滤掉
|
|
||||||
if ("0".equals(new BigDecimal(stockinB.getReceivedQty()).stripTrailingZeros().toPlainString())) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
//计算公式
|
//计算公式
|
||||||
StringBuffer calculationFormula = new StringBuffer();
|
StringBuffer calculationFormula = new StringBuffer();
|
||||||
// calculationFormula.append("O实退金额");
|
// calculationFormula.append("O实退金额");
|
||||||
|
@ -1992,27 +1980,25 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
||||||
|
|
||||||
//推送到U8C生成销售发票
|
//推送到U8C生成销售发票
|
||||||
synchronized (PUSH_LOCK2) {
|
synchronized (PUSH_LOCK2) {
|
||||||
if (salesInvoiceBodyDtoList.size() > 0) {
|
Boolean aBoolean = checkTobSalesInvoice(header.getId(), header.getCode());
|
||||||
Boolean aBoolean = checkTobSalesInvoice(header.getId(), header.getCode());
|
if (!aBoolean) {
|
||||||
if (!aBoolean) {
|
logger.error("经过SQL查询判断,在U8C红字销售发票中不存在OFS入库单号为:{} OFS入库主键为:{}的单据,将调用U8C接口执行推送!", header.getCode(), header.getId());
|
||||||
logger.error("经过SQL查询判断,在U8C红字销售发票中不存在OFS入库单号为:{} OFS入库主键为:{}的单据,将调用U8C接口执行推送!", header.getCode(), header.getId());
|
SaleinvoiceDto saleinvoiceDto = sendU8CTOCSoSaleinvoiceB(JSON.toJSONString(stringListMap));
|
||||||
SaleinvoiceDto saleinvoiceDto = sendU8CTOCSoSaleinvoiceB(JSON.toJSONString(stringListMap));
|
String vreceiptcode = null;
|
||||||
String vreceiptcode = null;
|
String csaleid = null;
|
||||||
String csaleid = null;
|
String pk_corp = null;
|
||||||
String pk_corp = null;
|
if (saleinvoiceDto != null && saleinvoiceDto.getParentvo() != null && saleinvoiceDto.getChildrenvo() != null) {
|
||||||
if (saleinvoiceDto != null && saleinvoiceDto.getParentvo() != null && saleinvoiceDto.getChildrenvo() != null) {
|
SaleinvoiceHeadDto parentvo = saleinvoiceDto.getParentvo();
|
||||||
SaleinvoiceHeadDto parentvo = saleinvoiceDto.getParentvo();
|
List<SaleinvoiceBodyDto> childrenvo = saleinvoiceDto.getChildrenvo();
|
||||||
List<SaleinvoiceBodyDto> childrenvo = saleinvoiceDto.getChildrenvo();
|
vreceiptcode = parentvo.getVreceiptcode();
|
||||||
vreceiptcode = parentvo.getVreceiptcode();
|
csaleid = parentvo.getCsaleid();
|
||||||
csaleid = parentvo.getCsaleid();
|
pk_corp = parentvo.getPk_corp();
|
||||||
pk_corp = parentvo.getPk_corp();
|
|
||||||
}
|
|
||||||
logger.info("TOB销售发票(红字)生成成功 编码:{} 主键:{} 发票公司:{}", vreceiptcode, csaleid, pk_corp);
|
|
||||||
//记录成功
|
|
||||||
updateSuccessOrFail2(details, "Y", "success", vreceiptcode, csaleid);
|
|
||||||
} else {
|
|
||||||
logger.error("经过SQL查询判断,在U8C红字销售发票中已经存在OFS入库单号为:{} OFS入库主键为:{}的单据,为了避免造成单据重复,不推送到U8C!", header.getCode(), header.getId());
|
|
||||||
}
|
}
|
||||||
|
logger.info("TOB销售发票(红字)生成成功 编码:{} 主键:{} 发票公司:{}", vreceiptcode, csaleid, pk_corp);
|
||||||
|
//记录成功
|
||||||
|
updateSuccessOrFail2(details, "Y", "success", vreceiptcode, csaleid);
|
||||||
|
} else {
|
||||||
|
logger.error("经过SQL查询判断,在U8C红字销售发票中已经存在OFS入库单号为:{} OFS入库主键为:{}的单据,为了避免造成单据重复,不推送到U8C!", header.getCode(), header.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -30,14 +30,14 @@ public class ConsignmachiningCinfurmInTest {
|
||||||
// consignmachiningCinfurmIn.startImplementByTime("2024-01-02 00:00:00", "2024-01-02 23:59:59");
|
// consignmachiningCinfurmIn.startImplementByTime("2024-01-02 00:00:00", "2024-01-02 23:59:59");
|
||||||
|
|
||||||
// String code = "LETS-RE2024111400002771-confirm";
|
// String code = "LETS-RE2024111400002771-confirm";
|
||||||
String code = "LETS-RE2025040700001976-confirm";
|
// String code = "LETS-RE2024112900000538-confirm";
|
||||||
consignmachiningCinfurmIn.startImplementByCode(code);
|
// consignmachiningCinfurmIn.startImplementByCode(code);
|
||||||
|
|
||||||
// if ("HZYX,YD,NMNS,YX,KS,YNS,HJ".contains("121212")) {
|
if ("HZYX,YD,NMNS,YX,KS,YNS,HJ".contains("121212")) {
|
||||||
// System.out.println("存在");
|
System.out.println("存在");
|
||||||
// } else {
|
} else {
|
||||||
// System.out.println("不存在");
|
System.out.println("不存在");
|
||||||
// }
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ class SoSaleOutPluginInitializerToCTest {
|
||||||
// String s = "LETS-SH2025032200027982";
|
// String s = "LETS-SH2025032200027982";
|
||||||
// soSaleOutPluginInitializerToC.startImplementStockByCode(s, "stock");
|
// soSaleOutPluginInitializerToC.startImplementStockByCode(s, "stock");
|
||||||
|
|
||||||
soSaleOutPluginInitializerToC.startImplementTranByTime("2025-05-08 00:00:00", "2025-05-08 23:59:59", "2");
|
// soSaleOutPluginInitializerToC.startImplementStockByTime("2024-09-24 16:35:43","2024-09-24 16:35:45");
|
||||||
|
|
||||||
// List<com.hzya.frame.ttxofs.dto.ofssalesordersearch.HeaderDetailsDto> headerDetailsDtoArrayList = new ArrayList<>();
|
// List<com.hzya.frame.ttxofs.dto.ofssalesordersearch.HeaderDetailsDto> headerDetailsDtoArrayList = new ArrayList<>();
|
||||||
// QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
// QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
||||||
|
@ -111,7 +111,7 @@ class SoSaleOutPluginInitializerToCTest {
|
||||||
// soSaleOutPluginInitializerToC.startImplementStockByCode(s, "tran");
|
// soSaleOutPluginInitializerToC.startImplementStockByCode(s, "tran");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// soSaleOutPluginInitializerToC.startImplementStockByTime("2025-02-18 11:54:18", "2025-02-18 11:54:18", "0");
|
soSaleOutPluginInitializerToC.startImplementStockByTime("2025-02-18 11:54:18", "2025-02-18 11:54:18", "0");
|
||||||
// String code = "LETS-SH2024052100015139";
|
// String code = "LETS-SH2024052100015139";
|
||||||
// soSaleOutPluginInitializerToC.startImplementStockByCode(code, "tran");
|
// soSaleOutPluginInitializerToC.startImplementStockByCode(code, "tran");
|
||||||
|
|
||||||
|
|
|
@ -37,9 +37,7 @@ public class SoSaleReturnPluginInitializerToBTest {
|
||||||
|
|
||||||
// soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2024112200000301", "tran");
|
// soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2024112200000301", "tran");
|
||||||
|
|
||||||
// soSaleReturnPluginInitializerToB.startImplementByStockTime("2024-11-29 00:00:00", "2024-11-30 23:59:59");
|
soSaleReturnPluginInitializerToB.startImplementByStockTime("2024-11-29 00:00:00", "2024-11-30 23:59:59");
|
||||||
|
|
||||||
soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2025042200001200", "stock");
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,8 +43,8 @@ public class SoSaleReturnPluginInitializerToCTest {
|
||||||
// soSaleReturnPluginInitializerToC.startImplement(null, null);
|
// soSaleReturnPluginInitializerToC.startImplement(null, null);
|
||||||
try {
|
try {
|
||||||
//带优惠金额场景
|
//带优惠金额场景
|
||||||
// String code = "LETS-RE2025042100000200";
|
String code = "LETS-RE2025042100000200";
|
||||||
// soSaleReturnPluginInitializerToC.startImplementByCode(code, "stock");
|
soSaleReturnPluginInitializerToC.startImplementByCode(code, "stock");
|
||||||
|
|
||||||
//无优惠金额场景
|
//无优惠金额场景
|
||||||
// String code = "LETS-RE2025031900000002";
|
// String code = "LETS-RE2025031900000002";
|
||||||
|
@ -65,7 +65,7 @@ public class SoSaleReturnPluginInitializerToCTest {
|
||||||
// soSaleReturnPluginInitializerToC.startImplementStockByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time());
|
// soSaleReturnPluginInitializerToC.startImplementStockByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
soSaleReturnPluginInitializerToC.startImplementByTradeTime("2025-04-28 00:00:00", "2025-04-28 23:59:59", "2");
|
// soSaleReturnPluginInitializerToC.startImplementByTradeTime("2024-12-23 23:05:34", "2024-12-23 23:05:34", "2");
|
||||||
|
|
||||||
// soSaleReturnPluginInitializerToC.startImplementByCode("LETS-RE2025010900002384", "tran");
|
// soSaleReturnPluginInitializerToC.startImplementByCode("LETS-RE2025010900002384", "tran");
|
||||||
|
|
||||||
|
|
|
@ -57,13 +57,11 @@ public class DeleteU8cDataUtilTest {
|
||||||
// deleteU8cDataUtil.cancelSignatureIcGeneralHV2("0001A110000000001TH6");
|
// deleteU8cDataUtil.cancelSignatureIcGeneralHV2("0001A110000000001TH6");
|
||||||
//删除销售出库单 *
|
//删除销售出库单 *
|
||||||
// deleteU8cDataUtil.deleteIcGeneralH();
|
// deleteU8cDataUtil.deleteIcGeneralH();
|
||||||
// deleteU8cDataUtil.deleteIcGeneralHV2();
|
deleteU8cDataUtil.deleteIcGeneralHV2();
|
||||||
|
|
||||||
//取消签字销售订单 *
|
//取消签字销售订单 *
|
||||||
// deleteU8cDataUtil.cancelSignatureSoSale();
|
// deleteU8cDataUtil.cancelSignatureSoSale();
|
||||||
// deleteU8cDataUtil.cancelSignatureSoSaleV2();
|
// deleteU8cDataUtil.cancelSignatureSoSaleV2();
|
||||||
|
|
||||||
deleteU8cDataUtil.cancelSignatureSoSaleReadExcel();
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,8 +58,6 @@ public class DeleteU8cDataUtilTest2 {
|
||||||
//取消签字销售订单
|
//取消签字销售订单
|
||||||
// deleteU8cDataUtil.cancelSignatureSoSale();
|
// deleteU8cDataUtil.cancelSignatureSoSale();
|
||||||
|
|
||||||
//批量取消签字,并删除销售出库单
|
|
||||||
deleteU8cDataUtil.cancelSignatureSoSaleReadExcelV2();
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class DeleteU8cDataUtil {
|
||||||
//销售出库单签字 已测试
|
//销售出库单签字 已测试
|
||||||
// saleOutSign("'0001A110000000001TH6', '0001A1100000000VKCOK'");
|
// saleOutSign("'0001A110000000001TH6', '0001A1100000000VKCOK'");
|
||||||
|
|
||||||
// cancelSignatureSoSaleReadExcelV2();
|
cancelSignatureSoSaleReadExcelV2();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -897,8 +897,8 @@ public class DeleteU8cDataUtil {
|
||||||
*/
|
*/
|
||||||
public void cancelSignatureSoSaleReadExcelV2() {
|
public void cancelSignatureSoSaleReadExcelV2() {
|
||||||
try {
|
try {
|
||||||
// FileInputStream file = new FileInputStream(new File("D:\\server\\软件包\\U8C-需要删除的单据-带主键.xlsx"));
|
FileInputStream file = new FileInputStream(new File("D:\\server\\软件包\\U8C-需要删除的单据-带主键.xlsx"));
|
||||||
FileInputStream file = new FileInputStream(new File("/Users/liuyang/Desktop/U8C-需要删除的单据-带主键.xlsx"));
|
// FileInputStream file = new FileInputStream(new File("/Users/liuyang/Desktop/U8C-需要删除的单据-带主键.xlsx"));
|
||||||
Workbook workbook = new XSSFWorkbook(file);
|
Workbook workbook = new XSSFWorkbook(file);
|
||||||
|
|
||||||
List<String[]> data = new ArrayList<>();
|
List<String[]> data = new ArrayList<>();
|
||||||
|
@ -1030,13 +1030,13 @@ public class DeleteU8cDataUtil {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
// try {
|
try {
|
||||||
// //每10秒重新删除一次
|
//每10秒重新删除一次
|
||||||
// Thread.sleep(10000);
|
Thread.sleep(10000);
|
||||||
// cancelSignatureSoSaleReadExcelV2();
|
cancelSignatureSoSaleReadExcelV2();
|
||||||
// } catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// e.printStackTrace();
|
e.printStackTrace();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, List<DeleteU8cDataUtilEntity>> groupByDbilldatev2(List<DeleteU8cDataUtilEntity> soSaleinvoiceEntities) {
|
public Map<String, List<DeleteU8cDataUtilEntity>> groupByDbilldatev2(List<DeleteU8cDataUtilEntity> soSaleinvoiceEntities) {
|
||||||
|
|
Loading…
Reference in New Issue