Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
0e2f777c
Commit
0e2f777c
authored
Oct 20, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daima tijiao
parent
91c06195
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
PlanVisual3dController.java
.../amos/fas/business/controller/PlanVisual3dController.java
+2
-3
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+4
-2
IPlanVisual3dService.java
...amos/fas/business/service/intfc/IPlanVisual3dService.java
+1
-1
ContingencyPlanInstanceMapper.xml
...ain/resources/db/mapper/ContingencyPlanInstanceMapper.xml
+2
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/PlanVisual3dController.java
View file @
0e2f777c
...
...
@@ -203,7 +203,7 @@ public class PlanVisual3dController extends BaseController {
@Permission
@ApiOperation
(
value
=
"根据批次号获取预案的消息等记录"
,
notes
=
"根据批次号获取预案的消息等记录"
)
@GetMapping
(
value
=
"/plan/getPlaneRecordByNew"
)
public
ResponseModel
getPlaneRecordByNew
(
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
size
,
@RequestParam
(
required
=
false
)
String
batchNo
)
{
public
ResponseModel
<
ContingencyPlanInstance
>
getPlaneRecordByNew
(
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
size
,
@RequestParam
(
required
=
false
)
String
batchNo
)
{
if
(!
StringUtil
.
isNotEmpty
(
batchNo
))
{
batchNo
=
planVisual3dService
.
getNewestBatchNo
();
}
...
...
@@ -218,8 +218,7 @@ public class PlanVisual3dController extends BaseController {
@PostMapping
(
value
=
"/plan/replyMessage"
)
public
ResponseModel
replyMessage
(
@RequestBody
ContingencyPlanInstance
dto
)
{
AgencyUserModel
user
=
getUserInfo
();
planVisual3dService
.
replyMessage
(
user
,
dto
);
return
CommonResponseUtil
.
successNew
(
null
);
return
CommonResponseUtil
.
successNew
(
planVisual3dService
.
replyMessage
(
user
,
dto
));
}
@Permission
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
0e2f777c
...
...
@@ -389,7 +389,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
}
@Override
public
void
replyMessage
(
AgencyUserModel
user
,
ContingencyPlanInstance
dto
)
{
public
ContingencyPlanInstance
replyMessage
(
AgencyUserModel
user
,
ContingencyPlanInstance
dto
)
{
String
json
=
""
;
try
{
json
=
IOUtils
.
toString
(
planStepResource
.
getInputStream
(),
String
.
valueOf
(
StandardCharsets
.
UTF_8
));
...
...
@@ -419,8 +419,9 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
dto
.
setRoleCode
(
String
.
join
(
","
,
roleCodeList
));
dto
.
setRoleName
(
String
.
join
(
","
,
roleNameList
));
dto
.
setStartUserId
(
user
.
getUserId
());
dto
.
setStartUser
Id
(
user
.
getRealName
());
dto
.
setStartUser
Name
(
user
.
getRealName
());
dto
.
setRecordType
(
"REPLYMESSAGE"
);
dto
.
setCreateDate
(
new
Date
());
Map
<
String
,
String
>
userInfo
=
contingencyPlanInstanceMapper
.
getUserByUserId
(
user
.
getUserId
());
dto
.
setPersonImg
(
userInfo
.
get
(
"personImg"
));
repository
.
save
(
dto
);
...
...
@@ -430,6 +431,7 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
}
catch
(
MqttException
e
)
{
e
.
printStackTrace
();
}
return
dto
;
}
@Override
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IPlanVisual3dService.java
View file @
0e2f777c
...
...
@@ -93,7 +93,7 @@ public interface IPlanVisual3dService {
*/
Page
<
ContingencyPlanInstance
>
getPlaneRecordByNew
(
Integer
pageNum
,
Integer
size
,
String
batchNo
);
void
replyMessage
(
AgencyUserModel
user
,
ContingencyPlanInstance
dto
);
ContingencyPlanInstance
replyMessage
(
AgencyUserModel
user
,
ContingencyPlanInstance
dto
);
List
<
ContingencyPlanInstance
>
selectDisposalActionList
(
String
batchNo
,
List
<
RoleModel
>
roleModelList
,
int
dataType
);
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/ContingencyPlanInstanceMapper.xml
View file @
0e2f777c
...
...
@@ -8,6 +8,7 @@
contingency_plan_instance
where batch_no = #{batchNo}
AND record_type in ('REPLYMESSAGE', 'MESSAGE')
AND is_delete = 0
order by create_date DESC
limit #{pageNum}, #{size}
</select>
...
...
@@ -17,6 +18,7 @@
contingency_plan_instance
where batch_no = #{batchNo}
AND record_type in ('REPLYMESSAGE', 'MESSAGE')
AND is_delete = 0
</select>
<select
id=
"getUserByUserId"
resultType=
"java.util.Map"
>
...
...
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