Commit f7429785 authored by zhengyi's avatar zhengyi

bug修复

parent 47ae92cb
...@@ -217,7 +217,7 @@ public class WarehouseController { ...@@ -217,7 +217,7 @@ public class WarehouseController {
channelInfoEvent.setChannelId(requestVO.getChannelId()); channelInfoEvent.setChannelId(requestVO.getChannelId());
applicationContext.publishEvent(channelInfoEvent); applicationContext.publishEvent(channelInfoEvent);
if (Objects.nonNull(channelInfoEvent.getCountryId()) && channelInfoEvent.getCountryId() > 0L){ if (Objects.nonNull(channelInfoEvent.getCountryId()) && channelInfoEvent.getCountryId() > 0L){
if (Objects.nonNull(requestVO.getDestCountryId()) && requestVO.getDestCountryId() > 0L && requestVO.getDestCountryId() != channelInfoEvent.getCountryId()) { if (Objects.nonNull(requestVO.getDestCountryId()) && requestVO.getDestCountryId() > 0L && !Objects.equals(requestVO.getDestCountryId(),channelInfoEvent.getCountryId())) {
return error(400,"目的国与渠道不匹配"); return error(400,"目的国与渠道不匹配");
} }
requestVO.setDestCountryId(channelInfoEvent.getCountryId()); requestVO.setDestCountryId(channelInfoEvent.getCountryId());
......
...@@ -138,7 +138,7 @@ public class AppWarehouseController { ...@@ -138,7 +138,7 @@ public class AppWarehouseController {
channelInfoEvent.setChannelId(requestVO.getChannelId()); channelInfoEvent.setChannelId(requestVO.getChannelId());
applicationContext.publishEvent(channelInfoEvent); applicationContext.publishEvent(channelInfoEvent);
if (Objects.nonNull(channelInfoEvent.getCountryId()) && channelInfoEvent.getCountryId() > 0L){ if (Objects.nonNull(channelInfoEvent.getCountryId()) && channelInfoEvent.getCountryId() > 0L){
if (Objects.nonNull(requestVO.getDestCountryId()) && requestVO.getDestCountryId() > 0L && requestVO.getDestCountryId() != channelInfoEvent.getCountryId()) { if (Objects.nonNull(requestVO.getDestCountryId()) && requestVO.getDestCountryId() > 0L && !Objects.equals(requestVO.getDestCountryId(),channelInfoEvent.getCountryId())) {
return error(400,"目的国与渠道不匹配"); return error(400,"目的国与渠道不匹配");
} }
requestVO.setDestCountryId(channelInfoEvent.getCountryId()); requestVO.setDestCountryId(channelInfoEvent.getCountryId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment