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
f30ed85c
Commit
f30ed85c
authored
Jul 17, 2025
by
hcing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(amos-boot-module-jg): 添加下次检验日期字段
parent
45407948
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+9
-4
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 @
f30ed85c
...
...
@@ -108,6 +108,7 @@ import java.io.UnsupportedEncodingException;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.net.URLEncoder
;
import
java.sql.Timestamp
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
...
...
@@ -139,6 +140,7 @@ import static java.util.stream.Collectors.toSet;
public
class
JgUseRegistrationServiceImpl
extends
BaseService
<
JgUseRegistrationDto
,
JgUseRegistration
,
JgUseRegistrationMapper
>
implements
IJgUseRegistrationService
,
ICompensateFlowDataOfRedis
<
JgUseRegistration
>,
ApplicationContextAware
{
private
static
final
String
DEFINITION_KEY
=
"useRegistration"
;
private
static
final
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);;
private
final
List
<
String
>
NOT_FLOWING_STATE
=
Arrays
.
asList
(
"使用单位待提交"
,
"一级受理已驳回"
,
"使用单位已撤回"
,
"已作废"
);
private
final
List
<
String
>
NOT_FLOWING_STATE_FINISH
=
new
ArrayList
<
String
>(
NOT_FLOWING_STATE
)
{{
add
(
"已完成"
);
...
...
@@ -2968,7 +2970,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
Map
<
String
,
Object
>
exportParamsMap
=
new
HashMap
<>();
exportParamsMap
.
put
(
"page"
,
page
);
LocalDate
currentDate
=
LocalDate
.
now
();
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);
String
formattedDate
=
currentDate
.
format
(
formatter
);
exportParamsMap
.
put
(
"printDate"
,
formattedDate
);
//获取分类名称
...
...
@@ -2979,8 +2980,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
String
useUnitCreditCode
=
String
.
valueOf
(
jsonObject
.
get
(
"useUnitCreditCode"
));
TzBaseEnterpriseInfo
enterpriseInfo
=
tzBaseEnterpriseInfoMapper
.
selectOne
(
new
LambdaQueryWrapper
<
TzBaseEnterpriseInfo
>().
eq
(
TzBaseEnterpriseInfo:
:
getUseCode
,
useUnitCreditCode
));
exportParamsMap
.
put
(
"fullAddress"
,
enterpriseInfo
.
getAddress
());
// 下次检验日期
exportParamsMap
.
put
(
"nextInspectDate"
,
!
ValidationUtil
.
isEmpty
(
jsonObject
.
get
(
"nextInspectDate"
))
?
LocalDate
.
parse
(
jsonObject
.
getString
(
"nextInspectDate"
)).
format
(
formatter
)
:
""
);
if
(
equipmentLists
.
isEmpty
())
{
exportParamsMap
.
put
(
"nameOfProjectDevice"
,
""
);
}
else
{
...
...
@@ -3101,7 +3100,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
case
"medium"
:
return
trimIfEmpty
(
equip
.
get
(
fieldName
))
+
"/"
+
trimIfEmpty
(
equip
.
get
(
"workMedium"
));
default
:
return
ValidationUtil
.
isEmpty
(
equip
.
get
(
fieldName
))
?
""
:
equip
.
get
(
fieldName
);
if
(!
ValidationUtil
.
isEmpty
(
equip
.
get
(
fieldName
)))
{
if
(
equip
.
get
(
fieldName
)
instanceof
Timestamp
)
{
return
LocalDate
.
parse
(
equip
.
getString
(
fieldName
).
substring
(
0
,
10
)).
format
(
formatter
);
}
return
equip
.
get
(
fieldName
);
}
return
""
;
}
}
...
...
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