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
1f2da0ab
Commit
1f2da0ab
authored
Sep 09, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增jaiapp首頁接口
parent
8c1f2a40
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
103 additions
and
15 deletions
+103
-15
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+17
-0
FaultServiceImpl.java
...os/boot/module/jcs/biz/service/impl/FaultServiceImpl.java
+17
-3
FireAlarmServiceImpl.java
...oot/module/jcs/biz/service/impl/FireAlarmServiceImpl.java
+18
-3
NoServiceImpl.java
.../amos/boot/module/jcs/biz/service/impl/NoServiceImpl.java
+17
-3
ShieldServiceImpl.java
...s/boot/module/jcs/biz/service/impl/ShieldServiceImpl.java
+17
-3
WarningServiceImpl.java
.../boot/module/jcs/biz/service/impl/WarningServiceImpl.java
+17
-3
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/feign/EquipFeignClient.java
View file @
1f2da0ab
...
@@ -167,4 +167,21 @@ public interface EquipFeignClient {
...
@@ -167,4 +167,21 @@ public interface EquipFeignClient {
*/
*/
@RequestMapping
(
value
=
"/car/simple/{id}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/car/simple/{id}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Map
<
String
,
Object
>>
queryCarSimpleInfoById
(
@PathVariable
Long
id
);
ResponseModel
<
Map
<
String
,
Object
>>
queryCarSimpleInfoById
(
@PathVariable
Long
id
);
/**
* 统计
**/
@RequestMapping
(
value
=
"/equipSpecificAlarm/getCountAlarm/{type}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Integer
>
getCountAlarm
(
@PathVariable
String
type
);
/**
* 统计
**/
@RequestMapping
(
value
=
"/equipSpecificAlarm/getcountAlarmHandle/{type}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Integer
>
getCountEquipment
(
@PathVariable
String
type
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/FaultServiceImpl.java
View file @
1f2da0ab
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.PostConstruct
;
/**
/**
* @description:
* @description:
...
@@ -11,12 +17,20 @@ import org.springframework.stereotype.Service;
...
@@ -11,12 +17,20 @@ import org.springframework.stereotype.Service;
@Service
@Service
public
class
FaultServiceImpl
implements
IHomePageService
{
public
class
FaultServiceImpl
implements
IHomePageService
{
//实现首页dispatchMap
@Autowired
EquipFeignClient
quipFeignClient
;
private
static
EquipFeignClient
quipFeignClient1
;
@PostConstruct
public
void
init
(){
quipFeignClient1
=
quipFeignClient
;
}
//火警
@Override
@Override
public
Object
getHomePageData
()
{
public
Object
getHomePageData
()
{
ResponseModel
<
Integer
>
data
=
quipFeignClient
.
getCountAlarm
(
"BREAKDOWN"
);
return
0
;
return
ResponseHelper
.
buildResponse
(
data
!=
null
?
data
.
getResult
():
0
)
;
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/FireAlarmServiceImpl.java
View file @
1f2da0ab
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.AlertCalledMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.PostConstruct
;
/**
/**
* @description:
* @description:
...
@@ -11,12 +18,20 @@ import org.springframework.stereotype.Service;
...
@@ -11,12 +18,20 @@ import org.springframework.stereotype.Service;
@Service
@Service
public
class
FireAlarmServiceImpl
implements
IHomePageService
{
public
class
FireAlarmServiceImpl
implements
IHomePageService
{
//实现首页dispatchMap
@Autowired
EquipFeignClient
quipFeignClient
;
private
static
EquipFeignClient
quipFeignClient1
;
@PostConstruct
public
void
init
(){
quipFeignClient1
=
quipFeignClient
;
}
//火警
@Override
@Override
public
Object
getHomePageData
()
{
public
Object
getHomePageData
()
{
ResponseModel
<
Integer
>
data
=
quipFeignClient
.
getCountAlarm
(
"FIREALARM"
);
return
0
;
return
ResponseHelper
.
buildResponse
(
data
!=
null
?
data
.
getResult
():
0
)
;
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/NoServiceImpl.java
View file @
1f2da0ab
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.PostConstruct
;
/**
/**
* @description:
* @description:
...
@@ -11,12 +17,20 @@ import org.springframework.stereotype.Service;
...
@@ -11,12 +17,20 @@ import org.springframework.stereotype.Service;
@Service
@Service
public
class
NoServiceImpl
implements
IHomePageService
{
public
class
NoServiceImpl
implements
IHomePageService
{
//实现首页dispatchMap
@Autowired
EquipFeignClient
quipFeignClient
;
private
static
EquipFeignClient
quipFeignClient1
;
@PostConstruct
public
void
init
(){
quipFeignClient1
=
quipFeignClient
;
}
//火警
@Override
@Override
public
Object
getHomePageData
()
{
public
Object
getHomePageData
()
{
ResponseModel
<
Integer
>
data
=
quipFeignClient
.
getCountAlarm
(
"NOTICE"
);
return
0
;
return
ResponseHelper
.
buildResponse
(
data
!=
null
?
data
.
getResult
():
0
)
;
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ShieldServiceImpl.java
View file @
1f2da0ab
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.PostConstruct
;
/**
/**
* @description:
* @description:
...
@@ -11,12 +17,20 @@ import org.springframework.stereotype.Service;
...
@@ -11,12 +17,20 @@ import org.springframework.stereotype.Service;
@Service
@Service
public
class
ShieldServiceImpl
implements
IHomePageService
{
public
class
ShieldServiceImpl
implements
IHomePageService
{
//实现首页dispatchMap
@Autowired
EquipFeignClient
quipFeignClient
;
private
static
EquipFeignClient
quipFeignClient1
;
@PostConstruct
public
void
init
(){
quipFeignClient1
=
quipFeignClient
;
}
//火警
@Override
@Override
public
Object
getHomePageData
()
{
public
Object
getHomePageData
()
{
ResponseModel
<
Integer
>
data
=
quipFeignClient
.
getCountAlarm
(
"SHIELD"
);
return
0
;
return
ResponseHelper
.
buildResponse
(
data
!=
null
?
data
.
getResult
():
0
)
;
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/WarningServiceImpl.java
View file @
1f2da0ab
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.biz.common.service.IHomePageService
;
import
com.yeejoin.amos.boot.module.common.api.feign.EquipFeignClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.PostConstruct
;
/**
/**
* @description:
* @description:
...
@@ -11,12 +17,20 @@ import org.springframework.stereotype.Service;
...
@@ -11,12 +17,20 @@ import org.springframework.stereotype.Service;
@Service
@Service
public
class
WarningServiceImpl
implements
IHomePageService
{
public
class
WarningServiceImpl
implements
IHomePageService
{
//实现首页dispatchMap
@Autowired
EquipFeignClient
quipFeignClient
;
private
static
EquipFeignClient
quipFeignClient1
;
@PostConstruct
public
void
init
(){
quipFeignClient1
=
quipFeignClient
;
}
//火警
@Override
@Override
public
Object
getHomePageData
()
{
public
Object
getHomePageData
()
{
ResponseModel
<
Integer
>
data
=
quipFeignClient
.
getCountAlarm
(
"NOTICE"
);
return
0
;
return
ResponseHelper
.
buildResponse
(
data
!=
null
?
data
.
getResult
():
0
)
;
}
}
}
}
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