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
a7cf3467
Commit
a7cf3467
authored
Sep 06, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tcm):详情展示所有人员类型;
fix(jg):不同人员查询使用code进行匹配
parent
2b4b3b53
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
30 deletions
+47
-30
CommonMapper.java
.../yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
+1
-2
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+13
-7
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+7
-6
ITzsUserInfoService.java
...amos/boot/module/tcm/api/service/ITzsUserInfoService.java
+1
-1
TzsUserInfoController.java
...boot/module/tcm/biz/controller/TzsUserInfoController.java
+3
-2
TzsUserInfoServiceImpl.java
...t/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
+22
-12
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
View file @
a7cf3467
...
...
@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.CompanyBo
;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamForDetailDto
;
import
com.yeejoin.amos.boot.module.jg.api.bo.JgBizCountDataBO
;
import
com.yeejoin.amos.boot.module.jg.api.dto.ReportAnalysisSearchDTO
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory
;
...
...
@@ -24,7 +23,7 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
List
<
Map
<
String
,
Object
>>
getUnitListByType
(
String
type
);
List
<
Map
<
String
,
Object
>>
getSecurityAdmin
(
String
companyCode
,
String
type
);
List
<
Map
<
String
,
Object
>>
getSecurityAdmin
(
String
companyCode
,
List
<
String
>
post
);
Map
<
String
,
Object
>
getUserInfo
(
String
sequenceNbr
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
a7cf3467
...
...
@@ -22,18 +22,24 @@
</if>
</select>
<select
id=
"getSecurityAdmin"
resultType=
"java.util.Map"
>
SELECT
<select
id=
"getSecurityAdmin"
resultType=
"java.util.Map"
>
SELECT
sequence_nbr sequenceNbr,
name,
phone,
certificate_num
FROM
FROM
"tzs_user_info"
WHERE
unit_code = #{companyCode}
AND post_name LIKE CONCAT('%',#{type},'%')
AND is_delete = 'f'
WHERE
is_delete = 'f'
AND unit_code = #{companyCode}
<if
test=
"post != null and post.size() > 0"
>
AND (
<foreach
collection=
"post"
separator=
"or"
item=
"postItem"
>
post like concat('%',#{postItem},'%')
</foreach>
)
</if>
</select>
<select
id=
"getUserInfo"
resultType=
"java.util.Map"
>
SELECT
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
a7cf3467
...
...
@@ -807,20 +807,21 @@ public class CommonServiceImpl implements ICommonService {
CompanyBo
company
=
reginParams
.
getCompany
();
companyCode
=
company
.
getCompanyCode
();
}
String
postName
=
null
;
List
<
String
>
post
=
new
ArrayList
<>()
;
if
(
type
.
equals
(
"use"
))
{
post
Name
=
"安全管理员"
;
post
.
add
(
"6617"
)
;
//安全管理员
}
if
(
type
.
equals
(
"jyjc"
))
{
postName
=
"检验检测人员"
;
post
.
add
(
"66151"
);
//检验人员
post
.
add
(
"66152"
);
//检测人员
}
if
(
type
.
equals
(
"agw"
))
{
post
Name
=
"安改维负责人"
;
post
.
add
(
"6553"
);
// 安改维负责人
}
if
(
type
.
equals
(
"wbry"
))
{
post
Name
=
"维保人员"
;
post
.
add
(
"6618"
);
//维保人员
}
return
ObjectUtils
.
isEmpty
(
post
Name
)
?
new
ArrayList
<>()
:
commonMapper
.
getSecurityAdmin
(
companyCode
,
postName
);
return
ObjectUtils
.
isEmpty
(
post
)
?
new
ArrayList
<>()
:
commonMapper
.
getSecurityAdmin
(
companyCode
,
post
);
}
@Override
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/service/ITzsUserInfoService.java
View file @
a7cf3467
...
...
@@ -30,7 +30,7 @@ public interface ITzsUserInfoService extends IService<TzsUserInfo> {
List
<
Map
<
String
,
Object
>>
getEquipmentType
(
String
creditCode
);
List
<
Map
<
String
,
Object
>>
getUserType
(
String
unitType
);
List
<
Map
<
String
,
Object
>>
getUserType
(
String
unitType
,
String
formType
);
Map
<
String
,
Integer
>
getArrangementStatistic
(
String
companyCode
);
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/TzsUserInfoController.java
View file @
a7cf3467
...
...
@@ -191,8 +191,9 @@ public class TzsUserInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getUserType"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据单位类型获取人员类型"
,
notes
=
"根据单位类型获取人员类型"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getUserType
(
@RequestParam
(
value
=
"unitType"
)
String
unitType
)
{
return
ResponseHelper
.
buildResponse
(
tzsUserInfoService
.
getUserType
(
unitType
));
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getUserType
(
@RequestParam
(
value
=
"unitType"
)
String
unitType
,
@RequestParam
(
value
=
"formType"
)
String
formType
)
{
return
ResponseHelper
.
buildResponse
(
tzsUserInfoService
.
getUserType
(
unitType
,
formType
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsUserInfoServiceImpl.java
View file @
a7cf3467
...
...
@@ -658,20 +658,30 @@ public class TzsUserInfoServiceImpl extends BaseService<TzsUserInfoDto, TzsUserI
@Override
public
List
<
Map
<
String
,
Object
>>
getUserType
(
String
unitType
)
{
public
List
<
Map
<
String
,
Object
>>
getUserType
(
String
unitType
,
String
formType
)
{
// 详情可展示所有的人员类型
List
<
String
>
type
=
new
ArrayList
<>();
type
.
add
(
"QYRYGW"
);
if
(
unitType
.
contains
(
"use"
))
{
type
.
add
(
"QYRYGW-SYDW"
);
}
if
(
unitType
.
contains
(
"pro"
))
{
type
.
add
(
"QYRYGW-SCDW"
);
}
if
(
unitType
.
contains
(
"install"
))
{
type
.
add
(
"QYRYGW-INSTALL"
);
}
if
(
unitType
.
contains
(
"inspection"
))
{
type
.
add
(
"QYRYGW-INSPECTION"
);
if
(
"detail"
.
equals
(
formType
))
{
type
.
addAll
(
Arrays
.
asList
(
"QYRYGW-SYDW"
,
"QYRYGW-SCDW"
,
"QYRYGW-INSTALL"
,
"QYRYGW-INSPECTION"
));
}
else
{
if
(
unitType
.
contains
(
"use"
))
{
type
.
add
(
"QYRYGW-SYDW"
);
}
if
(
unitType
.
contains
(
"pro"
))
{
type
.
add
(
"QYRYGW-SCDW"
);
}
if
(
unitType
.
contains
(
"install"
))
{
type
.
add
(
"QYRYGW-INSTALL"
);
}
if
(
unitType
.
contains
(
"inspection"
))
{
type
.
add
(
"QYRYGW-INSPECTION"
);
}
}
return
tzsUserInfoMapper
.
getUserTypeList
(
type
);
}
...
...
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