Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
1f11eca7
Commit
1f11eca7
authored
Nov 18, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into release
parents
878bf442
7a1bc4bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
28 deletions
+29
-28
WarehouseLineMapper.xml
...c/main/resources/mapper/warehouse/WarehouseLineMapper.xml
+21
-22
WarehouseController.java
...itory/controller/admin/warehouse/WarehouseController.java
+8
-6
No files found.
yudao-module-depository/yudao-module-depository-core/src/main/resources/mapper/warehouse/WarehouseLineMapper.xml
View file @
1f11eca7
...
...
@@ -56,28 +56,27 @@
<if
test=
"params.destWarehouseId != null and params.destWarehouseId != 0"
>
and ewl.dest_warehouse_id = #{params.destWarehouseId}
</if>
<!--目的地-->
<if
test=
"params.destCityIds != null and params.destCityIds.size()>0 "
>
and ew_dest.`shi` in
<foreach
item=
'destCity'
index=
'index'
collection=
'params.destCityIds'
open=
'('
separator=
','
close=
')'
>
#{destCity}
</foreach>
</if>
<!--目的国-->
<if
test=
"params.destCountryIds != null and params.destCountryIds.size()>0 "
>
and ew_dest.`guojia` in
<foreach
item=
'destCountry'
index=
'index'
collection=
'params.destCountryIds'
open=
'('
separator=
','
close=
')'
>
#{destCountry}
</foreach>
</if>
<!--目的仓-->
<if
test=
"params.destWarehouseIds != null and params.destWarehouseIds.size()>0 "
>
and ewl.dest_warehouse_id in
<foreach
item=
'destWarehouse'
index=
'index'
collection=
'params.destWarehouseIds'
open=
'('
separator=
','
close=
')'
>
#{destWarehouse}
</foreach>
</if>
<!--目的地-->
<if
test=
"params.destCityIds != null and params.destCityIds.size()>0 "
>
and ew_dest.`shi` in
<foreach
item=
'destCity'
index=
'index'
collection=
'params.destCityIds'
open=
'('
separator=
','
close=
')'
>
#{destCity}
</foreach>
</if>
<!--目的国-->
<if
test=
"params.destCountryIds != null and params.destCountryIds.size()>0 "
>
and ew_dest.`guojia` in
<foreach
item=
'destCountry'
index=
'index'
collection=
'params.destCountryIds'
open=
'('
separator=
','
close=
')'
>
#{destCountry}
</foreach>
</if>
<!--目的仓-->
<if
test=
"params.destWarehouseIds != null and params.destWarehouseIds.size()>0 "
>
and ewl.dest_warehouse_id in
<foreach
item=
'destWarehouse'
index=
'index'
collection=
'params.destWarehouseIds'
open=
'('
separator=
','
close=
')'
>
#{destWarehouse}
</foreach>
</if>
<if
test=
"params.lineId != null and params.lineId != 0"
>
and ewl.id = #{params.lineId}
...
...
yudao-module-depository/yudao-module-depository-rest/src/main/java/cn/iocoder/yudao/module/depository/controller/admin/warehouse/WarehouseController.java
View file @
1f11eca7
...
...
@@ -217,15 +217,17 @@ public class WarehouseController {
channelInfoEvent
.
setChannelId
(
requestVO
.
getChannelId
());
applicationContext
.
publishEvent
(
channelInfoEvent
);
if
(
Objects
.
nonNull
(
channelInfoEvent
.
getCountryId
())
&&
channelInfoEvent
.
getCountryId
()
>
0L
){
if
(
Objects
.
nonNull
(
requestVO
.
getDestCountryIds
())
&&
requestVO
.
getDestCountryIds
().
size
()
>
0
)
{
List
<
Long
>
destCountryIds
=
requestVO
.
getDestCountryIds
();
for
(
Long
countryid:
destCountryIds
)
{
if
(!
Objects
.
equals
(
countryid
,
channelInfoEvent
.
getCountryId
()))
{
return
error
(
400
,
"目的国与渠道不匹配"
);
if
(
Objects
.
nonNull
(
requestVO
.
getDestCountryId
())
&&
requestVO
.
getDestCountryId
()
>
0L
&&
!
Objects
.
equals
(
requestVO
.
getDestCountryId
(),
channelInfoEvent
.
getCountryId
()))
{
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment