Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
12590b75
Commit
12590b75
authored
Oct 25, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员管理列表查询
parent
ca7dc288
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
WelderController.java
...amos/boot/module/ugp/biz/controller/WelderController.java
+28
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/WelderController.java
View file @
12590b75
...
...
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.OrgEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.WelderDto
;
...
...
@@ -14,6 +15,7 @@ import com.yeejoin.amos.boot.module.ugp.api.dto.WelderEquipmentDto;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.ProjectMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.ProjectResourceMapper
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.OrgServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectResourceServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.ProjectServiceImpl
;
...
...
@@ -160,4 +162,30 @@ public class WelderController extends BaseController {
orgServiceImpl
.
delectInfo
(
sequenceNbr
);
}
/**
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
""
,
notes
=
""
)
@GetMapping
(
value
=
"/getUserInfo"
)
@BusinessIdentify
public
ResponseModel
<
IPage
>
getUserInfo
(
int
current
,
int
size
){
IPage
page
=
new
Page
();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
=
orgServiceImpl
.
getPersonInfo
(
String
.
valueOf
(
orgServiceImpl
.
getReginParams
().
getCompany
().
getSequenceNbr
()),
page
);
List
<
Map
>
mapList
=
page
.
getRecords
();
for
(
Map
map
:
mapList
){
if
(
OrgEnum
.
焊工
.
getKey
().
equals
((
String
)
map
.
get
(
"type"
))){
map
.
put
(
"typeName"
,
OrgEnum
.
焊工
.
getName
());
}
else
{
map
.
put
(
"typeName"
,
OrgEnum
.
普通人员
.
getName
());
}
}
return
ResponseHelper
.
buildResponse
(
page
);
}
}
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