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
f7429785
Commit
f7429785
authored
Oct 21, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
47ae92cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
WarehouseController.java
...itory/controller/admin/warehouse/WarehouseController.java
+1
-1
AppWarehouseController.java
...tory/controller/app/warehouse/AppWarehouseController.java
+1
-1
No files found.
yudao-module-depository/yudao-module-depository-rest/src/main/java/cn/iocoder/yudao/module/depository/controller/admin/warehouse/WarehouseController.java
View file @
f7429785
...
...
@@ -217,7 +217,7 @@ public class WarehouseController {
channelInfoEvent
.
setChannelId
(
requestVO
.
getChannelId
());
applicationContext
.
publishEvent
(
channelInfoEvent
);
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
,
"目的国与渠道不匹配"
);
}
requestVO
.
setDestCountryId
(
channelInfoEvent
.
getCountryId
());
...
...
yudao-module-depository/yudao-module-depository-rest/src/main/java/cn/iocoder/yudao/module/depository/controller/app/warehouse/AppWarehouseController.java
View file @
f7429785
...
...
@@ -138,7 +138,7 @@ public class AppWarehouseController {
channelInfoEvent
.
setChannelId
(
requestVO
.
getChannelId
());
applicationContext
.
publishEvent
(
channelInfoEvent
);
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
,
"目的国与渠道不匹配"
);
}
requestVO
.
setDestCountryId
(
channelInfoEvent
.
getCountryId
());
...
...
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