Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
aa4cfff1
Commit
aa4cfff1
authored
Oct 28, 2020
by
mobh
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
薪资档案分页
parent
5358e61b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
+10
-4
src/main/java/cn/timer/api/dao/xcgl/XcglAssoXzdazdyMapper.java
+4
-5
src/main/resources/mapping/xcgl/XcglAssoXzdazdyMapper.xml
+5
-5
No files found.
src/main/java/cn/timer/api/controller/xcgl/SalaryManagementController.java
View file @
aa4cfff1
...
...
@@ -15,6 +15,7 @@ import javax.script.ScriptEngine;
import
javax.script.ScriptEngineManager
;
import
javax.script.ScriptException
;
import
cn.timer.api.bean.sbgjj.SbgjjAssoCbfa
;
import
cn.timer.api.dto.xcgl.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -825,8 +826,8 @@ public class SalaryManagementController {
* 查询定薪人员+模糊查询*******
*/
@PostMapping
(
value
=
"/fixedstaff"
)
@ApiOperation
(
value
=
"查询定薪人员"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Res
ponseResult
FixedSalarStaff
(
@CurrentUser
UserBean
userBean
,
@RequestBody
SearchSalariedPeopleDto
search
)
{
@ApiOperation
(
value
=
"查询定薪人员
/分页
"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Res
ult
<
Object
>
FixedSalarStaff
(
@CurrentUser
UserBean
userBean
,
@RequestBody
SearchSalariedPeopleDto
search
)
{
search
.
setOrgcode
(
userBean
.
getOrgCode
());
if
((
"0"
).
equals
(
search
.
getStatus
()))
{
//全部
search
.
setStatus
(
""
);
...
...
@@ -835,8 +836,13 @@ public class SalaryManagementController {
}
else
{
search
.
setStatus
(
"3"
);
}
List
<
FixedSalaryStaffDto
>
dxrylist
=
xcglassoxzdazdymapper
.
selectFixedSalaryStaff
(
search
);
//
return
new
ResponseResult
().
success
(
"获取自定义薪资组表头信息"
,
dxrylist
);
Page
<
FixedSalaryStaffDto
>
page
=
new
Page
<
FixedSalaryStaffDto
>(
search
.
getCurrentPage
()
==
null
?
1
:
search
.
getCurrentPage
(),
search
.
getTotalPage
()
==
null
?
10
:
search
.
getTotalPage
());
IPage
<
FixedSalaryStaffDto
>
dxrypage
=
xcglassoxzdazdymapper
.
selectFixedSalaryStaff
(
page
,
search
);
//
return
ResultUtil
.
data
(
dxrypage
,
dxrypage
.
getRecords
(),
"获取自定义薪资组表头信息"
);
}
/**
...
...
src/main/java/cn/timer/api/dao/xcgl/XcglAssoXzdazdyMapper.java
View file @
aa4cfff1
package
cn
.
timer
.
api
.
dao
.
xcgl
;
import
java.util.List
;
import
cn.timer.api.dto.xcgl.*
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.timer.api.bean.xcgl.XcglAssoXzdazdy
;
import
cn.timer.api.dto.xcgl.ChangeSalaryDto
;
import
cn.timer.api.dto.xcgl.CheckSalaryStaffDto
;
import
cn.timer.api.dto.xcgl.FixedSalaryStaffDto
;
import
cn.timer.api.dto.xcgl.SearchSalariedPeopleDto
;
/**
...
...
@@ -26,7 +25,7 @@ public interface XcglAssoXzdazdyMapper extends BaseMapper<XcglAssoXzdazdy> {
int
dazdyupdate
(
XcglAssoXzdazdy
xcglassoxzdazdy
);
List
<
FixedSalaryStaffDto
>
selectFixedSalaryStaff
(
SearchSalariedPeopleDto
search
);
IPage
<
FixedSalaryStaffDto
>
selectFixedSalaryStaff
(
IPage
<
FixedSalaryStaffDto
>
page
,
@Param
(
"param"
)
SearchSalariedPeopleDto
search
);
List
<
ChangeSalaryDto
>
AchieveSalaryAdjustment
(
Integer
orgcode
,
Integer
empnum
);
...
...
src/main/resources/mapping/xcgl/XcglAssoXzdazdyMapper.xml
View file @
aa4cfff1
...
...
@@ -197,12 +197,12 @@
from yggl_main_emp emp
LEFT JOIN xcgl_asso_xzdadx as dadx on dadx.userid = emp.emp_num and dadx.txzt = 0
LEFT JOIN xcgl_asso_xzdaz as xzdaz on xzdaz.xzdadxid = dadx.id
where emp.org_code = #{orgcode}
<if
test=
"status != ''"
>
and emp.job_status = #{status}
where emp.org_code = #{
param.
orgcode}
<if
test=
"
param.
status != ''"
>
and emp.job_status = #{
param.
status}
</if>
<if
test=
"text != ''"
>
and (emp.`name` like CONCAT('%',#{
text},'%') or emp.emp_num = #{
text})
<if
test=
"
param.
text != ''"
>
and (emp.`name` like CONCAT('%',#{
param.text},'%') or emp.emp_num = #{param.
text})
</if>
</select>
...
...
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