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
11bf1039
Commit
11bf1039
authored
Sep 23, 2024
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大瓶人员列表接口
parent
0dcccdf9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
99 additions
and
3 deletions
+99
-3
DPFilterParamDto.java
...oin/amos/boot/module/common/api/dto/DPFilterParamDto.java
+17
-0
UserPostEnum.java
...ejoin/amos/boot/module/common/api/enums/UserPostEnum.java
+9
-3
ZLStatisticsMapper.java
...boot/module/statistics/api/mapper/ZLStatisticsMapper.java
+4
-0
ZLStatisticsMapper.xml
...tics-api/src/main/resources/mapper/ZLStatisticsMapper.xml
+38
-0
ZLDPStatisticsController.java
...le/statistcs/biz/controller/ZLDPStatisticsController.java
+18
-0
ZLDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/ZLDPStatisticsServiceImpl.java
+13
-0
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/DPFilterParamDto.java
View file @
11bf1039
...
...
@@ -49,4 +49,21 @@ public class DPFilterParamDto {
* 企业单位名称(发起单位/使用单位)
*/
private
String
companyName
;
/**
* 人员类型
*/
private
String
newPost
;
/**
* 姓名
*/
private
String
name
;
/**
* 证件号码
*/
private
String
certificateNum
;
/**
* 所在单位名称
*/
private
String
unitName
;
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/enums/UserPostEnum.java
View file @
11bf1039
...
...
@@ -43,10 +43,16 @@ public enum UserPostEnum {
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
for
(
UserPostEnum
testEnum
:
EnumSet
.
allOf
(
UserPostEnum
.
class
))
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
if
(
testEnum
.
getType
().
contains
(
type
)
)
{
map
.
put
(
"name"
,
testEnum
.
getName
());
map
.
put
(
"code"
,
testEnum
.
getCode
());
if
(
null
==
type
)
{
map
.
put
(
"name"
,
testEnum
.
getName
());
map
.
put
(
"code"
,
testEnum
.
getCode
());
list
.
add
(
map
);
}
else
{
if
(
testEnum
.
getType
().
contains
(
type
))
{
map
.
put
(
"name"
,
testEnum
.
getName
());
map
.
put
(
"code"
,
testEnum
.
getCode
());
list
.
add
(
map
);
}
}
}
return
list
;
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/mapper/ZLStatisticsMapper.java
View file @
11bf1039
package
com
.
yeejoin
.
amos
.
boot
.
module
.
statistics
.
api
.
mapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamDto
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -35,4 +36,7 @@ public interface ZLStatisticsMapper {
Long
getEquipTotal
(
@Param
(
"cityCode"
)
String
cityCode
);
Long
getEquListTotal
(
@Param
(
"field"
)
String
field
,
@Param
(
"cityCode"
)
String
cityCode
);
Page
<
Map
<
String
,
Object
>>
getPersonPage
(
Page
page
,
@Param
(
"paramDto"
)
DPFilterParamDto
paramDto
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"unitTypeList"
)
List
<
String
>
unitTypeList
);
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/ZLStatisticsMapper.xml
View file @
11bf1039
...
...
@@ -107,6 +107,44 @@
<select
id=
"getEquListTotal"
resultType=
"java.lang.Long"
>
select ${field} from tzs_equip_claim_statistics where city_code = #{cityCode}
</select>
<select
id=
"getPersonPage"
resultType=
"java.util.Map"
>
SELECT
tui.sequence_nbr sequenceNbr,
tui.name,
tui.profile,
tui.certificate_num certificateNum,
tui.unit_name unitName,
tui.post_name postName
FROM
tzs_user_info tui
LEFT JOIN tz_base_enterprise_info bei ON tui.unit_code = bei.use_code
where
tui.is_delete = '0'
<if
test=
"unitTypeList != null and unitTypeList.size() > 0"
>
AND
<foreach
collection=
"unitTypeList"
item=
"unitType"
open=
"("
separator=
"OR"
close=
")"
>
bei.unit_type LIKE concat ( '%', #{unitType}, '%' )
</foreach>
</if>
<if
test=
"orgCode != null and orgCode != ''"
>
AND bei.supervise_org_code LIKE concat ( '%', #{orgCode}, '%' )
</if>
<if
test=
"paramDto.name != null and paramDto.name != ''"
>
AND tui.name LIKE concat ( '%', #{paramDto.name}, '%' )
</if>
<if
test=
"paramDto.newPost != null and paramDto.newPost != ''"
>
AND tui.new_post LIKE concat ( '%', #{paramDto.newPost}, '%' )
</if>
<if
test=
"paramDto.name != null and paramDto.name != ''"
>
AND tui.name LIKE concat ( '%', #{paramDto.name}, '%' )
</if>
<if
test=
"paramDto.certificateNum != null and paramDto.certificateNum != ''"
>
AND tui.certificate_num LIKE concat ( '%', #{paramDto.certificateNum}, '%' )
</if>
<if
test=
"paramDto.unitName != null and paramDto.unitName != ''"
>
AND tui.unit_name LIKE concat ( '%', #{paramDto.unitName}, '%' )
</if>
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/ZLDPStatisticsController.java
View file @
11bf1039
...
...
@@ -148,4 +148,22 @@ public class ZLDPStatisticsController {
public
ResponseModel
<
Object
>
equipTree
(
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
equipTree
(
type
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/personPage"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询人员列表"
,
notes
=
"查询人员列表"
)
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
personPage
(
@RequestBody
DPFilterParamDto
paramDto
,
@RequestParam
(
"size"
)
Integer
size
,
@RequestParam
(
"current"
)
Integer
current
)
{
Page
page
=
new
Page
<>(
current
,
size
);
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getPersonPage
(
paramDto
,
page
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/personType"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询人员类型"
,
notes
=
"查询人员类型"
)
public
ResponseModel
<
List
<
Map
<
String
,
String
>>>
personType
(
@RequestParam
(
value
=
"companyType"
,
required
=
false
)
String
companyType
)
{
return
ResponseHelper
.
buildResponse
(
statisticsService
.
getPersonType
(
companyType
));
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/ZLDPStatisticsServiceImpl.java
View file @
11bf1039
...
...
@@ -1065,4 +1065,17 @@ public class ZLDPStatisticsServiceImpl {
}
return
menus
;
}
public
Page
<
Map
<
String
,
Object
>>
getPersonPage
(
DPFilterParamDto
paramDto
,
Page
page
)
{
String
regionCode
=
paramDto
.
getCityCode
();
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
regionCode
);
List
<
String
>
unitTypeList
=
UnitTypeEnum
.
getNameListByType
(
paramDto
.
getCompanyType
());
Page
<
Map
<
String
,
Object
>>
result
=
screenMapper
.
getPersonPage
(
page
,
paramDto
,
orgCode
,
unitTypeList
);
return
result
;
}
public
List
<
Map
<
String
,
String
>>
getPersonType
(
String
companyType
)
{
return
UserPostEnum
.
getEnumListByType
(
companyType
);
}
}
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