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
6401acff
Commit
6401acff
authored
Nov 05, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_bugfix' into develop_tzs_register
parents
3ac60aac
146ad182
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
20 deletions
+69
-20
JgMaintenanceContractMapper.xml
...src/main/resources/mapper/JgMaintenanceContractMapper.xml
+9
-1
CommonEquipDataProcessService.java
...biz/edit/process/equip/CommonEquipDataProcessService.java
+1
-1
IdxBizJgProjectContraptionServiceImplService.java
...ce/impl/IdxBizJgProjectContraptionServiceImplService.java
+17
-0
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+13
-0
SafetyProblemTracingServiceImpl.java
.../jg/biz/service/impl/SafetyProblemTracingServiceImpl.java
+1
-1
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+22
-17
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+6
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintenanceContractMapper.xml
View file @
6401acff
...
...
@@ -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/edit/process/equip/CommonEquipDataProcessService.java
View file @
6401acff
...
...
@@ -824,7 +824,7 @@ public class CommonEquipDataProcessService {
// 设备来源,前端无法判断,故后端进行判断,分为新设备(new)、历史有证设备(his)、历史无证设备(black)
result
.
put
(
"dataSourceClassify"
,
this
.
genDataSource
(
useInfo
.
getDataSource
()));
// 获取已登记设备的登记证对应接收机构
if
(
registerInfo
.
getUseOrgCode
()
!=
null
)
{
if
(
!
ValidationUtil
.
isEmpty
(
registerInfo
.
getUseOrgCode
())
)
{
JgUseRegistrationManage
jgUseRegistrationManage
=
jgUseRegistrationManageService
.
lambdaQuery
()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
registerInfo
.
getUseOrgCode
())
.
select
(
JgUseRegistrationManage:
:
getSequenceNbr
,
JgUseRegistrationManage:
:
getReceiveCompanyCode
).
one
();
...
...
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 @
6401acff
...
...
@@ -252,6 +252,7 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
*/
@Override
public
IPage
<
IdxBizJgProjectContraption
>
proConPageByParams
(
int
current
,
int
size
,
String
sort
,
Map
<
String
,
String
>
params
,
ReginParams
reginParams
)
{
try
{
Page
<
IdxBizJgProjectContraption
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
...
...
@@ -412,6 +413,7 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
.
collect
(
Collectors
.
joining
())
);
record
.
setCompanyType
(
companyType2
);
// 来源类型:前端控制编辑按钮显示隐藏
record
.
setRegType
(
CommonServiceImpl
.
genRegTypeByDataSource
(
record
.
getDataSource
()));
record
.
setIsIntoManagementName
(
IsIntoManagementEnum
.
getName
(
record
.
getIsIntoManagement
()));
...
...
@@ -426,8 +428,23 @@ public class IdxBizJgProjectContraptionServiceImplService extends BaseEntityServ
pageList
.
getRecords
().
forEach
(
record
->
record
.
setCanDelete
(
canDeleteMap
.
get
(
record
.
getSequenceNbr
()+
""
)));
//判断是否有检验结果录入
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
;
}
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 @
6401acff
...
...
@@ -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
)
{
try
{
if
(
ObjectUtils
.
isEmpty
(
dto
))
{
dto
=
new
JgMaintenanceContractDto
();
}
...
...
@@ -157,6 +158,18 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
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
(
"系统内部错误,请联系管理员。"
);
}
}
/**
...
...
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/SafetyProblemTracingServiceImpl.java
View file @
6401acff
...
...
@@ -330,7 +330,7 @@ public class SafetyProblemTracingServiceImpl extends BaseService<SafetyProblemTr
log
.
error
(
"Other表更新失败,设备record:{},错误原因:{}"
,
records
,
e
.
getMessage
(),
e
);
}
// 更新ES状态
// 更新ES状态
(添加异常处理)
try
{
Iterable
<
ESEquipmentCategoryDto
>
esEquipmentIter
=
esEquipmentCategory
.
findAllById
(
records
);
esEquipmentIter
.
forEach
(
dto
->
...
...
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/ComprehensiveStatisticalAnalysisServiceImpl.java
View file @
6401acff
...
...
@@ -322,7 +322,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
}
// 组装人员过滤条件
String
orgCode
=
filter
.
getString
(
"orgCode"
);
personOrgCodeBoolMust
(
orgCode
,
boolMust
);
personOrgCodeBoolMust
(
orgCode
,
boolMust
,
StatisticalAnalysisEnum
.
person
.
getCode
()
);
this
.
getPersonBoolQueryBuilder
(
filterParams
,
boolMust
,
filterType
);
if
(
"custom"
.
equals
(
filterType
))
{
JSONArray
leftGroup
=
filterParams
.
getJSONArray
(
"group1"
);
...
...
@@ -403,15 +403,16 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
return
result
;
}
private
void
personOrgCodeBoolMust
(
String
orgCode
,
BoolQueryBuilder
boolMust
)
{
private
void
personOrgCodeBoolMust
(
String
orgCode
,
BoolQueryBuilder
boolMust
,
String
type
)
{
String
superviseOrgCodeKey
=
type
.
equals
(
StatisticalAnalysisEnum
.
person
.
getCode
())
?
"superviseOrgCode"
:
"superviseOrgCode.keyword"
;
String
officeRegion
=
commonMapper
.
getCompanyCodeByOrgCode
(
orgCode
);
BoolQueryBuilder
queryBuilder1
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
queryBuilder2
=
QueryBuilders
.
boolQuery
();
EnhancedDynamicQueryBuilder
enhancedDynamicQueryBuilder
=
new
EnhancedDynamicQueryBuilder
();
queryBuilder1
.
must
(
QueryBuilders
.
termQuery
(
"superviseOrgCode"
,
"50"
))
queryBuilder1
.
must
(
QueryBuilders
.
termQuery
(
superviseOrgCodeKey
,
"50"
))
.
must
(
QueryBuilders
.
wildcardQuery
(
"officeRegion"
,
"*"
+
officeRegion
+
"*"
));
queryBuilder2
.
mustNot
(
QueryBuilders
.
termQuery
(
"superviseOrgCode"
,
"50"
))
.
must
(
QueryBuilders
.
prefixQuery
(
"superviseOrgCode"
,
orgCode
));
queryBuilder2
.
mustNot
(
QueryBuilders
.
termQuery
(
superviseOrgCodeKey
,
"50"
))
.
must
(
QueryBuilders
.
prefixQuery
(
superviseOrgCodeKey
,
orgCode
));
enhancedDynamicQueryBuilder
.
add
(
queryBuilder1
,
or
);
enhancedDynamicQueryBuilder
.
add
(
queryBuilder2
,
or
);
boolMust
.
must
(
enhancedDynamicQueryBuilder
.
build
());
...
...
@@ -497,16 +498,20 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
boolMust
.
must
(
licencesQueryBuilder
.
build
());
}
else
if
(
k
.
equals
(
"issueDate"
))
{
JSONArray
issueDates
=
(
JSONArray
)
v
;
String
startDate
=
DateUtils
.
convertDateToString
(
issueDates
.
getDate
(
0
),
DateUtils
.
DATE_PATTERN
);
String
endDate
=
DateUtils
.
convertDateToString
(
issueDates
.
getDate
(
1
),
DateUtils
.
DATE_PATTERN
);
Date
startDate
=
issueDates
.
getDate
(
0
);
Date
endDate
=
issueDates
.
getDate
(
1
);
if
(!
""
.
equals
(
startDate
)
&&
!
""
.
equals
(
endDate
)
&&
!
ObjectUtils
.
isEmpty
(
startDate
)
&&
!
ObjectUtils
.
isEmpty
(
endDate
))
{
String
startDateString
=
DateUtils
.
convertDateToString
(
startDate
,
DateUtils
.
DATE_PATTERN
);
String
endDateString
=
DateUtils
.
convertDateToString
(
endDate
,
DateUtils
.
DATE_PATTERN
);
NestedQueryBuilder
nestedQuery
=
QueryBuilders
.
nestedQuery
(
"licenses"
,
QueryBuilders
.
rangeQuery
(
"licenses."
+
k
).
gte
(
startDate
).
lte
(
endDate
),
QueryBuilders
.
rangeQuery
(
"licenses."
+
k
).
gte
(
startDateString
).
lte
(
endDateString
),
ScoreMode
.
None
);
boolMust
.
filter
(
nestedQuery
);
}
}
}
}
else
if
(
v
instanceof
String
)
{
if
(
k
.
equals
(
"fuzzyInput"
))
{
String
fuzzyValue
=
String
.
valueOf
(
v
);
...
...
@@ -570,7 +575,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
BoolQueryBuilder
boolMust
=
QueryBuilders
.
boolQuery
();
String
orgCode
=
filter
.
getString
(
"orgCode"
);
boolMust
.
must
(
QueryBuilders
.
prefixQuery
(
"superviseOrgCode.keyword"
,
orgCode
));
personOrgCodeBoolMust
(
orgCode
,
boolMust
,
StatisticalAnalysisEnum
.
company
.
getCode
(
));
JSONObject
filterParams
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
filter
.
get
(
"filterParams"
)));
String
filterType
=
filter
.
getString
(
"filterType"
);
...
...
@@ -1152,7 +1157,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
JSONArray
dates
=
(
JSONArray
)
v
;
String
startDate
=
dates
.
getString
(
0
);
String
endDate
=
dates
.
getString
(
1
);
if
(!
""
.
equals
(
startDate
)
&&
!
""
.
equals
(
endDate
))
{
if
(!
""
.
equals
(
startDate
)
&&
!
""
.
equals
(
endDate
)
&&
!
ObjectUtils
.
isEmpty
(
startDate
)
&&
!
ObjectUtils
.
isEmpty
(
endDate
)
)
{
boolMust
.
filter
(
QueryBuilders
.
rangeQuery
(
field
).
gte
(
startDate
).
lte
(
endDate
));
}
}
else
if
(
k
.
equals
(
"EQU_LIST"
)
||
k
.
equals
(
"EQU_CATEGORY"
)
||
k
.
equals
(
"EQU_DEFINE"
)
||
k
.
equals
(
"DATA_QUALITY_SCORE"
))
{
...
...
@@ -3142,16 +3147,16 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
boolMust
.
must
(
QueryBuilders
.
prefixQuery
(
"ORG_BRANCH_CODE"
,
orgCode
));
data
=
queryDpEquipStatistics
(
filter
,
request
,
builder
,
boolMust
,
tabTotalMap
);
}
else
if
(
StatisticalAnalysisEnum
.
company
.
getCode
().
equals
(
businessType
))
{
boolMust
.
must
(
QueryBuilders
.
prefixQuery
(
"superviseOrgCode.keyword"
,
orgCode
));
personOrgCodeBoolMust
(
orgCode
,
boolMust
,
StatisticalAnalysisEnum
.
company
.
getCode
(
));
data
=
queryDpCompanyStatistics
(
filter
,
request
,
builder
,
boolMust
,
tabTotalMap
);
}
else
if
(
StatisticalAnalysisEnum
.
person
.
getCode
().
equals
(
businessType
))
{
personOrgCodeBoolMust
(
orgCode
,
boolMust
);
personOrgCodeBoolMust
(
orgCode
,
boolMust
,
StatisticalAnalysisEnum
.
person
.
getCode
()
);
data
=
queryDpPersonStatistics
(
filter
,
request
,
builder
,
boolMust
,
tabTotalMap
);
}
else
if
(
StatisticalAnalysisEnum
.
inspectionCompany
.
getCode
().
equals
(
businessType
))
{
boolMust
.
must
(
QueryBuilders
.
prefixQuery
(
"superviseOrgCode.keyword"
,
orgCode
));
personOrgCodeBoolMust
(
orgCode
,
boolMust
,
StatisticalAnalysisEnum
.
company
.
getCode
(
));
data
=
queryDpInspectionCompanyStatistics
(
filter
,
request
,
builder
,
boolMust
,
tabTotalMap
);
}
else
{
personOrgCodeBoolMust
(
orgCode
,
boolMust
);
personOrgCodeBoolMust
(
orgCode
,
boolMust
,
StatisticalAnalysisEnum
.
person
.
getCode
()
);
data
=
queryDpInspectionPersonStatistics
(
filter
,
request
,
builder
,
boolMust
,
tabTotalMap
);
}
...
...
@@ -3256,7 +3261,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
companyBoolMust
.
must
(
companyUnitTypeBoolMust
);
BoolQueryBuilder
personBoolMust
=
QueryBuilders
.
boolQuery
();
personOrgCodeBoolMust
(
orgCode
,
personBoolMust
);
personOrgCodeBoolMust
(
orgCode
,
personBoolMust
,
StatisticalAnalysisEnum
.
person
.
getCode
()
);
personBoolMust
.
must
(
companyUnitTypeBoolMust
);
BoolQueryBuilder
inspectionCompanyBoolMust
=
QueryBuilders
.
boolQuery
();
...
...
@@ -3266,7 +3271,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
BoolQueryBuilder
inspectionPersonBoolMust
=
QueryBuilders
.
boolQuery
();
personOrgCodeBoolMust
(
orgCode
,
inspectionPersonBoolMust
);
personOrgCodeBoolMust
(
orgCode
,
personBoolMust
,
StatisticalAnalysisEnum
.
person
.
getCode
()
);
inspectionPersonBoolMust
.
must
(
inspectionUnitTypeBoolMust
);
inspectionPersonBoolMust
.
mustNot
(
QueryBuilders
.
wildcardQuery
(
"unitType.keyword"
,
"*检验检测机构*"
));
...
...
@@ -4034,7 +4039,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
JSONObject
filterParams
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
filter
.
get
(
"filterParams"
)));
String
filterType
=
"advanced"
;
// 组装人员过滤条件
personOrgCodeBoolMust
(
orgCode
,
boolQuery
);
personOrgCodeBoolMust
(
orgCode
,
boolQuery
,
StatisticalAnalysisEnum
.
person
.
getCode
()
);
this
.
getPersonBoolQueryBuilder
(
filterParams
,
boolQuery
,
filterType
);
// 查询
JSONObject
expiryDateStatus
=
this
.
getExpiryDateStatusGroupStatistics
(
boolQuery
);
...
...
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 @
6401acff
...
...
@@ -232,12 +232,18 @@ public class TzBaseEnterpriseInfoServiceImpl
// }
// }
SortVo
sortMap
=
userInfoService
.
sortFieldConversion
(
sort
);
// 密评专用(查tz_flc_reg_unit_info表中的admin_login_pwd字段,以用于验证密评数据完整性)
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