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
5c4150ae
Commit
5c4150ae
authored
Jun 30, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加危化品树
parent
96c46209
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4 deletions
+31
-4
DataDictionaryController.java
...t/module/jcs/biz/controller/DataDictionaryController.java
+27
-0
FireChemicalController.java
...oot/module/jcs/biz/controller/FireChemicalController.java
+2
-2
FireChemicalServiceImpl.java
.../module/jcs/biz/service/impl/FireChemicalServiceImpl.java
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/DataDictionaryController.java
View file @
5c4150ae
...
...
@@ -167,6 +167,33 @@ public class DataDictionaryController extends BaseController {
return
ResponseHelper
.
buildResponse
(
menus
);
}
}
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/gwmcDataDictionary/FireChemical/{type}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据字典类型查询字典"
,
notes
=
"根据字典类型查询字典"
)
public
ResponseModel
<
Object
>
gwmcDataDictionaryFireChemical
(
@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
<
Menu
>
menus
=
TreeParser
.
getTree
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
"getParent"
);
redisUtils
.
set
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
,
JSON
.
toJSON
(
menus
),
time
);
Menu
Me
=
new
Menu
(
1L
,
"危险品库"
,
null
,
false
,
menus
);
return
ResponseHelper
.
buildResponse
(
Me
);
}
}
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/form/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据表态类型多个code查询表单数据项"
,
notes
=
"根据表态类型多个code查询表单数据项"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/FireChemicalController.java
View file @
5c4150ae
...
...
@@ -88,13 +88,13 @@ public class FireChemicalController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"危化品分页查询"
,
notes
=
"危化品分页查询"
)
public
ResponseModel
<
Page
<
FireChemicalDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
String
casNo
,
String
formula
,
String
name
)
public
ResponseModel
<
Page
<
FireChemicalDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
String
casNo
,
String
formula
,
String
name
,
String
type
)
{
Page
<
FireChemicalDto
>
page
=
new
Page
<
FireChemicalDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
boolean
isDelete
=
false
;
return
ResponseHelper
.
buildResponse
(
fireChemicalServiceImpl
.
queryForFireChemicalPage
(
page
,
casNo
,
formula
,
name
,
isDelete
));
return
ResponseHelper
.
buildResponse
(
fireChemicalServiceImpl
.
queryForFireChemicalPage
(
page
,
casNo
,
formula
,
name
,
type
,
isDelete
));
}
/**
*列表全部数据查询
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/FireChemicalServiceImpl.java
View file @
5c4150ae
...
...
@@ -27,8 +27,8 @@ public class FireChemicalServiceImpl extends BaseService<FireChemicalDto,FireChe
/**
* 分页查询
*/
public
Page
<
FireChemicalDto
>
queryForFireChemicalPage
(
Page
<
FireChemicalDto
>
page
,
@Condition
(
Operator
.
like
)
String
casNo
,
@Condition
(
Operator
.
like
)
String
formula
,
@Condition
(
Operator
.
like
)
String
name
,
boolean
isDelete
)
{
return
this
.
queryForPage
(
page
,
""
,
false
,
casNo
,
formula
,
name
,
isDelete
);
public
Page
<
FireChemicalDto
>
queryForFireChemicalPage
(
Page
<
FireChemicalDto
>
page
,
@Condition
(
Operator
.
like
)
String
casNo
,
@Condition
(
Operator
.
like
)
String
formula
,
@Condition
(
Operator
.
like
)
String
name
,
String
type
,
boolean
isDelete
)
{
return
this
.
queryForPage
(
page
,
""
,
false
,
casNo
,
formula
,
name
,
type
,
isDelete
);
}
/**
...
...
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