Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
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 773a7c8e
authored
Apr 15, 2021
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除无用代码
1 parent
d957588b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
148 deletions
src/main/java/com/glsx/smart/dao/entity/SmartUserDeviceData.java
src/main/java/com/glsx/smart/dao/mapper/SmartUserDeviceDataMapper.java
src/main/java/com/glsx/smart/service/SmartUserDeviceDataService.java
src/main/java/com/glsx/smart/service/impl/SmartUserDeviceDataServiceImpl.java
src/main/resources/mapper/SmartUserDeviceDataMapper.xml
src/main/java/com/glsx/smart/dao/entity/SmartUserDeviceData.java
deleted
100644 → 0
View file @
d957588
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
java.util.Date
;
import
lombok.Data
;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-16
*/
/**
* 车家智能用户设备数据表
*/
@Data
public
class
SmartUserDeviceData
{
/**
* 标识ID
*/
private
Long
id
;
/**
* 用户ID 关联smart_user_relation中id
*/
private
Long
userId
;
/**
* 设备ID
*/
private
String
deviceId
;
/**
* 查看次数
*/
private
Long
viewTimes
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
}
src/main/java/com/glsx/smart/dao/mapper/SmartUserDeviceDataMapper.java
deleted
100644 → 0
View file @
d957588
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
com.glsx.smart.dao.entity.SmartUserDeviceData
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-16
*/
@Mapper
public
interface
SmartUserDeviceDataMapper
extends
tk
.
mybatis
.
mapper
.
common
.
Mapper
<
SmartUserDeviceData
>
{
}
src/main/java/com/glsx/smart/service/SmartUserDeviceDataService.java
deleted
100644 → 0
View file @
d957588
package
com
.
glsx
.
smart
.
service
;
import
com.glsx.smart.dao.entity.SmartUserDeviceData
;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-16
*/
public
interface
SmartUserDeviceDataService
{
int
deleteByPrimaryKey
(
Long
id
);
int
insertSelective
(
SmartUserDeviceData
record
);
SmartUserDeviceData
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
SmartUserDeviceData
record
);
}
src/main/java/com/glsx/smart/service/impl/SmartUserDeviceDataServiceImpl.java
deleted
100644 → 0
View file @
d957588
package
com
.
glsx
.
smart
.
service
.
impl
;
import
javax.annotation.Resource
;
import
com.glsx.smart.dao.entity.SmartUserDeviceData
;
import
com.glsx.smart.dao.mapper.SmartUserDeviceDataMapper
;
import
com.glsx.smart.service.SmartUserDeviceDataService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-16
*/
@Slf4j
@Service
public
class
SmartUserDeviceDataServiceImpl
implements
SmartUserDeviceDataService
{
@Resource
private
SmartUserDeviceDataMapper
smartUserDeviceDataMapper
;
@Override
public
int
deleteByPrimaryKey
(
Long
id
)
{
return
smartUserDeviceDataMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
insertSelective
(
SmartUserDeviceData
record
)
{
return
smartUserDeviceDataMapper
.
insertSelective
(
record
);
}
@Override
public
SmartUserDeviceData
selectByPrimaryKey
(
Long
id
)
{
return
smartUserDeviceDataMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
updateByPrimaryKeySelective
(
SmartUserDeviceData
record
)
{
return
smartUserDeviceDataMapper
.
updateByPrimaryKeySelective
(
record
);
}
}
src/main/resources/mapper/SmartUserDeviceDataMapper.xml
deleted
100644 → 0
View file @
d957588
<?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.glsx.smart.dao.mapper.SmartUserDeviceDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.dao.entity.SmartUserDeviceData"
>
<!--@mbg.generated-->
<!--@Table smart_user_device_data-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"user_id"
jdbcType=
"BIGINT"
property=
"userId"
/>
<result
column=
"device_id"
jdbcType=
"VARCHAR"
property=
"deviceId"
/>
<result
column=
"view_times"
jdbcType=
"BIGINT"
property=
"viewTimes"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, user_id, device_id, view_times, create_time, update_time
</sql>
</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