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
d1053cc8
Commit
d1053cc8
authored
Jul 05, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://git.yifucenter.com/fangxinjiang/yifu
into develop
parents
75dd5b31
324515f8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
11 deletions
+5
-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
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeLogController.java
View file @
d1053cc8
...
...
@@ -60,7 +60,7 @@ public class TEmployeeLogController {
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('demo_temployeelog_get')"
)
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 {
@GetMapping
(
"/getByEmpId"
)
public
R
<
List
<
TEmployeeLog
>>
getByEmpId
(
@RequestParam
String
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 {
@GetMapping
(
"/getByProjectId"
)
public
R
<
List
<
TEmployeeLog
>>
getByProjectId
(
@RequestParam
String
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 @
d1053cc8
...
...
@@ -650,17 +650,11 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
@Transactional
public
void
importContract
(
List
<
EmployeeContractVO
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
)
{
/// 个性化校验逻辑
List
<
TEmployeeContractInfo
>
list
=
this
.
list
();
ErrorMessage
errorMsg
;
EmployeeContractVO
excel
;
// 执行数据插入操作 组装
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
excel
=
excelVOList
.
get
(
i
);
errorMsg
=
checkRes
(
excel
,
list
);
if
(
Common
.
isNotNull
(
errorMsg
))
{
errorMessageList
.
add
(
errorMsg
);
continue
;
}
// 存储
insertExcel
(
excel
,
errorMessageList
);
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 @
d1053cc8
...
...
@@ -258,7 +258,7 @@ public interface CommonConstants {
public
static
final
String
ZIP_TYPE
=
"zip"
;
int
BATCH_COUNT
=
100
;
String
IMPORT_DATA_ANALYSIS_ERROR
=
"数据导入解析异常,请检查表数据格式"
;
String
CREATE_TIME
=
"
create_time
"
;
String
CREATE_TIME
=
"
CREATE_TIME
"
;
String
ID
=
"ID"
;
String
PARAM_IS_NOT_ERROR
=
"传参异常,请检查参数"
;
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 @
d1053cc8
...
...
@@ -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不定时工时制
public
static
final
String
WORKING_HOURS
=
"working_hours"
;
...
...
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