Commit 1f11eca7 authored by zhengyi's avatar zhengyi

Merge branch 'test' into release

parents 878bf442 7a1bc4bb
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
<if test="params.destWarehouseId != null and params.destWarehouseId != 0"> <if test="params.destWarehouseId != null and params.destWarehouseId != 0">
and ewl.dest_warehouse_id = #{params.destWarehouseId} and ewl.dest_warehouse_id = #{params.destWarehouseId}
</if> </if>
<!--目的地--> <!--目的地-->
<if test="params.destCityIds != null and params.destCityIds.size()>0 "> <if test="params.destCityIds != null and params.destCityIds.size()>0 ">
and ew_dest.`shi` in and ew_dest.`shi` in
......
...@@ -217,15 +217,17 @@ public class WarehouseController { ...@@ -217,15 +217,17 @@ 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.getDestCountryIds()) && requestVO.getDestCountryIds().size() > 0 ) { if (Objects.nonNull(requestVO.getDestCountryId()) && requestVO.getDestCountryId() > 0L && !Objects.equals(requestVO.getDestCountryId(),channelInfoEvent.getCountryId())) {
List<Long> destCountryIds = requestVO.getDestCountryIds();
for(Long countryid:destCountryIds) {
if(!Objects.equals(countryid,channelInfoEvent.getCountryId())) {
return error(400,"目的国与渠道不匹配"); return error(400,"目的国与渠道不匹配");
}else {
if (Objects.nonNull(requestVO.getDestCountryIds()) && requestVO.getDestCountryIds().size() > 0) {
List<Long> destCountryIds = requestVO.getDestCountryIds();
if (!destCountryIds.contains(channelInfoEvent.getCountryId())) {
return error(400, "目的国与渠道不匹配");
} }
} }
} }
//requestVO.setDestCountryId(channelInfoEvent.getCountryId()); requestVO.setDestCountryId(channelInfoEvent.getCountryId());
} }
} }
List<WarehouseLineDO> list = warehouseService.openedRouterList(requestVO); List<WarehouseLineDO> list = warehouseService.openedRouterList(requestVO);
......
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