refactor(buildpackage): 优化参数校验错误信息

- 在 SoSaleOutPluginInitializerToC 类中,增强了 pushScenarioType 参数的校验错误信息
- 为 pushScenarioType 参数的校验错误信息添加了参数名,提高了错误信息的可读性和可理解性- 修改了两处相同的代码片段,确保了代码的一致性
This commit is contained in:
liuy 2024-12-25 17:49:45 +08:00
parent 6a65623858
commit 3043dcc9fa
1 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
Assert.notNull(startTime, "查询条件,开始时间不能为空!"); Assert.notNull(startTime, "查询条件,开始时间不能为空!");
Assert.notNull(endTime, "查询条件,结束时间不能为空!"); Assert.notNull(endTime, "查询条件,结束时间不能为空!");
Assert.notNull(pushScenarioType, "推送场景不能为空!"); Assert.notNull(pushScenarioType, "(pushScenarioType)推送场景不能为空!");
List<com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch.HeaderDetailsDto> headerDetailsDtoList = new ArrayList<>(); List<com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch.HeaderDetailsDto> headerDetailsDtoList = new ArrayList<>();
if (ProfilesActiveConstant.PUSH_SCENE_TYPE_0.equals(pushScenarioType) || ProfilesActiveConstant.PUSH_SCENE_TYPE_2.equals(pushScenarioType)) { if (ProfilesActiveConstant.PUSH_SCENE_TYPE_0.equals(pushScenarioType) || ProfilesActiveConstant.PUSH_SCENE_TYPE_2.equals(pushScenarioType)) {
@ -424,7 +424,7 @@ public class SoSaleOutPluginInitializerToC extends PluginBaseEntity {
Assert.notNull(startTime, "查询条件,开始时间不能为空!"); Assert.notNull(startTime, "查询条件,开始时间不能为空!");
Assert.notNull(endTime, "查询条件,结束时间不能为空!"); Assert.notNull(endTime, "查询条件,结束时间不能为空!");
Assert.notNull(pushScenarioType, "推送场景不能为空!"); Assert.notNull(pushScenarioType, "(pushScenarioType)推送场景不能为空!");
List<com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch.HeaderDetailsDto> headerDetailsDtoList = new ArrayList<>(); List<com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch.HeaderDetailsDto> headerDetailsDtoList = new ArrayList<>();
if (ProfilesActiveConstant.PUSH_SCENE_TYPE_0.equals(pushScenarioType) || ProfilesActiveConstant.PUSH_SCENE_TYPE_2.equals(pushScenarioType)) { if (ProfilesActiveConstant.PUSH_SCENE_TYPE_0.equals(pushScenarioType) || ProfilesActiveConstant.PUSH_SCENE_TYPE_2.equals(pushScenarioType)) {