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
1b959fb7
Commit
1b959fb7
authored
Aug 29, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修复
parent
61705ee2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
2 deletions
+38
-2
TMinSalaryController.java
.../plus/v1/yifu/salary/controller/TMinSalaryController.java
+2
-2
TMinSalaryService.java
.../cloud/plus/v1/yifu/salary/service/TMinSalaryService.java
+2
-0
TMinSalaryServiceImpl.java
...us/v1/yifu/salary/service/impl/TMinSalaryServiceImpl.java
+34
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TMinSalaryController.java
View file @
1b959fb7
...
@@ -87,8 +87,8 @@ public class TMinSalaryController {
...
@@ -87,8 +87,8 @@ public class TMinSalaryController {
@SysLog
(
"修改各地市最低工资标准"
)
@SysLog
(
"修改各地市最低工资标准"
)
@PutMapping
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('wxhr:tminsalary_edit')"
)
@PreAuthorize
(
"@pms.hasPermission('wxhr:tminsalary_edit')"
)
public
R
update
(
@RequestBody
TMinSalary
tMinSalary
)
{
public
R
<
Boolean
>
update
(
@RequestBody
TMinSalary
tMinSalary
)
{
return
new
R
<>(
tMinSalaryService
.
updateById
(
tMinSalary
)
);
return
tMinSalaryService
.
updateByIdDIy
(
tMinSalary
);
}
}
/**
/**
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TMinSalaryService.java
View file @
1b959fb7
...
@@ -24,4 +24,6 @@ public interface TMinSalaryService extends IService<TMinSalary> {
...
@@ -24,4 +24,6 @@ public interface TMinSalaryService extends IService<TMinSalary> {
R
<
Boolean
>
saveDiy
(
TMinSalary
tMinSalary
);
R
<
Boolean
>
saveDiy
(
TMinSalary
tMinSalary
);
R
<
Boolean
>
updateByIdDIy
(
TMinSalary
tMinSalary
);
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TMinSalaryServiceImpl.java
View file @
1b959fb7
...
@@ -66,4 +66,38 @@ public class TMinSalaryServiceImpl extends ServiceImpl<TMinSalaryMapper, TMinSal
...
@@ -66,4 +66,38 @@ public class TMinSalaryServiceImpl extends ServiceImpl<TMinSalaryMapper, TMinSal
return
R
.
ok
(
true
,
CommonConstants
.
SAVE_SUCCESS
);
return
R
.
ok
(
true
,
CommonConstants
.
SAVE_SUCCESS
);
}
}
@Override
public
R
<
Boolean
>
updateByIdDIy
(
TMinSalary
tMinSalary
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
null
==
user
||
null
==
user
.
getId
())
{
return
R
.
failed
(
"获取登录用户信息失败!"
);
}
TMinSalary
entity
=
baseMapper
.
selectById
(
tMinSalary
.
getId
());
if
(
Common
.
isNotNull
(
entity
)){
LambdaQueryWrapper
<
TMinSalary
>
query
=
new
LambdaQueryWrapper
<>();
if
(
Common
.
isNotNull
(
tMinSalary
.
getProvince
())){
query
.
eq
(
TMinSalary:
:
getProvince
,
tMinSalary
.
getProvince
());
}
if
(
Common
.
isNotNull
(
tMinSalary
.
getCity
())){
query
.
eq
(
TMinSalary:
:
getCity
,
tMinSalary
.
getCity
());
}
if
(
Common
.
isNotNull
(
tMinSalary
.
getTown
())){
query
.
eq
(
TMinSalary:
:
getTown
,
tMinSalary
.
getTown
());
}
if
(
Common
.
isEmpty
(
tMinSalary
.
getTown
())){
query
.
isNull
(
TMinSalary:
:
getTown
);
}
query
.
ne
(
TMinSalary:
:
getId
,
tMinSalary
.
getId
());
query
.
eq
(
TMinSalary:
:
getStatus
,
CommonConstants
.
ONE_INT
);
long
res
=
baseMapper
.
selectCount
(
query
);
if
(
res
>
CommonConstants
.
ZERO_INT
){
return
R
.
failed
(
"已存在对应区域在用的配置信息"
);
}
baseMapper
.
updateById
(
entity
);
return
R
.
ok
(
true
,
CommonConstants
.
UPDATE_SUCCESS
);
}
else
{
return
R
.
failed
(
false
,
CommonConstants
.
SAVE_FAILED
);
}
}
}
}
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