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
0c64d0b4
Commit
0c64d0b4
authored
May 23, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
薪资原表导入:1.详情加字段 表单类型、方案名称、表格类型、原表类型2.表单类型和表格类型带入到EKP
parent
cd3ff24d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
2 deletions
+30
-2
TSalaryStandard.java
...ifu/cloud/plus/v1/yifu/salary/entity/TSalaryStandard.java
+9
-1
SalaryUploadParamVo.java
...ifu/cloud/plus/v1/yifu/salary/vo/SalaryUploadParamVo.java
+6
-0
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+4
-0
TSalaryStandardMapper.xml
...y-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
+11
-1
No files found.
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/entity/TSalaryStandard.java
View file @
0c64d0b4
...
@@ -451,9 +451,17 @@ public class TSalaryStandard extends BaseEntity {
...
@@ -451,9 +451,17 @@ public class TSalaryStandard extends BaseEntity {
*/
*/
@Schema
(
description
=
"收入月份"
)
@Schema
(
description
=
"收入月份"
)
private
String
incomeMonth
;
private
String
incomeMonth
;
//方案名称ID
@Schema
(
description
=
"配置ID"
)
@Schema
(
description
=
"配置ID"
)
private
String
setId
;
private
String
setId
;
//方案名称
@Schema
(
description
=
"方案名称"
)
private
String
setName
;
//原表类型
@Schema
(
description
=
"原表类型"
)
private
String
originalSetName
;
@Schema
(
description
=
"删除人(汉字名)"
)
@Schema
(
description
=
"删除人(汉字名)"
)
private
String
deleteUser
;
private
String
deleteUser
;
@Schema
(
description
=
"删除时间"
)
@Schema
(
description
=
"删除时间"
)
...
...
yifu-salary/yifu-salary-api/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/vo/SalaryUploadParamVo.java
View file @
0c64d0b4
...
@@ -44,4 +44,10 @@ public class SalaryUploadParamVo {
...
@@ -44,4 +44,10 @@ public class SalaryUploadParamVo {
// 表格类型 0 薪资原表 1 系统模板
// 表格类型 0 薪资原表 1 系统模板
String
excelType
;
String
excelType
;
// 方案名称
String
setName
;
// 原表类型
String
originalSetName
;
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
0c64d0b4
...
@@ -299,6 +299,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
...
@@ -299,6 +299,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
s
.
setBusinessThirdType
(
dept
.
getBusinessThirdType
());
s
.
setBusinessThirdType
(
dept
.
getBusinessThirdType
());
if
(
configSalary
!=
null
)
{
if
(
configSalary
!=
null
)
{
s
.
setSetId
(
configSalary
.
getId
());
s
.
setSetId
(
configSalary
.
getId
());
s
.
setSetName
(
configSalary
.
getName
());
if
(
Common
.
isNotNull
(
configSalary
.
getIncomeMonth
()))
{
if
(
Common
.
isNotNull
(
configSalary
.
getIncomeMonth
()))
{
s
.
setIncomeMonth
(
DateUtil
.
addMonth
(
configSalary
.
getIncomeMonth
()));
s
.
setIncomeMonth
(
DateUtil
.
addMonth
(
configSalary
.
getIncomeMonth
()));
}
}
...
@@ -352,6 +353,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
...
@@ -352,6 +353,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
if
(
Common
.
isNotNull
(
vo
.
getExcelType
()))
{
if
(
Common
.
isNotNull
(
vo
.
getExcelType
()))
{
salary
.
setExcelType
(
vo
.
getExcelType
());
salary
.
setExcelType
(
vo
.
getExcelType
());
}
}
if
(
Common
.
isNotNull
(
vo
.
getOriginalSetName
())){
salary
.
setOriginalSetName
(
vo
.
getOriginalSetName
());
}
// 薪资导入、删除前加锁:
// 薪资导入、删除前加锁:
TSalaryLock
lock
=
salaryLockService
.
lambdaQuery
()
TSalaryLock
lock
=
salaryLockService
.
lambdaQuery
()
.
eq
(
TSalaryLock:
:
getDeptId
,
dept
.
getId
())
.
eq
(
TSalaryLock:
:
getDeptId
,
dept
.
getId
())
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
View file @
0c64d0b4
...
@@ -85,6 +85,8 @@
...
@@ -85,6 +85,8 @@
<result
property=
"deleteUser"
column=
"DELETE_USER"
/>
<result
property=
"deleteUser"
column=
"DELETE_USER"
/>
<result
property=
"deleteDate"
column=
"DELETE_DATE"
/>
<result
property=
"deleteDate"
column=
"DELETE_DATE"
/>
<result
property=
"excelType"
column=
"EXCEL_TYPE"
/>
<result
property=
"excelType"
column=
"EXCEL_TYPE"
/>
<result
property=
"setName"
column=
"SET_NAME"
/>
<result
property=
"originalSetName"
column=
"ORIGINAL_SET_NAME"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
a.ID,
a.ID,
...
@@ -147,7 +149,9 @@
...
@@ -147,7 +149,9 @@
a.SET_ID,
a.SET_ID,
a.DELETE_USER,
a.DELETE_USER,
a.DELETE_DATE,
a.DELETE_DATE,
a.EXCEL_TYPE
a.EXCEL_TYPE,
a.SET_NAME,
a.ORIGINAL_SET_NAME
</sql>
</sql>
<sql
id=
"tSalaryStandard_where"
>
<sql
id=
"tSalaryStandard_where"
>
<if
test=
"tSalaryStandard != null"
>
<if
test=
"tSalaryStandard != null"
>
...
@@ -298,6 +302,12 @@
...
@@ -298,6 +302,12 @@
<if
test=
"tSalaryStandard.excelType != null and tSalaryStandard.excelType.trim() != ''"
>
<if
test=
"tSalaryStandard.excelType != null and tSalaryStandard.excelType.trim() != ''"
>
AND a.EXCEL_TYPE = #{tSalaryStandard.excelType}
AND a.EXCEL_TYPE = #{tSalaryStandard.excelType}
</if>
</if>
<if
test=
"tSalaryStandard.setName != null and tSalaryStandard.setName.trim() != ''"
>
AND a.SET_NAME = #{tSalaryStandard.setName}
</if>
<if
test=
"tSalaryStandard.originalSetName != null and tSalaryStandard.originalSetName.trim() != ''"
>
AND a.ORIGINAL_SET_NAME = #{tSalaryStandard.originalSetName}
</if>
</if>
</if>
</sql>
</sql>
<!--tSalaryStandard简单分页查询-->
<!--tSalaryStandard简单分页查询-->
...
...
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