Compare commits
No commits in common. "a8e0d79bc4b3097227f8aadcbc972e815e58775f" and "b49326d5e2726987866a8d3dcf6e0f65a0e19423" have entirely different histories.
a8e0d79bc4
...
b49326d5e2
|
@ -32,7 +32,6 @@
|
|||
,shortname
|
||||
,ts
|
||||
</sql>
|
||||
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-BdDefdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdDefdocEntity">
|
||||
select
|
||||
|
|
|
@ -178,7 +178,6 @@
|
|||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete
|
||||
|
|
|
@ -510,9 +510,6 @@ public class ConsignmachiningCinfurmIn extends PluginBaseEntity {
|
|||
|
||||
ConsignmachiningInBodyDto consignmachiningInBodyDto = new ConsignmachiningInBodyDto();
|
||||
consignmachiningInBodyDto.setCinventoryid(bdInvmandocEntity.getPkInvmandoc());//存货主键
|
||||
// if ("40756".equals(new BigDecimal(receivedQty).stripTrailingZeros().toPlainString())) {
|
||||
// System.out.println("111");
|
||||
// }
|
||||
consignmachiningInBodyDto.setNinnum(new BigDecimal(receivedQty).stripTrailingZeros().toPlainString());//实收数量
|
||||
consignmachiningInBodyDto.setNprice(noriginalcurprice.stripTrailingZeros().toPlainString());//单价(含税单价)
|
||||
consignmachiningInBodyDto.setCsourcetype("61");//来源单据类型
|
||||
|
@ -534,20 +531,6 @@ public class ConsignmachiningCinfurmIn extends PluginBaseEntity {
|
|||
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<>();
|
||||
ConsignmachiningInHeadBodyDto consignmachiningInHeadBodyDto = new ConsignmachiningInHeadBodyDto();
|
||||
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:42:19 无法超委外订单数量入库!已经提交给总部
|
||||
//2024年9月3日 18:28:24 退货不会出现超订单出库的情况
|
||||
//2025-05-15 15:51:04 记录日志信息
|
||||
String interfaceInputParameters = JSON.toJSONString(stringStringMap);
|
||||
logger.info("O采购入库确认单(委外加工类型)生成U8C委外入库单(关联原单) 接口入参:{}", interfaceInputParameters);
|
||||
IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(interfaceInputParameters);
|
||||
IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(JSON.toJSONString(stringStringMap));
|
||||
|
||||
String cgeneralhid = null;
|
||||
String vbillcode = null;
|
||||
|
|
|
@ -520,20 +520,6 @@ public class ConsignmachiningInReturn extends PluginBaseEntity {
|
|||
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<>();
|
||||
ConsignmachiningInHeadBodyDto consignmachiningInHeadBodyDto = new ConsignmachiningInHeadBodyDto();
|
||||
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:42:19 无法超委外订单数量入库!已经提交给总部
|
||||
//2024年9月3日 18:28:24 退货不会出现超订单出库的情况
|
||||
String interfaceInputParameters = JSON.toJSONString(stringStringMap);
|
||||
logger.info("OFS采退出库单生成U8C红字委外入库单(关联原委外订单) 接口入参:{}", interfaceInputParameters);
|
||||
IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(interfaceInputParameters);
|
||||
IcGeneralHResultDto icGeneralHResultDto = sendU8cConsignmachiningIn(JSON.toJSONString(stringStringMap));
|
||||
|
||||
String cgeneralhid = null;
|
||||
String vbillcode = null;
|
||||
|
|
|
@ -1376,7 +1376,7 @@ public class SoSaleOutPluginInitializerToB extends PluginBaseEntity {
|
|||
Assert.notNull(pkCorp, "发货公司主键不能为空");
|
||||
|
||||
BdInvmandocEntity bdInvmandocEntity = new BdInvmandocEntity();
|
||||
bdInvmandocEntity.setInvcode(detailsDto.getSkuCode().trim());
|
||||
bdInvmandocEntity.setInvcode(detailsDto.getSkuCode());
|
||||
bdInvmandocEntity.setPkCorp(pkCorp);
|
||||
List<BdInvmandocEntity> bdInvmandocEntity2 = iBdInvmandocDao.queryBdInvmandocByInvcodeList(bdInvmandocEntity);
|
||||
if (bdInvmandocEntity2.size() == 0) {
|
||||
|
|
|
@ -2180,13 +2180,9 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
|||
String sceneType = "tran";
|
||||
List<SonDetailsDto> sonDetailsDtoList = queryBasicArchivesStock(headerDetailsDtos, sceneType);
|
||||
//分组汇总:红蓝
|
||||
// String dimension = "1001&tm-intoyou&intoyou-tmdg&6973391732529&SALES&002";
|
||||
String dimension = null;
|
||||
Map<String, List<SonDetailsDto>> summaryDimensionMap = groupSummaryStock(sonDetailsDtoList, dimension);
|
||||
Map<String, List<SonDetailsDto>> summaryDimensionMap = groupSummaryStock(sonDetailsDtoList, null);
|
||||
//分组汇总:蓝
|
||||
// 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冲回发出商品
|
||||
BdBusitypeEntity bdBusitypeEntity = u8cOperationFlowV2();
|
||||
|
|
|
@ -835,11 +835,6 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
|||
// BdInvclEntity bdInvclEntity = queryU8CEntityUtil.queryBdInvbasdocByBdInvcl(bdInvbasdocEntity);
|
||||
// BdCostsubjEntity bdCostsubjEntity = queryU8CEntityUtil.queryBdCostsubj(bdInvclEntity);
|
||||
|
||||
//如果实退数量=0,则过滤掉,不增加到明细列表中
|
||||
if ("0".equals(new BigDecimal(stockinB.getReceivedQty()).stripTrailingZeros().toPlainString())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 如果是海外的店铺,则税率为零
|
||||
String exportVaue = ExportConstant.exportConstant.get(header.getStoreCode());
|
||||
if (exportVaue != null) {
|
||||
|
@ -917,7 +912,6 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
|||
saleorderRequestDtoList.add(saleorderRequestDto);
|
||||
|
||||
synchronized (PUSH_LOCK1) {
|
||||
if (saleorderRequestChildrenDtoList.size() > 0) {
|
||||
Boolean aBoolean = checkTobOrder(header.getId(), header.getCode());
|
||||
if (!aBoolean) {
|
||||
logger.error("经过SQL查询判断,在U8C(红字)销售订单不存在OFS入库单号为:{} OFS入库主键为:{}的单据,将调用U8C接口执行推送!", header.getCode(), header.getId());
|
||||
|
@ -941,7 +935,6 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
|||
logger.error("经过SQL查询判断,在U8C(红字)销售订单存在OFS入库单号为:{} OFS入库主键为:{}的单据,为了避免造成单据重复,不推送到U8C!", header.getCode(), header.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("TOB售后收入推送U8C失败", e);
|
||||
//记录失败
|
||||
|
@ -1650,7 +1643,7 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
|||
Assert.notNull(pkCorp, "发货公司主键不能为空");
|
||||
|
||||
BdInvmandocEntity bdInvmandocEntity = new BdInvmandocEntity();
|
||||
bdInvmandocEntity.setInvcode(detailsDto.getSkuCode().trim());
|
||||
bdInvmandocEntity.setInvcode(detailsDto.getSkuCode());
|
||||
bdInvmandocEntity.setPkCorp(pkCorp);
|
||||
List<BdInvmandocEntity> bdInvmandocEntity2 = iBdInvmandocDao.queryBdInvmandocByInvcodeList(bdInvmandocEntity);
|
||||
if (bdInvmandocEntity2.size() == 0) {
|
||||
|
@ -1931,11 +1924,6 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
|||
// BdInvclEntity bdInvclEntity = queryU8CEntityUtil.queryBdInvbasdocByBdInvcl(bdInvbasdocEntity);
|
||||
// BdCostsubjEntity bdCostsubjEntity = queryU8CEntityUtil.queryBdCostsubj(bdInvclEntity);
|
||||
|
||||
//如果实入数量为0则过滤掉
|
||||
if ("0".equals(new BigDecimal(stockinB.getReceivedQty()).stripTrailingZeros().toPlainString())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
//计算公式
|
||||
StringBuffer calculationFormula = new StringBuffer();
|
||||
// calculationFormula.append("O实退金额");
|
||||
|
@ -1992,7 +1980,6 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
|||
|
||||
//推送到U8C生成销售发票
|
||||
synchronized (PUSH_LOCK2) {
|
||||
if (salesInvoiceBodyDtoList.size() > 0) {
|
||||
Boolean aBoolean = checkTobSalesInvoice(header.getId(), header.getCode());
|
||||
if (!aBoolean) {
|
||||
logger.error("经过SQL查询判断,在U8C红字销售发票中不存在OFS入库单号为:{} OFS入库主键为:{}的单据,将调用U8C接口执行推送!", header.getCode(), header.getId());
|
||||
|
@ -2014,7 +2001,6 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
|||
logger.error("经过SQL查询判断,在U8C红字销售发票中已经存在OFS入库单号为:{} OFS入库主键为:{}的单据,为了避免造成单据重复,不推送到U8C!", header.getCode(), header.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("TOB售后到账完成推送U8C抛出异常", e);
|
||||
// 记录失败
|
||||
|
|
|
@ -30,14 +30,14 @@ public class ConsignmachiningCinfurmInTest {
|
|||
// consignmachiningCinfurmIn.startImplementByTime("2024-01-02 00:00:00", "2024-01-02 23:59:59");
|
||||
|
||||
// String code = "LETS-RE2024111400002771-confirm";
|
||||
String code = "LETS-RE2025040700001976-confirm";
|
||||
consignmachiningCinfurmIn.startImplementByCode(code);
|
||||
// String code = "LETS-RE2024112900000538-confirm";
|
||||
// consignmachiningCinfurmIn.startImplementByCode(code);
|
||||
|
||||
// if ("HZYX,YD,NMNS,YX,KS,YNS,HJ".contains("121212")) {
|
||||
// System.out.println("存在");
|
||||
// } else {
|
||||
// System.out.println("不存在");
|
||||
// }
|
||||
if ("HZYX,YD,NMNS,YX,KS,YNS,HJ".contains("121212")) {
|
||||
System.out.println("存在");
|
||||
} else {
|
||||
System.out.println("不存在");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ class SoSaleOutPluginInitializerToCTest {
|
|||
// String s = "LETS-SH2025032200027982";
|
||||
// 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<>();
|
||||
// QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
||||
|
@ -111,7 +111,7 @@ class SoSaleOutPluginInitializerToCTest {
|
|||
// soSaleOutPluginInitializerToC.startImplementStockByCode(s, "tran");
|
||||
|
||||
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";
|
||||
// soSaleOutPluginInitializerToC.startImplementStockByCode(code, "tran");
|
||||
|
||||
|
|
|
@ -37,9 +37,7 @@ public class SoSaleReturnPluginInitializerToBTest {
|
|||
|
||||
// soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2024112200000301", "tran");
|
||||
|
||||
// soSaleReturnPluginInitializerToB.startImplementByStockTime("2024-11-29 00:00:00", "2024-11-30 23:59:59");
|
||||
|
||||
soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2025042200001200", "stock");
|
||||
soSaleReturnPluginInitializerToB.startImplementByStockTime("2024-11-29 00:00:00", "2024-11-30 23:59:59");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
|
@ -43,8 +43,8 @@ public class SoSaleReturnPluginInitializerToCTest {
|
|||
// soSaleReturnPluginInitializerToC.startImplement(null, null);
|
||||
try {
|
||||
//带优惠金额场景
|
||||
// String code = "LETS-RE2025042100000200";
|
||||
// soSaleReturnPluginInitializerToC.startImplementByCode(code, "stock");
|
||||
String code = "LETS-RE2025042100000200";
|
||||
soSaleReturnPluginInitializerToC.startImplementByCode(code, "stock");
|
||||
|
||||
//无优惠金额场景
|
||||
// String code = "LETS-RE2025031900000002";
|
||||
|
@ -65,7 +65,7 @@ public class SoSaleReturnPluginInitializerToCTest {
|
|||
// soSaleReturnPluginInitializerToC.startImplementStockByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time());
|
||||
|
||||
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");
|
||||
|
||||
|
|
|
@ -57,13 +57,11 @@ public class DeleteU8cDataUtilTest {
|
|||
// deleteU8cDataUtil.cancelSignatureIcGeneralHV2("0001A110000000001TH6");
|
||||
//删除销售出库单 *
|
||||
// deleteU8cDataUtil.deleteIcGeneralH();
|
||||
// deleteU8cDataUtil.deleteIcGeneralHV2();
|
||||
deleteU8cDataUtil.deleteIcGeneralHV2();
|
||||
|
||||
//取消签字销售订单 *
|
||||
// deleteU8cDataUtil.cancelSignatureSoSale();
|
||||
// deleteU8cDataUtil.cancelSignatureSoSaleV2();
|
||||
|
||||
deleteU8cDataUtil.cancelSignatureSoSaleReadExcel();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
|
@ -58,8 +58,6 @@ public class DeleteU8cDataUtilTest2 {
|
|||
//取消签字销售订单
|
||||
// deleteU8cDataUtil.cancelSignatureSoSale();
|
||||
|
||||
//批量取消签字,并删除销售出库单
|
||||
deleteU8cDataUtil.cancelSignatureSoSaleReadExcelV2();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ public class DeleteU8cDataUtil {
|
|||
//销售出库单签字 已测试
|
||||
// saleOutSign("'0001A110000000001TH6', '0001A1100000000VKCOK'");
|
||||
|
||||
// cancelSignatureSoSaleReadExcelV2();
|
||||
cancelSignatureSoSaleReadExcelV2();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -897,8 +897,8 @@ public class DeleteU8cDataUtil {
|
|||
*/
|
||||
public void cancelSignatureSoSaleReadExcelV2() {
|
||||
try {
|
||||
// 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("D:\\server\\软件包\\U8C-需要删除的单据-带主键.xlsx"));
|
||||
// FileInputStream file = new FileInputStream(new File("/Users/liuyang/Desktop/U8C-需要删除的单据-带主键.xlsx"));
|
||||
Workbook workbook = new XSSFWorkbook(file);
|
||||
|
||||
List<String[]> data = new ArrayList<>();
|
||||
|
@ -1030,13 +1030,13 @@ public class DeleteU8cDataUtil {
|
|||
e.printStackTrace();
|
||||
}
|
||||
|
||||
// try {
|
||||
// //每10秒重新删除一次
|
||||
// Thread.sleep(10000);
|
||||
// cancelSignatureSoSaleReadExcelV2();
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
try {
|
||||
//每10秒重新删除一次
|
||||
Thread.sleep(10000);
|
||||
cancelSignatureSoSaleReadExcelV2();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, List<DeleteU8cDataUtilEntity>> groupByDbilldatev2(List<DeleteU8cDataUtilEntity> soSaleinvoiceEntities) {
|
||||
|
|
Loading…
Reference in New Issue