refactor(sales): 调整销售出库查询逻辑并优化数据传输

- 注释掉 TocofsSaleoutEntity.xml 中的排序逻辑
- 在 SoSaleOutPluginInitializerToC 中添加 ID复制操作
- 修改 SoSaleOutPluginInitializerToCTest 中的测试参数
- 在 HeaderDto 中添加新的字段用于存储出库信息
This commit is contained in:
liuy 2024-12-25 15:05:08 +08:00
parent a0a0189332
commit 79c126e081
4 changed files with 11 additions and 3 deletions

View File

@ -372,8 +372,8 @@
</if>
-- and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<!-- <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>-->
</select>
<!-- 查询符合条件的数量 -->

View File

@ -4060,6 +4060,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
TocofsSaleoutEntity tocofsSaleoutEntity = allTocofsSaleoutEntityList.get(i);
HeaderDto headerDto = new HeaderDto();
BeanUtil.copyPropertiesV2(tocofsSaleoutEntity, headerDto);
headerDto.setId(tocofsSaleoutEntity.getId());
headerDetailsDto.setHeader(headerDto);
List<TocofsSaleoutDetailedEntity> tocofsSaleoutDetailedEntityList1 = tocofsSaleoutEntity.getTocofsSaleoutDetailedEntityList();
@ -4070,6 +4071,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
DetailsDto detailsDto = new DetailsDto();
BeanUtil.copyPropertiesV2(tocofsSaleoutDetailedEntity1, detailsDto);
detailsDto.setId(tocofsSaleoutDetailedEntity1.getId());
detailsDtoList.add(detailsDto);
}
}

View File

@ -120,7 +120,7 @@ class SoSaleOutPluginInitializerToCTest {
// String aaa = "LETS-SH2024102800021196";
// soSaleOutPluginInitializerToC.startImplementStockByTime("2024-12-06 09:25:39", "2024-12-06 09:25:39");
soSaleOutPluginInitializerToC.startImplementStockByTime("2024-11-02 17:09:02", "2024-11-02 17:09:02", "0");
soSaleOutPluginInitializerToC.startImplementStockByTime("2024-11-02 17:09:02", "2024-11-02 17:09:02", "1");
} catch (Exception e) {
e.printStackTrace();
}

View File

@ -82,6 +82,12 @@ public class HeaderDto {
//出库类型
private String shipmentType;
private String shipToPostalCode;
private String shipToEmail;
private String modified;
//O单据名称
// private String subOrderType;