定位表自动建表
This commit is contained in:
parent
b27142e02f
commit
393ab9a0a9
@ -4,6 +4,7 @@ import ink.wgink.exceptions.RemoveException;
|
||||
import ink.wgink.exceptions.SaveException;
|
||||
import ink.wgink.exceptions.SearchException;
|
||||
import ink.wgink.exceptions.UpdateException;
|
||||
import ink.wgink.interfaces.init.IInitBaseTable;
|
||||
import ink.wgink.module.map.pojo.bos.userlocation.UserLocationBO;
|
||||
import ink.wgink.module.map.pojo.dtos.userlocation.UserLocationDTO;
|
||||
import ink.wgink.module.map.pojo.pos.userlocation.UserLocationPO;
|
||||
@ -20,7 +21,7 @@ import java.util.Map;
|
||||
* @Version: 3.0
|
||||
**/
|
||||
@Repository
|
||||
public interface IUserLocationDao {
|
||||
public interface IUserLocationDao extends IInitBaseTable {
|
||||
|
||||
/**
|
||||
* 新增用户定位
|
||||
|
@ -39,6 +39,24 @@
|
||||
<result column="is_delete" property="isDelete"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 建表 -->
|
||||
<update id="createTable" parameterType="map">
|
||||
CREATE TABLE `map_user_location` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_location_id` char(36) DEFAULT NULL COMMENT '主键',
|
||||
`user_lng` varchar(255) DEFAULT NULL COMMENT '用户经度',
|
||||
`user_lat` varchar(255) DEFAULT NULL COMMENT '用户精度',
|
||||
`is_overstep` int(1) DEFAULT '0' COMMENT '是否越界',
|
||||
`user_username` varchar(255) DEFAULT NULL COMMENT '用户名',
|
||||
`user_name` varbinary(255) DEFAULT NULL COMMENT '昵称',
|
||||
`creator` char(36) DEFAULT NULL COMMENT '创建人',
|
||||
`gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`is_delete` int(1) DEFAULT '0' COMMENT '是否删除',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `user_location_id` (`user_location_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户定位';
|
||||
</update>
|
||||
|
||||
<!-- 新增用户定位 -->
|
||||
<insert id="save" parameterType="map" flushCache="true">
|
||||
INSERT INTO map_user_location(
|
||||
|
Loading…
Reference in New Issue
Block a user