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
818162fe
Commit
818162fe
authored
Dec 30, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_bugfix' into develop_tzs_bugfix
parents
1e030a53
f8b363f1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
11 deletions
+23
-11
JgInstallationNoticeMapper.java
...boot/module/jg/api/mapper/JgInstallationNoticeMapper.java
+5
-3
JgInstallationNoticeMapper.xml
.../src/main/resources/mapper/JgInstallationNoticeMapper.xml
+8
-4
JgVehicleInformationMapper.xml
.../src/main/resources/mapper/JgVehicleInformationMapper.xml
+5
-1
SafetyProblemTracingMapper.xml
.../src/main/resources/mapper/SafetyProblemTracingMapper.xml
+1
-1
JgVehicleInformationController.java
...ule/jg/biz/controller/JgVehicleInformationController.java
+1
-0
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+3
-2
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/JgInstallationNoticeMapper.java
View file @
818162fe
...
@@ -22,15 +22,17 @@ public interface JgInstallationNoticeMapper extends CustomBaseMapper<JgInstallat
...
@@ -22,15 +22,17 @@ public interface JgInstallationNoticeMapper extends CustomBaseMapper<JgInstallat
/**
/**
* 分页查询
* 分页查询
*
*
* @param page 分页对象
* @param page 分页对象
* @param model 查询参数
* @param model 查询参数
* @param type 类型:enterprise-企业端、supervision-监管端
* @param type 类型:enterprise-企业端、supervision-监管端
* @param orgCode 公司的orgCode
* @return 安装告知列表
* @return 安装告知列表
*/
*/
Page
<
Map
<
String
,
Object
>>
queryForPage
(
Page
<
JgInstallationNotice
>
page
,
Page
<
Map
<
String
,
Object
>>
queryForPage
(
Page
<
JgInstallationNotice
>
page
,
@Param
(
"param"
)
JgInstallationNoticeDto
model
,
@Param
(
"param"
)
JgInstallationNoticeDto
model
,
@Param
(
"type"
)
String
type
,
@Param
(
"type"
)
String
type
,
@Param
(
"sort"
)
SortVo
sort
,
@Param
(
"sort"
)
SortVo
sort
,
@Param
(
"companyCode"
)
String
companyCode
,
@Param
(
"orgCode"
)
String
orgCode
);
@Param
(
"orgCode"
)
String
orgCode
);
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgInstallationNoticeMapper.xml
View file @
818162fe
...
@@ -75,17 +75,21 @@
...
@@ -75,17 +75,21 @@
</if>
</if>
</if>
</if>
<if
test=
"type == 'supervision'"
>
<if
test=
"type == 'supervision'"
>
AND (isn.receive_org_credit_code = #{orgCode} or isn.transfer_to_user_ids like concat('%',#{param.transferToUserIds},'%'))
AND (
isn.receive_org_credit_code = #{companyCode}
or isn.transfer_to_user_ids like concat('%',#{param.transferToUserIds},'%')
or isn.org_branch_code like concat(#{orgCode}, '%')
)
AND isn.instance_id
<![CDATA[<>]]>
''
AND isn.instance_id
<![CDATA[<>]]>
''
</if>
</if>
<if
test=
"type == 'company'"
>
<if
test=
"type == 'company'"
>
AND (isn.install_unit_credit_code = #{
org
Code} or isn.transfer_to_user_ids like concat('%',#{param.transferToUserIds},'%'))
AND (isn.install_unit_credit_code = #{
company
Code} or isn.transfer_to_user_ids like concat('%',#{param.transferToUserIds},'%'))
</if>
</if>
<if
test=
"type == 'testAdmin'"
>
<if
test=
"type == 'testAdmin'"
>
((AND isn.receive_org_credit_code = #{
org
Code}
((AND isn.receive_org_credit_code = #{
company
Code}
AND isn.instance_id
<![CDATA[<>]]>
'')
AND isn.instance_id
<![CDATA[<>]]>
'')
or
or
AND isn.install_unit_credit_code = #{
org
Code})
AND isn.install_unit_credit_code = #{
company
Code})
</if>
</if>
</where>
</where>
ORDER BY
ORDER BY
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgVehicleInformationMapper.xml
View file @
818162fe
...
@@ -36,7 +36,11 @@
...
@@ -36,7 +36,11 @@
and tjvi.use_unit_credit_code = #{dto.useUnitCode}
and tjvi.use_unit_credit_code = #{dto.useUnitCode}
</if>
</if>
<if
test=
"dto.dataType == 'supervision' "
>
<if
test=
"dto.dataType == 'supervision' "
>
and tjvi.receive_company_code = #{dto.useUnitCreditCode}
and
(
tjvi.receive_company_code = #{dto.useUnitCreditCode}
or tjvi.org_branch_code like concat(#{dto.orgBranchCode}, '%')
)
AND tjvi.status
<![CDATA[<>]]>
'使用单位待提交'
AND tjvi.status
<![CDATA[<>]]>
'使用单位待提交'
</if>
</if>
<if
test=
"dto.dataType == 'company' "
>
<if
test=
"dto.dataType == 'company' "
>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/SafetyProblemTracingMapper.xml
View file @
818162fe
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
else 'green' end problemStatusColor
else 'green' end problemStatusColor
FROM
FROM
tzs_safety_problem_tracing spt
tzs_safety_problem_tracing spt
LEFT JOIN tz_base_enterprise_info ei on ei.
sequence_nbr = spt.source_id
LEFT JOIN tz_base_enterprise_info ei on ei.
use_unit_code = spt.principal_unit_code
WHERE
WHERE
spt.sequence_nbr = #{problemId}
spt.sequence_nbr = #{problemId}
UNION
UNION
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgVehicleInformationController.java
View file @
818162fe
...
@@ -142,6 +142,7 @@ public class JgVehicleInformationController extends BaseController {
...
@@ -142,6 +142,7 @@ public class JgVehicleInformationController extends BaseController {
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_COMPANY
);
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_COMPANY
);
}
else
{
}
else
{
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_SUPERVISION
);
dto
.
setDataType
(
BaseController
.
COMPANY_TYPE_SUPERVISION
);
dto
.
setOrgBranchCode
(
info
.
getCompany
().
getOrgCode
());
}
}
Page
<
Map
<
String
,
Object
>>
list
=
jgVehicleInformationServiceImpl
.
getPageList
(
dto
,
sort
,
page
,
dto
.
getRoleIds
());
Page
<
Map
<
String
,
Object
>>
list
=
jgVehicleInformationServiceImpl
.
getPageList
(
dto
,
sort
,
page
,
dto
.
getRoleIds
());
list
.
getRecords
().
forEach
(
x
->
{
list
.
getRecords
().
forEach
(
x
->
{
...
...
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/JgInstallationNoticeServiceImpl.java
View file @
818162fe
...
@@ -564,10 +564,11 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -564,10 +564,11 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
String
sort
,
String
sort
,
ReginParams
reginParams
)
{
ReginParams
reginParams
)
{
String
org
Code
=
reginParams
.
getCompany
().
getCompanyCode
();
String
company
Code
=
reginParams
.
getCompany
().
getCompanyCode
();
SortVo
sortMap
=
commonService
.
sortFieldConversion
(
sort
);
SortVo
sortMap
=
commonService
.
sortFieldConversion
(
sort
);
model
.
setTransferToUserIds
(
reginParams
.
getUserModel
().
getUserId
());
model
.
setTransferToUserIds
(
reginParams
.
getUserModel
().
getUserId
());
Page
<
Map
<
String
,
Object
>>
noticePage
=
jgInstallationNoticeMapper
.
queryForPage
(
page
,
model
,
type
,
sortMap
,
orgCode
);
String
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
Page
<
Map
<
String
,
Object
>>
noticePage
=
jgInstallationNoticeMapper
.
queryForPage
(
page
,
model
,
type
,
sortMap
,
companyCode
,
orgCode
);
List
<
Map
<
String
,
Object
>>
mappedRecords
=
noticePage
.
getRecords
().
stream
().
peek
(
notice
->
{
List
<
Map
<
String
,
Object
>>
mappedRecords
=
noticePage
.
getRecords
().
stream
().
peek
(
notice
->
{
Optional
<
Long
>
noticeStatusOpt
=
Optional
.
ofNullable
((
String
)
notice
.
get
(
"noticeStatus"
)).
map
(
Long:
:
valueOf
);
Optional
<
Long
>
noticeStatusOpt
=
Optional
.
ofNullable
((
String
)
notice
.
get
(
"noticeStatus"
)).
map
(
Long:
:
valueOf
);
noticeStatusOpt
.
ifPresent
(
status
->
{
noticeStatusOpt
.
ifPresent
(
status
->
{
...
...
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