Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
4025f3db
Commit
4025f3db
authored
Dec 15, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限限制调整-fxj
parent
04955658
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
24 deletions
+12
-24
THolidayInfoController.java
...lus/v1/yifu/social/controller/THolidayInfoController.java
+6
-12
THouseHoldLimitController.java
.../v1/yifu/social/controller/THouseHoldLimitController.java
+6
-12
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/THolidayInfoController.java
View file @
4025f3db
...
@@ -74,7 +74,6 @@ public class THolidayInfoController {
...
@@ -74,7 +74,6 @@ public class THolidayInfoController {
*/
*/
@Operation
(
summary
=
"不分页查询"
,
description
=
"不分页查询"
)
@Operation
(
summary
=
"不分页查询"
,
description
=
"不分页查询"
)
@PostMapping
(
"/noPage"
)
@PostMapping
(
"/noPage"
)
//@PreAuthorize("@pms.hasPermission('demo_tholidayinfo_get')" )
public
R
<
List
<
THolidayInfo
>>
getTHolidayInfoNoPage
(
@RequestBody
THolidayInfoSearchVo
tHolidayInfo
)
{
public
R
<
List
<
THolidayInfo
>>
getTHolidayInfoNoPage
(
@RequestBody
THolidayInfoSearchVo
tHolidayInfo
)
{
return
R
.
ok
(
tHolidayInfoService
.
noPageDiy
(
tHolidayInfo
));
return
R
.
ok
(
tHolidayInfoService
.
noPageDiy
(
tHolidayInfo
));
}
}
...
@@ -85,9 +84,8 @@ public class THolidayInfoController {
...
@@ -85,9 +84,8 @@ public class THolidayInfoController {
* @param id id
* @param id id
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询
:hasPermission('demo_tholidayinfo_get')
"
)
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tholidayinfo_get')"
)
public
R
<
THolidayInfo
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
public
R
<
THolidayInfo
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tHolidayInfoService
.
getById
(
id
));
return
R
.
ok
(
tHolidayInfoService
.
getById
(
id
));
}
}
...
@@ -98,10 +96,9 @@ public class THolidayInfoController {
...
@@ -98,10 +96,9 @@ public class THolidayInfoController {
* @param tHolidayInfo
* @param tHolidayInfo
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"新增"
,
description
=
"新增
:hasPermission('demo_tholidayinfo_add')
"
)
@Operation
(
summary
=
"新增"
,
description
=
"新增"
)
@SysLog
(
"新增"
)
@SysLog
(
"新增"
)
@PostMapping
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('demo_tholidayinfo_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
THolidayInfo
tHolidayInfo
)
{
public
R
<
Boolean
>
save
(
@RequestBody
THolidayInfo
tHolidayInfo
)
{
return
R
.
ok
(
tHolidayInfoService
.
save
(
tHolidayInfo
));
return
R
.
ok
(
tHolidayInfoService
.
save
(
tHolidayInfo
));
}
}
...
@@ -112,10 +109,9 @@ public class THolidayInfoController {
...
@@ -112,10 +109,9 @@ public class THolidayInfoController {
* @param tHolidayInfo
* @param tHolidayInfo
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"修改"
,
description
=
"修改
:hasPermission('demo_tholidayinfo_edit')
"
)
@Operation
(
summary
=
"修改"
,
description
=
"修改"
)
@SysLog
(
"修改"
)
@SysLog
(
"修改"
)
@PutMapping
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('demo_tholidayinfo_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
THolidayInfo
tHolidayInfo
)
{
public
R
<
Boolean
>
updateById
(
@RequestBody
THolidayInfo
tHolidayInfo
)
{
return
R
.
ok
(
tHolidayInfoService
.
updateById
(
tHolidayInfo
));
return
R
.
ok
(
tHolidayInfoService
.
updateById
(
tHolidayInfo
));
}
}
...
@@ -126,10 +122,9 @@ public class THolidayInfoController {
...
@@ -126,10 +122,9 @@ public class THolidayInfoController {
* @param id id
* @param id id
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"通过id删除"
,
description
=
"通过id删除
:hasPermission('demo_tholidayinfo_del')
"
)
@Operation
(
summary
=
"通过id删除"
,
description
=
"通过id删除"
)
@SysLog
(
"通过id删除"
)
@SysLog
(
"通过id删除"
)
@DeleteMapping
(
"/{id}"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tholidayinfo_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tHolidayInfoService
.
removeById
(
id
));
return
R
.
ok
(
tHolidayInfoService
.
removeById
(
id
));
}
}
...
@@ -141,10 +136,9 @@ public class THolidayInfoController {
...
@@ -141,10 +136,9 @@ public class THolidayInfoController {
* @date 2024-05-08 11:52:08
* @date 2024-05-08 11:52:08
**/
**/
@SneakyThrows
@SneakyThrows
@Operation
(
description
=
"批量新增
hasPermission('demo_tholidayinfo-batch-import')
"
)
@Operation
(
description
=
"批量新增"
)
@SysLog
(
"批量新增"
)
@SysLog
(
"批量新增"
)
@PostMapping
(
"/importListAdd"
)
@PostMapping
(
"/importListAdd"
)
@PreAuthorize
(
"@pms.hasPermission('demo_tholidayinfo-batch-import')"
)
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
)
{
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
)
{
return
tHolidayInfoService
.
importDiy
(
file
.
getInputStream
());
return
tHolidayInfoService
.
importDiy
(
file
.
getInputStream
());
}
}
...
@@ -155,7 +149,7 @@ public class THolidayInfoController {
...
@@ -155,7 +149,7 @@ public class THolidayInfoController {
* @author fxj
* @author fxj
* @date 2024-05-08 11:52:08
* @date 2024-05-08 11:52:08
**/
**/
@Operation
(
description
=
"导出
hasPermission('demo_tholidayinfo-export')
"
)
@Operation
(
description
=
"导出"
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
@RequestBody
THolidayInfoSearchVo
searchVo
)
{
public
void
export
(
HttpServletResponse
response
,
@RequestBody
THolidayInfoSearchVo
searchVo
)
{
tHolidayInfoService
.
listExport
(
response
,
searchVo
);
tHolidayInfoService
.
listExport
(
response
,
searchVo
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/THouseHoldLimitController.java
View file @
4025f3db
...
@@ -31,8 +31,6 @@ import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
...
@@ -31,8 +31,6 @@ import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.THouseHoldLimit
;
import
com.yifu.cloud.plus.v1.yifu.social.entity.THouseHoldLimit
;
import
com.yifu.cloud.plus.v1.yifu.social.service.THouseHoldLimitService
;
import
com.yifu.cloud.plus.v1.yifu.social.service.THouseHoldLimitService
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.TEmployeeInsuranceWorkDayVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.THouseHoldLimitExportVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.THouseHoldLimitInnerVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.THouseHoldLimitInnerVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.THouseHoldLimitSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.social.vo.THouseHoldLimitSearchVo
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Operation
;
...
@@ -84,9 +82,8 @@ public class THouseHoldLimitController {
...
@@ -84,9 +82,8 @@ public class THouseHoldLimitController {
* @param id id
* @param id id
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询
:hasPermission('social_thouseholdlimit_get')
"
)
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('social_thouseholdlimit_get')"
)
public
R
<
THouseHoldLimit
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
public
R
<
THouseHoldLimit
>
getById
(
@PathVariable
(
"id"
)
String
id
)
{
return
R
.
ok
(
tHouseHoldLimitService
.
getById
(
id
));
return
R
.
ok
(
tHouseHoldLimitService
.
getById
(
id
));
}
}
...
@@ -121,10 +118,9 @@ public class THouseHoldLimitController {
...
@@ -121,10 +118,9 @@ public class THouseHoldLimitController {
* @param tHouseHoldLimit 户截止日配置表
* @param tHouseHoldLimit 户截止日配置表
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"新增户截止日配置表"
,
description
=
"新增户截止日配置表
:hasPermission('social_thouseholdlimit_add')
"
)
@Operation
(
summary
=
"新增户截止日配置表"
,
description
=
"新增户截止日配置表"
)
@SysLog
(
"新增户截止日配置表"
)
@SysLog
(
"新增户截止日配置表"
)
@PostMapping
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('social_thouseholdlimit_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
THouseHoldLimit
tHouseHoldLimit
)
{
public
R
<
Boolean
>
save
(
@RequestBody
THouseHoldLimit
tHouseHoldLimit
)
{
//先查验是否已存在对应户名称和户类型的数据
//先查验是否已存在对应户名称和户类型的数据
THouseHoldLimit
houseHoldLimit
=
tHouseHoldLimitService
THouseHoldLimit
houseHoldLimit
=
tHouseHoldLimitService
...
@@ -144,10 +140,9 @@ public class THouseHoldLimitController {
...
@@ -144,10 +140,9 @@ public class THouseHoldLimitController {
* @param tHouseHoldLimit 户截止日配置表
* @param tHouseHoldLimit 户截止日配置表
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"修改户截止日配置表"
,
description
=
"修改户截止日配置表
:hasPermission('social_thouseholdlimit_edit')
"
)
@Operation
(
summary
=
"修改户截止日配置表"
,
description
=
"修改户截止日配置表"
)
@SysLog
(
"修改户截止日配置表"
)
@SysLog
(
"修改户截止日配置表"
)
@PutMapping
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('social_thouseholdlimit_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
THouseHoldLimit
tHouseHoldLimit
)
{
public
R
<
Boolean
>
updateById
(
@RequestBody
THouseHoldLimit
tHouseHoldLimit
)
{
if
(
tHouseHoldLimit
.
getId
()
==
null
){
if
(
tHouseHoldLimit
.
getId
()
==
null
){
return
R
.
failed
(
CommonConstants
.
PARAM_INFO_ERROR
);
return
R
.
failed
(
CommonConstants
.
PARAM_INFO_ERROR
);
...
@@ -171,10 +166,9 @@ public class THouseHoldLimitController {
...
@@ -171,10 +166,9 @@ public class THouseHoldLimitController {
* @param id id
* @param id id
* @return R
* @return R
*/
*/
@Operation
(
summary
=
"通过id删除户截止日配置表"
,
description
=
"通过id删除户截止日配置表
:hasPermission('social_thouseholdlimit_del')
"
)
@Operation
(
summary
=
"通过id删除户截止日配置表"
,
description
=
"通过id删除户截止日配置表"
)
@SysLog
(
"通过id删除户截止日配置表"
)
@SysLog
(
"通过id删除户截止日配置表"
)
@DeleteMapping
(
"/{id}"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('social_thouseholdlimit_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
tHouseHoldLimitService
.
removeById
(
id
));
return
R
.
ok
(
tHouseHoldLimitService
.
removeById
(
id
));
}
}
...
@@ -186,7 +180,7 @@ public class THouseHoldLimitController {
...
@@ -186,7 +180,7 @@ public class THouseHoldLimitController {
* @date 2025-12-11 14:19:54
* @date 2025-12-11 14:19:54
**/
**/
@SneakyThrows
@SneakyThrows
@Operation
(
description
=
"批量新增户截止日配置表
hasPermission('social_thouseholdlimit-batch-import')
"
)
@Operation
(
description
=
"批量新增户截止日配置表"
)
@SysLog
(
"批量新增户截止日配置表"
)
@SysLog
(
"批量新增户截止日配置表"
)
@PostMapping
(
"/importListAdd"
)
@PostMapping
(
"/importListAdd"
)
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
)
{
public
R
<
List
<
ErrorMessage
>>
importListAdd
(
@RequestBody
MultipartFile
file
)
{
...
@@ -203,7 +197,7 @@ public class THouseHoldLimitController {
...
@@ -203,7 +197,7 @@ public class THouseHoldLimitController {
* @author fxj
* @author fxj
* @date 2025-12-11 14:19:54
* @date 2025-12-11 14:19:54
**/
**/
@Operation
(
description
=
"导出户截止日配置表
hasPermission('social_thouseholdlimit-export')
"
)
@Operation
(
description
=
"导出户截止日配置表"
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
@RequestBody
THouseHoldLimitSearchVo
searchVo
)
{
public
void
export
(
HttpServletResponse
response
,
@RequestBody
THouseHoldLimitSearchVo
searchVo
)
{
tHouseHoldLimitService
.
listExport
(
response
,
searchVo
);
tHouseHoldLimitService
.
listExport
(
response
,
searchVo
);
...
...
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