```更改时间参数确保库存和销售退货插件的正确行为库存和销售退货插件中的时间筛选参数已更新,以反映业务流程的最新需求。在`ConsignmachiningInReturn`中,发货时间(`shipAt`)现在用于查询,而非完成时间(`closedAt`)。而在`SoSaleReturnPluginInitializerToC`中,创建时间(`created`)的筛选已被关闭时间(`closedAt`)取代。这些更改确保插件现在使用的查询参数与业务逻辑保持一致。

```
This commit is contained in:
liuy 2024-09-24 10:12:23 +08:00
parent 21fd2283b2
commit abf1c5eaf4
3 changed files with 17 additions and 10 deletions

View File

@ -187,8 +187,8 @@ public class ConsignmachiningInReturn extends PluginBaseEntity {
//OFS采退出库
List<HeaderDetailsDto> returnGoodHeaderDetailsDataDtoArrayList = new ArrayList<>();
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
queryOfsSoSaleOutVo.setClosedAt_start(startTime);
queryOfsSoSaleOutVo.setClosedAt_end(endTime);
queryOfsSoSaleOutVo.setShipAt_start(startTime);
queryOfsSoSaleOutVo.setShipAt_end(endTime);
queryOfsSoSaleOutVo.setClientCode("LETS");
queryOfsSoSaleOutVo.setPageNo(1L);
queryOfsSoSaleOutVo.setPageSize(50L);

View File

@ -187,8 +187,8 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity {
List<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoArrayList = new ArrayList<>();
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
queryOfsSoSaleOutVo.setCreated_start(startTime);
queryOfsSoSaleOutVo.setCreated_end(endTime);
queryOfsSoSaleOutVo.setClosedAt_start(startTime);
queryOfsSoSaleOutVo.setClosedAt_end(endTime);
queryOfsSoSaleOutVo.setClientCode("LETS");
queryOfsSoSaleOutVo.setInternalInstructionType("SALES");
//2024年8月22日 14:02:13 已经和O确认这个字段取消传递

View File

@ -1,12 +1,15 @@
package com.hzya.frame.plugin.lets.plugin.sales;
import com.hzya.frame.WebappApplication;
import com.hzya.frame.plugin.lets.queryvo.StartAndEndVo;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.util.List;
/**
* @Authorliuyang
* @Packagecom.hzya.frame.plugin.lets.plugin.sales
@ -25,11 +28,15 @@ public class SoSaleReturnPluginInitializerToCTest {
@Test
public void startImplement() {
// soSaleReturnPluginInitializerToC.startImplement(null, null);
try {
String code = "LETS-RE2024091400000001";
soSaleReturnPluginInitializerToC.startImplementByCode(code, "tran");
} catch (Exception e) {
e.printStackTrace();
}
// try {
// String code = "LETS-RE2024091400000001";
// soSaleReturnPluginInitializerToC.startImplementByCode(code, "tran");
// } catch (Exception e) {
// e.printStackTrace();
// }
List<StartAndEndVo> startAndEndVos = soSaleReturnPluginInitializerToC.calculateCalculateEntireDayPeriod(null);
soSaleReturnPluginInitializerToC.startImplementStockByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time());
}
}