Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
项目统一框架
amos-boot-biz
Commits
ac9da698
Commit
ac9da698
authored
Jan 04, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加单位过滤 货位
parent
014db0b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
WarehouseStructureController.java
.../equipmanage/controller/WarehouseStructureController.java
+8
-0
IWarehouseStructureService.java
...ejoin/equipmanage/service/IWarehouseStructureService.java
+1
-1
WarehouseStructureServiceImpl.java
...uipmanage/service/impl/WarehouseStructureServiceImpl.java
+13
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/WarehouseStructureController.java
View file @
ac9da698
...
...
@@ -177,6 +177,14 @@ public class WarehouseStructureController extends AbstractBaseController {
return
iWarehouseStructureService
.
tree
(
id
);
}
@RequestMapping
(
value
=
"/gettree/{id}"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"树查询"
,
notes
=
"树查询"
)
public
List
<
WarehouseStructure
>
gettree
(
@PathVariable
Long
id
,
String
bizOrgCode
)
{
return
iWarehouseStructureService
.
gettree
(
id
,
bizOrgCode
);
}
/**
* 批量删除
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IWarehouseStructureService.java
View file @
ac9da698
...
...
@@ -17,7 +17,7 @@ public interface IWarehouseStructureService extends IService<WarehouseStructure>
WarehouseStructure
saveOne
(
WarehouseStructure
warehouseStructure
);
List
<
WarehouseStructure
>
tree
(
Long
warehouseId
);
List
<
WarehouseStructure
>
gettree
(
Long
warehouseId
,
String
bizOrgCode
);
WarehouseStructure
updateOneById
(
WarehouseStructure
warehouseStructure
);
boolean
removeOneById
(
Long
id
)
throws
Exception
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/WarehouseStructureServiceImpl.java
View file @
ac9da698
...
...
@@ -6,6 +6,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
com.yeejoin.equipmanage.common.entity.FormInstance
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -63,6 +64,18 @@ public class WarehouseStructureServiceImpl extends ServiceImpl<WarehouseStructur
return
list
;
}
@Override
public
List
<
WarehouseStructure
>
gettree
(
Long
warehouseId
,
String
bizOrgCode
)
{
QueryWrapper
<
WarehouseStructure
>
one
=
new
QueryWrapper
<>();
one
.
eq
(
"warehouse_id"
,
warehouseId
);
one
.
likeRight
(
"biz_org_code"
,
bizOrgCode
);
List
<
WarehouseStructure
>
list
=
warehouseStructureMapper
.
selectList
(
one
);
list
=
buildByRecursive
(
list
,
warehouseId
);
return
list
;
}
/**
* 生成code
*
...
...
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