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
c433b338
Commit
c433b338
authored
Dec 01, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_new_patrol
parents
35c0c347
4356443c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
141 additions
and
80 deletions
+141
-80
DataDictionaryController.java
.../boot/biz/common/controller/DataDictionaryController.java
+20
-0
EquipmentClassifityEnum.java
...os/boot/module/tcm/api/enums/EquipmentClassifityEnum.java
+6
-1
IEquipmentCategoryService.java
...oot/module/tcm/api/service/IEquipmentCategoryService.java
+9
-3
EquipmentCategoryController.java
...odule/tcm/biz/controller/EquipmentCategoryController.java
+0
-0
EquipmentCategoryServiceImpl.java
...le/tcm/biz/service/impl/EquipmentCategoryServiceImpl.java
+99
-76
equipCategory.json
...module-tcm-biz/src/main/resources/json/equipCategory.json
+7
-0
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/controller/DataDictionaryController.java
View file @
c433b338
...
@@ -408,4 +408,24 @@ public class DataDictionaryController extends BaseController {
...
@@ -408,4 +408,24 @@ public class DataDictionaryController extends BaseController {
return
ResponseHelper
.
buildResponse
(
iDataDictionaryService
.
getByParent
(
parent
));
return
ResponseHelper
.
buildResponse
(
iDataDictionaryService
.
getByParent
(
parent
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/dataDictionary/{type}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据字典类型查询字典"
,
notes
=
"根据字典类型查询字典"
)
public
ResponseModel
<
Object
>
dataDictionary
(
@PathVariable
String
type
)
throws
Exception
{
QueryWrapper
<
DataDictionary
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"type"
,
type
);
queryWrapper
.
orderByAsc
(
"sort_num"
);
if
(
redisUtils
.
hasKey
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
))
{
Object
obj
=
redisUtils
.
get
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
);
return
ResponseHelper
.
buildResponse
(
obj
);
}
else
{
Collection
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
List
<
MenuFrom
>
menus
=
TreeParser
.
getTreexin
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
"getParent"
,
null
);
redisUtils
.
set
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
,
JSON
.
toJSON
(
menus
),
time
);
return
ResponseHelper
.
buildResponse
(
menus
);
}
}
}
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/enums/EquipmentClassifityEnum.java
View file @
c433b338
...
@@ -21,12 +21,17 @@ public enum EquipmentClassifityEnum {
...
@@ -21,12 +21,17 @@ public enum EquipmentClassifityEnum {
YLSS
(
"大型游乐设施"
,
"6000"
),
YLSS
(
"大型游乐设施"
,
"6000"
),
KYSD
(
"压力管道元件"
,
"9000"
),
KYSD
(
"压力管道元件"
,
"9000"
),
YLGD
(
"压力管道"
,
"8000"
),
YLGD
(
"压力管道"
,
"8000"
),
QP
(
"气瓶"
,
"2300"
),
//树类型
//树类型
//设备认领状态
//设备认领状态
SBRLZT
(
"设备认领状态"
,
"rlzt"
),
SBRLZT
(
"设备认领状态"
,
"rlzt"
),
BDLS
(
"八大类树"
,
"eightCategory"
),
BDLS
(
"八大类树"
,
"eightCategory"
),
RENLING
(
"其他"
,
"other"
);
RENLING
(
"其他"
,
"other"
),
CYLINDER
(
"气瓶"
,
"cylinder"
);
private
String
name
;
private
String
name
;
private
String
code
;
private
String
code
;
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/service/IEquipmentCategoryService.java
View file @
c433b338
...
@@ -17,24 +17,25 @@ import java.util.Map;
...
@@ -17,24 +17,25 @@ import java.util.Map;
*/
*/
public
interface
IEquipmentCategoryService
{
public
interface
IEquipmentCategoryService
{
List
<
Map
<
String
,
Object
>>
equipTree
(
String
type
);
List
<
Map
<
String
,
Object
>>
equipTree
(
String
type
);
Page
equipClaimOverview
();
Page
equipClaimOverview
();
Map
<
String
,
String
>
createSupervisorCode
(
Map
<
String
,
Object
>
map
,
String
record
);
Map
<
String
,
String
>
createSupervisorCode
(
Map
<
String
,
Object
>
map
,
String
record
);
List
<
LinkedHashMap
>
getTree
();
List
<
LinkedHashMap
>
getTree
();
List
<
LinkedHashMap
>
creatTree
();
List
<
LinkedHashMap
>
creatTree
();
List
<
LinkedHashMap
>
getRegion
(
String
level
,
String
parentId
);
List
<
LinkedHashMap
>
getRegion
(
String
level
,
String
parentId
);
Map
<
String
,
Object
>
getCategoryAndDefineByRecord
(
String
rowId
);
Map
<
String
,
Object
>
getCategoryAndDefineByRecord
(
String
rowId
);
List
<
CategoryOtherInfo
>
checkCode
(
Map
<
String
,
Object
>
obj
);
List
<
CategoryOtherInfo
>
checkCode
(
Map
<
String
,
Object
>
obj
);
List
<
String
>
updateOtherInfo
(
Map
<
String
,
Object
>
map
);
List
<
String
>
updateOtherInfo
(
Map
<
String
,
Object
>
map
);
Map
<
String
,
Map
<
String
,
Object
>>
getFormRecordById
(
Map
<
String
,
Object
>
map
);
Map
<
String
,
Map
<
String
,
Object
>>
getFormRecordById
(
Map
<
String
,
Object
>
map
);
void
checkEsData
(
String
id
);
void
checkEsData
(
String
id
);
...
@@ -43,4 +44,9 @@ public interface IEquipmentCategoryService {
...
@@ -43,4 +44,9 @@ public interface IEquipmentCategoryService {
List
<
String
>
deleteBatch
(
Map
<
String
,
Object
>
map
);
List
<
String
>
deleteBatch
(
Map
<
String
,
Object
>
map
);
ResponseModel
submit
(
Map
<
String
,
Object
>
map
);
ResponseModel
submit
(
Map
<
String
,
Object
>
map
);
/**
* 企业设备树查询
*/
List
<
Map
<
String
,
Object
>>
unitEquipTree
();
}
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/EquipmentCategoryController.java
View file @
c433b338
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
c433b338
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/resources/json/equipCategory.json
View file @
c433b338
...
@@ -114,5 +114,11 @@
...
@@ -114,5 +114,11 @@
"name"
:
"客运索道"
,
"name"
:
"客运索道"
,
"code"
:
"9000"
"code"
:
"9000"
}
}
],
"cylinder"
:
[
{
"instanceName"
:
"气瓶"
,
"instanceId"
:
"2300"
}
]
]
}
}
\ No newline at end of file
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