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
b24f05b5
Commit
b24f05b5
authored
Mar 21, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质量问题相关bug
修改
parent
a2116f1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
QualityProblemController.java
...t/module/ugp/biz/controller/QualityProblemController.java
+1
-0
QualityProblemServiceImpl.java
...odule/ugp/biz/service/impl/QualityProblemServiceImpl.java
+10
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/QualityProblemController.java
View file @
b24f05b5
...
...
@@ -216,6 +216,7 @@ public class QualityProblemController extends BaseController {
BeanUtils
.
copyProperties
(
qualityProblemDto
,
qualityProblem
,
"systemContactSheet"
,
"submission"
);
qualityProblem
.
setSystemContactSheet
(
JSON
.
toJSONString
(
qualityProblemDto
.
getSystemContactSheet
()));
qualityProblem
.
setSubmission
(
JSON
.
toJSONString
(
qualityProblemDto
.
getSubmission
()));
qualityProblem
.
setReformDoc
(
JSON
.
toJSONString
(
qualityProblemDto
.
getReformDocList
()));
return
ResponseHelper
.
buildResponse
(
problemInitiationService
.
manualProcessingStart
(
qualityProblem
,
status
,
type
));
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/QualityProblemServiceImpl.java
View file @
b24f05b5
...
...
@@ -219,6 +219,16 @@ public class QualityProblemServiceImpl extends BaseService<QualityProblemDto,Qua
qualityProblemDto
.
setReviewStatusString
(
String
.
valueOf
(
qualityProblemDto
.
getReviewStatus
()));
qualityProblemDto
.
setSystemContactSheet
(
JSON
.
parseArray
(
qualityProblemDto
.
getSystemContactSheetString
()));
qualityProblemDto
.
setSubmission
(
JSON
.
parseArray
(
qualityProblemDto
.
getSubmissionString
()));
//是否限期整改
ZoneId
zoneId
=
ZoneId
.
systemDefault
();
LocalDateTime
now
=
LocalDateTime
.
now
();
if
(
ValidationUtil
.
isEmpty
(
qualityProblemDto
.
getRectifyWithinTime
())
&&
!
ValidationUtil
.
isEmpty
(
qualityProblemDto
.
getReformLimitDate
()))
{
LocalDateTime
localDateTime
=
LocalDateTime
.
ofInstant
(
qualityProblemDto
.
getReformLimitDate
().
toInstant
(),
zoneId
);
if
(
now
.
isAfter
(
localDateTime
))
{
qualityProblemDto
.
setRectifyWithinTime
(
Boolean
.
FALSE
);
}
}
qualityProblemDto
.
setRectifyWithingName
(
Boolean
.
TRUE
.
equals
(
qualityProblemDto
.
getRectifyWithinTime
())
?
"超期"
:
"正常"
);
return
qualityProblemDto
;
}
...
...
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