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
ceb38c4b
Commit
ceb38c4b
authored
Aug 22, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改设备的下次检验日期类型为long ,sting无法统计
parent
c256f715
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
5 deletions
+30
-5
ESEquipmentCategoryDto.java
...os/boot/module/common/api/dto/ESEquipmentCategoryDto.java
+2
-2
PressureVesselListener.java
...mos/boot/module/jg/biz/config/PressureVesselListener.java
+4
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+14
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+9
-0
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+1
-1
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/dto/ESEquipmentCategoryDto.java
View file @
ceb38c4b
...
...
@@ -92,8 +92,8 @@ public class ESEquipmentCategoryDto {
@Field
(
type
=
FieldType
.
Text
)
private
String
INSPECT_REPORT
;
@Field
(
type
=
FieldType
.
Text
)
private
Stri
ng
NEXT_INSPECT_DATE
;
@Field
(
type
=
FieldType
.
Long
)
private
Lo
ng
NEXT_INSPECT_DATE
;
@Field
(
type
=
FieldType
.
Text
)
private
String
CONSTRUCTION_TYPE
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/config/PressureVesselListener.java
View file @
ceb38c4b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
config
;
import
cn.hutool.core.date.DatePattern
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.excel.context.AnalysisContext
;
import
com.alibaba.excel.event.AnalysisEventListener
;
...
...
@@ -300,7 +301,9 @@ public class PressureVesselListener extends AnalysisEventListener<EquipInfoCylin
// 使用单位信息
dto
.
setDATA_SOURCE
(
useInfo
.
getDataSource
());
dto
.
setNEXT_INSPECT_DATE
(
inspectionDetectionInfo
.
getNextInspectDate
()
+
""
);
if
(
inspectionDetectionInfo
.
getNextInspectDate
()
!=
null
){
dto
.
setNEXT_INSPECT_DATE
(
DateUtil
.
parse
(
DateUtil
.
format
(
inspectionDetectionInfo
.
getNextInspectDate
(),
DatePattern
.
NORM_DATE_PATTERN
)).
getTime
());
}
dto
.
setREC_DATE
(
System
.
currentTimeMillis
());
dto
.
setSEQUENCE_NBR
(
record
);
dto
.
setFACTORY_NUM
(
factoryInfo
.
getFactoryNum
());
...
...
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
ceb38c4b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
cn.hutool.core.date.DatePattern
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.context.AnalysisContext
;
...
...
@@ -2217,6 +2218,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
inspectionDetectionInfo
.
setInspectOrgName
((
String
)
mapOrDefault
.
getOrDefault
(
"useUnit"
,
inspectionDetectionInfo
.
getInspectOrgName
()));
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecDate
(
date
);
if
(
inspectionDetectionInfo
.
getNextInspectDate
()
!=
null
){
inspectionDetectionInfo
.
setNextInspectDate
(
DateUtil
.
parse
(
DateUtil
.
format
(
inspectionDetectionInfo
.
getNextInspectDate
(),
DatePattern
.
NORM_DATE_PATTERN
)));
}
inspectionDetectionInfo
.
setSequenceNbr
(
OPERATESAVE
.
equals
(
operateType
)
?
null
:
String
.
valueOf
(
equipmentInfoForm
.
get
(
"INSPECTIONDETECTIONINFO_SEQ"
)));
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
}
...
...
@@ -2232,6 +2236,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
if
(!
"1"
.
equals
(
equipmentInfoForm
.
get
(
WHETHER_VEHICLE_CYLINDER
)))
{
// 老旧车用气瓶有些制造监督检验已过期,可放开选择定期检验
inspectionDetectionInfo
.
setInspectType
(
"8300"
.
equals
(
equCategory
)
?
"AZJDJY"
:
"ZZJDJY"
);
}
if
(
inspectionDetectionInfo
.
getNextInspectDate
()
!=
null
){
inspectionDetectionInfo
.
setNextInspectDate
(
DateUtil
.
parse
(
DateUtil
.
format
(
inspectionDetectionInfo
.
getNextInspectDate
(),
DatePattern
.
NORM_DATE_PATTERN
)));
}
inspectionDetectionInfo
.
setSequenceNbr
(
OPERATESAVE
.
equals
(
operateType
)
?
null
:
String
.
valueOf
(
equipmentInfoForm
.
get
(
"INSPECTIONDETECTIONINFO_SEQ"
)));
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
}
...
...
@@ -2504,6 +2511,10 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
dto
.
setUSC_UNIT_CREDIT_CODE
(
null
);
dto
.
setUSC_UNIT_NAME
(
null
);
}
if
(
map
.
get
(
"NEXT_INSPECT_DATE"
)
!=
null
){
Date
nextInspectDate
=
(
Date
)
map
.
get
(
"NEXT_INSPECT_DATE"
);
dto
.
setNEXT_INSPECT_DATE
(
DateUtil
.
parse
(
DateUtil
.
format
(
nextInspectDate
,
DatePattern
.
NORM_DATE_PATTERN
)).
getTime
());
}
esEquipmentCategory
.
save
(
dto
);
}
}
...
...
@@ -2835,7 +2846,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
ESEquipmentCategoryDto
esEquipmentDto
=
JSON
.
parseObject
(
toJSONString
(
data
),
ESEquipmentCategoryDto
.
class
);
esEquipmentDto
.
setDATA_SOURCE
(
useInfo
.
getDataSource
());
esEquipmentDto
.
setNEXT_INSPECT_DATE
(
inspectionDetectionInfo
.
getNextInspectDate
()
+
""
);
if
(
inspectionDetectionInfo
.
getNextInspectDate
()
!=
null
){
esEquipmentDto
.
setNEXT_INSPECT_DATE
(
inspectionDetectionInfo
.
getNextInspectDate
().
getTime
());
}
esEquipmentDto
.
setREC_DATE
(
System
.
currentTimeMillis
());
esEquipmentDto
.
setSEQUENCE_NBR
(
record
);
esEquipmentDto
.
setFACTORY_NUM
(
factoryInfo
.
getFactoryNum
());
...
...
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 @
ceb38c4b
...
...
@@ -1402,6 +1402,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
param
.
put
(
"USE_PLACE"
,
usePlace
);
param
.
put
(
"STATUS"
,
"已认领"
);
param
.
put
(
"EQU_STATE"
,
1
);
// 更新es的下次检验日期
param
.
put
(
"NEXT_INSPECT_DATE"
,
this
.
castDate2TimeStr
(
dataMap
.
getString
(
"nextInspectDate"
)));
param
.
put
(
"USE_INNER_CODE"
,
useInfo
.
getUseInnerCode
());
param
.
put
(
"IS_INTO_MANAGEMENT"
,
true
);
param
.
put
(
"USE_PLACE_CODE"
,
jsonObject
.
get
(
"province"
)
+
"#"
+
jsonObject
.
get
(
"city"
)
+
"#"
+
jsonObject
.
get
(
"county"
)
+
"#"
+
jsonObject
.
get
(
"factoryUseSiteStreet"
));
...
...
@@ -1414,6 +1416,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
tzsServiceFeignClient
.
commonUpdateEsDataByIds
(
objMap
);
}
private
Long
castDate2TimeStr
(
String
nextInspectDate
)
{
if
(
nextInspectDate
!=
null
){
return
DateUtil
.
parse
(
nextInspectDate
).
getTime
();
}
return
null
;
}
public
InstanceRuntimeData
buildInstanceRuntimeData
(
JgUseRegistration
jgUseRegistration
)
{
return
InstanceRuntimeData
.
builder
()
.
nextExecuteUserIds
(
jgUseRegistration
.
getNextExecuteUserIds
())
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
View file @
ceb38c4b
...
...
@@ -307,7 +307,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
Optional
<
ESEquipmentCategoryDto
>
optional
=
esEquipmentCategory
.
findById
(
model
.
getEquipUnicode
());
if
(
optional
.
isPresent
())
{
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
optional
.
get
();
esEquipmentCategoryDto
.
setNEXT_INSPECT_DATE
(
String
.
valueOf
(
model
.
getNextInspectionDate
().
getTime
()
));
esEquipmentCategoryDto
.
setNEXT_INSPECT_DATE
(
model
.
getNextInspectionDate
().
getTime
(
));
esEquipmentCategory
.
save
(
esEquipmentCategoryDto
);
}
}
...
...
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