fix(sales): 修复销售出库和退货单中 ID拼接错误
- 在 SoSaleOutPluginInitializerToC 和 SoSaleReturnPluginInitializerToC 类中 为 ID 拼接添加单引号,确保 SQL 查询的准确性 - 更新 SoSaleReturnPluginInitializerToCTest 中的测试方法,使用时间范围 替代之前的单个订单代码进行测试
This commit is contained in:
parent
1f0f0b25a3
commit
4426946bdb
|
@ -420,7 +420,10 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
|
|||
DetailsDto detailsDto = details.get(j);
|
||||
Assert.notNull(detailsDto.getId(), "O明细主键不能为空!");
|
||||
Assert.state(!"".equals(detailsDto.getId()), "O明细主键不能为空!");
|
||||
|
||||
idStr.append("'");
|
||||
idStr.append(detailsDto.getId());
|
||||
idStr.append("'");
|
||||
idStr.append(",");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -409,7 +409,10 @@ public class SoSaleReturnPluginInitializerToC extends PluginBaseEntity {
|
|||
StockinOrderSearchResponse.StockinOrder.StockinB stockinB = details.get(j);
|
||||
Assert.notNull(stockinB.getId(), "O明细主键不能为空!");
|
||||
Assert.state(!"".equals(stockinB.getId()), "O明细主键不能为空!");
|
||||
|
||||
idStr.append("'");
|
||||
idStr.append(stockinB.getId());
|
||||
idStr.append("'");
|
||||
idStr.append(",");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,14 +28,21 @@ public class SoSaleReturnPluginInitializerToCTest {
|
|||
@Test
|
||||
public void startImplement() {
|
||||
// soSaleReturnPluginInitializerToC.startImplement(null, null);
|
||||
try {
|
||||
String code = "LETS-RE2024091400000001";
|
||||
soSaleReturnPluginInitializerToC.startImplementByCode(code, "stock");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// try {
|
||||
// String code = "LETS-RE2024091400000001";
|
||||
// soSaleReturnPluginInitializerToC.startImplementByCode(code, "stock");
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
// List<StartAndEndVo> startAndEndVos = soSaleReturnPluginInitializerToC.calculateCalculateEntireDayPeriod(null);
|
||||
// soSaleReturnPluginInitializerToC.startImplementStockByTime(startAndEndVos.get(0).getStart_time(), startAndEndVos.get(0).getEnd_time());
|
||||
|
||||
|
||||
try {
|
||||
soSaleReturnPluginInitializerToC.startImplementStockByTime("2024-10-18 00:00:00", "2024-10-18 23:59:59");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue