Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
framework-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 13ddfd1c
authored
Jul 11, 2024
by
henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需改模块名称
1 parent
084a0d1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
framework-system-manage/src/main/java/org/arch/manage/conterller/DictDetailController.java
framework-system-manage/src/main/java/org/arch/manage/conterller/DictDetailController.java
View file @
13ddfd1
...
@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.List
;
import
java.util.List
;
@Api
(
value
=
"/dictDetail"
,
tags
=
{
"
数据字典详情
前端控制器"
})
@Api
(
value
=
"/dictDetail"
,
tags
=
{
"
系统功能
前端控制器"
})
@RestController
@RestController
@RequestMapping
(
"/dictDetail"
)
@RequestMapping
(
"/dictDetail"
)
@AllArgsConstructor
@AllArgsConstructor
...
@@ -38,7 +38,7 @@ public class DictDetailController {
...
@@ -38,7 +38,7 @@ public class DictDetailController {
@ApiOperation
(
value
=
"维护-数据详情字典值列表查询"
)
@ApiOperation
(
value
=
"维护-数据详情字典值列表查询"
)
@PostMapping
(
value
=
"/"
)
@PostMapping
(
value
=
"/"
)
@OperLog
(
value
=
LogOperTypeEnum
.
ADD
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"维护-数据详情字典值列表查询"
,
moduleName
=
"
数据字典详情
"
)
@OperLog
(
value
=
LogOperTypeEnum
.
ADD
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"维护-数据详情字典值列表查询"
,
moduleName
=
"
系统功能
"
)
public
Result
<
Page
<
DictDetail
>>
list
(
@RequestBody
DictDetailListDTO
dictDetailListDTO
)
{
public
Result
<
Page
<
DictDetail
>>
list
(
@RequestBody
DictDetailListDTO
dictDetailListDTO
)
{
QueryWrapper
<
DictDetail
>
queryWrapper
=
Wrappers
.
query
();
QueryWrapper
<
DictDetail
>
queryWrapper
=
Wrappers
.
query
();
queryWrapper
.
like
(
StrUtil
.
isNotBlank
(
dictDetailListDTO
.
getLabel
()),
"label"
,
dictDetailListDTO
.
getLabel
());
queryWrapper
.
like
(
StrUtil
.
isNotBlank
(
dictDetailListDTO
.
getLabel
()),
"label"
,
dictDetailListDTO
.
getLabel
());
...
@@ -53,14 +53,14 @@ public class DictDetailController {
...
@@ -53,14 +53,14 @@ public class DictDetailController {
@PostMapping
(
value
=
"/details"
)
@PostMapping
(
value
=
"/details"
)
@ApiOperation
(
value
=
"查询-数据详情字典值"
)
@ApiOperation
(
value
=
"查询-数据详情字典值"
)
@OperLog
(
value
=
LogOperTypeEnum
.
QUERY
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"查询-数据详情字典值"
,
moduleName
=
"
数据字典详情
"
)
@OperLog
(
value
=
LogOperTypeEnum
.
QUERY
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"查询-数据详情字典值"
,
moduleName
=
"
系统功能
"
)
public
Result
<
DictDetail
>
getById
(
String
id
)
{
public
Result
<
DictDetail
>
getById
(
String
id
)
{
return
Result
.
success
(
dictDetailService
.
getById
(
id
));
return
Result
.
success
(
dictDetailService
.
getById
(
id
));
}
}
@PostMapping
(
value
=
"/create"
)
@PostMapping
(
value
=
"/create"
)
@ApiOperation
(
value
=
"新建-数据详情字典值"
)
@ApiOperation
(
value
=
"新建-数据详情字典值"
)
@OperLog
(
value
=
LogOperTypeEnum
.
ADD
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"新建-数据详情字典值"
,
moduleName
=
"
数据字典详情
"
)
@OperLog
(
value
=
LogOperTypeEnum
.
ADD
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"新建-数据详情字典值"
,
moduleName
=
"
系统功能
"
)
public
Result
<
Object
>
create
(
@RequestBody
DictDetail
params
)
{
public
Result
<
Object
>
create
(
@RequestBody
DictDetail
params
)
{
dictDetailService
.
save
(
params
);
dictDetailService
.
save
(
params
);
return
Result
.
success
();
return
Result
.
success
();
...
@@ -68,7 +68,7 @@ public class DictDetailController {
...
@@ -68,7 +68,7 @@ public class DictDetailController {
@PostMapping
(
value
=
"/update"
)
@PostMapping
(
value
=
"/update"
)
@ApiOperation
(
value
=
"修改-数据详情字典值"
)
@ApiOperation
(
value
=
"修改-数据详情字典值"
)
@OperLog
(
value
=
LogOperTypeEnum
.
UPDATE
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"修改-数据详情字典值"
,
moduleName
=
"
数据字典详情
"
)
@OperLog
(
value
=
LogOperTypeEnum
.
UPDATE
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"修改-数据详情字典值"
,
moduleName
=
"
系统功能
"
)
public
Result
<
Object
>
updateById
(
@RequestBody
DictDetail
params
)
{
public
Result
<
Object
>
updateById
(
@RequestBody
DictDetail
params
)
{
dictDetailService
.
updateById
(
params
);
dictDetailService
.
updateById
(
params
);
return
Result
.
success
();
return
Result
.
success
();
...
@@ -77,7 +77,7 @@ public class DictDetailController {
...
@@ -77,7 +77,7 @@ public class DictDetailController {
@PostMapping
(
value
=
"/delete"
)
@PostMapping
(
value
=
"/delete"
)
@ApiOperation
(
value
=
"是否禁用-数据详情字典值"
)
@ApiOperation
(
value
=
"是否禁用-数据详情字典值"
)
@OperLog
(
value
=
LogOperTypeEnum
.
DELETE
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"是否禁用-数据详情字典值"
,
moduleName
=
"
数据字典详情
"
)
@OperLog
(
value
=
LogOperTypeEnum
.
DELETE
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"是否禁用-数据详情字典值"
,
moduleName
=
"
系统功能
"
)
public
Result
<
Object
>
delete
(
@RequestBody
String
id
)
{
public
Result
<
Object
>
delete
(
@RequestBody
String
id
)
{
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
id
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
id
);
id
=
jsonObject
.
getString
(
"id"
);
id
=
jsonObject
.
getString
(
"id"
);
...
@@ -98,7 +98,7 @@ public class DictDetailController {
...
@@ -98,7 +98,7 @@ public class DictDetailController {
@PostMapping
(
value
=
"/phyDel"
)
@PostMapping
(
value
=
"/phyDel"
)
@ApiOperation
(
value
=
"物理删除-数据详情字典值"
)
@ApiOperation
(
value
=
"物理删除-数据详情字典值"
)
@OperLog
(
value
=
LogOperTypeEnum
.
DELETE
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"物理删除-数据详情字典值"
,
moduleName
=
"
数据字典详情
"
)
@OperLog
(
value
=
LogOperTypeEnum
.
DELETE
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"物理删除-数据详情字典值"
,
moduleName
=
"
系统功能
"
)
public
Result
<
Object
>
phyDel
(
@RequestBody
String
id
)
{
public
Result
<
Object
>
phyDel
(
@RequestBody
String
id
)
{
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
id
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
id
);
id
=
jsonObject
.
getString
(
"id"
);
id
=
jsonObject
.
getString
(
"id"
);
...
@@ -106,7 +106,7 @@ public class DictDetailController {
...
@@ -106,7 +106,7 @@ public class DictDetailController {
QueryWrapper
<
DictDetail
>
qwrapper
=
Wrappers
.
query
();
QueryWrapper
<
DictDetail
>
qwrapper
=
Wrappers
.
query
();
qwrapper
.
eq
(
"id"
,
id
);
qwrapper
.
eq
(
"id"
,
id
);
DictDetail
dictDetail
=
dictDetailService
.
getOne
(
qwrapper
);
DictDetail
dictDetail
=
dictDetailService
.
getOne
(
qwrapper
);
Assert
.
notNull
(
dictDetail
,
"查询的
数据字典详情
项不存在!"
);
Assert
.
notNull
(
dictDetail
,
"查询的
系统功能
项不存在!"
);
// 删除数据
// 删除数据
dictDetailService
.
removeById
(
id
);
dictDetailService
.
removeById
(
id
);
...
@@ -118,7 +118,7 @@ public class DictDetailController {
...
@@ -118,7 +118,7 @@ public class DictDetailController {
@PostMapping
(
value
=
"/logCount"
)
@PostMapping
(
value
=
"/logCount"
)
@ApiOperation
(
value
=
"数据字典-日志总数"
)
@ApiOperation
(
value
=
"数据字典-日志总数"
)
@OperLog
(
value
=
LogOperTypeEnum
.
QUERY
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"数据字典-日志总数"
,
moduleName
=
"
数据字典详情
"
)
@OperLog
(
value
=
LogOperTypeEnum
.
QUERY
,
logTypeValue
=
LogTypeEnum
.
BUSI_LOG
,
operDes
=
"数据字典-日志总数"
,
moduleName
=
"
系统功能
"
)
public
Result
<
DictDetail
>
getById
()
{
public
Result
<
DictDetail
>
getById
()
{
QueryWrapper
<
DictDetail
>
dictDetailQueryWrapper
=
Wrappers
.
query
();
QueryWrapper
<
DictDetail
>
dictDetailQueryWrapper
=
Wrappers
.
query
();
dictDetailQueryWrapper
.
eq
(
"label"
,
"日志总数"
);
dictDetailQueryWrapper
.
eq
(
"label"
,
"日志总数"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment