Commit 773a7c8e by tyfanchz

删除无用代码

1 parent d957588b
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;
}
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> {
}
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);
}
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);
}
}
<?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>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!