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
e31a23a0
Commit
e31a23a0
authored
Dec 20, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加必填改成非必填的字段日期类型的,格式化兼容判空报错
parent
0bd312a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+6
-6
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/JgUseRegistrationServiceImpl.java
View file @
e31a23a0
...
...
@@ -3354,7 +3354,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
designInfo
.
setDesignUnitName
(
String
.
valueOf
(
map
.
get
(
"designUnitName"
)));
designInfo
.
setDesignLicenseNum
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"designLicenseNum"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"designLicenseNum"
)));
designInfo
.
setDesignUseDate
(
String
.
valueOf
(
map
.
get
(
"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
.
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"
)));
...
...
@@ -3372,7 +3372,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
idxBizJgFactoryInfo
.
setProduceUnitName
(
String
.
valueOf
(
map
.
get
(
"produceUnitName"
)));
idxBizJgFactoryInfo
.
setFactoryNum
(
String
.
valueOf
(
map
.
get
(
"factoryNum"
)));
idxBizJgFactoryInfo
.
setProduceLicenseNum
(
String
.
valueOf
(
map
.
get
(
"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
.
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"
)));
...
...
@@ -3429,9 +3429,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
inspectionDetectionInfo
.
setInspectOrgName
(
String
.
valueOf
(
map
.
get
(
"inspectOrgName"
)));
inspectionDetectionInfo
.
setInspectConclusion
(
String
.
valueOf
(
map
.
get
(
"inspectConclusion"
)));
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
.
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"
)));
iIdxBizJgInspectionDetectionInfoService
.
saveOrUpdateData
(
inspectionDetectionInfo
);
...
...
@@ -3775,9 +3775,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
inspectionDetectionInfo
.
setInspectOrgName
(
String
.
valueOf
(
map
.
get
(
"inspectOrgName"
)));
inspectionDetectionInfo
.
setInspectConclusion
(
String
.
valueOf
(
map
.
get
(
"inspectConclusion"
)));
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
.
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"
)));
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