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
330495e2
Commit
330495e2
authored
Nov 25, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目档案批量操作速度优化
parent
81143817
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
27 deletions
+10
-27
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+6
-6
TEmployeeProjectMapper.xml
...-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
+4
-21
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
330495e2
...
...
@@ -185,9 +185,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
tEmployeeProject
.
setUnitId
(
tSettleDomain
.
getCustomerId
());
tEmployeeProject
.
setUnitNo
(
tSettleDomain
.
getCustomerNo
());
tEmployeeProject
.
setUnitName
(
tSettleDomain
.
getCustomerName
());
String
empNO
=
getEmpNo
(
tEmployeeProject
.
getDeptNo
());
tEmployeeProject
.
setEmpNo
(
empNO
);
}
String
empNO
=
getEmpNo
(
tEmployeeProject
.
getDeptNo
());
tEmployeeProject
.
setEmpNo
(
empNO
);
tEmployeeProject
.
setEmpId
(
tEmployeeInfo
.
getId
());
tEmployeeProject
.
setProjectSource
(
CommonConstants
.
dingleDigitStrArray
[
5
]);
this
.
save
(
tEmployeeProject
);
...
...
@@ -706,9 +706,10 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
TSettleDomain
tSettleDomain
;
TEmployeeInfo
tEmployeeInfo
;
TEmployeeProject
tEmployeeProject
;
EmployeeProjectVO
excel
;
// 执行数据插入操作 组装 PostDto
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
EmployeeProjectVO
excel
=
excelVOList
.
get
(
i
);
excel
=
excelVOList
.
get
(
i
);
idCard
=
excel
.
getEmpIdcard
();
deptNo
=
excel
.
getDeptNo
();
...
...
@@ -1007,10 +1008,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
insTEmployeePro
.
setUnitId
(
tSettleDomain
.
getCustomerId
());
insTEmployeePro
.
setUnitNo
(
tSettleDomain
.
getCustomerNo
());
insTEmployeePro
.
setUnitName
(
tSettleDomain
.
getCustomerName
());
String
empNO
=
getEmpNo
(
insTEmployeePro
.
getDeptNo
());
insTEmployeePro
.
setEmpNo
(
empNO
);
}
String
empNO
=
getEmpNo
(
insTEmployeePro
.
getDeptNo
());
insTEmployeePro
.
setEmpNo
(
empNO
);
//员工编码生成规则
insTEmployeePro
.
setEmpCode
(
tEmployeeInfo
.
getEmpCode
());
YifuUser
user
=
SecurityUtils
.
getUser
();
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
View file @
330495e2
...
...
@@ -762,27 +762,10 @@
</update>
<!--查询部门编码和最大员工数-->
<select
id=
"findEmployeeMaxOnlyNoByDepId"
resultType=
"java.lang.String"
>
SELECT
(
SELECT
MAX(EMP_NO)
FROM
t_employee_project
WHERE
EMP_NO LIKE CONCAT(
(
SELECT
DEPART_NO
FROM
t_settle_domain
WHERE
DEPART_NO = #{deptNo}
),
'%'
)
) AS 'empNo'
FROM
DUAL
select MAX(EMP_NO) from t_employee_project where
id not like '%abc' and
DEPT_NO = #{deptNo}
GROUP BY DEPT_NO
</select>
<update
id=
"updateEmpIdById"
parameterType=
"java.util.List"
>
...
...
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