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
8db82d93
Commit
8db82d93
authored
Oct 20, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daima tijiao
parent
9ff487cd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
PlanVisual3dController.java
.../amos/fas/business/controller/PlanVisual3dController.java
+2
-1
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+11
-4
IPlanVisual3dService.java
...amos/fas/business/service/intfc/IPlanVisual3dService.java
+1
-1
ContingencyPlanInstanceVO.java
...ejoin/amos/fas/business/vo/ContingencyPlanInstanceVO.java
+11
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/PlanVisual3dController.java
View file @
8db82d93
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.fas.business.controller;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.fas.business.controller;
import
com.yeejoin.amos.fas.business.service.intfc.IPlanVisual3dService
;
import
com.yeejoin.amos.fas.business.service.intfc.IPlanVisual3dService
;
import
com.yeejoin.amos.fas.business.util.StringUtil
;
import
com.yeejoin.amos.fas.business.util.StringUtil
;
import
com.yeejoin.amos.fas.business.vo.ContingencyPlanInstanceVO
;
import
com.yeejoin.amos.fas.business.vo.PlanStepVo
;
import
com.yeejoin.amos.fas.business.vo.PlanStepVo
;
import
com.yeejoin.amos.fas.business.vo.ReginParams
;
import
com.yeejoin.amos.fas.business.vo.ReginParams
;
import
com.yeejoin.amos.fas.config.Permission
;
import
com.yeejoin.amos.fas.config.Permission
;
...
@@ -203,7 +204,7 @@ public class PlanVisual3dController extends BaseController {
...
@@ -203,7 +204,7 @@ public class PlanVisual3dController extends BaseController {
@Permission
@Permission
@ApiOperation
(
value
=
"根据批次号获取预案的消息等记录"
,
notes
=
"根据批次号获取预案的消息等记录"
)
@ApiOperation
(
value
=
"根据批次号获取预案的消息等记录"
,
notes
=
"根据批次号获取预案的消息等记录"
)
@GetMapping
(
value
=
"/plan/getPlaneRecordByNew"
)
@GetMapping
(
value
=
"/plan/getPlaneRecordByNew"
)
public
ResponseModel
<
ContingencyPlanInstance
>
getPlaneRecordByNew
(
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
size
,
@RequestParam
(
required
=
false
)
String
batchNo
)
{
public
ResponseModel
<
ContingencyPlanInstance
VO
>
getPlaneRecordByNew
(
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
size
,
@RequestParam
(
required
=
false
)
String
batchNo
)
{
if
(!
StringUtil
.
isNotEmpty
(
batchNo
))
{
if
(!
StringUtil
.
isNotEmpty
(
batchNo
))
{
batchNo
=
planVisual3dService
.
getNewestBatchNo
();
batchNo
=
planVisual3dService
.
getNewestBatchNo
();
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
8db82d93
...
@@ -29,6 +29,7 @@ import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
...
@@ -29,6 +29,7 @@ import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
import
com.yeejoin.amos.feign.privilege.model.RoleModel
;
import
com.yeejoin.amos.feign.privilege.model.RoleModel
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.core.io.Resource
;
import
org.springframework.core.io.Resource
;
...
@@ -374,18 +375,24 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
...
@@ -374,18 +375,24 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
}
}
@Override
@Override
public
Page
<
ContingencyPlanInstance
>
getPlaneRecordByNew
(
Integer
pageNum
,
Integer
size
,
String
batchNo
)
{
public
Page
<
ContingencyPlanInstance
VO
>
getPlaneRecordByNew
(
Integer
pageNum
,
Integer
size
,
String
batchNo
)
{
Integer
planInstanceCount
=
contingencyPlanInstanceMapper
.
getPlanInstanceCount
(
batchNo
);
Integer
planInstanceCount
=
contingencyPlanInstanceMapper
.
getPlanInstanceCount
(
batchNo
);
// 根据批次号获取预案记录
// 根据批次号获取预案记录
List
<
ContingencyPlanInstance
>
planInstanceListByPage
=
contingencyPlanInstanceMapper
.
getPlanInstanceListByPage
(
batchNo
,
(
pageNum
-
1
)
*
size
,
size
);
List
<
ContingencyPlanInstance
>
planInstanceListByPage
=
contingencyPlanInstanceMapper
.
getPlanInstanceListByPage
(
batchNo
,
(
pageNum
-
1
)
*
size
,
size
);
List
<
ContingencyPlanInstanceVO
>
list
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
planInstanceListByPage
))
{
if
(!
CollectionUtils
.
isEmpty
(
planInstanceListByPage
))
{
planInstanceListByPage
.
stream
().
sorted
(
Comparator
.
comparing
(
ContingencyPlanInstance:
:
getCreateDate
)).
collect
(
Collectors
.
toList
());
planInstanceListByPage
.
stream
().
forEach
(
item
->
{
ContingencyPlanInstanceVO
instanceVO
=
new
ContingencyPlanInstanceVO
();
BeanUtils
.
copyProperties
(
planInstanceListByPage
,
instanceVO
);
list
.
add
(
instanceVO
);
});
list
.
stream
().
sorted
(
Comparator
.
comparing
(
ContingencyPlanInstanceVO:
:
getCreateDate
)).
collect
(
Collectors
.
toList
());
}
}
Page
<
ContingencyPlanInstance
>
page
=
new
Page
<>();
Page
<
ContingencyPlanInstance
VO
>
page
=
new
Page
<>();
page
.
setTotal
(
planInstanceCount
);
page
.
setTotal
(
planInstanceCount
);
page
.
setCurrent
(
pageNum
);
page
.
setCurrent
(
pageNum
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
page
.
setRecords
(
planInstanceListByPage
);
page
.
setRecords
(
list
);
return
page
;
return
page
;
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IPlanVisual3dService.java
View file @
8db82d93
...
@@ -92,7 +92,7 @@ public interface IPlanVisual3dService {
...
@@ -92,7 +92,7 @@ public interface IPlanVisual3dService {
* @param batchNo
* @param batchNo
* @return
* @return
*/
*/
Page
<
ContingencyPlanInstance
>
getPlaneRecordByNew
(
Integer
pageNum
,
Integer
size
,
String
batchNo
);
Page
<
ContingencyPlanInstance
VO
>
getPlaneRecordByNew
(
Integer
pageNum
,
Integer
size
,
String
batchNo
);
ContingencyPlanInstance
replyMessage
(
AgencyUserModel
user
,
ContingencyPlanInstance
dto
);
ContingencyPlanInstance
replyMessage
(
AgencyUserModel
user
,
ContingencyPlanInstance
dto
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/vo/ContingencyPlanInstanceVO.java
View file @
8db82d93
...
@@ -8,9 +8,11 @@ import lombok.Data;
...
@@ -8,9 +8,11 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
javax.persistence.Column
;
import
java.util.Date
;
@Data
@Data
@TableName
(
"contingency_plan_instance"
)
public
class
ContingencyPlanInstanceVO
{
public
class
ContingencyPlanInstanceVO
{
...
@@ -52,6 +54,14 @@ public class ContingencyPlanInstanceVO {
...
@@ -52,6 +54,14 @@ public class ContingencyPlanInstanceVO {
private
String
name
;
private
String
name
;
private
Date
createDate
;
private
String
createUser
;
private
Date
updateDate
;
private
String
updateUser
;
private
Boolean
isDelete
=
false
;
}
}
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