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
dfa58df9
Commit
dfa58df9
authored
Jul 15, 2020
by
lal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
c928be85
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
src/main/java/cn/timer/api/controller/yggl/YgglController.java
+16
-0
src/main/java/cn/timer/api/dto/kqmk/AdditionalDto.java
+3
-0
src/main/resources/mapping/kqmk/KqglAssoLeaveBalanceMapper.xml
+2
-0
No files found.
src/main/java/cn/timer/api/controller/yggl/YgglController.java
View file @
dfa58df9
...
@@ -92,12 +92,14 @@ import cn.timer.api.config.validation.ValidList;
...
@@ -92,12 +92,14 @@ import cn.timer.api.config.validation.ValidList;
import
cn.timer.api.controller.kqgl.ClockInTool
;
import
cn.timer.api.controller.kqgl.ClockInTool
;
import
cn.timer.api.controller.zzgl.service.ZzglBmgwMService
;
import
cn.timer.api.controller.zzgl.service.ZzglBmgwMService
;
import
cn.timer.api.dao.clazz.CommonAreaMapper
;
import
cn.timer.api.dao.clazz.CommonAreaMapper
;
import
cn.timer.api.dao.kqmk.KqglAssoLeaveBalanceMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpEntAssoMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpLoginMapper
;
import
cn.timer.api.dao.qyzx.QyzxEmpLoginMapper
;
import
cn.timer.api.dao.yggl.YgMzDtoMapper
;
import
cn.timer.api.dao.yggl.YgMzDtoMapper
;
import
cn.timer.api.dao.yggl.YgglMainEmpMapper
;
import
cn.timer.api.dao.yggl.YgglMainEmpMapper
;
import
cn.timer.api.dao.yggl.YgglMainLzbMapper
;
import
cn.timer.api.dao.yggl.YgglMainLzbMapper
;
import
cn.timer.api.dao.zzgl.ZzglBmgwMMapper
;
import
cn.timer.api.dao.zzgl.ZzglBmgwMMapper
;
import
cn.timer.api.dto.kqmk.AdditionalDto
;
import
cn.timer.api.dto.yggl.AddygdaDto
;
import
cn.timer.api.dto.yggl.AddygdaDto
;
import
cn.timer.api.dto.yggl.EmpQuery
;
import
cn.timer.api.dto.yggl.EmpQuery
;
import
cn.timer.api.dto.yggl.ImportEmpDto
;
import
cn.timer.api.dto.yggl.ImportEmpDto
;
...
@@ -1837,4 +1839,18 @@ public class YgglController {
...
@@ -1837,4 +1839,18 @@ public class YgglController {
return
ResultUtil
.
data
(
yglList
);
return
ResultUtil
.
data
(
yglList
);
}
}
@Autowired
private
KqglAssoLeaveBalanceMapper
kqglassoleavebalancemapper
;
@GetMapping
(
value
=
"/address_book"
)
@ApiOperation
(
value
=
"APP 获取通讯录"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
70
)
public
Result
<
Object
>
Getaddressbook
(
@CurrentUser
UserBean
userBean
)
{
List
<
AdditionalDto
>
userlist
=
kqglassoleavebalancemapper
.
selectAdditionalList
(
userBean
.
getOrgCode
());
return
ResultUtil
.
data
(
userlist
);
}
}
}
src/main/java/cn/timer/api/dto/kqmk/AdditionalDto.java
View file @
dfa58df9
...
@@ -18,6 +18,9 @@ public class AdditionalDto {
...
@@ -18,6 +18,9 @@ public class AdditionalDto {
@ApiModelProperty
(
value
=
"员工名称 "
,
example
=
"字段说明"
)
@ApiModelProperty
(
value
=
"员工名称 "
,
example
=
"字段说明"
)
private
String
empname
;
private
String
empname
;
@ApiModelProperty
(
value
=
"员工电话 "
,
example
=
"字段说明"
)
private
String
phone
;
@ApiModelProperty
(
value
=
"部门 "
,
example
=
"字段说明"
)
@ApiModelProperty
(
value
=
"部门 "
,
example
=
"字段说明"
)
private
String
department
;
private
String
department
;
...
...
src/main/resources/mapping/kqmk/KqglAssoLeaveBalanceMapper.xml
View file @
dfa58df9
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
<resultMap
id=
"AdditionalMap"
type=
"cn.timer.api.dto.kqmk.AdditionalDto"
>
<resultMap
id=
"AdditionalMap"
type=
"cn.timer.api.dto.kqmk.AdditionalDto"
>
<result
column=
"empnum"
property=
"empnum"
/>
<result
column=
"empnum"
property=
"empnum"
/>
<result
column=
"empname"
property=
"empname"
/>
<result
column=
"empname"
property=
"empname"
/>
<result
column=
"phone"
property=
"phone"
/>
<result
column=
"department"
property=
"department"
/>
<result
column=
"department"
property=
"department"
/>
<result
column=
"position"
property=
"position"
/>
<result
column=
"position"
property=
"position"
/>
</resultMap>
</resultMap>
...
@@ -125,6 +126,7 @@
...
@@ -125,6 +126,7 @@
<select
id=
"selectAdditionalList"
resultMap=
"AdditionalMap"
>
<select
id=
"selectAdditionalList"
resultMap=
"AdditionalMap"
>
SELECT emp.emp_num as empnum,
SELECT emp.emp_num as empnum,
emp.`name` as empname,
emp.`name` as empname,
emp.phone,
IFNULL(c.name,null) as department,
IFNULL(c.name,null) as department,
IFNULL(gw.`name`,null) as position
IFNULL(gw.`name`,null) as position
from yggl_main_emp emp
from yggl_main_emp emp
...
...
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