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
9a3d9f13
Commit
9a3d9f13
authored
Dec 20, 2024
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
caf7aefa
0c724655
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+2
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+20
-19
No files found.
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 @
9a3d9f13
...
@@ -343,7 +343,6 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -343,7 +343,6 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
lambda
.
eq
(
JgInstallationNoticeEq:
:
getEquipTransferId
,
installationInfo
.
get
(
"sequenceNbr"
));
lambda
.
eq
(
JgInstallationNoticeEq:
:
getEquipTransferId
,
installationInfo
.
get
(
"sequenceNbr"
));
List
<
JgInstallationNoticeEq
>
jgInstallationNoticeEqs
=
jgInstallationNoticeEqMapper
.
selectList
(
lambda
);
List
<
JgInstallationNoticeEq
>
jgInstallationNoticeEqs
=
jgInstallationNoticeEqMapper
.
selectList
(
lambda
);
if
(!
ValidationUtil
.
isEmpty
(
jgInstallationNoticeEqs
))
{
if
(!
ValidationUtil
.
isEmpty
(
jgInstallationNoticeEqs
))
{
List
<
String
>
ids
=
jgInstallationNoticeEqs
.
stream
().
map
(
item
->
item
.
getEquId
()).
collect
(
Collectors
.
toList
());
// 压力管道从工程装置表查询设备信息
// 压力管道从工程装置表查询设备信息
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategory
))
{
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategory
))
{
String
projectContraptionId
=
(
String
)
installationInfo
.
get
(
"projectContraptionId"
);
String
projectContraptionId
=
(
String
)
installationInfo
.
get
(
"projectContraptionId"
);
...
@@ -351,8 +350,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -351,8 +350,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
installationInfo
.
put
(
"pipelineLength"
,
projectContraption
.
getPipelineLength
());
installationInfo
.
put
(
"pipelineLength"
,
projectContraption
.
getPipelineLength
());
installationInfo
.
put
(
"projectContraptionNo"
,
projectContraption
.
getProjectContraptionNo
());
installationInfo
.
put
(
"projectContraptionNo"
,
projectContraption
.
getProjectContraptionNo
());
installationInfo
.
put
(
"projectContraption"
,
projectContraption
.
getProjectContraption
());
installationInfo
.
put
(
"projectContraption"
,
projectContraption
.
getProjectContraption
());
equipListMaps
=
jgInstallationNoticeMapper
.
getPipelineEquInfoByRecords
(
ids
);
equipListMaps
=
projectContraptionService
.
getBaseMapper
().
selectEquipList
(
projectContraptionId
);
}
else
{
}
else
{
List
<
String
>
ids
=
jgInstallationNoticeEqs
.
stream
().
map
(
JgInstallationNoticeEq:
:
getEquId
).
collect
(
Collectors
.
toList
());
Iterable
<
ESEquipmentCategoryDto
>
equips
=
esEquipmentCategory
.
findAllById
(
ids
);
Iterable
<
ESEquipmentCategoryDto
>
equips
=
esEquipmentCategory
.
findAllById
(
ids
);
equipListMaps
=
getEquipListMaps
(
equips
);
equipListMaps
=
getEquipListMaps
(
equips
);
}
}
...
...
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/JgUseRegistrationServiceImpl.java
View file @
9a3d9f13
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.biz.service.impl;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.biz.service.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.map.MapBuilder
;
import
cn.hutool.core.map.MapBuilder
;
import
cn.hutool.core.map.MapUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
@@ -3350,11 +3351,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3350,11 +3351,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
LambdaQueryWrapper
<
IdxBizJgDesignInfo
>
lambdaDes
=
new
QueryWrapper
<
IdxBizJgDesignInfo
>().
lambda
();
LambdaQueryWrapper
<
IdxBizJgDesignInfo
>
lambdaDes
=
new
QueryWrapper
<
IdxBizJgDesignInfo
>().
lambda
();
lambdaDes
.
eq
(
IdxBizJgDesignInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
lambdaDes
.
eq
(
IdxBizJgDesignInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
IdxBizJgDesignInfo
designInfo
=
idxBizJgDesignInfoService
.
getOne
(
lambdaDes
);
IdxBizJgDesignInfo
designInfo
=
idxBizJgDesignInfoService
.
getOne
(
lambdaDes
);
designInfo
.
setDesignUnitCreditCode
(
String
.
valueOf
(
map
.
get
(
"designUnitCreditCode"
)
));
designInfo
.
setDesignUnitCreditCode
(
MapUtil
.
getStr
(
map
,
"designUnitCreditCode"
));
designInfo
.
setDesignUnitName
(
String
.
valueOf
(
map
.
get
(
"designUnitName"
)
));
designInfo
.
setDesignUnitName
(
MapUtil
.
getStr
(
map
,
"designUnitName"
));
designInfo
.
setDesignLicenseNum
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"designLicenseNum"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"designLicenseNum"
)
));
designInfo
.
setDesignLicenseNum
(
MapUtil
.
getStr
(
map
,
"designLicenseNum"
));
designInfo
.
setDesignUseDate
(
String
.
valueOf
(
map
.
get
(
"designUseDate"
)
));
designInfo
.
setDesignUseDate
(
MapUtil
.
getStr
(
map
,
"designUseDate"
));
designInfo
.
setDesignDate
(
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"designDate"
)),
"yyyy-MM-dd"
)
);
designInfo
.
setDesignDate
(
!
StringUtils
.
isEmpty
(
map
.
get
(
"designDate"
))
?
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"designDate"
)),
"yyyy-MM-dd"
)
:
null
);
designInfo
.
setDrawingDo
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"drawingDo"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"drawingDo"
)));
designInfo
.
setDrawingDo
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"drawingDo"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"drawingDo"
)));
designInfo
.
setAppraisalUnit
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"appraisalUnit"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"appraisalUnit"
)));
designInfo
.
setAppraisalUnit
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"appraisalUnit"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"appraisalUnit"
)));
designInfo
.
setAppraisalDate
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"appraisalDate"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"appraisalDate"
)));
designInfo
.
setAppraisalDate
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"appraisalDate"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"appraisalDate"
)));
...
@@ -3368,11 +3369,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3368,11 +3369,11 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
LambdaQueryWrapper
<
IdxBizJgFactoryInfo
>
factoryInfoWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
IdxBizJgFactoryInfo
>
factoryInfoWrapper
=
new
LambdaQueryWrapper
<>();
factoryInfoWrapper
.
eq
(
IdxBizJgFactoryInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
factoryInfoWrapper
.
eq
(
IdxBizJgFactoryInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
IdxBizJgFactoryInfo
idxBizJgFactoryInfo
=
idxBizJgFactoryInfoService
.
getOne
(
factoryInfoWrapper
);
IdxBizJgFactoryInfo
idxBizJgFactoryInfo
=
idxBizJgFactoryInfoService
.
getOne
(
factoryInfoWrapper
);
idxBizJgFactoryInfo
.
setProduceUnitCreditCode
(
String
.
valueOf
(
map
.
get
(
"produceUnitCreditCode"
)
));
idxBizJgFactoryInfo
.
setProduceUnitCreditCode
(
MapUtil
.
getStr
(
map
,
"produceUnitCreditCode"
));
idxBizJgFactoryInfo
.
setProduceUnitName
(
String
.
valueOf
(
map
.
get
(
"produceUnitName"
)
));
idxBizJgFactoryInfo
.
setProduceUnitName
(
MapUtil
.
getStr
(
map
,
"produceUnitName"
));
idxBizJgFactoryInfo
.
setFactoryNum
(
String
.
valueOf
(
map
.
get
(
"factoryNum"
)
));
idxBizJgFactoryInfo
.
setFactoryNum
(
MapUtil
.
getStr
(
map
,
"factoryNum"
));
idxBizJgFactoryInfo
.
setProduceLicenseNum
(
String
.
valueOf
(
map
.
get
(
"produceLicenseNum"
)
));
idxBizJgFactoryInfo
.
setProduceLicenseNum
(
MapUtil
.
getStr
(
map
,
"produceLicenseNum"
));
idxBizJgFactoryInfo
.
setProduceDate
(
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"produceDate"
)),
"yyyy-MM-dd"
)
);
idxBizJgFactoryInfo
.
setProduceDate
(
!
StringUtils
.
isEmpty
(
map
.
get
(
"produceDate"
))
?
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"produceDate"
)),
"yyyy-MM-dd"
)
:
null
);
idxBizJgFactoryInfo
.
setImported
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"imported"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"imported"
)));
idxBizJgFactoryInfo
.
setImported
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"imported"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"imported"
)));
idxBizJgFactoryInfo
.
setProduceCountry
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"produceCountry"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"produceCountry"
)));
idxBizJgFactoryInfo
.
setProduceCountry
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"produceCountry"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"produceCountry"
)));
idxBizJgFactoryInfo
.
setOtherAccessoriesFact
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"otherAccessoriesFact"
))
?
null
:
JSONObject
.
toJSONString
(
map
.
get
(
"otherAccessoriesFact"
)));
idxBizJgFactoryInfo
.
setOtherAccessoriesFact
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"otherAccessoriesFact"
))
?
null
:
JSONObject
.
toJSONString
(
map
.
get
(
"otherAccessoriesFact"
)));
...
@@ -3425,13 +3426,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3425,13 +3426,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
if
(
ObjectUtils
.
isEmpty
(
inspectionDetectionInfo
.
getSequenceNbr
()))
{
if
(
ObjectUtils
.
isEmpty
(
inspectionDetectionInfo
.
getSequenceNbr
()))
{
inspectionDetectionInfo
.
setRecord
((
String
)
map
.
get
(
"equipId"
));
inspectionDetectionInfo
.
setRecord
((
String
)
map
.
get
(
"equipId"
));
}
}
inspectionDetectionInfo
.
setInspectOrgCode
(
String
.
valueOf
(
map
.
get
(
"inspectOrgCode"
)
));
inspectionDetectionInfo
.
setInspectOrgCode
(
MapUtil
.
getStr
(
map
,
"inspectOrgCode"
));
inspectionDetectionInfo
.
setInspectOrgName
(
String
.
valueOf
(
map
.
get
(
"inspectOrgName"
)
));
inspectionDetectionInfo
.
setInspectOrgName
(
MapUtil
.
getStr
(
map
,
"inspectOrgName"
));
inspectionDetectionInfo
.
setInspectConclusion
(
String
.
valueOf
(
map
.
get
(
"inspectConclusion"
)
));
inspectionDetectionInfo
.
setInspectConclusion
(
MapUtil
.
getStr
(
map
,
"inspectConclusion"
));
inspectionDetectionInfo
.
setInspectType
(
String
.
valueOf
(
map
.
get
(
"inspectType"
)
));
inspectionDetectionInfo
.
setInspectType
(
MapUtil
.
getStr
(
map
,
"inspectType"
));
inspectionDetectionInfo
.
setInspectDate
(
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"inspectDate"
)),
"yyyy-MM-dd"
)
);
inspectionDetectionInfo
.
setInspectDate
(
!
StringUtils
.
isEmpty
(
map
.
get
(
"inspectDate"
))
?
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"inspectDate"
)),
"yyyy-MM-dd"
)
:
null
);
inspectionDetectionInfo
.
setInspectStaff
(
String
.
valueOf
(
map
.
get
(
"inspectStaff"
)
));
inspectionDetectionInfo
.
setInspectStaff
(
MapUtil
.
getStr
(
map
,
"inspectStaff"
));
inspectionDetectionInfo
.
setNextInspectDate
(
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"nextInspectDate"
)),
"yyyy-MM-dd"
)
);
inspectionDetectionInfo
.
setNextInspectDate
(
!
StringUtils
.
isEmpty
(
map
.
get
(
"nextInspectDate"
))
?
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"nextInspectDate"
)),
"yyyy-MM-dd"
)
:
null
);
inspectionDetectionInfo
.
setInspectReport
(
JSONObject
.
toJSONString
(
map
.
get
(
"inspectReport"
)));
inspectionDetectionInfo
.
setInspectReport
(
JSONObject
.
toJSONString
(
map
.
get
(
"inspectReport"
)));
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
...
@@ -3775,9 +3776,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -3775,9 +3776,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
inspectionDetectionInfo
.
setInspectOrgName
(
String
.
valueOf
(
map
.
get
(
"inspectOrgName"
)));
inspectionDetectionInfo
.
setInspectOrgName
(
String
.
valueOf
(
map
.
get
(
"inspectOrgName"
)));
inspectionDetectionInfo
.
setInspectConclusion
(
String
.
valueOf
(
map
.
get
(
"inspectConclusion"
)));
inspectionDetectionInfo
.
setInspectConclusion
(
String
.
valueOf
(
map
.
get
(
"inspectConclusion"
)));
inspectionDetectionInfo
.
setInspectType
(
String
.
valueOf
(
map
.
get
(
"inspectType"
)));
inspectionDetectionInfo
.
setInspectType
(
String
.
valueOf
(
map
.
get
(
"inspectType"
)));
inspectionDetectionInfo
.
setInspectDate
(
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"inspectDate"
)),
"yyyy-MM-dd"
)
);
inspectionDetectionInfo
.
setInspectDate
(
!
StringUtils
.
isEmpty
(
map
.
get
(
"inspectDate"
))
?
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"inspectDate"
)),
"yyyy-MM-dd"
)
:
null
);
inspectionDetectionInfo
.
setInspectStaff
(
String
.
valueOf
(
map
.
get
(
"inspectStaff"
)));
inspectionDetectionInfo
.
setInspectStaff
(
String
.
valueOf
(
map
.
get
(
"inspectStaff"
)));
inspectionDetectionInfo
.
setNextInspectDate
(
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"nextInspectDate"
)),
"yyyy-MM-dd"
)
);
inspectionDetectionInfo
.
setNextInspectDate
(
!
StringUtils
.
isEmpty
(
map
.
get
(
"nextInspectDate"
))
?
DateUtil
.
parse
(
String
.
valueOf
(
map
.
get
(
"nextInspectDate"
)),
"yyyy-MM-dd"
)
:
null
);
inspectionDetectionInfo
.
setInspectReport
(
JSONObject
.
toJSONString
(
map
.
get
(
"inspectReport"
)));
inspectionDetectionInfo
.
setInspectReport
(
JSONObject
.
toJSONString
(
map
.
get
(
"inspectReport"
)));
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
// 暂存历史表
// 暂存历史表
...
...
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