开启缓存
This commit is contained in:
parent
96af171b9a
commit
eb52516baa
@ -2,6 +2,8 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cm.plugin.map.dao.IGridDao">
|
||||
|
||||
<cache/>
|
||||
|
||||
<resultMap id="gridRelationDTO" type="com.cm.plugin.map.pojo.dto.GridRelationDTO">
|
||||
<id column="relation_id" property="relationId"/>
|
||||
<result column="grid_id" property="gridId"/>
|
||||
@ -21,7 +23,7 @@
|
||||
</resultMap>
|
||||
|
||||
<!-- 保存网格 -->
|
||||
<insert id="saveGrid" parameterType="map">
|
||||
<insert id="saveGrid" parameterType="map" flushCache="true">
|
||||
INSERT INTO map_grid(
|
||||
grid_id,
|
||||
grid_name,
|
||||
@ -44,7 +46,7 @@
|
||||
</insert>
|
||||
|
||||
<!-- 保存网格关联关系 -->
|
||||
<insert id="saveGridRelation" parameterType="map">
|
||||
<insert id="saveGridRelation" parameterType="map" flushCache="true">
|
||||
INSERT INTO map_grid_relation(
|
||||
grid_id,
|
||||
relation_id
|
||||
@ -55,7 +57,7 @@
|
||||
</insert>
|
||||
|
||||
<!-- 删除网格 -->
|
||||
<delete id="deleteGrid" parameterType="map">
|
||||
<delete id="deleteGrid" parameterType="map" flushCache="true">
|
||||
DELETE FROM
|
||||
map_grid
|
||||
WHERE
|
||||
@ -71,7 +73,7 @@
|
||||
</delete>
|
||||
|
||||
<!-- 删除网格点 -->
|
||||
<delete id="deleteGridPoint" parameterType="map">
|
||||
<delete id="deleteGridPoint" parameterType="map" flushCache="true">
|
||||
DELETE FROM
|
||||
map_grid_point
|
||||
WHERE
|
||||
@ -87,7 +89,7 @@
|
||||
</delete>
|
||||
|
||||
<!-- 删除网格关联关系 -->
|
||||
<delete id="deleteGridRelation" parameterType="map">
|
||||
<delete id="deleteGridRelation" parameterType="map" flushCache="true">
|
||||
DELETE FROM
|
||||
map_grid_relation
|
||||
WHERE
|
||||
@ -106,7 +108,7 @@
|
||||
</delete>
|
||||
|
||||
<!-- 保存网格点 -->
|
||||
<insert id="saveGridPoint" parameterType="map">
|
||||
<insert id="saveGridPoint" parameterType="map" flushCache="true">
|
||||
INSERT INTO map_grid_point(
|
||||
grid_id,
|
||||
lng,
|
||||
@ -119,7 +121,7 @@
|
||||
</insert>
|
||||
|
||||
<!-- 获取关联关系列表 -->
|
||||
<select id="listGridRelation" parameterType="map" resultMap="gridRelationDTO">
|
||||
<select id="listGridRelation" parameterType="map" resultMap="gridRelationDTO" useCache="true">
|
||||
SELECT
|
||||
relation_id,
|
||||
grid_id
|
||||
@ -152,7 +154,7 @@
|
||||
</select>
|
||||
|
||||
<!-- 获取网格列表(通过关联ID) -->
|
||||
<select id="listGridByRelationId" parameterType="java.lang.String" resultMap="gridDTO">
|
||||
<select id="listGridByRelationId" parameterType="java.lang.String" resultMap="gridDTO" useCache="true">
|
||||
SELECT
|
||||
t1.grid_id,
|
||||
t1.fill_color,
|
||||
@ -170,7 +172,7 @@
|
||||
t2.relation_id = #{_parameter}
|
||||
</select>
|
||||
|
||||
<select id="listGridByRelationIds" parameterType="java.util.List" resultMap="gridDTO">
|
||||
<select id="listGridByRelationIds" parameterType="java.util.List" resultMap="gridDTO" useCache="true">
|
||||
SELECT
|
||||
t1.grid_id,
|
||||
t1.fill_color,
|
||||
@ -192,7 +194,7 @@
|
||||
</select>
|
||||
|
||||
<!-- 获取网格点列表(通过网格ID) -->
|
||||
<select id="listPointByGridId" parameterType="java.lang.String" resultMap="gridPointDTO">
|
||||
<select id="listPointByGridId" parameterType="java.lang.String" resultMap="gridPointDTO" useCache="true">
|
||||
SELECT
|
||||
grid_id,
|
||||
lng,
|
||||
@ -204,7 +206,7 @@
|
||||
</select>
|
||||
|
||||
<!-- 获取网格点列表(通过网格ID列表) -->
|
||||
<select id="listPointByGridIds" parameterType="java.util.List" resultMap="gridPointDTO">
|
||||
<select id="listPointByGridIds" parameterType="java.util.List" resultMap="gridPointDTO" useCache="true">
|
||||
SELECT
|
||||
grid_id,
|
||||
lng,
|
||||
|
@ -1,14 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<base th:href="${#request.getContextPath() + '/'} ">
|
||||
<meta charset="utf-8">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/api?type=webgl&v=1.0&ak=mlfOah4gWM1FjEo9CmlI64zK6MhyiMPW"></script>
|
||||
<script type="text/javascript" src="js/baidu-map.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user