refactor(sales): 优化销售出库和退货相关代码
- 移除 SoSaleOutPluginInitializerToB 中的未使用的 printCode 方法 - 优化 SoSaleReturnPluginInitializerToC 中的代码格式 - 更新 SoSaleOutPluginInitializerToBTest 中的测试方法,使用按库存时间查询替代按代码查询
This commit is contained in:
parent
8e3d80ce62
commit
1f0f0b25a3
|
@ -2686,4 +2686,14 @@ public class SoSaleOutPluginInitializerToB extends PluginBaseEntity {
|
||||||
}
|
}
|
||||||
return totalPayAmount;
|
return totalPayAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// public void printCode(List<HeaderDetailsDto> headerDetailsDtoList) {
|
||||||
|
// if (headerDetailsDtoList != null && headerDetailsDtoList.size() > 0) {
|
||||||
|
// for (int i = 0; i < headerDetailsDtoList.size(); i++) {
|
||||||
|
// HeaderDetailsDto headerDetailsDto = headerDetailsDtoList.get(i);
|
||||||
|
// HeaderDto header = headerDetailsDto.getHeader();
|
||||||
|
// System.out.println(header.getCode());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
|
@ -80,9 +80,9 @@ public class SoSaleOutPluginInitializerToBTest {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// soSaleOutPluginInitializerToB.startImplementByCode("LETS-SH2024101800025544", "stock");
|
// soSaleOutPluginInitializerToB.startImplementByCode("LETS-SH2024101800025544", "stock");
|
||||||
// soSaleOutPluginInitializerToB.startImplementByTranTime("2024-10-18 14:49:58", "2024-10-18 14:49:59");
|
soSaleOutPluginInitializerToB.startImplementByStockTime("2024-10-18 00:00:00", "2024-10-18 23:59:59");
|
||||||
String aaa = "LETS-SH2024101800024795";
|
// String aaa = "LETS-SH2024101800024795";
|
||||||
soSaleOutPluginInitializerToB.startImplementByCode(aaa, "stock");
|
// soSaleOutPluginInitializerToB.startImplementByCode(aaa, "stock");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue