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
fb9abf4b
Commit
fb9abf4b
authored
Jun 27, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(es时区):差8小时
1.es存数据少8小时 2.技术参数整理
parent
df9fc1ac
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
23 deletions
+34
-23
ESEquipmentInfo.java
...n/amos/boot/module/common/api/entity/ESEquipmentInfo.java
+13
-13
EsBaseEnterpriseInfo.java
...s/boot/module/common/api/entity/EsBaseEnterpriseInfo.java
+3
-3
EsUserInfo.java
...eejoin/amos/boot/module/common/api/entity/EsUserInfo.java
+4
-4
pom.xml
...os-boot-module-common/amos-boot-module-common-biz/pom.xml
+6
-0
DataHandlerServiceImpl.java
...ot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
+8
-3
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/ESEquipmentInfo.java
View file @
fb9abf4b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.annotation.TechnicalParameter
;
import
com.yeejoin.amos.boot.biz.common.annotation.TechnicalParameter
;
import
com.yeejoin.amos.boot.module.common.api.dto.TechParamItem
;
import
com.yeejoin.amos.boot.module.common.api.dto.TechParamItem
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.elasticsearch.annotations.DateFormat
;
import
org.springframework.data.elasticsearch.annotations.*
;
import
org.springframework.data.elasticsearch.annotations.Document
;
import
org.springframework.data.elasticsearch.annotations.Field
;
import
org.springframework.data.elasticsearch.annotations.FieldType
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.math.RoundingMode
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -203,14 +203,14 @@ public class ESEquipmentInfo {
...
@@ -203,14 +203,14 @@ public class ESEquipmentInfo {
* 投用日期
* 投用日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
USC_DATE
;
private
Local
Date
USC_DATE
;
/**
/**
*
*
*创建日期
*创建日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date_hour_minute_second
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date_hour_minute_second
)
private
Dat
e
createDate
;
private
LocalDateTim
e
createDate
;
/**
/**
...
@@ -333,13 +333,13 @@ public class ESEquipmentInfo {
...
@@ -333,13 +333,13 @@ public class ESEquipmentInfo {
* 下次检验日期-冗余字段
* 下次检验日期-冗余字段
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
NEXT_INSPECT_DATE
;
private
Local
Date
NEXT_INSPECT_DATE
;
/**
/**
* 检验日期-冗余字段
* 检验日期-冗余字段
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
INSPECT_DATE
;
private
Local
Date
INSPECT_DATE
;
/**
/**
* 最新一条检验信息
* 最新一条检验信息
...
@@ -381,7 +381,7 @@ public class ESEquipmentInfo {
...
@@ -381,7 +381,7 @@ public class ESEquipmentInfo {
private
Boolean
boolValue
;
private
Boolean
boolValue
;
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
dateValue
;
private
Local
Date
dateValue
;
public
TechParam
(
TechParamItem
paramItem
,
Object
rawValue
)
{
public
TechParam
(
TechParamItem
paramItem
,
Object
rawValue
)
{
this
.
paramKey
=
paramItem
.
getParamKey
();
this
.
paramKey
=
paramItem
.
getParamKey
();
...
@@ -497,13 +497,13 @@ public class ESEquipmentInfo {
...
@@ -497,13 +497,13 @@ public class ESEquipmentInfo {
* 检验日期
* 检验日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
inspectDate
;
private
Local
Date
inspectDate
;
/**
/**
* 下次检验日期
* 下次检验日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
nextInspectDate
;
private
Local
Date
nextInspectDate
;
/**
/**
* 检验机构编码
* 检验机构编码
...
@@ -545,12 +545,12 @@ public class ESEquipmentInfo {
...
@@ -545,12 +545,12 @@ public class ESEquipmentInfo {
* 维保合同开始日期
* 维保合同开始日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
informStart
;
private
Local
Date
informStart
;
/**
/**
* 维保合同结束日期
* 维保合同结束日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
informEnd
;
private
Local
Date
informEnd
;
/**
/**
* 维保负责人姓名
* 维保负责人姓名
*/
*/
...
...
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/EsBaseEnterpriseInfo.java
View file @
fb9abf4b
...
@@ -7,7 +7,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
...
@@ -7,7 +7,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
import
org.springframework.data.elasticsearch.annotations.Field
;
import
org.springframework.data.elasticsearch.annotations.Field
;
import
org.springframework.data.elasticsearch.annotations.FieldType
;
import
org.springframework.data.elasticsearch.annotations.FieldType
;
import
java.
util.
Date
;
import
java.
time.Local
Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -167,7 +167,7 @@ public class EsBaseEnterpriseInfo {
...
@@ -167,7 +167,7 @@ public class EsBaseEnterpriseInfo {
* 许可到期日期
* 许可到期日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
expiryDate
;
private
Local
Date
expiryDate
;
/**
/**
* 许可项目/检验类型/设备品种(核准项目名称)
* 许可项目/检验类型/设备品种(核准项目名称)
...
@@ -203,6 +203,6 @@ public class EsBaseEnterpriseInfo {
...
@@ -203,6 +203,6 @@ public class EsBaseEnterpriseInfo {
* 发证日期
* 发证日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
issueDate
;
private
Local
Date
issueDate
;
}
}
}
}
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/EsUserInfo.java
View file @
fb9abf4b
...
@@ -7,7 +7,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
...
@@ -7,7 +7,7 @@ import org.springframework.data.elasticsearch.annotations.Document;
import
org.springframework.data.elasticsearch.annotations.Field
;
import
org.springframework.data.elasticsearch.annotations.Field
;
import
org.springframework.data.elasticsearch.annotations.FieldType
;
import
org.springframework.data.elasticsearch.annotations.FieldType
;
import
java.
util.
Date
;
import
java.
time.Local
Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -72,7 +72,7 @@ public class EsUserInfo {
...
@@ -72,7 +72,7 @@ public class EsUserInfo {
* 出生日期
* 出生日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
birthday
;
private
Local
Date
birthday
;
/**
/**
* 学历
* 学历
...
@@ -213,7 +213,7 @@ public class EsUserInfo {
...
@@ -213,7 +213,7 @@ public class EsUserInfo {
* 有效期至
* 有效期至
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
expiryDate
;
private
Local
Date
expiryDate
;
/**
/**
* 发证机关
* 发证机关
...
@@ -225,7 +225,7 @@ public class EsUserInfo {
...
@@ -225,7 +225,7 @@ public class EsUserInfo {
* 发证日期
* 发证日期
*/
*/
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
date
)
private
Date
issueDate
;
private
Local
Date
issueDate
;
/**
/**
* 证书类型
* 证书类型
...
...
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-biz/pom.xml
View file @
fb9abf4b
...
@@ -15,5 +15,11 @@
...
@@ -15,5 +15,11 @@
<artifactId>
amos-boot-module-common-api
</artifactId>
<artifactId>
amos-boot-module-common-api
</artifactId>
<version>
${amos-boot-biz.version}
</version>
<version>
${amos-boot-biz.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.reflections
</groupId>
<artifactId>
reflections
</artifactId>
<version>
0.10.2
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
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/DataHandlerServiceImpl.java
View file @
fb9abf4b
...
@@ -62,6 +62,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
...
@@ -62,6 +62,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.math.RoundingMode
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.time.ZoneId
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
@@ -1512,13 +1513,17 @@ public class DataHandlerServiceImpl {
...
@@ -1512,13 +1513,17 @@ public class DataHandlerServiceImpl {
.
select
(
IdxBizJgFactoryInfo:
:
getRecord
,
IdxBizJgFactoryInfo:
:
getProduceUnitCreditCode
));
.
select
(
IdxBizJgFactoryInfo:
:
getRecord
,
IdxBizJgFactoryInfo:
:
getProduceUnitCreditCode
));
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
iIdxBizJgInspectionDetectionInfoService
.
queryNewestDetailByRecord
(
record
);
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
iIdxBizJgInspectionDetectionInfoService
.
queryNewestDetailByRecord
(
record
);
IdxBizJgMaintenanceRecordInfo
lastMaintenanceRecordInfo
=
maintenanceRecordInfoService
.
queryNewestDetailByRecord
(
record
);
IdxBizJgMaintenanceRecordInfo
lastMaintenanceRecordInfo
=
maintenanceRecordInfoService
.
queryNewestDetailByRecord
(
record
);
esEquipmentInfo
.
setINSPECT_DATE
(
inspectionDetectionInfo
.
getSequenceNbr
()
!=
null
?
inspectionDetectionInfo
.
getInspectDate
()
:
null
);
try
{
esEquipmentInfo
.
setNEXT_INSPECT_DATE
(
inspectionDetectionInfo
.
getSequenceNbr
()
!=
null
?
inspectionDetectionInfo
.
getNextInspectDate
()
:
null
);
esEquipmentInfo
.
setINSPECT_DATE
(
inspectionDetectionInfo
.
getSequenceNbr
()
!=
null
?
inspectionDetectionInfo
.
getInspectDate
().
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
()
:
null
);
esEquipmentInfo
.
setNEXT_INSPECT_DATE
(
inspectionDetectionInfo
.
getSequenceNbr
()
!=
null
?
inspectionDetectionInfo
.
getNextInspectDate
().
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
()
:
null
);
esEquipmentInfo
.
setCreateDate
(
useInfo
.
getCreateDate
()
!=
null
?
useInfo
.
getCreateDate
().
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDateTime
()
:
null
);
}
catch
(
Exception
e
)
{
log
.
error
(
"时区转换失败:{}"
,
record
,
e
);
}
esEquipmentInfo
.
setDesignUnitCreditCode
(
designInfo
.
getDesignUnitCreditCode
());
esEquipmentInfo
.
setDesignUnitCreditCode
(
designInfo
.
getDesignUnitCreditCode
());
esEquipmentInfo
.
setMAINTAIN_UNIT
(
lastMaintenanceRecordInfo
.
getMeUnitCreditCode
());
esEquipmentInfo
.
setMAINTAIN_UNIT
(
lastMaintenanceRecordInfo
.
getMeUnitCreditCode
());
esEquipmentInfo
.
setMAINTAIN_UNIT_NAME
(
lastMaintenanceRecordInfo
.
getMeUnitName
());
esEquipmentInfo
.
setMAINTAIN_UNIT_NAME
(
lastMaintenanceRecordInfo
.
getMeUnitName
());
esEquipmentInfo
.
setDesignUnitName
(
designInfo
.
getDesignUnitName
());
esEquipmentInfo
.
setDesignUnitName
(
designInfo
.
getDesignUnitName
());
esEquipmentInfo
.
setCreateDate
(
useInfo
.
getCreateDate
());
esEquipmentInfo
.
setProduceUnitCreditCode
(
factoryInfo
.
getProduceUnitCreditCode
());
esEquipmentInfo
.
setProduceUnitCreditCode
(
factoryInfo
.
getProduceUnitCreditCode
());
esEquipmentInfo
.
setInspections
(
inspectionDetectionInfo
.
getSequenceNbr
()
!=
null
?
Collections
.
singletonList
(
BeanUtil
.
copyProperties
(
inspectionDetectionInfo
,
ESEquipmentInfo
.
Inspection
.
class
))
:
new
ArrayList
<>());
esEquipmentInfo
.
setInspections
(
inspectionDetectionInfo
.
getSequenceNbr
()
!=
null
?
Collections
.
singletonList
(
BeanUtil
.
copyProperties
(
inspectionDetectionInfo
,
ESEquipmentInfo
.
Inspection
.
class
))
:
new
ArrayList
<>());
esEquipmentInfo
.
setMaintenances
(
lastMaintenanceRecordInfo
.
getSequenceNbr
()
!=
null
?
Collections
.
singletonList
(
BeanUtil
.
copyProperties
(
lastMaintenanceRecordInfo
,
ESEquipmentInfo
.
Maintenance
.
class
))
:
new
ArrayList
<>());
esEquipmentInfo
.
setMaintenances
(
lastMaintenanceRecordInfo
.
getSequenceNbr
()
!=
null
?
Collections
.
singletonList
(
BeanUtil
.
copyProperties
(
lastMaintenanceRecordInfo
,
ESEquipmentInfo
.
Maintenance
.
class
))
:
new
ArrayList
<>());
...
...
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