Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
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
pseer
gxpt_ht
Commits
6e9b1268
Commit
6e9b1268
authored
Nov 20, 2023
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数配置、数据字典修改
parent
fcdd47a8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
181 deletions
+0
-181
SysConfigController.java
...java/share/web/controller/system/SysConfigController.java
+0
-60
SysDictDataController.java
...va/share/web/controller/system/SysDictDataController.java
+0
-41
SysDictTypeController.java
...va/share/web/controller/system/SysDictTypeController.java
+0
-50
SysNoticeController.java
...java/share/web/controller/system/SysNoticeController.java
+0
-30
No files found.
share-front/src/main/java/share/web/controller/system/SysConfigController.java
View file @
6e9b1268
...
...
@@ -45,15 +45,6 @@ public class SysConfigController extends BaseController
return
getDataTable
(
list
);
}
//@Log(title = "参数管理", businessType = BusinessType.EXPORT)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SysConfig
config
)
{
List
<
SysConfig
>
list
=
configService
.
selectConfigList
(
config
);
ExcelUtil
<
SysConfig
>
util
=
new
ExcelUtil
<
SysConfig
>(
SysConfig
.
class
);
util
.
exportExcel
(
response
,
list
,
"参数数据"
);
}
/**
* 根据参数编号获取详细信息
*/
...
...
@@ -72,55 +63,4 @@ public class SysConfigController extends BaseController
return
success
(
configService
.
selectConfigByKey
(
configKey
));
}
/**
* 新增参数配置
*/
//@Log(title = "参数管理", businessType = BusinessType.INSERT)
@PostMapping
public
AjaxResult
add
(
@Validated
@RequestBody
SysConfig
config
)
{
if
(!
configService
.
checkConfigKeyUnique
(
config
))
{
return
error
(
"新增参数'"
+
config
.
getConfigName
()
+
"'失败,参数键名已存在"
);
}
config
.
setCreateBy
(
getUsername
());
return
toAjax
(
configService
.
insertConfig
(
config
));
}
/**
* 修改参数配置
*/
//@Log(title = "参数管理", businessType = BusinessType.UPDATE)
@PutMapping
public
AjaxResult
edit
(
@Validated
@RequestBody
SysConfig
config
)
{
if
(!
configService
.
checkConfigKeyUnique
(
config
))
{
return
error
(
"修改参数'"
+
config
.
getConfigName
()
+
"'失败,参数键名已存在"
);
}
config
.
setUpdateBy
(
getUsername
());
return
toAjax
(
configService
.
updateConfig
(
config
));
}
/**
* 删除参数配置
*/
//@Log(title = "参数管理", businessType = BusinessType.DELETE)
@DeleteMapping
(
"/{configIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
configIds
)
{
configService
.
deleteConfigByIds
(
configIds
);
return
success
();
}
/**
* 刷新参数缓存
*/
//@Log(title = "参数管理", businessType = BusinessType.CLEAN)
@DeleteMapping
(
"/refreshCache"
)
public
AjaxResult
refreshCache
()
{
configService
.
resetConfigCache
();
return
success
();
}
}
share-front/src/main/java/share/web/controller/system/SysDictDataController.java
View file @
6e9b1268
...
...
@@ -48,15 +48,6 @@ public class SysDictDataController extends BaseController
return
getDataTable
(
list
);
}
//@Log(title = "字典数据", businessType = BusinessType.EXPORT)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SysDictData
dictData
)
{
List
<
SysDictData
>
list
=
dictDataService
.
selectDictDataList
(
dictData
);
ExcelUtil
<
SysDictData
>
util
=
new
ExcelUtil
<
SysDictData
>(
SysDictData
.
class
);
util
.
exportExcel
(
response
,
list
,
"字典数据"
);
}
/**
* 查询字典数据详细
*/
...
...
@@ -80,36 +71,4 @@ public class SysDictDataController extends BaseController
return
success
(
data
);
}
/**
* 新增字典类型
*/
//@Log(title = "字典数据", businessType = BusinessType.INSERT)
@PostMapping
public
AjaxResult
add
(
@Validated
@RequestBody
SysDictData
dict
)
{
dict
.
setCreateBy
(
getUsername
());
return
toAjax
(
dictDataService
.
insertDictData
(
dict
));
}
/**
* 修改保存字典类型
*/
//@Log(title = "字典数据", businessType = BusinessType.UPDATE)
@PutMapping
public
AjaxResult
edit
(
@Validated
@RequestBody
SysDictData
dict
)
{
dict
.
setUpdateBy
(
getUsername
());
return
toAjax
(
dictDataService
.
updateDictData
(
dict
));
}
/**
* 删除字典类型
*/
//@Log(title = "字典类型", businessType = BusinessType.DELETE)
@DeleteMapping
(
"/{dictCodes}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
dictCodes
)
{
dictDataService
.
deleteDictDataByIds
(
dictCodes
);
return
success
();
}
}
share-front/src/main/java/share/web/controller/system/SysDictTypeController.java
View file @
6e9b1268
...
...
@@ -42,15 +42,6 @@ public class SysDictTypeController extends BaseController
return
getDataTable
(
list
);
}
//@Log(title = "字典类型", businessType = BusinessType.EXPORT)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SysDictType
dictType
)
{
List
<
SysDictType
>
list
=
dictTypeService
.
selectDictTypeList
(
dictType
);
ExcelUtil
<
SysDictType
>
util
=
new
ExcelUtil
<
SysDictType
>(
SysDictType
.
class
);
util
.
exportExcel
(
response
,
list
,
"字典类型"
);
}
/**
* 查询字典类型详细
*/
...
...
@@ -61,47 +52,6 @@ public class SysDictTypeController extends BaseController
}
/**
* 新增字典类型
*/
//@Log(title = "字典类型", businessType = BusinessType.INSERT)
@PostMapping
public
AjaxResult
add
(
@Validated
@RequestBody
SysDictType
dict
)
{
if
(!
dictTypeService
.
checkDictTypeUnique
(
dict
))
{
return
error
(
"新增字典'"
+
dict
.
getDictName
()
+
"'失败,字典类型已存在"
);
}
dict
.
setCreateBy
(
getUsername
());
return
toAjax
(
dictTypeService
.
insertDictType
(
dict
));
}
/**
* 修改字典类型
*/
//@Log(title = "字典类型", businessType = BusinessType.UPDATE)
@PutMapping
public
AjaxResult
edit
(
@Validated
@RequestBody
SysDictType
dict
)
{
if
(!
dictTypeService
.
checkDictTypeUnique
(
dict
))
{
return
error
(
"修改字典'"
+
dict
.
getDictName
()
+
"'失败,字典类型已存在"
);
}
dict
.
setUpdateBy
(
getUsername
());
return
toAjax
(
dictTypeService
.
updateDictType
(
dict
));
}
/**
* 删除字典类型
*/
//@Log(title = "字典类型", businessType = BusinessType.DELETE)
@DeleteMapping
(
"/{dictIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
dictIds
)
{
dictTypeService
.
deleteDictTypeByIds
(
dictIds
);
return
success
();
}
/**
* 刷新字典缓存
*/
//@Log(title = "字典类型", businessType = BusinessType.CLEAN)
...
...
share-front/src/main/java/share/web/controller/system/SysNoticeController.java
View file @
6e9b1268
...
...
@@ -52,35 +52,5 @@ public class SysNoticeController extends BaseController
return
success
(
noticeService
.
selectNoticeById
(
noticeId
));
}
/**
* 新增通知公告
*/
//@Log(title = "通知公告", businessType = BusinessType.INSERT)
@PostMapping
public
AjaxResult
add
(
@Validated
@RequestBody
SysNotice
notice
)
{
notice
.
setCreateBy
(
getUsername
());
return
toAjax
(
noticeService
.
insertNotice
(
notice
));
}
/**
* 修改通知公告
*/
//@Log(title = "通知公告", businessType = BusinessType.UPDATE)
@PutMapping
public
AjaxResult
edit
(
@Validated
@RequestBody
SysNotice
notice
)
{
notice
.
setUpdateBy
(
getUsername
());
return
toAjax
(
noticeService
.
updateNotice
(
notice
));
}
/**
* 删除通知公告
*/
//@Log(title = "通知公告", businessType = BusinessType.DELETE)
@DeleteMapping
(
"/{noticeIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
noticeIds
)
{
return
toAjax
(
noticeService
.
deleteNoticeByIds
(
noticeIds
));
}
}
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