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;
|
||||
}
|
||||
|
||||
// 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());
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
|
@ -803,7 +803,7 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity {
|
|||
BdBusitypeEntity bdBusitypeEntity = u8cOperationFlowV2();
|
||||
//初始化所有存货管理档案对应的结存价+采购价
|
||||
List<Map> mapList = initAllBalancePricePurchasePrice();
|
||||
|
||||
|
||||
if (bdBusitypeEntity != null && summaryDimensionMap != null) {
|
||||
Iterator<Map.Entry<String, List<GoodsRertunSonDetailsDto>>> iterator = summaryDimensionMap.entrySet().iterator();
|
||||
while (iterator.hasNext()) {
|
||||
|
|
|
@ -80,9 +80,9 @@ public class SoSaleOutPluginInitializerToBTest {
|
|||
|
||||
try {
|
||||
// soSaleOutPluginInitializerToB.startImplementByCode("LETS-SH2024101800025544", "stock");
|
||||
// soSaleOutPluginInitializerToB.startImplementByTranTime("2024-10-18 14:49:58", "2024-10-18 14:49:59");
|
||||
String aaa = "LETS-SH2024101800024795";
|
||||
soSaleOutPluginInitializerToB.startImplementByCode(aaa, "stock");
|
||||
soSaleOutPluginInitializerToB.startImplementByStockTime("2024-10-18 00:00:00", "2024-10-18 23:59:59");
|
||||
// String aaa = "LETS-SH2024101800024795";
|
||||
// soSaleOutPluginInitializerToB.startImplementByCode(aaa, "stock");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue