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
e77598fc
Commit
e77598fc
authored
Jun 28, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.5.5-薪资次数接口
parent
34592556
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
13 deletions
+30
-13
TSalaryStandard.java
...ifu/cloud/plus/v1/yifu/salary/entity/TSalaryStandard.java
+7
-0
TConfigSalaryController.java
...us/v1/yifu/salary/controller/TConfigSalaryController.java
+3
-3
TSalaryStandardMapper.java
...oud/plus/v1/yifu/salary/mapper/TSalaryStandardMapper.java
+1
-1
TSalaryStandardService.java
...d/plus/v1/yifu/salary/service/TSalaryStandardService.java
+1
-1
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+6
-4
TSalaryStandardServiceImpl.java
.../yifu/salary/service/impl/TSalaryStandardServiceImpl.java
+4
-2
TSalaryStandardMapper.xml
...y-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
+8
-2
No files found.
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/TSalaryStandard.java
View file @
e77598fc
...
...
@@ -452,6 +452,13 @@ public class TSalaryStandard extends BaseEntity {
@Schema
(
description
=
"收入月份"
)
private
String
incomeMonth
;
@Schema
(
description
=
"配置ID"
)
private
String
setId
;
@Schema
(
description
=
"删除人(汉字名)"
)
private
String
deleteUser
;
@Schema
(
description
=
"删除时间"
)
private
Date
deleteDate
;
/**
* 工资月份-起
*/
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TConfigSalaryController.java
View file @
e77598fc
...
...
@@ -68,12 +68,12 @@ public class TConfigSalaryController {
List
<
TConfigSalary
>
configSalaryList
=
tConfigSalaryService
.
list
(
queryWrapperCs
);
if
(
configSalaryList
!=
null
&&
!
configSalaryList
.
isEmpty
())
{
String
nowMonth
=
DateUtil
.
addMonth
(
0
);
// 当前月 发薪次数
int
monthCount
=
tSalaryStandardService
.
getNum
(
settleDepart
,
nowMonth
,
null
);
String
nowYear
=
DateUtil
.
getYear
(
new
Date
());
// 当前年 未推送或未发放的 发薪次数
int
yearCount
=
tSalaryStandardService
.
getNum
(
settleDepart
,
null
,
nowYear
);
int
yearCount
=
tSalaryStandardService
.
getNum
(
settleDepart
,
null
,
null
,
nowYear
);
int
monthCount
;
// 当前月 发薪次数
for
(
TConfigSalary
cs
:
configSalaryList
)
{
monthCount
=
tSalaryStandardService
.
getNum
(
settleDepart
,
cs
.
getId
(),
nowMonth
,
null
);
if
(
cs
.
getSalaryNum
()
<=
monthCount
)
{
cs
.
setNowMonthSalaryNum
(
monthCount
);
}
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/mapper/TSalaryStandardMapper.java
View file @
e77598fc
...
...
@@ -72,5 +72,5 @@ public interface TSalaryStandardMapper extends BaseMapper<TSalaryStandard> {
* @Date: 2023/6/25 18:04
* @return: int
**/
int
getNum
(
@Param
(
"deptId"
)
String
deptId
,
@Param
(
"settleMonth"
)
String
settleMonth
,
@Param
(
"nowYear"
)
String
nowYear
);
int
getNum
(
@Param
(
"deptId"
)
String
deptId
,
@Param
(
"set
Id"
)
String
setId
,
@Param
(
"set
tleMonth"
)
String
settleMonth
,
@Param
(
"nowYear"
)
String
nowYear
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/TSalaryStandardService.java
View file @
e77598fc
...
...
@@ -142,6 +142,6 @@ public interface TSalaryStandardService extends IService<TSalaryStandard> {
* @Date: 2023/6/25 18:04
* @return: int
**/
int
getNum
(
String
deptId
,
String
settleMonth
,
String
nowYear
);
int
getNum
(
String
deptId
,
String
set
Id
,
String
set
tleMonth
,
String
nowYear
);
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
e77598fc
...
...
@@ -293,10 +293,12 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
//s.setSettlementAmount()
s
.
setStatus
(
SalaryConstants
.
AUDIT_STATUS
[
0
]);
s
.
setBpoFlag
(
dept
.
getBpoFlag
());
if
(
configSalary
!=
null
&&
Common
.
isNotNull
(
configSalary
.
getIncomeMonth
()))
{
s
.
setIncomeMonth
(
DateUtil
.
addMonth
(
configSalary
.
getIncomeMonth
()));
}
else
{
s
.
setIncomeMonth
(
sav
.
getSalaryMonth
());
s
.
setIncomeMonth
(
sav
.
getSalaryMonth
());
if
(
configSalary
!=
null
)
{
s
.
setSetId
(
configSalary
.
getId
());
if
(
Common
.
isNotNull
(
configSalary
.
getIncomeMonth
()))
{
s
.
setIncomeMonth
(
DateUtil
.
addMonth
(
configSalary
.
getIncomeMonth
()));
}
}
}
return
new
R
<>(
s
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryStandardServiceImpl.java
View file @
e77598fc
...
...
@@ -366,6 +366,8 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
}
}
//6:删除工资表
sf
.
setDeleteUser
(
user
.
getNickname
());
sf
.
setDeleteDate
(
new
Date
());
sf
.
setDeleteFlag
(
SalaryConstants
.
DELETED
);
this
.
updateById
(
sf
);
return
R
.
ok
(
"级联删除工资表成功"
);
...
...
@@ -1075,8 +1077,8 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
* @return: int
**/
@Override
public
int
getNum
(
String
deptId
,
String
settleMonth
,
String
nowYear
)
{
return
baseMapper
.
getNum
(
deptId
,
settleMonth
,
nowYear
);
public
int
getNum
(
String
deptId
,
String
set
Id
,
String
set
tleMonth
,
String
nowYear
)
{
return
baseMapper
.
getNum
(
deptId
,
setId
,
settleMonth
,
nowYear
);
}
}
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
View file @
e77598fc
...
...
@@ -81,6 +81,9 @@
<result
property=
"issueStatus"
column=
"ISSUE_STATUS"
/>
<result
property=
"isDiff"
column=
"IS_DIFF"
/>
<result
property=
"incomeMonth"
column=
"INCOME_MONTH"
/>
<result
property=
"setId"
column=
"SET_ID"
/>
<result
property=
"deleteUser"
column=
"DELETE_USER"
/>
<result
property=
"deleteDate"
column=
"DELETE_DATE"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
...
...
@@ -139,7 +142,10 @@
a.INCOME_END_TIME,
a.ISSUE_STATUS,
a.IS_DIFF,
a.INCOME_MONTH
a.INCOME_MONTH,
a.SET_ID,
a.DELETE_USER,
a.DELETE_DATE
</sql>
<sql
id=
"tSalaryStandard_where"
>
<if
test=
"tSalaryStandard != null"
>
...
...
@@ -496,7 +502,7 @@
and a.DEPT_ID = #{deptId}
</if>
<if
test=
"settleMonth != null and settleMonth.trim() != ''"
>
and a.SETTLEMENT_MONTH = #{settleMonth}
and a.SETTLEMENT_MONTH = #{settleMonth}
and a.SET_ID = #{setId}
</if>
<if
test=
"nowYear != null and nowYear.trim() != ''"
>
and a.SETTLEMENT_MONTH like concat(#{nowYear},'%')
...
...
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