| File was renamed from ard-system/src/main/resources/mapper/data/ArdMapManagementMapper.xml |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ard.data.mapper.ArdMapManagementMapper"> |
| | | <mapper namespace="com.ard.data.map.mapper.ArdMapMapper"> |
| | | |
| | | <resultMap type="ArdMapManagement" id="ArdMapManagementResult"> |
| | | <resultMap type="ArdMap" id="ArdMapResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="mapName" column="map_name" /> |
| | | <result property="mapType" column="map_type" /> |
| | |
| | | <result property="mapPath" column="map_path" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdMapManagementVo"> |
| | | <sql id="selectArdMapVo"> |
| | | select id, |
| | | map_name, |
| | | map_type, |
| | |
| | | from ard_map_management |
| | | </sql> |
| | | |
| | | <select id="selectArdMapManagementList" parameterType="ArdMapManagement" resultMap="ArdMapManagementResult"> |
| | | <include refid="selectArdMapManagementVo"/> |
| | | <select id="selectArdMapList" parameterType="ArdMap" resultMap="ArdMapResult"> |
| | | <include refid="selectArdMapVo"/> |
| | | <where> |
| | | <if test="mapName != null and mapName != ''"> and map_name like concat('%', #{mapName}, '%')</if> |
| | | <if test="mapType != null and mapType != ''"> and map_type = #{mapType}</if> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectArdMapManagementById" parameterType="String" resultMap="ArdMapManagementResult"> |
| | | <include refid="selectArdMapManagementVo"/> |
| | | <select id="selectArdMapById" parameterType="String" resultMap="ArdMapResult"> |
| | | <include refid="selectArdMapVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertArdMapManagement" parameterType="ArdMapManagement"> |
| | | <insert id="insertArdMap" parameterType="ArdMap"> |
| | | insert into ard_map_management |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdMapManagement" parameterType="ArdMapManagement"> |
| | | <update id="updateArdMap" parameterType="ArdMap"> |
| | | update ard_map_management |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="mapName != null">map_name = #{mapName},</if> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteArdMapManagementById" parameterType="String"> |
| | | <delete id="deleteArdMapById" parameterType="String"> |
| | | delete from ard_map_management where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdMapManagementByIds" parameterType="String"> |
| | | <delete id="deleteArdMapByIds" parameterType="String"> |
| | | delete from ard_map_management where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |