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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
2 deletions
+44
-2
JgMaintenanceContractMapper.xml
...src/main/resources/mapper/JgMaintenanceContractMapper.xml
+9
-1
IdxBizJgProjectContraptionServiceImplService.java
...ce/impl/IdxBizJgProjectContraptionServiceImplService.java
+17
-0
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+13
-0
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 @@
...
@@ -50,7 +50,15 @@
FROM tzs_jg_maintenance_contract_eq ede
FROM tzs_jg_maintenance_contract_eq ede
LEFT JOIN idx_biz_jg_supervision_info si ON si."RECORD" = ede.equ_id
LEFT JOIN idx_biz_jg_supervision_info si ON si."RECORD" = ede.equ_id
WHERE ede.equip_transfer_id = tjmc.sequence_nbr
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
FROM
tzs_jg_maintenance_contract tjmc
tzs_jg_maintenance_contract tjmc
</sql>
</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
...
@@ -252,6 +252,7 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
...
@@ -252,6 +252,7 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
*/
*/
@Override
@Override
public
IPage
<
IdxBizJgProjectContraption
>
proConPageByParams
(
int
current
,
int
size
,
String
sort
,
Map
<
String
,
String
>
params
,
ReginParams
reginParams
)
{
public
IPage
<
IdxBizJgProjectContraption
>
proConPageByParams
(
int
current
,
int
size
,
String
sort
,
Map
<
String
,
String
>
params
,
ReginParams
reginParams
)
{
try
{
Page
<
IdxBizJgProjectContraption
>
page
=
new
Page
<>();
Page
<
IdxBizJgProjectContraption
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
...
@@ -412,6 +413,7 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
...
@@ -412,6 +413,7 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
.
collect
(
Collectors
.
joining
())
.
collect
(
Collectors
.
joining
())
);
);
record
.
setCompanyType
(
companyType2
);
record
.
setCompanyType
(
companyType2
);
// 来源类型:前端控制编辑按钮显示隐藏
// 来源类型:前端控制编辑按钮显示隐藏
record
.
setRegType
(
CommonServiceImpl
.
genRegTypeByDataSource
(
record
.
getDataSource
()));
record
.
setRegType
(
CommonServiceImpl
.
genRegTypeByDataSource
(
record
.
getDataSource
()));
record
.
setIsIntoManagementName
(
IsIntoManagementEnum
.
getName
(
record
.
getIsIntoManagement
()));
record
.
setIsIntoManagementName
(
IsIntoManagementEnum
.
getName
(
record
.
getIsIntoManagement
()));
...
@@ -426,8 +428,23 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
...
@@ -426,8 +428,23 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
pageList
.
getRecords
().
forEach
(
record
->
record
.
setCanDelete
(
canDeleteMap
.
get
(
record
.
getSequenceNbr
()+
""
)));
pageList
.
getRecords
().
forEach
(
record
->
record
.
setCanDelete
(
canDeleteMap
.
get
(
record
.
getSequenceNbr
()+
""
)));
//判断是否有检验结果录入
//判断是否有检验结果录入
judgeCheckResult
(
pageList
.
getRecords
());
judgeCheckResult
(
pageList
.
getRecords
());
List
<
IdxBizJgUseInfo
>
useInfos
=
useInfoService
.
lambdaQuery
().
select
(
IdxBizJgUseInfo:
:
getRecord
,
IdxBizJgUseInfo:
:
getPhone
)
.
in
(
IdxBizJgUseInfo:
:
getProjectContraptionId
,
projectContraptionIdList
).
list
();
useInfos
.
forEach
(
info
->
System
.
out
.
println
(
"record="
+
info
.
getRecord
()
+
", phone="
+
info
.
getPhone
()));
}
}
return
pageList
;
return
pageList
;
}
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
(
"系统内部错误,请联系管理员。"
);
}
}
}
/**
/**
...
...
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,6 +118,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -118,6 +118,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
* 分页查询
* 分页查询
*/
*/
public
Page
<
JgMaintenanceContractVo
>
queryForPage
(
Page
<
JgMaintenanceContract
>
page
,
String
sort
,
JgMaintenanceContractDto
dto
,
ReginParams
reginParams
,
String
client
)
{
public
Page
<
JgMaintenanceContractVo
>
queryForPage
(
Page
<
JgMaintenanceContract
>
page
,
String
sort
,
JgMaintenanceContractDto
dto
,
ReginParams
reginParams
,
String
client
)
{
try
{
if
(
ObjectUtils
.
isEmpty
(
dto
))
{
if
(
ObjectUtils
.
isEmpty
(
dto
))
{
dto
=
new
JgMaintenanceContractDto
();
dto
=
new
JgMaintenanceContractDto
();
}
}
...
@@ -157,6 +158,18 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -157,6 +158,18 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
contractList
.
setRecords
(
records
);
contractList
.
setRecords
(
records
);
BeanUtils
.
copyProperties
(
contractList
,
result
);
BeanUtils
.
copyProperties
(
contractList
,
result
);
return
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
(
"系统内部错误,请联系管理员。"
);
}
}
}
/**
/**
...
...
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
...
@@ -233,13 +233,17 @@ public class TzBaseEnterpriseInfoServiceImpl
// }
// }
SortVo
sortMap
=
userInfoService
.
sortFieldConversion
(
sort
);
SortVo
sortMap
=
userInfoService
.
sortFieldConversion
(
sort
);
// 密评专用(查tz_flc_reg_unit_info表中的admin_login_pwd字段,以用于验证密评数据完整性)
// 密评专用(查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
);
return
this
.
baseMapper
.
pageList
(
page
,
tzBaseEnterpriseInfoDto
,
orgCode
,
sortMap
,
officeRegion
);
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
String
msg
=
ex
.
getMessage
()
==
null
?
""
:
ex
.
getMessage
();
String
msg
=
ex
.
getMessage
()
==
null
?
""
:
ex
.
getMessage
();
if
(
msg
.
contains
(
"eyibc decrypt error"
)
if
(
msg
.
contains
(
"eyibc decrypt error"
)
||
msg
.
contains
(
"EYIBCException"
)
||
msg
.
contains
(
"EYIBCException"
)
||
msg
.
contains
(
"olym jdbc error"
)
||
msg
.
contains
(
"olym jdbc error"
)
||
msg
.
contains
(
"100022:"
)
||
msg
.
contains
(
"数据非法"
)
||
msg
.
contains
(
"数据非法"
)
||
msg
.
contains
(
"decrypt error, code: -65"
))
{
||
msg
.
contains
(
"decrypt error, code: -65"
))
{
throw
new
BadRequest
(
"数据完整性被破坏(解密失败),请联系管理员。"
);
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