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
5127935a
Commit
5127935a
authored
Mar 28, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
39225513
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
EquipmentCategoryController.java
...odule/tzs/biz/controller/EquipmentCategoryController.java
+3
-3
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EquipmentCategoryController.java
View file @
5127935a
...
...
@@ -126,13 +126,13 @@ public class EquipmentCategoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备分类列表全部数据查询"
,
notes
=
"装备分类列表全部数据查询"
)
@GetMapping
(
value
=
"/tree"
)
public
ResponseModel
<
Object
>
tree
(
@RequestParam
(
value
=
"code"
,
required
=
false
)
Lo
ng
code
)
throws
Exception
{
public
ResponseModel
<
Object
>
tree
(
@RequestParam
(
value
=
"code"
,
required
=
false
)
Stri
ng
code
)
throws
Exception
{
if
(
ObjectUtils
.
isEmpty
(
code
)){
return
ResponseHelper
.
buildResponse
(
new
ArrayList
<>());
}
EquipmentCategory
root
=
equipmentCategoryServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
EquipmentCategory
>().
eq
(
EquipmentCategory:
:
getCode
,
code
.
toString
()
));
EquipmentCategory
root
=
equipmentCategoryServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
EquipmentCategory
>().
eq
(
EquipmentCategory:
:
getCode
,
code
));
QueryWrapper
<
EquipmentCategory
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
likeRight
(
"code"
,
code
.
toString
().
replaceAll
(
"0+$"
,
""
));
queryWrapper
.
likeRight
(
"code"
,
code
.
replaceAll
(
"0+$"
,
""
));
Collection
<
EquipmentCategory
>
list
=
equipmentCategoryServiceImpl
.
list
(
queryWrapper
);
Menu
menu
=
new
Menu
(
root
.
getId
(),
root
.
getName
(),
0L
,
0
);
List
<
Menu
>
menus
=
TreeParser
.
getTree
(
root
.
getId
(),
list
,
EquipmentCategory
.
class
.
getName
(),
"getId"
,
0
,
"getName"
,
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
5127935a
...
...
@@ -157,7 +157,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
EquInfoDto
equInfoDto
=
categoryOtherInfoMapper
.
selectEquipInfo
(
record
);
//判断这条数据认领状态是否为已认领(6035),且是否已经有电梯96333码和监管码
//如果都满足则直接返回不做生成码操作
if
(
ObjectUtils
.
isEmpty
(
equInfoDto
)
&&
"6035"
.
equals
(
equInfoDto
.
getStatus
())
&&
(
ObjectUtils
.
isEmpty
(
equInfoDto
.
getSupervisor
())
||
ObjectUtils
.
isEmpty
(
equInfoDto
.
getCode
())))
{
if
(
!
ObjectUtils
.
isEmpty
(
equInfoDto
)
&&
"6035"
.
equals
(
equInfoDto
.
getStatus
())
&&
(
ObjectUtils
.
isEmpty
(
equInfoDto
.
getSupervisor
())
||
ObjectUtils
.
isEmpty
(
equInfoDto
.
getCode
())))
{
city
=
equInfoDto
.
getCity
();
county
=
equInfoDto
.
getCounty
();
equipCategory
=
equInfoDto
.
getEquipCategory
();
...
...
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