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
99667f14
Commit
99667f14
authored
Sep 06, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(96333):困人救援 需先维护救援过程信息 再保存回访信息
parent
ccee761a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
DispatchPaperServiceImpl.java
...e/elevator/biz/service/impl/DispatchPaperServiceImpl.java
+9
-16
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/DispatchPaperServiceImpl.java
View file @
99667f14
...
@@ -7,15 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -7,15 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.*
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.AlertCalledFormDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.AlertFormInitDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.DispatchConsultFeedbackDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.DispatchPaperDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.DispatchPaperFormDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.DispatchRepairFeedbackDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.DispatchSaveFeedbackDto
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.RescueProcessDto
;
import
com.yeejoin.amos.boot.module.elevator.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.elevator.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.elevator.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.elevator.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.elevator.api.entity.DispatchPaper
;
import
com.yeejoin.amos.boot.module.elevator.api.entity.DispatchPaper
;
...
@@ -37,11 +29,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
...
@@ -37,11 +29,7 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 派遣单服务实现类
* 派遣单服务实现类
...
@@ -323,10 +311,15 @@ public class DispatchPaperServiceImpl extends BaseService<DispatchPaperDto,Dispa
...
@@ -323,10 +311,15 @@ public class DispatchPaperServiceImpl extends BaseService<DispatchPaperDto,Dispa
public
Boolean
saveDispatchSaveFeedback
(
DispatchSaveFeedbackDto
dispatchSaveFeedbackDto
,
AgencyUserModel
user
)
{
public
Boolean
saveDispatchSaveFeedback
(
DispatchSaveFeedbackDto
dispatchSaveFeedbackDto
,
AgencyUserModel
user
)
{
// 困人救援 需先维护救援过程信息 再保存回访信息
// 困人救援 需先维护救援过程信息 再保存回访信息
AlertCalled
alertCalled
=
alertCalledServiceImpl
.
getById
(
dispatchSaveFeedbackDto
.
getAlertId
());
AlertCalled
alertCalled
=
alertCalledServiceImpl
.
getById
(
dispatchSaveFeedbackDto
.
getAlertId
());
if
(
DispatchPaperEnums
.
KRJY
.
getId
().
equals
(
alertCalled
.
getAlarmTypeCode
())
&&
String
alarmTypeCode
=
alertCalled
.
getAlarmTypeCode
();
!
DispatchPaperEnums
.
rescued
.
getId
().
equals
(
alertCalled
.
getAlertStageCode
())){
String
alertStageCode
=
alertCalled
.
getAlertStageCode
();
if
(
DispatchPaperEnums
.
KRJY
.
getId
().
equals
(
alarmTypeCode
))
{
int
rescuedStageCode
=
Integer
.
parseInt
(
DispatchPaperEnums
.
rescued
.
getId
());
int
currentStageCode
=
Integer
.
parseInt
(
alertStageCode
);
if
(
currentStageCode
<
rescuedStageCode
)
{
throw
new
BadRequest
(
"请先完善救援过程信息!"
);
throw
new
BadRequest
(
"请先完善救援过程信息!"
);
}
}
}
boolean
flag
=
false
;
boolean
flag
=
false
;
// 保存救援回访信息
// 保存救援回访信息
DispatchPaperFormDto
dispatchPaperFormDto
=
this
.
selectDispatchPaperDtoByAlertId
(
dispatchSaveFeedbackDto
.
getAlertId
());
DispatchPaperFormDto
dispatchPaperFormDto
=
this
.
selectDispatchPaperDtoByAlertId
(
dispatchSaveFeedbackDto
.
getAlertId
());
...
...
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