mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
优化代码
This commit is contained in:
@@ -3961,22 +3961,6 @@ insert into `tz_index_img`(`img_id`,`shop_id`,`img_url`,`des`,`title`,`link`,`s
|
||||
(4,1,'2019/04/52b0082c60c04fc99dd03288548f2841.dpg','',NULL,NULL,1,120,'2019-04-17 17:12:37',76,0),
|
||||
(5,1,'2019/04/c2d830afc56d469f96825e91e464d155.jpg','',NULL,NULL,1,10,'2019-04-22 09:57:34',76,0);
|
||||
|
||||
/*Table structure for table `tz_login_hist` */
|
||||
|
||||
DROP TABLE IF EXISTS `tz_login_hist`;
|
||||
|
||||
CREATE TABLE `tz_login_hist` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
|
||||
`area` varchar(100) DEFAULT NULL COMMENT '地区',
|
||||
`country` varchar(100) DEFAULT NULL COMMENT '国家',
|
||||
`user_id` varchar(100) DEFAULT NULL COMMENT '用户id',
|
||||
`ip` varchar(64) NOT NULL DEFAULT '' COMMENT 'IP',
|
||||
`login_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='登录历史表';
|
||||
|
||||
/*Data for the table `tz_login_hist` */
|
||||
|
||||
/*Table structure for table `tz_message` */
|
||||
|
||||
DROP TABLE IF EXISTS `tz_message`;
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.bean.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
@Data
|
||||
@TableName("tz_login_hist")
|
||||
public class LoginHist implements Serializable {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId
|
||||
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 地区
|
||||
*/
|
||||
private String area;
|
||||
|
||||
/**
|
||||
* 国家
|
||||
*/
|
||||
private String country;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* IP
|
||||
*/
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
|
||||
private Date loginTime;
|
||||
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
||||
*
|
||||
* https://www.mall4j.com/
|
||||
*
|
||||
* 未经允许,不可做商业用途!
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.yami.shop.dao;
|
||||
|
||||
import com.yami.shop.bean.model.LoginHist;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author lanhai
|
||||
*/
|
||||
public interface LoginHistMapper extends BaseMapper<LoginHist> {
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?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.yami.shop.dao.LoginHistMapper">
|
||||
<resultMap id="BaseResultMap" type="com.yami.shop.bean.model.LoginHist">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="area" jdbcType="VARCHAR" property="area" />
|
||||
<result column="country" jdbcType="VARCHAR" property="country" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="ip" jdbcType="VARCHAR" property="ip" />
|
||||
<result column="login_time" jdbcType="TIMESTAMP" property="loginTime" />
|
||||
</resultMap>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user