Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-kafkaconsumer
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 fdb26a96
authored
Aug 18, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发在店kafka数据消费
1 parent
d7f78de2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
src/main/resources/mapper/ElectricInStoreMapper.xml
src/main/resources/mapper/ElectricInStoreMapper.xml
0 → 100644
View file @
fdb26a9
<?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.kafka.mapper.ElectricInStoreMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.kafka.entity.ElectricInStoreDrive"
>
<id
property=
"id"
column=
"id"
jdbcType=
"INTEGER"
/>
<result
property=
"sn"
column=
"sn"
jdbcType=
"VARCHAR"
/>
<result
property=
"fenceId"
column=
"fence_id"
jdbcType=
"INTEGER"
/>
<result
property=
"sveSystemId"
column=
"sve_system_id"
jdbcType=
"INTEGER"
/>
<result
property=
"positionState"
column=
"position_state"
jdbcType=
"TINYINT"
/>
<result
property=
"gpsState"
column=
"gps_state"
jdbcType=
"TINYINT"
/>
<result
property=
"gpsTime"
column=
"gps_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"createdTime"
column=
"created_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"updatedTime"
column=
"updated_time"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,sn,fence_id,
sve_system_id,position_state,gps_state,
gps_time,created_time,updated_time
</sql>
<select
id=
"getElectricInStore"
resultMap=
"BaseResultMap"
>
select *
from t_electric_inshop_drive teid
where teid.fence_id=#{electricInshopDrive.fenceId}
and teid.sn=#{electricInshopDrive.sn}
and teid.gps_state=0
and teid.gps_time=#{electricInshopDrive.gpsTime}
</select>
</mapper>
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