|
@@ -1,30 +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="cn.reghao.tnb.content.app.geo.db.mapper.GeoScopeMapper">
|
|
|
|
|
- <insert id="save" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
- insert into geo_scope
|
|
|
|
|
- (`id`,`pid`,`name`,`lng_east`,`lng_west`,`lat_north`,`lat_south`)
|
|
|
|
|
- values
|
|
|
|
|
- (#{id},#{pid},#{name},#{lngEast},#{lngWest},#{latNorth},#{latSouth})
|
|
|
|
|
- </insert>
|
|
|
|
|
- <insert id="saveAll" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
- insert ignore into geo_scope
|
|
|
|
|
- (`id`,`pid`,`name`,`lng_east`,`lng_west`,`lat_north`,`lat_south`)
|
|
|
|
|
- values
|
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=",">
|
|
|
|
|
- (#{item.id},#{item.pid},#{item.name},#{item.lngEast},#{item.lngWest},#{item.latNorth},#{item.latSouth})
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </insert>
|
|
|
|
|
-
|
|
|
|
|
- <select id="findById" resultType="cn.reghao.tnb.content.app.geo.model.po.GeoScope">
|
|
|
|
|
- select *
|
|
|
|
|
- from geo_scope
|
|
|
|
|
- where `id`=#{id}
|
|
|
|
|
- </select>
|
|
|
|
|
- <select id="findByName" resultType="cn.reghao.tnb.content.app.geo.model.po.GeoScope">
|
|
|
|
|
- select *
|
|
|
|
|
- from geo_scope
|
|
|
|
|
- where `name` like concat('%',#{name},'%')
|
|
|
|
|
- </select>
|
|
|
|
|
-</mapper>
|
|
|