refactor(sales): 调整退货查询接口参数
- 在 TOB 和 TOC 退货查询中添加或移除状态参数- 更新测试用例中的输入数据 - 优化代码结构,提高可读性和可维护性
This commit is contained in:
parent
3897ea1ab9
commit
63840f7e5a
|
@ -262,6 +262,7 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
||||||
queryOfsSoSaleOutVo.setClosedAt_start(startTime);
|
queryOfsSoSaleOutVo.setClosedAt_start(startTime);
|
||||||
queryOfsSoSaleOutVo.setClosedAt_end(endTime);
|
queryOfsSoSaleOutVo.setClosedAt_end(endTime);
|
||||||
queryOfsSoSaleOutVo.setClientCode("LETS");
|
queryOfsSoSaleOutVo.setClientCode("LETS");
|
||||||
|
queryOfsSoSaleOutVo.setStatus(900L);
|
||||||
queryOfsSoSaleOutVo.setPageNo(1L);
|
queryOfsSoSaleOutVo.setPageNo(1L);
|
||||||
queryOfsSoSaleOutVo.setPageSize(50L);
|
queryOfsSoSaleOutVo.setPageSize(50L);
|
||||||
queryOfsSoSaleOutVo.setStoreCode(tobShop);
|
queryOfsSoSaleOutVo.setStoreCode(tobShop);
|
||||||
|
@ -309,6 +310,7 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
||||||
queryOfsSoSaleOutVo.setClientCode("LETS");
|
queryOfsSoSaleOutVo.setClientCode("LETS");
|
||||||
queryOfsSoSaleOutVo.setPageNo(1L);
|
queryOfsSoSaleOutVo.setPageNo(1L);
|
||||||
queryOfsSoSaleOutVo.setPageSize(50L);
|
queryOfsSoSaleOutVo.setPageSize(50L);
|
||||||
|
// queryOfsSoSaleOutVo.setStatus(900L);
|
||||||
queryOfsSoSaleOutVo.setStoreCode(tobShop);
|
queryOfsSoSaleOutVo.setStoreCode(tobShop);
|
||||||
queryOfsSoSaleOutVo.setInternalInstructionType("RETURN");
|
queryOfsSoSaleOutVo.setInternalInstructionType("RETURN");
|
||||||
queryOfsSoSaleOutVo.setRefundStatus("900");
|
queryOfsSoSaleOutVo.setRefundStatus("900");
|
||||||
|
@ -356,6 +358,7 @@ public class SoSaleReturnPluginInitializerToB extends PluginBaseEntity {
|
||||||
queryOfsSoSaleOutVo.setStoreCode(tobShop);
|
queryOfsSoSaleOutVo.setStoreCode(tobShop);
|
||||||
queryOfsSoSaleOutVo.setCode(code);
|
queryOfsSoSaleOutVo.setCode(code);
|
||||||
queryOfsSoSaleOutVo.setInternalInstructionType("RETURN");
|
queryOfsSoSaleOutVo.setInternalInstructionType("RETURN");
|
||||||
|
// queryOfsSoSaleOutVo.setStatus(900L);
|
||||||
ofsStandardUtil.queryOfsReturnGoods(queryOfsSoSaleOutVo, returnGoodHeaderDetailsDataDtoArrayList, 1L, "ofs.receipt.search");
|
ofsStandardUtil.queryOfsReturnGoods(queryOfsSoSaleOutVo, returnGoodHeaderDetailsDataDtoArrayList, 1L, "ofs.receipt.search");
|
||||||
logger.info("数据返回行数:{}", returnGoodHeaderDetailsDataDtoArrayList.size());
|
logger.info("数据返回行数:{}", returnGoodHeaderDetailsDataDtoArrayList.size());
|
||||||
if (returnGoodHeaderDetailsDataDtoArrayList.size() > 0) {
|
if (returnGoodHeaderDetailsDataDtoArrayList.size() > 0) {
|
||||||
|
|
|
@ -262,7 +262,7 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity {
|
||||||
List<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoList = new ArrayList<>();
|
List<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoList = new ArrayList<>();
|
||||||
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
||||||
queryOfsSoSaleOutVo.setClientCode("LETS");
|
queryOfsSoSaleOutVo.setClientCode("LETS");
|
||||||
queryOfsSoSaleOutVo.setStatus(900L);
|
// queryOfsSoSaleOutVo.setStatus(900L);
|
||||||
queryOfsSoSaleOutVo.setPageNo(1L);
|
queryOfsSoSaleOutVo.setPageNo(1L);
|
||||||
queryOfsSoSaleOutVo.setPageSize(50L);
|
queryOfsSoSaleOutVo.setPageSize(50L);
|
||||||
queryOfsSoSaleOutVo.setStoreCode(tocShop);
|
queryOfsSoSaleOutVo.setStoreCode(tocShop);
|
||||||
|
|
|
@ -88,7 +88,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-SH2024110500018124", "stock");
|
soSaleOutPluginInitializerToB.startImplementByCode("LETS-SH2024110500037199", "stock");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,9 +35,9 @@ public class SoSaleReturnPluginInitializerToBTest {
|
||||||
//测试TOB退货-确认收入
|
//测试TOB退货-确认收入
|
||||||
// soSaleReturnPluginInitializerToB.startImplementByTradeTime("2024-08-30 15:54:41", "2024-08-30 15:54:43");
|
// soSaleReturnPluginInitializerToB.startImplementByTradeTime("2024-08-30 15:54:41", "2024-08-30 15:54:43");
|
||||||
|
|
||||||
soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2024102500000029", "tran");
|
// soSaleReturnPluginInitializerToB.startImplementByCode("LETS-RE2022112800000053", "stock");
|
||||||
|
|
||||||
// soSaleReturnPluginInitializerToB.startImplementByStockTime("2024-09-24 16:52:49", "2024-09-24 16:52:52");
|
soSaleReturnPluginInitializerToB.startImplementByStockTime("2024-11-04 00:00:00", "2024-11-04 23:59:59");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue