更新
This commit is contained in:
@ -103,5 +103,13 @@
|
||||
</if>
|
||||
|
||||
</select>
|
||||
<select id="selectMain" resultMap="RM_Inform">
|
||||
SELECT <include refid="columns_Infrom"/> FROM urban_impervious_surface
|
||||
where country='澜湄流域'
|
||||
<if test="year!= null and year !=''">
|
||||
AND year = #{year}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,127 @@
|
||||
<?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.ruoyi.system.mapper_yada.SpecialReportMapper">
|
||||
|
||||
<resultMap id="RM_Special" type="com.ruoyi.system.domain_yada.SpecialVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="fileName" column="file_name"/>
|
||||
<result property="dateTime" column="date_time"/>
|
||||
<result property="spaceDistinguish" column="space_distinguish"/>
|
||||
<result property="timeDistinguish" column="time_distinguish"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="filePath" column="file_path"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="RM_Upload" type="com.ruoyi.system.domain_yada.UploadSpecialVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="fileName" column="file_name"/>
|
||||
<result property="uploadNum" column="upload_num"/>
|
||||
<result property="filePath" column="file_path"/>
|
||||
<result property="remarks1" column="remarks1"/>
|
||||
<result property="sign" column="sign"/>
|
||||
<result property="remarks2" column="remarks2"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,file_name,file_path,date_time,space_distinguish,time_distinguish,zone,created_by,created_time
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<sql id="Upload">
|
||||
<![CDATA[
|
||||
id,file_name,upload_num,file_path,remarks1,remarks2,type,created_by,created_time,sign
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectSpecial" resultMap="RM_Special">
|
||||
SELECT <include refid="columns"/> FROM special_table
|
||||
WHERE 1=1
|
||||
<if test="zone!= null and zone !=''">
|
||||
AND zone = #{zone}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectUploadSpecial" resultMap="RM_Upload">
|
||||
SELECT <include refid="Upload"/> FROM upload_special
|
||||
WHERE type='1'
|
||||
<if test="fileName!= null and fileName !=''">
|
||||
AND file_name = #{fileName}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectUploadSpecial1" resultMap="RM_Upload">
|
||||
SELECT <include refid="Upload"/> FROM upload_special
|
||||
WHERE type='2'
|
||||
<if test="fileName!= null and fileName !=''">
|
||||
AND file_name = #{fileName}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="DelSpecial">
|
||||
DELETE FROM special_table
|
||||
WHERE ID=#{id}
|
||||
</delete>
|
||||
|
||||
<insert id="IntoSpecial">
|
||||
<![CDATA[
|
||||
INSERT INTO special_table (
|
||||
file_name ,
|
||||
date_time ,
|
||||
space_distinguish ,
|
||||
time_distinguish ,
|
||||
zone ,
|
||||
created_by,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
#{dateTime,jdbcType=VARCHAR},
|
||||
#{spaceDistinguish,jdbcType=VARCHAR},
|
||||
#{timeDistinguish,jdbcType=DOUBLE},
|
||||
#{zone,jdbcType=DOUBLE},
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<update id="updateUploadSpecial">
|
||||
update upload_special set upload_num=upload_num+1
|
||||
where id=#{id}
|
||||
</update>
|
||||
|
||||
<insert id="IntoUploadSpecial">
|
||||
<![CDATA[
|
||||
INSERT INTO upload_special (
|
||||
file_name ,
|
||||
upload_num ,
|
||||
file_path ,
|
||||
remarks1 ,
|
||||
remarks2 ,
|
||||
type,
|
||||
created_by,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
#{uploadNum,jdbcType=INTEGER},
|
||||
#{filePath,jdbcType=VARCHAR},
|
||||
#{remarks1,jdbcType=VARCHAR},
|
||||
#{remarks2,jdbcType=VARCHAR},
|
||||
#{type,jdbcType=VARCHAR},
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
</mapper>
|
@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="pictureTime" column="picture_time"/>
|
||||
<result property="picturePath" column="picture_path"/>
|
||||
<result property="remarks" column="remarks"/>
|
||||
<result property="year" column="year"/>
|
||||
<result property="createdBy" column="created_by"/>
|
||||
<result property="createdTime" column="created_time"/>
|
||||
</resultMap>
|
||||
@ -30,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,picture_zh,picture_code,picture_type_one,picture_type_two,picture_en,picture_name,picture_type,picture_time,picture_path,picture_time,remarks,created_by,created_time
|
||||
id,picture_zh,year,picture_code,picture_type_one,picture_type_two,picture_en,picture_name,picture_type,picture_time,picture_path,picture_time,remarks,created_by,created_time
|
||||
]]>
|
||||
</sql>
|
||||
<sql id="cloumns_Map">
|
||||
|
Reference in New Issue
Block a user