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
f2a97230
Commit
f2a97230
authored
Apr 26, 2023
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
场站地图数据接口更新
parent
5a5bd2d2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
13 deletions
+14
-13
StationInfoDto.java
...eejoin/amos/boot/module/jxiop/api/dto/StationInfoDto.java
+5
-3
StationBasicMapper.java
...amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
+1
-1
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+3
-5
StationBasicController.java
...t/module/jxiop/biz/controller/StationBasicController.java
+2
-2
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+3
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/StationInfoDto.java
View file @
f2a97230
...
@@ -3,9 +3,11 @@ package com.yeejoin.amos.boot.module.jxiop.api.dto;
...
@@ -3,9 +3,11 @@ package com.yeejoin.amos.boot.module.jxiop.api.dto;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
javax.ws.rs.DefaultValue
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -29,13 +31,13 @@ public class StationInfoDto {
...
@@ -29,13 +31,13 @@ public class StationInfoDto {
@ApiModelProperty
(
value
=
"设备管控指标"
)
@ApiModelProperty
(
value
=
"设备管控指标"
)
private
String
deviceControlIndicators
;
private
String
deviceControlIndicators
=
"0"
;
@ApiModelProperty
(
value
=
"人员管控指标"
)
@ApiModelProperty
(
value
=
"人员管控指标"
)
private
String
personControlIndicators
;
private
String
personControlIndicators
=
"0"
;
@ApiModelProperty
(
value
=
"任务管控指标"
)
@ApiModelProperty
(
value
=
"任务管控指标"
)
private
String
taskControlIndicators
;
private
String
taskControlIndicators
=
"0"
;
@ApiModelProperty
(
value
=
"经度"
)
@ApiModelProperty
(
value
=
"经度"
)
private
String
longitude
;
private
String
longitude
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
View file @
f2a97230
...
@@ -38,7 +38,7 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
...
@@ -38,7 +38,7 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
@Param
(
"orgCode"
)
String
orgCode
);
@Param
(
"orgCode"
)
String
orgCode
);
//获取场站列表信息
//获取场站列表信息
List
<
StationInfoDto
>
getStationList
(
@Param
(
"
orgCode"
)
String
org
Code
);
List
<
StationInfoDto
>
getStationList
(
@Param
(
"
areaCode"
)
String
area
Code
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
f2a97230
...
@@ -114,11 +114,9 @@
...
@@ -114,11 +114,9 @@
left join station_coordinate
left join station_coordinate
on station_basic.sequence_nbr = station_coordinate.station_id
on station_basic.sequence_nbr = station_coordinate.station_id
WHERE station_coordinate.is_main_coordinate = 0 LIMIT 1
WHERE station_coordinate.is_main_coordinate = 0 LIMIT 1
<where>
<if
test=
"areaCode != null and areaCode != ''"
>
<if
test=
"orgCode != null and orgCode != ''"
>
AND station_basic.area_code like concat('%',#{areaCode},'%')
AND station_basic.project_org_code like concat('%',#{orgCode},'%')
</if>
</if>
</where>
</select>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/StationBasicController.java
View file @
f2a97230
...
@@ -161,7 +161,7 @@ public class StationBasicController extends BaseController {
...
@@ -161,7 +161,7 @@ public class StationBasicController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"场站地图数据"
,
notes
=
"场站地图数据"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"场站地图数据"
,
notes
=
"场站地图数据"
)
@GetMapping
(
value
=
"/listforMap"
)
@GetMapping
(
value
=
"/listforMap"
)
public
ResponseModel
<
List
<
StationInfoDto
>>
getStationList
(
@RequestParam
(
value
=
"
orgCode"
,
required
=
false
)
String
org
Code
)
{
public
ResponseModel
<
List
<
StationInfoDto
>>
getStationList
(
@RequestParam
(
value
=
"
areaCode"
,
required
=
false
)
String
area
Code
)
{
return
ResponseHelper
.
buildResponse
(
stationBasicServiceImpl
.
getStationList
(
org
Code
));
return
ResponseHelper
.
buildResponse
(
stationBasicServiceImpl
.
getStationList
(
area
Code
));
}
}
}
}
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 @
f2a97230
...
@@ -248,8 +248,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -248,8 +248,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
}
}
public
List
<
StationInfoDto
>
getStationList
(
String
org
Code
){
public
List
<
StationInfoDto
>
getStationList
(
String
area
Code
){
return
stationBasicMapper
.
getStationList
(
org
Code
);
return
stationBasicMapper
.
getStationList
(
area
Code
);
}
}
}
}
\ 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