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
e50607e8
Commit
e50607e8
authored
Jun 19, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员花名册
parent
8b6bbac4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
30 deletions
+33
-30
TPersonnelRosterMapper.java
.../plus/v1/yifu/archives/mapper/TPersonnelRosterMapper.java
+4
-0
TPersonnelRosterServiceImpl.java
...fu/archives/service/impl/TPersonnelRosterServiceImpl.java
+3
-30
TPersonnelRosterMapper.xml
...-biz/src/main/resources/mapper/TPersonnelRosterMapper.xml
+26
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TPersonnelRosterMapper.java
View file @
e50607e8
...
@@ -51,4 +51,8 @@ public interface TPersonnelRosterMapper extends BaseMapper<TPersonnelRoster> {
...
@@ -51,4 +51,8 @@ public interface TPersonnelRosterMapper extends BaseMapper<TPersonnelRoster> {
List
<
TPersonnelRoster
>
getTPersonnelRoster
(
@Param
(
"tPersonnelRoster"
)
TPersonnelRoster
tPersonnelRoster
);
List
<
TPersonnelRoster
>
getTPersonnelRoster
(
@Param
(
"tPersonnelRoster"
)
TPersonnelRoster
tPersonnelRoster
);
Integer
getTPersonnelRosterCount
(
@Param
(
"tPersonnelRoster"
)
TPersonnelRoster
tPersonnelRoster
);
Integer
getTPersonnelRosterCount
(
@Param
(
"tPersonnelRoster"
)
TPersonnelRoster
tPersonnelRoster
);
int
noPageCountDiy
(
@Param
(
"tPersonnelRoster"
)
TPersonnelRosterSearchVo
searchVo
);
List
<
TPersonnelRoster
>
noPageDiy
(
@Param
(
"tPersonnelRoster"
)
TPersonnelRosterSearchVo
searchVo
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TPersonnelRosterServiceImpl.java
View file @
e50607e8
...
@@ -150,16 +150,7 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap
...
@@ -150,16 +150,7 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap
@Override
@Override
public
List
<
TPersonnelRoster
>
noPageDiy
(
TPersonnelRosterSearchVo
searchVo
)
{
public
List
<
TPersonnelRoster
>
noPageDiy
(
TPersonnelRosterSearchVo
searchVo
)
{
LambdaQueryWrapper
<
TPersonnelRoster
>
wrapper
=
buildQueryWrapper
(
searchVo
);
return
baseMapper
.
noPageDiy
(
searchVo
);
List
<
String
>
idList
=
Common
.
getList
(
searchVo
.
getIds
());
if
(
Common
.
isNotNull
(
idList
)){
wrapper
.
in
(
TPersonnelRoster:
:
getId
,
idList
);
}
if
(
searchVo
.
getLimitStart
()
>=
0
&&
searchVo
.
getLimitEnd
()
>
0
){
wrapper
.
last
(
" limit "
+
searchVo
.
getLimitStart
()
+
","
+
searchVo
.
getLimitEnd
());
}
wrapper
.
orderByDesc
(
BaseEntity:
:
getCreateTime
);
return
baseMapper
.
selectList
(
wrapper
);
}
}
@Override
@Override
...
@@ -213,26 +204,8 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap
...
@@ -213,26 +204,8 @@ public class TPersonnelRosterServiceImpl extends ServiceImpl<TPersonnelRosterMap
}
}
private
Long
noPageCountDiy
(
TPersonnelRosterSearchVo
searchVo
)
{
private
int
noPageCountDiy
(
TPersonnelRosterSearchVo
searchVo
)
{
LambdaQueryWrapper
<
TPersonnelRoster
>
wrapper
=
buildQueryWrapper
(
searchVo
);
return
baseMapper
.
noPageCountDiy
(
searchVo
);
List
<
String
>
idList
=
Common
.
getList
(
searchVo
.
getIds
());
if
(
Common
.
isNotNull
(
idList
)){
wrapper
.
in
(
TPersonnelRoster:
:
getId
,
idList
);
}
return
baseMapper
.
selectCount
(
wrapper
);
}
private
LambdaQueryWrapper
buildQueryWrapper
(
TPersonnelRosterSearchVo
entity
){
LambdaQueryWrapper
<
TPersonnelRoster
>
wrapper
=
Wrappers
.
lambdaQuery
();
if
(
ArrayUtil
.
isNotEmpty
(
entity
.
getCreateTimes
()))
{
wrapper
.
ge
(
TPersonnelRoster:
:
getCreateTime
,
entity
.
getCreateTimes
()[
0
])
.
le
(
TPersonnelRoster:
:
getCreateTime
,
entity
.
getCreateTimes
()[
1
]);
}
if
(
Common
.
isNotNull
(
entity
.
getCreateName
())){
wrapper
.
eq
(
TPersonnelRoster:
:
getCreateName
,
entity
.
getCreateName
());
}
return
wrapper
;
}
}
}
}
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TPersonnelRosterMapper.xml
View file @
e50607e8
...
@@ -290,4 +290,30 @@
...
@@ -290,4 +290,30 @@
INNER JOIN t_settle_domain d on d.DEPART_NO=t.DEPT_NO
INNER JOIN t_settle_domain d on d.DEPART_NO=t.DEPT_NO
INNER JOIN t_employee_contract_info c1 on c1.id=t.id
INNER JOIN t_employee_contract_info c1 on c1.id=t.id
</select>
</select>
<select
id=
"noPageCountDiy"
resultType=
"java.lang.Integer"
>
select
count(1)
from t_personnel_roster a
<where>
1=1
<include
refid=
"tPersonnelRoster_where"
/>
</where>
</select>
<!--tEmployeeInfo人员档案导出查询改造 fxj 2022-11-02-->
<select
id=
"noPageDiy"
resultMap=
"tPersonnelRosterMap"
>
select
<include
refid=
"Base_Column_List"
/>
from t_personnel_roster a
<where>
a.DELETE_FLAG = '0'
<include
refid=
"tPersonnelRoster_where"
/>
</where>
order by a.CREATE_TIME desc
<if
test=
"tPersonnelRoster != null"
>
<if
test=
"tPersonnelRoster.limitStart != null"
>
limit #{tPersonnelRoster.limitStart},#{tPersonnelRoster.limitEnd}
</if>
</if>
</select>
</mapper>
</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