```更改时间参数确保库存和销售退货插件的正确行为库存和销售退货插件中的时间筛选参数已更新,以反映业务流程的最新需求。在`ConsignmachiningInReturn`中,发货时间(`shipAt`)现在用于查询,而非完成时间(`closedAt`)。而在`SoSaleReturnPluginInitializerToC`中,创建时间(`created`)的筛选已被关闭时间(`closedAt`)取代。这些更改确保插件现在使用的查询参数与业务逻辑保持一致。
```
This commit is contained in:
parent
21fd2283b2
commit
abf1c5eaf4
|
@ -187,8 +187,8 @@ public class ConsignmachiningInReturn extends PluginBaseEntity {
|
||||||
//OFS采退出库
|
//OFS采退出库
|
||||||
List<HeaderDetailsDto> returnGoodHeaderDetailsDataDtoArrayList = new ArrayList<>();
|
List<HeaderDetailsDto> returnGoodHeaderDetailsDataDtoArrayList = new ArrayList<>();
|
||||||
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
||||||
queryOfsSoSaleOutVo.setClosedAt_start(startTime);
|
queryOfsSoSaleOutVo.setShipAt_start(startTime);
|
||||||
queryOfsSoSaleOutVo.setClosedAt_end(endTime);
|
queryOfsSoSaleOutVo.setShipAt_end(endTime);
|
||||||
queryOfsSoSaleOutVo.setClientCode("LETS");
|
queryOfsSoSaleOutVo.setClientCode("LETS");
|
||||||
queryOfsSoSaleOutVo.setPageNo(1L);
|
queryOfsSoSaleOutVo.setPageNo(1L);
|
||||||
queryOfsSoSaleOutVo.setPageSize(50L);
|
queryOfsSoSaleOutVo.setPageSize(50L);
|
||||||
|
|
|
@ -187,8 +187,8 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity {
|
||||||
|
|
||||||
List<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoArrayList = new ArrayList<>();
|
List<StockinOrderSearchResponse.StockinOrder> returnGoodHeaderDetailsDataDtoArrayList = new ArrayList<>();
|
||||||
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
QueryOfsSoSaleOutVo queryOfsSoSaleOutVo = new QueryOfsSoSaleOutVo();
|
||||||
queryOfsSoSaleOutVo.setCreated_start(startTime);
|
queryOfsSoSaleOutVo.setClosedAt_start(startTime);
|
||||||
queryOfsSoSaleOutVo.setCreated_end(endTime);
|
queryOfsSoSaleOutVo.setClosedAt_end(endTime);
|
||||||
queryOfsSoSaleOutVo.setClientCode("LETS");
|
queryOfsSoSaleOutVo.setClientCode("LETS");
|
||||||
queryOfsSoSaleOutVo.setInternalInstructionType("SALES");
|
queryOfsSoSaleOutVo.setInternalInstructionType("SALES");
|
||||||
//2024年8月22日 14:02:13 已经和O确认,这个字段取消传递!
|
//2024年8月22日 14:02:13 已经和O确认,这个字段取消传递!
|
||||||
|
|
|
@ -1,12 +1,15 @@
|
||||||
package com.hzya.frame.plugin.lets.plugin.sales;
|
package com.hzya.frame.plugin.lets.plugin.sales;
|
||||||
|
|
||||||
import com.hzya.frame.WebappApplication;
|
import com.hzya.frame.WebappApplication;
|
||||||
|
import com.hzya.frame.plugin.lets.queryvo.StartAndEndVo;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.test.context.junit4.SpringRunner;
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author:liuyang
|
* @Author:liuyang
|
||||||
* @Package:com.hzya.frame.plugin.lets.plugin.sales
|
* @Package:com.hzya.frame.plugin.lets.plugin.sales
|
||||||
|
@ -25,11 +28,15 @@ public class SoSaleReturnPluginInitializerToCTest {
|
||||||
@Test
|
@Test
|
||||||
public void startImplement() {
|
public void startImplement() {
|
||||||
// soSaleReturnPluginInitializerToC.startImplement(null, null);
|
// soSaleReturnPluginInitializerToC.startImplement(null, null);
|
||||||
try {
|
// try {
|
||||||
String code = "LETS-RE2024091400000001";
|
// String code = "LETS-RE2024091400000001";
|
||||||
soSaleReturnPluginInitializerToC.startImplementByCode(code, "tran");
|
// soSaleReturnPluginInitializerToC.startImplementByCode(code, "tran");
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
List<StartAndEndVo> startAndEndVos = soSaleReturnPluginInitializerToC.calculateCalculateEntireDayPeriod(null);
|
||||||
|
soSaleReturnPluginInitializerToC.startImplementStockByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time());
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue