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
dd007025
Commit
dd007025
authored
Jul 05, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同-date
parent
33615082
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
11 deletions
+6
-11
TEmployeeLogController.java
...s/v1/yifu/archives/controller/TEmployeeLogController.java
+3
-3
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+0
-6
CommonConstants.java
...ud.plus.v1/yifu/common/core/constant/CommonConstants.java
+1
-1
ExcelAttributeConstants.java
...v1/yifu/common/core/constant/ExcelAttributeConstants.java
+1
-1
ExcelUtil.java
...m/yifu.cloud.plus.v1/yifu/common/core/util/ExcelUtil.java
+1
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeLogController.java
View file @
dd007025
...
@@ -60,7 +60,7 @@ public class TEmployeeLogController {
...
@@ -60,7 +60,7 @@ public class TEmployeeLogController {
@GetMapping
(
"/page"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_temployeelog_get')"
)
@PreAuthorize
(
"@pms.hasPermission('demo_temployeelog_get')"
)
public
R
<
IPage
<
TEmployeeLog
>>
getTEmployeeLogPage
(
Page
<
TEmployeeLog
>
page
,
TEmployeeLog
tEmployeeLog
)
{
public
R
<
IPage
<
TEmployeeLog
>>
getTEmployeeLogPage
(
Page
<
TEmployeeLog
>
page
,
TEmployeeLog
tEmployeeLog
)
{
return
R
.
ok
(
tEmployeeLogService
.
page
(
page
,
Wrappers
.
query
(
tEmployeeLog
)));
return
R
.
ok
(
tEmployeeLogService
.
page
(
page
,
Wrappers
.
query
(
tEmployeeLog
)
.
orderByDesc
(
CommonConstants
.
CREATE_TIME
)
));
}
}
...
@@ -129,7 +129,7 @@ public class TEmployeeLogController {
...
@@ -129,7 +129,7 @@ public class TEmployeeLogController {
@GetMapping
(
"/getByEmpId"
)
@GetMapping
(
"/getByEmpId"
)
public
R
<
List
<
TEmployeeLog
>>
getByEmpId
(
@RequestParam
String
empId
)
{
public
R
<
List
<
TEmployeeLog
>>
getByEmpId
(
@RequestParam
String
empId
)
{
return
R
.
ok
(
tEmployeeLogService
.
list
(
Wrappers
.<
TEmployeeLog
>
query
().
eq
(
"EMP_ID"
,
empId
)
return
R
.
ok
(
tEmployeeLogService
.
list
(
Wrappers
.<
TEmployeeLog
>
query
().
eq
(
"EMP_ID"
,
empId
)
.
eq
(
"TYPE"
,
CommonConstants
.
ZERO_INT
)));
.
eq
(
"TYPE"
,
CommonConstants
.
ZERO_INT
)
.
orderByDesc
(
CommonConstants
.
CREATE_TIME
)
));
}
}
/**
/**
...
@@ -142,7 +142,7 @@ public class TEmployeeLogController {
...
@@ -142,7 +142,7 @@ public class TEmployeeLogController {
@GetMapping
(
"/getByProjectId"
)
@GetMapping
(
"/getByProjectId"
)
public
R
<
List
<
TEmployeeLog
>>
getByProjectId
(
@RequestParam
String
projectId
)
{
public
R
<
List
<
TEmployeeLog
>>
getByProjectId
(
@RequestParam
String
projectId
)
{
return
R
.
ok
(
tEmployeeLogService
.
list
(
Wrappers
.<
TEmployeeLog
>
query
().
eq
(
"PROJECT_ID"
,
projectId
)
return
R
.
ok
(
tEmployeeLogService
.
list
(
Wrappers
.<
TEmployeeLog
>
query
().
eq
(
"PROJECT_ID"
,
projectId
)
.
eq
(
"TYPE"
,
CommonConstants
.
ONE_INT
)));
.
eq
(
"TYPE"
,
CommonConstants
.
ONE_INT
)
.
orderByDesc
(
CommonConstants
.
CREATE_TIME
)
));
}
}
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
dd007025
...
@@ -650,17 +650,11 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -650,17 +650,11 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
@Transactional
@Transactional
public
void
importContract
(
List
<
EmployeeContractVO
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
)
{
public
void
importContract
(
List
<
EmployeeContractVO
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
)
{
/// 个性化校验逻辑
/// 个性化校验逻辑
List
<
TEmployeeContractInfo
>
list
=
this
.
list
();
ErrorMessage
errorMsg
;
ErrorMessage
errorMsg
;
EmployeeContractVO
excel
;
EmployeeContractVO
excel
;
// 执行数据插入操作 组装
// 执行数据插入操作 组装
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
excel
=
excelVOList
.
get
(
i
);
excel
=
excelVOList
.
get
(
i
);
errorMsg
=
checkRes
(
excel
,
list
);
if
(
Common
.
isNotNull
(
errorMsg
))
{
errorMessageList
.
add
(
errorMsg
);
continue
;
}
// 存储
// 存储
insertExcel
(
excel
,
errorMessageList
);
insertExcel
(
excel
,
errorMessageList
);
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
));
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
CommonConstants
.
SAVE_SUCCESS
));
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/CommonConstants.java
View file @
dd007025
...
@@ -258,7 +258,7 @@ public interface CommonConstants {
...
@@ -258,7 +258,7 @@ public interface CommonConstants {
public
static
final
String
ZIP_TYPE
=
"zip"
;
public
static
final
String
ZIP_TYPE
=
"zip"
;
int
BATCH_COUNT
=
100
;
int
BATCH_COUNT
=
100
;
String
IMPORT_DATA_ANALYSIS_ERROR
=
"数据导入解析异常,请检查表数据格式"
;
String
IMPORT_DATA_ANALYSIS_ERROR
=
"数据导入解析异常,请检查表数据格式"
;
String
CREATE_TIME
=
"
create_time
"
;
String
CREATE_TIME
=
"
CREATE_TIME
"
;
String
ID
=
"ID"
;
String
ID
=
"ID"
;
String
PARAM_IS_NOT_ERROR
=
"传参异常,请检查参数"
;
String
PARAM_IS_NOT_ERROR
=
"传参异常,请检查参数"
;
int
EXCEL_EXPORT_LIMIT
=
60000
;
int
EXCEL_EXPORT_LIMIT
=
60000
;
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/ExcelAttributeConstants.java
View file @
dd007025
...
@@ -33,7 +33,7 @@ public class ExcelAttributeConstants {
...
@@ -33,7 +33,7 @@ public class ExcelAttributeConstants {
//员工合同类型
//员工合同类型
public
static
final
String
EMPLOYEE_CONTRACT_TYPE
=
"contract_type"
;
public
static
final
String
EMPLOYEE_CONTRACT_TYPE
=
"
employee_
contract_type"
;
//员工合同工时制 1标准工时 2 综合工时 3不定时工时制
//员工合同工时制 1标准工时 2 综合工时 3不定时工时制
public
static
final
String
WORKING_HOURS
=
"working_hours"
;
public
static
final
String
WORKING_HOURS
=
"working_hours"
;
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/util/ExcelUtil.java
View file @
dd007025
...
@@ -377,6 +377,7 @@ public class ExcelUtil <T> implements Serializable {
...
@@ -377,6 +377,7 @@ public class ExcelUtil <T> implements Serializable {
}
}
}
}
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
e
.
printStackTrace
();
errorMessageHashMap
=
initErrorMessage
(
errorMessageHashMap
,
new
ErrorMessage
(
rowNum
,
attr
.
name
()
+
":"
+
c
.
trim
()
+
"校验异常,请联系管理人员"
),
errorTemp
);
errorMessageHashMap
=
initErrorMessage
(
errorMessageHashMap
,
new
ErrorMessage
(
rowNum
,
attr
.
name
()
+
":"
+
c
.
trim
()
+
"校验异常,请联系管理人员"
),
errorTemp
);
}
finally
{
}
finally
{
...
...
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