核心SDK提交
This commit is contained in:
19
src/main/resources/mapper/PakBlocksMapper.xml
Normal file
19
src/main/resources/mapper/PakBlocksMapper.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?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.yjdsj.pak.mapper.PakBlocksMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.yjdsj.pak.domain.PakBlocks">
|
||||
<id column="z" jdbcType="INTEGER" property="z"/>
|
||||
<id column="x" jdbcType="INTEGER" property="x"/>
|
||||
<id column="y" jdbcType="INTEGER" property="y"/>
|
||||
<result property="tile" column="tile" typeHandler="com.yjdsj.common.handler.BlobTypeHandler"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectByCondition" resultMap="BaseResultMap">
|
||||
SELECT *
|
||||
FROM ${tableName}
|
||||
WHERE z = #{z}
|
||||
AND x = #{x}
|
||||
AND y = #{y}
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user