金二路由验证优化,根据场站编号确定此场站是否有申报业务的金二业务配置,再进行判定
正在显示
1 个修改的文件
包含
7 行增加
和
3 行删除
@@ -84,8 +84,8 @@ public class MessageRouterX21 implements MessageRouter { | @@ -84,8 +84,8 @@ public class MessageRouterX21 implements MessageRouter { | ||
84 | * 对应进出场申请数据 | 84 | * 对应进出场申请数据 |
85 | */ | 85 | */ |
86 | log.error("[G2]-X21与流转信息核碰失败,未有流转缓存或者二维码对碰不成功"); | 86 | log.error("[G2]-X21与流转信息核碰失败,未有流转缓存或者二维码对碰不成功"); |
87 | - CommandClient.Client(info,"G2-未找到通道对应申报信息,或二维码信息不一致"); | ||
88 | - record(info,false,"G2-未找到通道对应申报信息",null); | 87 | + CommandClient.Client(info,"未找到通道对应申报信息,或二维码信息不一致"); |
88 | + record(info,false,"[FormCheck]-未找到通道对应申报信息",null); | ||
89 | } | 89 | } |
90 | 90 | ||
91 | 91 | ||
@@ -116,8 +116,12 @@ public class MessageRouterX21 implements MessageRouter { | @@ -116,8 +116,12 @@ public class MessageRouterX21 implements MessageRouter { | ||
116 | * @return true 走对通道 false 走错通道 | 116 | * @return true 走对通道 false 走错通道 |
117 | */ | 117 | */ |
118 | private void rightChnelCheck(String businessType,GatherInfo info){ | 118 | private void rightChnelCheck(String businessType,GatherInfo info){ |
119 | + LandRouterConfig landRouterConfig = new LandRouterConfig(); | ||
120 | + landRouterConfig.setBusinessType(businessType); | ||
121 | + landRouterConfig.setAreaId(info.getAreaid()); | ||
119 | 122 | ||
120 | - List<LandRouterConfig> routerConfigs = landRouterConfigDao.selectByBussType(businessType); | 123 | + //查询此场站此业务类型有无金二业务配置 |
124 | + List<LandRouterConfig> routerConfigs = landRouterConfigDao.selectByBussType(landRouterConfig); | ||
121 | //有金二与业务类型绑定 | 125 | //有金二与业务类型绑定 |
122 | if (!routerConfigs.isEmpty()){ | 126 | if (!routerConfigs.isEmpty()){ |
123 | /** | 127 | /** |
-
请 注册 或 登录 后发表评论