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
28cc3f92
Commit
28cc3f92
authored
Apr 25, 2023
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增场站地图接口
parent
daa85436
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
96 additions
and
2 deletions
+96
-2
StationBasicDto.java
...ejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
+3
-0
StationInfoDto.java
...eejoin/amos/boot/module/jxiop/api/dto/StationInfoDto.java
+47
-0
StationBasic.java
...ejoin/amos/boot/module/jxiop/api/entity/StationBasic.java
+4
-0
StationBasicMapper.java
...amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
+4
-0
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+18
-0
StationBasicController.java
...t/module/jxiop/biz/controller/StationBasicController.java
+15
-2
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+5
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
View file @
28cc3f92
...
...
@@ -80,6 +80,9 @@ public class StationBasicDto extends BaseDto {
@ApiModelProperty
(
value
=
"岗位"
)
private
String
postName
;
@ApiModelProperty
(
value
=
"平台关联场站id"
)
private
String
platformStationId
;
private
List
<
StationCoordinateDto
>
stationCoordinate
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/StationInfoDto.java
0 → 100644
View file @
28cc3f92
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.List
;
/**
* 场站基础信息表
*
* @author system_generator
* @date 2023-04-20
*/
@Data
@ApiModel
(
value
=
"StationBasicDto"
,
description
=
"场站基础信息表"
)
public
class
StationInfoDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"场站名称"
)
private
String
stationName
;
@ApiModelProperty
(
value
=
"场站类型"
)
private
String
stationType
;
@ApiModelProperty
(
value
=
"设备管控指标"
)
private
String
deviceControlIndicators
;
@ApiModelProperty
(
value
=
"人员管控指标"
)
private
String
personControlIndicators
;
@ApiModelProperty
(
value
=
"任务管控指标"
)
private
String
taskControlIndicators
;
@ApiModelProperty
(
value
=
"经度"
)
private
String
longitude
;
@ApiModelProperty
(
value
=
"纬度"
)
private
String
laitude
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/StationBasic.java
View file @
28cc3f92
...
...
@@ -126,6 +126,10 @@ public class StationBasic extends BaseEntity {
@TableField
(
"project_org_code"
)
private
String
projectOrgCode
;
@TableField
(
"platform_station_id"
)
private
String
platformStationId
;
@TableField
(
exist
=
false
)
private
List
<
StationCoordinate
>
stationCoordinate
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
View file @
28cc3f92
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jxiop.api.mapper;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.ExStationBasicDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationBasicDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationInfoDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -36,5 +37,8 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
@Param
(
"stationType"
)
String
stationType
,
@Param
(
"orgCode"
)
String
orgCode
);
//获取场站列表信息
List
<
StationInfoDto
>
getStationList
(
@Param
(
"orgCode"
)
String
orgCode
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
28cc3f92
...
...
@@ -102,6 +102,24 @@
</where>
ORDER BY station_basic.rec_date DESC
</select>
<select
id=
"getStationList"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.StationInfoDto"
>
select
station_basic.station_name stationName ,
station_basic.station_type stationType,
station_basic.station_flag stationFlag,
station_coordinate.longitude,
station_coordinate.laitude ,
station_coordinate.is_main_coordinate
from station_basic
left join station_coordinate
on station_basic.sequence_nbr = station_coordinate.station_id
WHERE station_coordinate.is_main_coordinate = 0 LIMIT 1
<where>
<if
test=
"orgCode != null and orgCode != ''"
>
AND station_basic.project_org_code like concat('%',#{orgCode},'%')
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/StationBasicController.java
View file @
28cc3f92
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationInfoDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.StationCoordinateServiceImpl
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -63,7 +64,7 @@ public class StationBasicController extends BaseController {
/**
* 根据sequenceNbr删除
*
* @param
sequenceNbr
主键
* @param
ids
主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -120,7 +121,7 @@ public class StationBasicController extends BaseController {
}
/**
*
列表全部数据查询
*
场站地图接口
*
* @return
*/
...
...
@@ -130,4 +131,16 @@ public class StationBasicController extends BaseController {
public
ResponseModel
<
List
<
StationBasicDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
stationBasicServiceImpl
.
queryForStationBasicList
());
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"场站地图数据"
,
notes
=
"场站地图数据"
)
@GetMapping
(
value
=
"/listforMap"
)
public
ResponseModel
<
List
<
StationInfoDto
>>
getStationList
(
@RequestParam
(
value
=
"orgCode"
,
required
=
false
)
String
orgCode
)
{
return
ResponseHelper
.
buildResponse
(
stationBasicServiceImpl
.
getStationList
(
orgCode
));
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationBasicServiceImpl.java
View file @
28cc3f92
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationCoordinateDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationInfoDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationCoordinate
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper
;
...
...
@@ -211,5 +212,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
}
public
List
<
StationInfoDto
>
getStationList
(
String
orgCode
){
return
stationBasicMapper
.
getStationList
(
orgCode
);
}
}
\ 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