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
ac2bf347
Commit
ac2bf347
authored
Jun 23, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huyc 项目档案代码提交
parent
2c306669
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+3
-0
TEmployeeProjectMapper.xml
...-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
+8
-9
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
ac2bf347
...
...
@@ -94,8 +94,10 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
if
(!
Common
.
isEmpty
(
tEmployeeInfo
))
{
map
.
put
(
"empProId"
,
tEmployeeProject
.
getId
());
if
(
CommonConstants
.
STATUS_NORMAL
.
equals
(
tEmployeeInfo
.
getFileStatus
()))
{
map
.
put
(
"code"
,
"201"
);
return
R
.
ok
(
map
,
"该人员已减项,是否“复项”"
);
}
else
{
map
.
put
(
"code"
,
"202"
);
map
.
put
(
"employeeId"
,
tEmployeeInfo
.
getId
());
return
R
.
ok
(
map
,
"该人员已减档减项,是否“复档复项”"
);
}
...
...
@@ -113,6 +115,7 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
//判断是否已经减档
if
(
CommonConstants
.
ONE_STRING
.
equals
(
tEmployeeInfo
.
getFileStatus
()))
{
map
.
put
(
"employeeId"
,
tEmployeeInfo
.
getId
());
map
.
put
(
"code"
,
"203"
);
return
R
.
ok
(
null
,
"该人员在离职库已存在,是否“恢复档案”"
);
}
}
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
View file @
ac2bf347
...
...
@@ -481,6 +481,12 @@
<if
test=
"tEmployeeProject.fileTown != null"
>
AND b.FILE_TOWN = #{tEmployeeProject.fileTown}
</if>
<if
test=
"tEmployeeInfo.idList != null"
>
AND a.id in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeInfo.idList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
</if>
</sql>
...
...
@@ -667,8 +673,7 @@
<!--tEmployeeInfo简单分页查询-->
<select
id=
"getTEmployeeProjectInfoPage"
resultMap=
"tEmployeeProjectMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
,
b.
<include
refid=
"Base_Column_List"
/>
FROM t_employee_project a
left join t_employee_info b on a.EMP_ID = b.id
<where>
...
...
@@ -684,13 +689,7 @@
left join t_employee_info b on a.EMP_ID = b.id
<where>
1=1 AND a.DELETE_FLAG = 0
<include
refid=
"tEmployeeProject_where"
/>
<if
test=
"tEmployeeInfo.idList != null"
>
AND a.id in
<foreach
item=
"idStr"
index=
"index"
collection=
"tEmployeeInfo.idList"
open=
"("
separator=
","
close=
")"
>
#{idStr}
</foreach>
</if>
<include
refid=
"exportTEmployeeProject_where"
/>
</where>
</select>
</mapper>
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