fix(sales): 修复时间参数设置错误
- 将 startTime 和 endTime 的处理逻辑对调,确保开始时间和结束时间正确设置 - 在 SoSaleOutPluginInitializerToC 中修复了时间参数处理错误的问题 - 更新了测试用例,使用正确的订单号进行测试
This commit is contained in:
parent
61de821ebd
commit
ecc9207aa0
|
@ -465,10 +465,10 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
||||||
if (startTime.length() == 19) {
|
if (startTime.length() == 19) {
|
||||||
tocofsSaleoutDetailedEntity.setTradeSuccessAt_start(startTime);
|
tocofsSaleoutDetailedEntity.setTradeSuccessAt_start(startTime);
|
||||||
} else {
|
} else {
|
||||||
tocofsSaleoutDetailedEntity.setTradeSuccessAt_end(startTime + " 00:00:00");
|
tocofsSaleoutDetailedEntity.setTradeSuccessAt_start(startTime + " 00:00:00");
|
||||||
}
|
}
|
||||||
if (endTime.length() == 19) {
|
if (endTime.length() == 19) {
|
||||||
tocofsSaleoutDetailedEntity.setTradeSuccessAt_start(endTime);
|
tocofsSaleoutDetailedEntity.setTradeSuccessAt_end(endTime);
|
||||||
} else {
|
} else {
|
||||||
tocofsSaleoutDetailedEntity.setTradeSuccessAt_end(endTime + " 23:59:59");
|
tocofsSaleoutDetailedEntity.setTradeSuccessAt_end(endTime + " 23:59:59");
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ public class SoSaleOutPluginInitializerToBTest {
|
||||||
|
|
||||||
// soSaleOutPluginInitializerToB.startImplementByStockTime("2024-10-31 14:48:41", "2024-10-31 14:48:41");
|
// soSaleOutPluginInitializerToB.startImplementByStockTime("2024-10-31 14:48:41", "2024-10-31 14:48:41");
|
||||||
|
|
||||||
soSaleOutPluginInitializerToB.startImplementByCode("LETS-SH2025010200030571", "tran");
|
soSaleOutPluginInitializerToB.startImplementByCode("LETS-SH2025011400029405", "stock");
|
||||||
|
|
||||||
|
|
||||||
// soSaleOutPluginInitializerToB.startImplementByStockTime("2024-11-08 19:18:02", "2024-11-08 19:18:02");
|
// soSaleOutPluginInitializerToB.startImplementByStockTime("2024-11-08 19:18:02", "2024-11-08 19:18:02");
|
||||||
|
|
|
@ -114,7 +114,7 @@ class SoSaleOutPluginInitializerToCTest {
|
||||||
// String code = "LETS-SH2024052100015139";
|
// String code = "LETS-SH2024052100015139";
|
||||||
// soSaleOutPluginInitializerToC.startImplementStockByCode(code, "tran");
|
// soSaleOutPluginInitializerToC.startImplementStockByCode(code, "tran");
|
||||||
|
|
||||||
soSaleOutPluginInitializerToC.startImplementStockByTime("2025-01-01 22:25:21", "2025-01-01 22:25:21","1");
|
// soSaleOutPluginInitializerToC.startImplementStockByTime("2025-01-01 22:25:21", "2025-01-01 22:25:21","1");
|
||||||
|
|
||||||
// JSONObject jsonObject = new JSONObject();
|
// JSONObject jsonObject = new JSONObject();
|
||||||
// soSaleOutPluginInitializerToC.executeBusiness(jsonObject);
|
// soSaleOutPluginInitializerToC.executeBusiness(jsonObject);
|
||||||
|
@ -133,7 +133,7 @@ class SoSaleOutPluginInitializerToCTest {
|
||||||
// soSaleOutPluginInitializerToC.sendU8CTOCOrder("123446");
|
// soSaleOutPluginInitializerToC.sendU8CTOCOrder("123446");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// soSaleOutPluginInitializerToC.startImplementStockByCode("LETS-SH2024110200030366", "stock");
|
soSaleOutPluginInitializerToC.startImplementStockByCode("LETS-SH2025011400029405", "stock");
|
||||||
// soSaleOutPluginInitializerToC.startImplementStockByCode("LETS-SH2025011300024220", "tran");
|
// soSaleOutPluginInitializerToC.startImplementStockByCode("LETS-SH2025011300024220", "tran");
|
||||||
|
|
||||||
// soSaleOutPluginInitializerToC.startImplementStockByCode("LETS-SH2025012300026949", "tran");
|
// soSaleOutPluginInitializerToC.startImplementStockByCode("LETS-SH2025012300026949", "tran");
|
||||||
|
|
Loading…
Reference in New Issue