Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-radaraccess-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f3316a61
authored
Feb 20, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发对接雷达系统接口业务
1 parent
a37bb80e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
109 additions
and
1 deletions
platform-radaraccess/src/main/resources/bootstrap.properties
platform-radaraccess/src/main/resources/mapper/ChargeParkingSpaceHistoryStatusMapper.xml
platform-radaraccess/src/main/resources/mapper/ChargeParkingSpaceInfoMapper.xml
platform-radaraccess/src/test/java/cn/com/glsx/radaraccess/modules/service/RadarServiceTest.java
platform-radaraccess/src/main/resources/bootstrap.properties
View file @
f3316a6
...
@@ -5,7 +5,7 @@ spring.application.name=platform-radaraccess
...
@@ -5,7 +5,7 @@ spring.application.name=platform-radaraccess
logging.path
=
/data/java_log/jetty/${spring.application.name}/${spring.application.name}.log
logging.path
=
/data/java_log/jetty/${spring.application.name}/${spring.application.name}.log
#nacos\u914D\u7F6E\u4E2D\u5FC3
#nacos\u914D\u7F6E\u4E2D\u5FC3
spring.cloud.nacos.config.server-
addr
=
192.168.0.63
:8868
spring.cloud.nacos.config.server-
addr
=
http://192.168.3.102
:8868
#nacos\u914D\u7F6Eid\uFF0C\u5B8C\u6574dataId=${spring.cloud.nacos.config.prefix}-${spring.profiles.active}.${file-extension\uFF08\u7531\u65B0\u589E\u914D\u7F6E\u65F6\u9009\u7684\u6587\u4EF6\u7C7B\u578B\u51B3\u5B9A\uFF09}
#nacos\u914D\u7F6Eid\uFF0C\u5B8C\u6574dataId=${spring.cloud.nacos.config.prefix}-${spring.profiles.active}.${file-extension\uFF08\u7531\u65B0\u589E\u914D\u7F6E\u65F6\u9009\u7684\u6587\u4EF6\u7C7B\u578B\u51B3\u5B9A\uFF09}
#\u793A\u4F8B\uFF1Ahttp://192.168.0.63:8848/nacos/v1/cs/configs?dataId=glsx-rest-admin.properties&group=DEV_GROUP
#\u793A\u4F8B\uFF1Ahttp://192.168.0.63:8848/nacos/v1/cs/configs?dataId=glsx-rest-admin.properties&group=DEV_GROUP
...
...
platform-radaraccess/src/main/resources/mapper/ChargeParkingSpaceHistoryStatusMapper.xml
0 → 100644
View file @
f3316a6
<?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=
"cn.com.glsx.radaraccess.modules.mapper.ChargeParkingSpaceHistoryStatusMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.radaraccess.modules.entity.ChargeParkingSpaceHistoryStatus"
>
<!--
WARNING - @mbg.generated
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"parking_space_id"
jdbcType=
"INTEGER"
property=
"parkingSpaceId"
/>
<result
column=
"radar_id"
jdbcType=
"INTEGER"
property=
"radarId"
/>
<result
column=
"parking_status"
jdbcType=
"TINYINT"
property=
"parkingStatus"
/>
<result
column=
"start_time"
jdbcType=
"TIMESTAMP"
property=
"startTime"
/>
<result
column=
"end_time"
jdbcType=
"TIMESTAMP"
property=
"endTime"
/>
<result
column=
"created_by"
jdbcType=
"INTEGER"
property=
"createdBy"
/>
<result
column=
"created_time"
jdbcType=
"TIMESTAMP"
property=
"createdTime"
/>
<result
column=
"updated_by"
jdbcType=
"INTEGER"
property=
"updatedBy"
/>
<result
column=
"updated_time"
jdbcType=
"TIMESTAMP"
property=
"updatedTime"
/>
<result
column=
"del_flag"
jdbcType=
"TINYINT"
property=
"delFlag"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
-->
id, parking_space_id, radar_id, parking_status, start_time, end_time, created_by,
created_time, updated_by, updated_time, del_flag
</sql>
<select
id=
"selectDelByParkingSpaceId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from scrm_charge_parking_space_history_status
where del_flag = -1
and parking_space_id = #{parkingSpaceId}
</select>
</mapper>
\ No newline at end of file
\ No newline at end of file
platform-radaraccess/src/main/resources/mapper/ChargeParkingSpaceInfoMapper.xml
0 → 100644
View file @
f3316a6
<?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=
"cn.com.glsx.radaraccess.modules.mapper.ChargeParkingSpaceInfoMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.radaraccess.modules.entity.ChargeParkingSpaceInfo"
>
<!--
WARNING - @mbg.generated
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"merchant_id"
jdbcType=
"INTEGER"
property=
"merchantId"
/>
<result
column=
"merchant_name"
jdbcType=
"VARCHAR"
property=
"merchantName"
/>
<result
column=
"parking_area"
jdbcType=
"VARCHAR"
property=
"parkingArea"
/>
<result
column=
"parking_floor"
jdbcType=
"VARCHAR"
property=
"parkingFloor"
/>
<result
column=
"parking_building"
jdbcType=
"VARCHAR"
property=
"parkingBuilding"
/>
<result
column=
"parking_number"
jdbcType=
"VARCHAR"
property=
"parkingNumber"
/>
<result
column=
"parking_status"
jdbcType=
"TINYINT"
property=
"parkingStatus"
/>
<result
column=
"radar_id"
jdbcType=
"INTEGER"
property=
"radarId"
/>
<result
column=
"parking_remark"
jdbcType=
"VARCHAR"
property=
"parkingRemark"
/>
<result
column=
"parking_address_lng"
jdbcType=
"REAL"
property=
"parkingAddressLng"
/>
<result
column=
"parking_address_lat"
jdbcType=
"REAL"
property=
"parkingAddressLat"
/>
<result
column=
"created_by"
jdbcType=
"INTEGER"
property=
"createdBy"
/>
<result
column=
"created_time"
jdbcType=
"TIMESTAMP"
property=
"createdTime"
/>
<result
column=
"updated_by"
jdbcType=
"INTEGER"
property=
"updatedBy"
/>
<result
column=
"updated_time"
jdbcType=
"TIMESTAMP"
property=
"updatedTime"
/>
<result
column=
"del_flag"
jdbcType=
"TINYINT"
property=
"delFlag"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
-->
id, merchant_id, merchant_name, parking_area, parking_floor, parking_building, parking_number,
parking_status, radar_id, parking_remark, parking_address_lng, parking_address_lat,
created_by, created_time, updated_by, updated_time, del_flag
</sql>
<select
id=
"selectByRadarId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from scrm_charge_parking_space_info
where radar_id = #{radarId}
order by id desc
limit 1
</select>
</mapper>
\ No newline at end of file
\ No newline at end of file
platform-radaraccess/src/test/java/cn/com/glsx/radaraccess/modules/service/RadarServiceTest.java
0 → 100644
View file @
f3316a6
package
cn
.
com
.
glsx
.
radaraccess
.
modules
.
service
;
import
cn.com.glsx.Application
;
import
cn.com.glsx.radaraccess.modules.model.RadarBO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
static
org
.
junit
.
Assert
.*;
@Slf4j
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
)
public
class
RadarServiceTest
{
@Autowired
private
RadarService
radarService
;
@Test
public
void
saveRadar
()
{
RadarBO
radarBO
=
new
RadarBO
();
radarBO
.
setMac
(
"9520240204"
);
radarBO
.
setJzzlsta
(
1
);
Integer
result
=
radarService
.
saveRadar
(
radarBO
);
assertEquals
(
Integer
.
valueOf
(
1
),
result
);
}
}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment