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
f87a83b3
Commit
f87a83b3
authored
Nov 04, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):密评完整性问题处理
parent
97b75ca6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
37 deletions
+62
-37
JgMaintenanceContractMapper.xml
...src/main/resources/mapper/JgMaintenanceContractMapper.xml
+9
-1
IdxBizJgProjectContraptionServiceImplService.java
...ce/impl/IdxBizJgProjectContraptionServiceImplService.java
+0
-0
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+48
-35
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+5
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintenanceContractMapper.xml
View file @
f87a83b3
...
...
@@ -50,7 +50,15 @@
FROM tzs_jg_maintenance_contract_eq ede
LEFT JOIN idx_biz_jg_supervision_info si ON si."RECORD" = ede.equ_id
WHERE ede.equip_transfer_id = tjmc.sequence_nbr
) AS orgBranchCodes
) AS orgBranchCodes,
(
SELECT mri.ME_MASTER1_PHONE AS phone
FROM tzs_jg_maintenance_contract_eq ede
LEFT JOIN idx_biz_jg_maintenance_record_info mri
ON mri."RECORD" = ede.equ_id
WHERE ede.equip_transfer_id = tjmc.sequence_nbr
order by mri.REC_DATE limit 1
) AS phone
FROM
tzs_jg_maintenance_contract tjmc
</sql>
...
...
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/IdxBizJgProjectContraptionServiceImplService.java
View file @
f87a83b3
This diff is collapsed.
Click to expand it.
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/JgMaintenanceContractServiceImpl.java
View file @
f87a83b3
...
...
@@ -118,45 +118,58 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
* 分页查询
*/
public
Page
<
JgMaintenanceContractVo
>
queryForPage
(
Page
<
JgMaintenanceContract
>
page
,
String
sort
,
JgMaintenanceContractDto
dto
,
ReginParams
reginParams
,
String
client
)
{
if
(
ObjectUtils
.
isEmpty
(
dto
))
{
dto
=
new
JgMaintenanceContractDto
();
}
Page
<
JgMaintenanceContractDto
>
contractList
;
Page
<
JgMaintenanceContractVo
>
result
=
new
Page
<>();
CompanyBo
company
=
reginParams
.
getCompany
();
SortVo
sortMap
=
commonService
.
sortFieldConversion
(
sort
);
Map
<
String
,
Object
>
companyTypeMap
=
jrmInstallationNoticeService
.
getCompanyType
();
String
companyLevel
=
""
;
String
companyType
=
""
;
if
(
companyTypeMap
.
containsKey
(
"companyLevel"
))
{
companyLevel
=
companyTypeMap
.
get
(
"companyLevel"
).
toString
();
}
if
(
companyTypeMap
.
containsKey
(
"companyType"
))
{
companyType
=
companyTypeMap
.
get
(
"companyType"
).
toString
();
}
if
(
"supervision"
.
equals
(
companyLevel
))
{
// 监管单位查询
if
(
client
.
equals
(
"jgLook"
))
{
dto
.
setOrgBranchCode
(
company
.
getOrgCode
());
}
else
{
// 接收机构查询
dto
.
setReceiveOrgCodeFilter
(
company
.
getCompanyCode
());
try
{
if
(
ObjectUtils
.
isEmpty
(
dto
))
{
dto
=
new
JgMaintenanceContractDto
();
}
}
else
if
(
"company"
.
equals
(
companyLevel
))
{
if
(
companyType
.
contains
(
CompanyTypeEnum
.
USE
.
getCode
())
||
companyType
.
contains
(
CompanyTypeEnum
.
INDIVIDUAL
.
getCode
()))
{
// 使用单位用"使用单位统一信用代码"匹配数据
dto
.
setUseUnitCodeFilter
(
company
.
getCompanyCode
());
dto
.
setRoleIds
(
null
);
Page
<
JgMaintenanceContractDto
>
contractList
;
Page
<
JgMaintenanceContractVo
>
result
=
new
Page
<>();
CompanyBo
company
=
reginParams
.
getCompany
();
SortVo
sortMap
=
commonService
.
sortFieldConversion
(
sort
);
Map
<
String
,
Object
>
companyTypeMap
=
jrmInstallationNoticeService
.
getCompanyType
();
String
companyLevel
=
""
;
String
companyType
=
""
;
if
(
companyTypeMap
.
containsKey
(
"companyLevel"
))
{
companyLevel
=
companyTypeMap
.
get
(
"companyLevel"
).
toString
();
}
if
(
companyTypeMap
.
containsKey
(
"companyType"
))
{
companyType
=
companyTypeMap
.
get
(
"companyType"
).
toString
();
}
if
(
"supervision"
.
equals
(
companyLevel
))
{
// 监管单位查询
if
(
client
.
equals
(
"jgLook"
))
{
dto
.
setOrgBranchCode
(
company
.
getOrgCode
());
}
else
{
// 接收机构查询
dto
.
setReceiveOrgCodeFilter
(
company
.
getCompanyCode
());
}
}
else
if
(
"company"
.
equals
(
companyLevel
))
{
if
(
companyType
.
contains
(
CompanyTypeEnum
.
USE
.
getCode
())
||
companyType
.
contains
(
CompanyTypeEnum
.
INDIVIDUAL
.
getCode
()))
{
// 使用单位用"使用单位统一信用代码"匹配数据
dto
.
setUseUnitCodeFilter
(
company
.
getCompanyCode
());
dto
.
setRoleIds
(
null
);
}
if
(
companyType
.
contains
(
CompanyTypeEnum
.
CONSTRUCTION
.
getCode
()))
{
// 维保单位用"维保单位统一信用代码"匹配数据
dto
.
setMaintenanceUnitCodeFilter
(
company
.
getCompanyCode
());
}
}
if
(
companyType
.
contains
(
CompanyTypeEnum
.
CONSTRUCTION
.
getCode
()))
{
// 维保单位用"维保单位统一信用代码"匹配数据
dto
.
setMaintenanceUnitCodeFilter
(
company
.
getCompanyCode
());
contractList
=
maintenanceContractMapper
.
getContractList
(
page
,
sortMap
,
dto
,
reginParams
.
getUserModel
().
getUserId
(),
client
);
List
<
JgMaintenanceContractDto
>
records
=
contractList
.
getRecords
().
stream
().
peek
(
x
->
x
.
setUnitType
(
company
.
getCompanyType
())).
collect
(
Collectors
.
toList
());
contractList
.
setRecords
(
records
);
BeanUtils
.
copyProperties
(
contractList
,
result
);
return
result
;
}
catch
(
Exception
ex
)
{
String
msg
=
ex
.
getMessage
()
==
null
?
""
:
ex
.
getMessage
();
if
(
msg
.
contains
(
"eyibc decrypt error"
)
||
msg
.
contains
(
"EYIBCException"
)
||
msg
.
contains
(
"olym jdbc error"
)
||
msg
.
contains
(
"数据非法"
)
||
msg
.
contains
(
"Code: 100023:sql parse error"
)
||
msg
.
contains
(
"decrypt error, code: -65"
))
{
throw
new
BadRequest
(
"数据完整性被破坏(解密失败),请联系管理员。"
);
}
throw
new
BadRequest
(
"系统内部错误,请联系管理员。"
);
}
contractList
=
maintenanceContractMapper
.
getContractList
(
page
,
sortMap
,
dto
,
reginParams
.
getUserModel
().
getUserId
(),
client
);
List
<
JgMaintenanceContractDto
>
records
=
contractList
.
getRecords
().
stream
().
peek
(
x
->
x
.
setUnitType
(
company
.
getCompanyType
())).
collect
(
Collectors
.
toList
());
contractList
.
setRecords
(
records
);
BeanUtils
.
copyProperties
(
contractList
,
result
);
return
result
;
}
/**
...
...
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/TzBaseEnterpriseInfoServiceImpl.java
View file @
f87a83b3
...
...
@@ -233,13 +233,17 @@ public class TzBaseEnterpriseInfoServiceImpl
// }
SortVo
sortMap
=
userInfoService
.
sortFieldConversion
(
sort
);
// 密评专用(查tz_flc_reg_unit_info表中的admin_login_pwd字段,以用于验证密评数据完整性)
regUnitInfoService
.
lambdaQuery
().
eq
(
RegUnitInfo:
:
getUnitCode
,
tzBaseEnterpriseInfoDto
.
getUseUnitCode
()).
select
(
RegUnitInfo:
:
getUnitCode
,
RegUnitInfo:
:
getAdminLoginPwd
);
List
<
RegUnitInfo
>
regUnitInfoList
=
regUnitInfoService
.
lambdaQuery
().
select
(
RegUnitInfo:
:
getUnitCode
,
RegUnitInfo:
:
getAdminLoginPwd
)
.
eq
(
RegUnitInfo:
:
getName
,
tzBaseEnterpriseInfoDto
.
getUseUnit
()).
list
();
regUnitInfoList
.
forEach
(
info
->
System
.
out
.
println
(
"unitCode="
+
info
.
getUnitCode
()
+
", adminLoginPwd="
+
info
.
getAdminLoginPwd
()));
return
this
.
baseMapper
.
pageList
(
page
,
tzBaseEnterpriseInfoDto
,
orgCode
,
sortMap
,
officeRegion
);
}
catch
(
Exception
ex
)
{
String
msg
=
ex
.
getMessage
()
==
null
?
""
:
ex
.
getMessage
();
if
(
msg
.
contains
(
"eyibc decrypt error"
)
||
msg
.
contains
(
"EYIBCException"
)
||
msg
.
contains
(
"olym jdbc error"
)
||
msg
.
contains
(
"100022:"
)
||
msg
.
contains
(
"数据非法"
)
||
msg
.
contains
(
"decrypt error, code: -65"
))
{
throw
new
BadRequest
(
"数据完整性被破坏(解密失败),请联系管理员。"
);
...
...
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