refactor(sales): 调整 TOB 退货流程和订单日期

- 注释掉按交易时间启动实施的代码
- 修改业务流程名称为 "TOB退货"
- 更新订单成功交易日期的示例
This commit is contained in:
liuy 2025-07-31 14:38:04 +08:00
parent b79c0266c8
commit 6ef354d101
1 changed files with 5 additions and 3 deletions

View File

@ -139,7 +139,7 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
//实时执行每1分钟调度一次 //实时执行每1分钟调度一次
StartAndEndVo startAndEndVo = offsetTimeTime.getCurrentDateRange(); StartAndEndVo startAndEndVo = offsetTimeTime.getCurrentDateRange();
startImplementByStockTime(startAndEndVo.getStart_time(), startAndEndVo.getEnd_time()); startImplementByStockTime(startAndEndVo.getStart_time(), startAndEndVo.getEnd_time());
startImplementByTradeTime(startAndEndVo.getStart_time(), startAndEndVo.getEnd_time()); // startImplementByTradeTime(startAndEndVo.getStart_time(), startAndEndVo.getEnd_time());
} }
} }
} catch (Exception e) { } catch (Exception e) {
@ -1643,7 +1643,8 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
private BdBusitypeEntity u8cOperationFlow() throws Exception { private BdBusitypeEntity u8cOperationFlow() throws Exception {
//查询业务流程 //查询业务流程
//2024年8月6日 11:33:07 具体的业务流程名称还需要实施提供 //2024年8月6日 11:33:07 具体的业务流程名称还需要实施提供
String processName = "TOB销售"; // String processName = "TOB销售";
String processName = "TOB退货";
BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName); BdBusitypeEntity bdBusitypeEntity = queryBdBusitypeUtil.queryBdBusitype(processName);
Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName); Assert.notNull(bdBusitypeEntity, "根据业务流程名称({})没有查询到业务流程", processName);
return bdBusitypeEntity; return bdBusitypeEntity;
@ -2050,7 +2051,8 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
* @author liuyang * @author liuyang
*/ */
private String createSuccessFulTradeDate(OrderToBHeaderDto orderOutTobHeaderDto) { private String createSuccessFulTradeDate(OrderToBHeaderDto orderOutTobHeaderDto) {
// orderOutTobHeaderDto.getHeader().setRefundedAt("2024-11-19 00:00:00"); // orderOutTobHeaderDto.getHeader().setRefundedAt("2025-07-28 14:49:11");
String code = null; String code = null;
if (orderOutTobHeaderDto != null && orderOutTobHeaderDto.getHeader() != null) { if (orderOutTobHeaderDto != null && orderOutTobHeaderDto.getHeader() != null) {
code = orderOutTobHeaderDto.getHeader().getCode(); code = orderOutTobHeaderDto.getHeader().getCode();