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
76a13fd7
Commit
76a13fd7
authored
Oct 21, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
8b324ca9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
19 deletions
+72
-19
VideoDto.java
...com/yeejoin/amos/boot/module/common/api/dto/VideoDto.java
+22
-0
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+6
-5
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+41
-12
application.properties
...boot-system-jcs/src/main/resources/application.properties
+3
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/VideoDto.java
0 → 100644
View file @
76a13fd7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
import
lombok.Data
;
/**
* @description:
* @author: tw
* @createDate: 2021/10/21
*/
@Data
public
class
VideoDto
{
private
Long
id
;
private
String
code
;
private
String
name
;
private
String
region
;
private
String
address
;
private
String
status
;
private
String
type
;
private
String
url
;
private
String
img
;
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/feign/EquipFeignClient.java
View file @
76a13fd7
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.common.api.feign;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.common.api.feign;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.dto.PageDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.PageDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.VideoDto
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -196,11 +197,11 @@ public interface EquipFeignClient {
...
@@ -196,11 +197,11 @@ public interface EquipFeignClient {
@RequestMapping
(
value
=
"/video/pageList"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/video/pageList"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
pageList
(
@RequestParam
Integer
current
,
ResponseModel
<
Page
<
VideoDto
>>
pageList
(
@RequestParam
Integer
current
,
@RequestParam
Integer
size
,
@RequestParam
Integer
size
,
@RequestParam
String
code
,
@RequestParam
String
code
,
@RequestParam
String
name
,
@RequestParam
String
name
,
@RequestParam
String
typeCode
);
@RequestParam
String
typeCode
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-command-biz/src/main/java/com/yeejoin/amos/boot/module/command/biz/controller/CommandController.java
View file @
76a13fd7
...
@@ -3,7 +3,6 @@ package com.yeejoin.amos.boot.module.command.biz.controller;
...
@@ -3,7 +3,6 @@ package com.yeejoin.amos.boot.module.command.biz.controller;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.OrderItem
;
import
com.baomidou.mybatisplus.core.metadata.OrderItem
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
@@ -19,8 +18,6 @@ import com.yeejoin.amos.boot.module.command.api.dto.SeismometeorologyDto;
...
@@ -19,8 +18,6 @@ import com.yeejoin.amos.boot.module.command.api.dto.SeismometeorologyDto;
import
com.yeejoin.amos.boot.module.command.biz.service.impl.RemoteSecurityService
;
import
com.yeejoin.amos.boot.module.command.biz.service.impl.RemoteSecurityService
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.entity.FireTeam
;
import
com.yeejoin.amos.boot.module.common.api.entity.FireTeam
;
import
com.yeejoin.amos.boot.module.common.api.entity.Firefighters
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.IotFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.IotFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.VideoFeignClient
;
import
com.yeejoin.amos.boot.module.common.api.feign.VideoFeignClient
;
...
@@ -42,12 +39,11 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue;
...
@@ -42,12 +39,11 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompanyResources
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransferCompanyResources
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.UserCar
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.UserCar
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.FireCarStatusEnum
;
import
com.yeejoin.amos.boot.module.jcs.api.service.*
;
import
com.yeejoin.amos.boot.module.jcs.api.service.*
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.PermissionModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.poi.ss.formula.functions.T
;
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.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -286,8 +282,20 @@ public class CommandController extends BaseController {
...
@@ -286,8 +282,20 @@ public class CommandController extends BaseController {
par
.
setLatitude
(
alertCalled
.
getCoordinateX
());
par
.
setLatitude
(
alertCalled
.
getCoordinateX
());
par
.
setLongitude
(
alertCalled
.
getCoordinateY
());
par
.
setLongitude
(
alertCalled
.
getCoordinateY
());
}
}
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
data
=
equipFeignClient
.
pageVideo
(
pageNum
,
pageSize
,
par
.
getLongitude
(),
par
.
getLatitude
(),
par
.
getDistance
());
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
data
=
equipFeignClient
.
pageVideo
(
pageNum
==
0
?
1
:
pageNum
,
pageSize
,
par
.
getLongitude
(),
par
.
getLatitude
(),
par
.
getDistance
());
return
ResponseHelper
.
buildResponse
(
data
!=
null
?
data
.
getResult
():
null
);
Page
<
Map
<
String
,
Object
>>
pag
=
data
!=
null
?
data
.
getResult
():
null
;
List
<
Map
<
String
,
Object
>>
records
=
pag
!=
null
?
pag
.
getRecords
():
null
;
if
(
records
!=
null
&&
records
.
size
()>
0
){
for
(
Map
<
String
,
Object
>
record
:
records
)
{
ResponseModel
<
String
>
da
=
videoFeignClient
.
videoUrlByIndexCode
(
record
.
get
(
"code"
)+
""
);
String
url
=
da
!=
null
?
da
.
getResult
().
substring
(
da
.
getResult
().
indexOf
(
"openUrl"
)):
null
;
record
.
put
(
"url"
,
url
);
}
pag
.
setRecords
(
records
);
}
return
ResponseHelper
.
buildResponse
(
pag
);
}
}
...
@@ -295,18 +303,28 @@ public class CommandController extends BaseController {
...
@@ -295,18 +303,28 @@ public class CommandController extends BaseController {
/**
/**
* 水源列表分页查询
* 水源列表分页查询
*
*
* @return
* @return
getVideo
*/
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"video/pageList"
)
@PostMapping
(
value
=
"video/pageList"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
" app视频分页查询88"
,
notes
=
"app视频分页查询88"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
" app视频分页查询88"
,
notes
=
"app视频分页查询88"
)
public
ResponseModel
<
Object
>
pageList
(
@RequestBody
PageDto
pageDto
)
{
public
ResponseModel
<
Object
>
pageList
(
@RequestBody
PageDto
pageDto
)
{
ResponseModel
<
Page
<
Map
<
String
,
Object
>
>>
data
=
equipFeignClient
.
pageList
(
pageDto
.
getCurrent
(),
ResponseModel
<
Page
<
VideoDto
>>
data
=
equipFeignClient
.
pageList
(
pageDto
.
getCurrent
(),
pageDto
.
getSize
(),
pageDto
.
getSize
(),
pageDto
.
getCode
()==
null
?
""
:
pageDto
.
getCode
(),
pageDto
.
getCode
()==
null
?
""
:
pageDto
.
getCode
(),
pageDto
.
getName
()==
null
?
""
:
pageDto
.
getName
(),
pageDto
.
getName
()==
null
?
""
:
pageDto
.
getName
(),
pageDto
.
getTypeCode
()==
null
?
""
:
pageDto
.
getTypeCode
());
pageDto
.
getTypeCode
()==
null
?
""
:
pageDto
.
getTypeCode
());
return
ResponseHelper
.
buildResponse
(
data
!=
null
?
data
.
getResult
():
null
);
Page
<
VideoDto
>
pag
=
data
!=
null
?
data
.
getResult
():
null
;
List
<
VideoDto
>
records
=
pag
!=
null
?
pag
.
getRecords
():
null
;
if
(
records
!=
null
&&
records
.
size
()>
0
){
for
(
VideoDto
record
:
records
)
{
ResponseModel
<
String
>
da
=
videoFeignClient
.
videoUrlByIndexCode
(
record
.
getCode
());
String
url
=
da
!=
null
?
da
.
getResult
():
null
;
record
.
setUrl
(
url
);
}
pag
.
setRecords
(
records
);
}
return
ResponseHelper
.
buildResponse
(
pag
);
}
}
...
@@ -965,8 +983,19 @@ public class CommandController extends BaseController {
...
@@ -965,8 +983,19 @@ public class CommandController extends BaseController {
Page
page
=
new
Page
(
current
,
size
);
Page
page
=
new
Page
(
current
,
size
);
List
<
OrderItem
>
list
=
OrderItem
.
ascs
(
"id"
);
List
<
OrderItem
>
list
=
OrderItem
.
ascs
(
"id"
);
page
.
setOrders
(
list
);
page
.
setOrders
(
list
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
date
=
equipFeignClient
.
getVideo
(
current
,
size
,
0
l
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
data
=
equipFeignClient
.
getVideo
(
current
,
size
,
0
l
);
return
ResponseHelper
.
buildResponse
(
date
!=
null
?
date
.
getResult
():
null
);
Page
<
Map
<
String
,
Object
>>
pag
=
data
!=
null
?
data
.
getResult
():
null
;
List
<
Map
<
String
,
Object
>>
records
=
pag
!=
null
?
pag
.
getRecords
():
null
;
if
(
records
!=
null
&&
records
.
size
()>
0
){
for
(
Map
<
String
,
Object
>
record
:
records
)
{
ResponseModel
<
String
>
da
=
videoFeignClient
.
videoUrlByIndexCode
(
record
.
get
(
"code"
)+
""
);
String
url
=
da
!=
null
?
da
.
getResult
().
substring
(
da
.
getResult
().
indexOf
(
"openUrl"
)):
null
;
record
.
put
(
"url"
,
url
);
}
pag
.
setRecords
(
records
);
}
return
ResponseHelper
.
buildResponse
(
pag
);
}
}
...
...
amos-boot-system-jcs/src/main/resources/application.properties
View file @
76a13fd7
...
@@ -85,4 +85,5 @@ failure.work.flow.processDefinitionKey=malfunction_repair
...
@@ -85,4 +85,5 @@ failure.work.flow.processDefinitionKey=malfunction_repair
spring.servlet.multipart.maxFileSize
=
3MB
spring.servlet.multipart.maxFileSize
=
3MB
spring.servlet.multipart.maxRequestSize
=
3MB
spring.servlet.multipart.maxRequestSize
=
3MB
supervision.feign.name
=
AMOS-SUPERVISION-API
supervision.feign.name
=
AMOS-SUPERVISION-API
\ No newline at end of file
video.fegin.name
=
VIDEO888
\ No newline at end of file
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