Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
9aacd689
Commit
9aacd689
authored
May 23, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移动端驾驶舱提供接口
parent
948cdc1e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
136 additions
and
0 deletions
+136
-0
IdxFeign.java
...om/yeejoin/amos/boot/module/jxiop/api/feign/IdxFeign.java
+23
-0
StationBasicMapper.java
...amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
+4
-0
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+19
-0
CompanyMapper.java
...oot/module/jxiop/api/amosprojectmapper/CompanyMapper.java
+11
-0
AppletMonitorController.java
.../module/jxiop/biz/controller/AppletMonitorController.java
+62
-0
AppletMonitorServiceImpl.java
...dule/jxiop/biz/service/impl/AppletMonitorServiceImpl.java
+0
-0
CompanyMapper.xml
...z/src/main/resources/mapper/amosproject/CompanyMapper.xml
+17
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/feign/IdxFeign.java
View file @
9aacd689
...
...
@@ -4,8 +4,12 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.Map
;
@FeignClient
(
name
=
"${amos.idx.name:AMOS-IDX}"
,
path
=
"idx"
,
configuration
=
{
FeignConfiguration
.
class
})
...
...
@@ -24,4 +28,23 @@ public interface IdxFeign {
@GetMapping
(
"/table/getPage"
)
FeignClientResult
<
Page
<
Map
<
String
,
Object
>>>
getPage
(
@RequestParam
Map
<
String
,
Object
>
map
);
@RequestMapping
(
value
=
"/publicAnalysis/getStationMessage"
,
method
=
RequestMethod
.
GET
,
consumes
=
"application/json"
)
FeignClientResult
<
List
<
Map
<
String
,
Object
>>>
getStationMark
(
@RequestParam
(
value
=
"code"
)
String
code
);
@RequestMapping
(
value
=
"/publicAnalysis/appletSroce"
,
method
=
RequestMethod
.
GET
,
consumes
=
"application/json"
)
Map
<
String
,
Object
>
getStationMarkList
(
@RequestParam
(
value
=
"code"
)
String
code
,
@RequestParam
(
value
=
"pageNumber"
)
String
pageNumber
,
@RequestParam
(
value
=
"pageSize"
)
String
pageSize
);
@RequestMapping
(
value
=
"/jxIopAnalysis/stationRanking"
,
method
=
RequestMethod
.
GET
,
consumes
=
"application/json"
)
FeignClientResult
<
Map
<
String
,
Object
>>
stationRanking
(
@RequestParam
(
"pageNumber"
)
Long
pageNumber
,
@RequestParam
(
"pageSize"
)
Long
pageSize
,
@RequestParam
(
required
=
false
,
value
=
"stationType"
)
String
type
,
@RequestParam
(
required
=
false
,
value
=
"parentCode"
)
String
parentCode
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
View file @
9aacd689
...
...
@@ -69,4 +69,8 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
*/
List
<
StationBasicDto
>
getStationBasicListAll
();
StationBasicDto
getStationInfoByCode
(
@Param
(
"stationCode"
)
String
stationCode
);
List
<
StationBasicDto
>
getStationsByAreaCode
(
@Param
(
"areaCode"
)
String
stationCode
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
9aacd689
...
...
@@ -192,4 +192,23 @@
FROM
station_basic
</select>
<select
id=
"getStationInfoByCode"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.StationBasicDto"
>
select
*
from
station_basic
where
station_code = #{stationCode}
</select>
<select
id=
"getStationsByAreaCode"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.StationBasicDto"
>
select
*
from
station_basic
where
area_code = #{areaCode}
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/amosprojectmapper/CompanyMapper.java
0 → 100644
View file @
9aacd689
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
amosprojectmapper
;
public
interface
CompanyMapper
{
public
String
getAreaCompanyCode
(
String
code
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/AppletMonitorController.java
0 → 100644
View file @
9aacd689
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationBasicDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorFanIndicatorMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.util.CommonResponse
;
import
com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESEquipments
;
import
com.yeejoin.amos.boot.module.jxiop.biz.constants.CommonConstans
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.AppletMonitorServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.CommonServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.MonitorFanIndicatorImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.tdmapper.IndicatorDataMapper
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.*
;
@RestController
@Api
(
tags
=
"小程序-监盘"
)
@RequestMapping
(
value
=
"/applet"
)
public
class
AppletMonitorController
{
@Autowired
AppletMonitorServiceImpl
appletMonitorService
;
@Autowired
StationBasicMapper
stationBasicMapper
;
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"风机布置图-总概览"
)
@GetMapping
(
"/CockpitData"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getData
(
@RequestParam
(
value
=
"code"
)
String
code
,
@RequestParam
(
value
=
"level"
)
String
level
)
{
if
(
"station"
.
equals
(
level
)){
StationBasicDto
stationBasic
=
stationBasicMapper
.
getStationInfoByCode
(
code
);
if
(
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
return
ResponseHelper
.
buildResponse
(
appletMonitorService
.
getFanStationInfo
(
stationBasic
));
}
else
{
return
ResponseHelper
.
buildResponse
(
appletMonitorService
.
getPvStationInfo
(
stationBasic
));
}
}
else
{
return
ResponseHelper
.
buildResponse
(
appletMonitorService
.
getAreaInfo
(
code
));
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/AppletMonitorServiceImpl.java
0 → 100644
View file @
9aacd689
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper/amosproject/CompanyMapper.xml
0 → 100644
View file @
9aacd689
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.jxiop.api.amosprojectmapper.CompanyMapper"
>
<select
id=
"getAreaCompanyCode"
resultType=
"string"
>
select
ORG_CODE
from
privilege_company
where
COMPANY_CODE = #{code}
and
LEVEL = 'area'
and IS_DELETED = 0
</select>
</mapper>
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