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
8abf4c9b
Commit
8abf4c9b
authored
Apr 07, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.3' into MVP1.5.3
parents
cf2067b9
98cc04bd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
12 deletions
+35
-12
TConfigSalary.java
.../yifu/cloud/plus/v1/yifu/salary/entity/TConfigSalary.java
+9
-0
TSalaryStandard.java
...ifu/cloud/plus/v1/yifu/salary/entity/TSalaryStandard.java
+7
-0
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+13
-8
DoJointSalaryAsyncTask.java
...loud/plus/v1/yifu/salary/util/DoJointSalaryAsyncTask.java
+3
-3
TSalaryStandardMapper.xml
...y-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
+3
-1
No files found.
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/TConfigSalary.java
View file @
8abf4c9b
...
...
@@ -130,4 +130,13 @@ public class TConfigSalary extends BaseEntity implements Serializable {
@ExcelProperty
(
value
=
"发放方式(0:现金;1:转账)"
)
private
Integer
grantType
;
/**
* 收入月份
*/
@NotNull
(
message
=
"收入月份不能为空"
)
@ExcelAttribute
(
name
=
"收入月份"
,
isNotEmpty
=
true
,
errorInfo
=
"收入月份不能为空"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
value
=
"收入月份"
)
private
Integer
incomeMonth
;
}
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/TSalaryStandard.java
View file @
8abf4c9b
...
...
@@ -445,6 +445,13 @@ public class TSalaryStandard extends BaseEntity {
@Schema
(
description
=
"是否差额单"
)
private
String
isDiff
;
/**
* 收入月份
* 2023-4-7 09:31:39 hgw新增
*/
@Schema
(
description
=
"收入月份"
)
private
String
incomeMonth
;
/**
* 工资月份-起
*/
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
8abf4c9b
...
...
@@ -225,11 +225,11 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
// return R.ok(saList)
//薪资导入
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
salaryType
))
{
return
this
.
saveAndSubmit
(
saList
,
vo
,
dept
);
return
this
.
saveAndSubmit
(
configSalary
,
saList
,
vo
,
dept
);
}
//劳务费和稿酬导入
if
(
CommonConstants
.
THREE_STRING
.
equals
(
salaryType
)
||
CommonConstants
.
FOUR_STRING
.
equals
(
salaryType
))
{
return
this
.
saveLaborSubmit
(
saList
,
dept
,
salaryType
,
orderId
);
return
this
.
saveLaborSubmit
(
configSalary
,
saList
,
dept
,
salaryType
,
orderId
);
}
}
else
{
return
R
.
failed
(
"导入数据不可为空"
);
...
...
@@ -253,8 +253,8 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
* @Date: 2019/9/26 9:44
* @return: com.yifu.cloud.v1.hrms.api.entity.TSalaryStandard
**/
public
R
<
TSalaryStandard
>
saveNewTSalary
(
T
SalaryAccountVo
sav
,
TSettleDomainSelectVo
dept
,
YifuUser
user
,
LocalDateTime
nowTime
,
String
invoiceTitle
)
{
public
R
<
TSalaryStandard
>
saveNewTSalary
(
T
ConfigSalary
configSalary
,
TSalaryAccountVo
sav
,
TSettleDomainSelectVo
dept
,
YifuUser
user
,
LocalDateTime
nowTime
,
String
invoiceTitle
)
{
TSalaryStandard
s
=
null
;
if
(
sav
!=
null
)
{
if
(
null
==
user
||
null
==
user
.
getId
())
{
...
...
@@ -293,6 +293,11 @@ 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
());
}
}
return
new
R
<>(
s
);
}
...
...
@@ -304,7 +309,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
* @Date: 2019/9/20 17:05
* @return: com.yifu.cloud.v1.common.core.util.R
**/
private
R
saveAndSubmit
(
List
<
TSalaryAccountVo
>
savList
,
SalaryUploadParamVo
vo
,
TSettleDomainSelectVo
dept
)
{
private
R
saveAndSubmit
(
TConfigSalary
configSalary
,
List
<
TSalaryAccountVo
>
savList
,
SalaryUploadParamVo
vo
,
TSettleDomainSelectVo
dept
)
{
if
(
Common
.
isNotNull
(
savList
)
&&
!
savList
.
isEmpty
())
{
String
orderId
=
vo
.
getOrderId
();
// 代发户
...
...
@@ -324,7 +329,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
LocalDateTime
nowTime
=
LocalDateTime
.
now
();
TSalaryStandard
salary
;
//工资主表
R
<
TSalaryStandard
>
sr
=
this
.
saveNewTSalary
(
salaryAccountVo
,
dept
,
user
,
nowTime
,
invoiceTitle
);
//工资主表
R
<
TSalaryStandard
>
sr
=
this
.
saveNewTSalary
(
configSalary
,
salaryAccountVo
,
dept
,
user
,
nowTime
,
invoiceTitle
);
//工资主表
if
(
sr
==
null
||
sr
.
getCode
()
==
CommonConstants
.
FAIL
)
{
return
sr
;
}
else
{
...
...
@@ -1428,7 +1433,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
* @Date: 2022/8/16
* @return: com.yifu.cloud.v1.common.core.util.R
**/
public
R
saveLaborSubmit
(
List
<
TSalaryAccountVo
>
savList
,
TSettleDomainSelectVo
dept
,
String
salaryType
,
String
orderId
)
{
public
R
saveLaborSubmit
(
TConfigSalary
configSalary
,
List
<
TSalaryAccountVo
>
savList
,
TSettleDomainSelectVo
dept
,
String
salaryType
,
String
orderId
)
{
if
(
Common
.
isNotNull
(
savList
)
&&
!
savList
.
isEmpty
())
{
TSalaryAccountVo
salaryAccountVo
=
savList
.
get
(
0
);
List
<
TSalaryAccountItem
>
saiList
=
null
;
//报账明细List
...
...
@@ -1437,7 +1442,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
LocalDateTime
nowTime
=
LocalDateTime
.
now
();
//工资主表
String
invoiceTitle
=
dept
.
getBusinessSubjectName
();
R
<
TSalaryStandard
>
sr
=
this
.
saveNewTSalary
(
salaryAccountVo
,
dept
,
user
,
nowTime
,
invoiceTitle
);
R
<
TSalaryStandard
>
sr
=
this
.
saveNewTSalary
(
configSalary
,
salaryAccountVo
,
dept
,
user
,
nowTime
,
invoiceTitle
);
if
(
sr
==
null
||
sr
.
getCode
()
==
CommonConstants
.
FAIL
)
{
return
sr
;
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/DoJointSalaryAsyncTask.java
View file @
8abf4c9b
...
...
@@ -118,7 +118,7 @@ public class DoJointSalaryAsyncTask {
private
R
<
String
>
getIncomeDetailMap
(
TSalaryStandard
tSalaryStandard
,
TSettleDomainSelectVo
dept
,
List
<
String
>
idCardList
,
Map
<
String
,
Integer
>
detailMap
)
{
TIncomeDetail
detail
=
new
TIncomeDetail
();
detail
.
setApplyNo
(
tSalaryStandard
.
getApplyNo
());
detail
.
setPayMonth
(
tSalaryStandard
.
get
Salary
Month
());
detail
.
setPayMonth
(
tSalaryStandard
.
get
Income
Month
());
detail
.
setIdCardList
(
idCardList
);
detail
.
setDeptId
(
dept
.
getId
());
R
<
TIncomeDetailReturnVo
>
detailR
=
HttpDaprUtil
.
invokeMethodPost
(
socialProperties
.
getAppUrl
(),
socialProperties
.
getAppId
()
...
...
@@ -175,14 +175,14 @@ public class DoJointSalaryAsyncTask {
if
(
Common
.
isEmpty
(
value
)
||
value
==
0
)
{
detail
=
new
TIncomeDetail
();
detail
.
setRedisKey
(
redisKey
);
detail
.
setPayMonth
(
account
.
getSalary
Month
());
detail
.
setPayMonth
(
tSalaryStandard
.
getIncome
Month
());
detail
.
setDeptId
(
account
.
getDeptId
());
detail
.
setDeptName
(
account
.
getDeptName
());
detail
.
setDeptNo
(
account
.
getDeptNo
());
detail
.
setUnitId
(
tSalaryStandard
.
getUnitId
());
detail
.
setUnitName
(
tSalaryStandard
.
getUnitName
());
detail
.
setUnitNo
(
tSalaryStandard
.
getUnitNo
());
detail
.
setCreateMonth
(
account
.
getSalary
Month
());
detail
.
setCreateMonth
(
tSalaryStandard
.
getSettlement
Month
());
detail
.
setEmpIdcard
(
account
.
getEmpIdcard
());
detail
.
setEmpName
(
account
.
getEmpName
());
detail
.
setFeeMode
(
dept
.
getManagementType
());
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
View file @
8abf4c9b
...
...
@@ -80,6 +80,7 @@
<result
property=
"incomeEndTime"
column=
"INCOME_END_TIME"
/>
<result
property=
"issueStatus"
column=
"ISSUE_STATUS"
/>
<result
property=
"isDiff"
column=
"IS_DIFF"
/>
<result
property=
"incomeMonth"
column=
"INCOME_MONTH"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
a.ID,
...
...
@@ -137,7 +138,8 @@
a.INCOME_START_TIME,
a.INCOME_END_TIME,
a.ISSUE_STATUS,
a.IS_DIFF
a.IS_DIFF,
a.INCOME_MONTH
</sql>
<sql
id=
"tSalaryStandard_where"
>
<if
test=
"tSalaryStandard != null"
>
...
...
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