Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
maintain_service
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
刘帅
maintain_service
Commits
532bf160
Commit
532bf160
authored
Jun 12, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.仓库货位限制移除
parent
798d5d45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
ErpWarehouseLocationBo.java
...m/maintain/business/domain/bo/ErpWarehouseLocationBo.java
+0
-2
ErpWarehouseLocationServiceImpl.java
...usiness/service/impl/ErpWarehouseLocationServiceImpl.java
+9
-5
No files found.
maintain-business/src/main/java/com/maintain/business/domain/bo/ErpWarehouseLocationBo.java
View file @
532bf160
...
@@ -29,7 +29,6 @@ public class ErpWarehouseLocationBo extends BaseEntity {
...
@@ -29,7 +29,6 @@ public class ErpWarehouseLocationBo extends BaseEntity {
/**
/**
* 仓库货位部门ID
* 仓库货位部门ID
*/
*/
@NotNull
(
message
=
"部门ID不能为空"
,
groups
=
{
AddGroup
.
class
,
EditGroup
.
class
})
private
Long
deptId
;
private
Long
deptId
;
/**
/**
...
@@ -40,7 +39,6 @@ public class ErpWarehouseLocationBo extends BaseEntity {
...
@@ -40,7 +39,6 @@ public class ErpWarehouseLocationBo extends BaseEntity {
/**
/**
* 仓库ID
* 仓库ID
*/
*/
@NotNull
(
message
=
"仓库ID不能为空"
,
groups
=
{
AddGroup
.
class
,
EditGroup
.
class
})
private
Long
warehouseId
;
private
Long
warehouseId
;
/**
/**
...
...
maintain-business/src/main/java/com/maintain/business/service/impl/ErpWarehouseLocationServiceImpl.java
View file @
532bf160
...
@@ -85,11 +85,15 @@ public class ErpWarehouseLocationServiceImpl implements IErpWarehouseLocationSer
...
@@ -85,11 +85,15 @@ public class ErpWarehouseLocationServiceImpl implements IErpWarehouseLocationSer
if
(!
baseMapper
.
selectList
(
queryWrapper
).
isEmpty
())
{
if
(!
baseMapper
.
selectList
(
queryWrapper
).
isEmpty
())
{
throw
new
RuntimeException
(
"仓库货位已存在,请调整后再试"
);
throw
new
RuntimeException
(
"仓库货位已存在,请调整后再试"
);
}
}
SysDept
sysDept
=
deptMapper
.
selectVoById
(
add
.
getDeptId
());
if
(
add
.
getDeptId
()
!=
null
)
{
add
.
setDeptName
(
sysDept
.
getDeptName
());
SysDept
sysDept
=
deptMapper
.
selectVoById
(
add
.
getDeptId
());
ErpWarehouseVo
warehouseVo
=
warehouseMapper
.
selectVoById
(
add
.
getWarehouseId
());
add
.
setDeptName
(
sysDept
.
getDeptName
());
add
.
setWarehouseCode
(
warehouseVo
.
getCode
());
}
add
.
setWarehouseName
(
warehouseVo
.
getName
());
if
(
add
.
getWarehouseId
()
!=
null
)
{
ErpWarehouseVo
warehouseVo
=
warehouseMapper
.
selectVoById
(
add
.
getWarehouseId
());
add
.
setWarehouseCode
(
warehouseVo
.
getCode
());
add
.
setWarehouseName
(
warehouseVo
.
getName
());
}
boolean
flag
=
baseMapper
.
insert
(
add
)
>
0
;
boolean
flag
=
baseMapper
.
insert
(
add
)
>
0
;
if
(
flag
)
{
if
(
flag
)
{
bo
.
setId
(
add
.
getId
());
bo
.
setId
(
add
.
getId
());
...
...
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