|
@@ -4,71 +4,66 @@
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.project.VRdemo.mapper.DataExcelMapper">
|
|
|
<resultMap type="ExportApp" id="ExportResult">
|
|
|
- <result property="appId" column="app_id" />
|
|
|
- <result property="title" column="title" />
|
|
|
- <result property="price" column="price" />
|
|
|
- <result property="path" column="path" />
|
|
|
- <result property="spots" column="spots" />
|
|
|
- <result property="status" column="status" />
|
|
|
- <result property="create_by" column="create_by" />
|
|
|
- <result property="create_time" column="create_time" />
|
|
|
- <result property="update_by" column="update_by" />
|
|
|
- <result property="update_time" column="update_time" />
|
|
|
+ <result property="appId" column="app_id"/>
|
|
|
+ <result property="title" column="title"/>
|
|
|
+ <result property="price" column="price"/>
|
|
|
+ <result property="path" column="path"/>
|
|
|
+ <result property="spots" column="spots"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="create_by" column="create_by"/>
|
|
|
+ <result property="create_time" column="create_time"/>
|
|
|
+ <result property="update_by" column="update_by"/>
|
|
|
+ <result property="update_time" column="update_time"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="NoticeExData" id="ExportNoticeResult">
|
|
|
- <result property="id" column="id" />
|
|
|
- <result property="companyId" column="company_id" />
|
|
|
- <result property="title" column="title" />
|
|
|
- <result property="speaker" column="speaker" />
|
|
|
- <result property="sponsor" column="sponsor" />
|
|
|
- <result property="host" column="host" />
|
|
|
- <result property="panelist" column="panelist" />
|
|
|
- <result property="holdingType" column="holding_type" />
|
|
|
- <result property="holdingTime" column="holding_time" />
|
|
|
- <result property="comment" column="comment" />
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="companyId" column="company_id"/>
|
|
|
+ <result property="title" column="title"/>
|
|
|
+ <result property="speaker" column="speaker"/>
|
|
|
+ <result property="sponsor" column="sponsor"/>
|
|
|
+ <result property="host" column="host"/>
|
|
|
+ <result property="panelist" column="panelist"/>
|
|
|
+ <result property="holdingType" column="holding_type"/>
|
|
|
+ <result property="holdingTime" column="holding_time"/>
|
|
|
+ <result property="comment" column="comment"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="StudyExData" id="StudyDataResult">
|
|
|
- <result property="id" column="id" />
|
|
|
- <result property="companyId" column="company_id" />
|
|
|
- <result property="dataType" column="data_type" />
|
|
|
- <result property="title" column="title" />
|
|
|
- <result property="longTitle" column="long_title" />
|
|
|
- <result property="year" column="year" />
|
|
|
- <result property="month" column="month" />
|
|
|
- <result property="author" column="author" />
|
|
|
- <result property="path" column="path" />
|
|
|
- <result property="url" column="url" />
|
|
|
- <result property="create_time" column="create_time" />
|
|
|
- <result property="update_time" column="update_time" />
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <resultMap type="Press" id="PressResult">
|
|
|
- <result property="pressId" column="press_id" />
|
|
|
- <result property="title" column="title" />
|
|
|
- <result property="author" column="author" />
|
|
|
- <result property="pressTitle" column="press_title" />
|
|
|
- <result property="issue" column="issue" />
|
|
|
- <result property="pages" column="pages" />
|
|
|
- <result property="keyword" column="keyword" />
|
|
|
- <result property="classify" column="classify" />
|
|
|
- <result property="area" column="area" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="companyId" column="company_id"/>
|
|
|
+ <result property="dataType" column="data_type"/>
|
|
|
+ <result property="title" column="title"/>
|
|
|
+ <result property="longTitle" column="long_title"/>
|
|
|
+ <result property="year" column="year"/>
|
|
|
+ <result property="month" column="month"/>
|
|
|
+ <result property="author" column="author"/>
|
|
|
+ <result property="path" column="path"/>
|
|
|
+ <result property="url" column="url"/>
|
|
|
+ <result property="create_time" column="create_time"/>
|
|
|
+ <result property="update_time" column="update_time"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getAppData" resultMap="ExportResult">
|
|
|
- select app_id, title, price, path, spots, status, create_by, create_time, update_by, update_time from vr_app
|
|
|
+ select app_id,
|
|
|
+ title,
|
|
|
+ price,
|
|
|
+ path,
|
|
|
+ spots,
|
|
|
+ status,
|
|
|
+ create_by,
|
|
|
+ create_time,
|
|
|
+ update_by,
|
|
|
+ update_time
|
|
|
+ from vr_app
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertAppDataList" parameterType="java.util.List">
|
|
|
INSERT INTO vr_app(title, price, path, spots, status, create_by, create_time, update_by, update_time)
|
|
|
VALUES
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.title}, #{item.price}, #{item.path}, #{item.spots}, #{item.status}, #{item.create_by}, #{item.create_time}, #{item.update_by}, #{item.update_time})
|
|
|
+ (#{item.title}, #{item.price}, #{item.path}, #{item.spots}, #{item.status}, #{item.create_by},
|
|
|
+ #{item.create_time}, #{item.update_by}, #{item.update_time})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -81,7 +76,8 @@
|
|
|
<!-- 新增应用 -->
|
|
|
<insert id="insertImApp" parameterType="com.ruoyi.project.VRdemo.domain.ImportApp">
|
|
|
INSERT INTO vr_app(title, price, path, spots, status, create_by, create_time, update_by, update_time)
|
|
|
- VALUES (#{title}, #{price}, #{path}, #{spots}, #{status}, #{create_by}, #{create_time}, #{update_by}, #{update_time})
|
|
|
+ VALUES (#{title}, #{price}, #{path}, #{spots}, #{status}, #{create_by}, #{create_time}, #{update_by},
|
|
|
+ #{update_time})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 修改应用 -->
|
|
@@ -100,25 +96,37 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="getNoticeData" resultMap="ExportNoticeResult">
|
|
|
- select id, company_id, title, speaker, sponsor, host, panelist, holding_type,holding_time, comment from vr_notice_data
|
|
|
+ select id,
|
|
|
+ company_id,
|
|
|
+ title,
|
|
|
+ speaker,
|
|
|
+ sponsor,
|
|
|
+ host,
|
|
|
+ panelist,
|
|
|
+ holding_type,
|
|
|
+ holding_time,
|
|
|
+ comment
|
|
|
+ from vr_notice_data
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertNoticeDataList" parameterType="java.util.List">
|
|
|
- INSERT INTO vr_notice_data(company_id, title, speaker, sponsor, host, panelist, holding_type,holding_time, comment)
|
|
|
+ INSERT INTO vr_notice_data(company_id, title, speaker, sponsor, host, panelist, holding_type,holding_time,
|
|
|
+ comment)
|
|
|
VALUES
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.company_id}, #{item.title}, #{item.speaker}, #{item.sponsor}, #{item.host}, #{item.panelist}, #{item.holding_type}, #{item.holding_time}, #{item.comment})
|
|
|
+ (#{item.company_id}, #{item.title}, #{item.speaker}, #{item.sponsor}, #{item.host}, #{item.panelist},
|
|
|
+ #{item.holding_type}, #{item.holding_time}, #{item.comment})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
- <select id="selectNoticeByTitle" resultType="com.ruoyi.project.VRdemo.domain.NoticeImData">
|
|
|
+ <select id="selectNoticeByTitle" resultType="com.ruoyi.project.VRdemo.domain.imData.NoticeImData">
|
|
|
SELECT *
|
|
|
FROM vr_notice_data
|
|
|
WHERE title = #{title}
|
|
|
</select>
|
|
|
|
|
|
<!-- 修改应用 -->
|
|
|
- <update id="updateImNotice" parameterType="com.ruoyi.project.VRdemo.domain.NoticeImData">
|
|
|
+ <update id="updateImNotice" parameterType="com.ruoyi.project.VRdemo.domain.imData.NoticeImData">
|
|
|
update vr_notice_data
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="company_id != null and company_id != ''">company_id = #{company_id},</if>
|
|
@@ -135,125 +143,48 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="getStudyData" resultMap="StudyDataResult">
|
|
|
- select id, company_id, data_type, title, long_title, year, month, author, path, url, create_time, update_time from vr_study_data
|
|
|
+ select id,
|
|
|
+ company_id,
|
|
|
+ data_type,
|
|
|
+ title,
|
|
|
+ long_title,
|
|
|
+ year,
|
|
|
+ month,
|
|
|
+ author,
|
|
|
+ path,
|
|
|
+ url,
|
|
|
+ create_time,
|
|
|
+ update_time
|
|
|
+ from vr_study_data
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectStudyByTitle" resultType="com.ruoyi.project.VRdemo.domain.StudyImData">
|
|
|
+ <select id="selectStudyByTitle" resultType="com.ruoyi.project.VRdemo.domain.imData.StudyImData">
|
|
|
SELECT *
|
|
|
FROM vr_study_data
|
|
|
WHERE title = #{title}
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectPressByTitle" resultType="com.ruoyi.project.VRdemo.domain.Press">
|
|
|
- SELECT *
|
|
|
- FROM vr_press
|
|
|
- WHERE title = #{titleAsLong}
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="selectThesisByTitle" resultType="com.ruoyi.project.VRdemo.domain.Thesis">
|
|
|
- SELECT *
|
|
|
- FROM vr_thesis
|
|
|
- WHERE title = #{titleAsLong}
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="selectResearchByTitle" resultType="com.ruoyi.project.VRdemo.domain.Research">
|
|
|
- SELECT *
|
|
|
- FROM vr_research
|
|
|
- WHERE title = #{titleAsLong}
|
|
|
- </select>
|
|
|
-
|
|
|
<!-- 批量插入活动预告数据列表 -->
|
|
|
<insert id="insertStudyDataList" parameterType="java.util.List">
|
|
|
INSERT INTO vr_study_data (title, long_title, year, month, author, create_time, update_time)
|
|
|
VALUES
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.title}, #{item.longTitle}, #{item.year}, #{item.month}, #{item.author}, #{item.create_time}, #{item.update_time})
|
|
|
+ (#{item.title}, #{item.longTitle}, #{item.year}, #{item.month}, #{item.author}, #{item.create_time},
|
|
|
+ #{item.update_time})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<!-- 更新研究数据 -->
|
|
|
- <update id="updateImStudy" parameterType="com.ruoyi.project.VRdemo.domain.StudyImData">
|
|
|
+ <update id="updateImStudy" parameterType="com.ruoyi.project.VRdemo.domain.imData.StudyImData">
|
|
|
UPDATE vr_study_data
|
|
|
- SET
|
|
|
- title = #{title},
|
|
|
- long_title = #{longTitle},
|
|
|
- year = #{year},
|
|
|
- month = #{month},
|
|
|
- author = #{author},
|
|
|
+ SET title = #{title},
|
|
|
+ long_title = #{longTitle},
|
|
|
+ year = #{year},
|
|
|
+ month = #{month},
|
|
|
+ author = #{author},
|
|
|
create_time = #{create_time},
|
|
|
update_time = #{update_time}
|
|
|
WHERE title = #{title}
|
|
|
</update>
|
|
|
|
|
|
- <update id="updatePressByImport" parameterType="com.ruoyi.project.VRdemo.domain.Press">
|
|
|
- update vr_press
|
|
|
- <trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="title != null">title = #{title},</if>
|
|
|
- <if test="author != null">author = #{author},</if>
|
|
|
- <if test="pressTitle != null">press_title = #{pressTitle},</if>
|
|
|
- <if test="issue != null">issue = #{issue},</if>
|
|
|
- <if test="pages != null">pages = #{pages},</if>
|
|
|
- <if test="keyword != null">keyword = #{keyword},</if>
|
|
|
- <if test="classify != null">classify = #{classify},</if>
|
|
|
- <if test="area != null">area = #{area},</if>
|
|
|
- <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
- <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
- </trim>
|
|
|
- where title = #{title}
|
|
|
- </update>
|
|
|
-
|
|
|
- <update id="updateThesisByImport" parameterType="com.ruoyi.project.VRdemo.domain.Thesis">
|
|
|
- update vr_thesis
|
|
|
- <trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="title != null">name = #{name},</if>
|
|
|
- <if test="author != null">teacher = #{teacher},</if>
|
|
|
- <if test="pressTitle != null">major = #{major},</if>
|
|
|
- <if test="issue != null">title = #{title},</if>
|
|
|
- <if test="pages != null">keyword = #{keyword},</if>
|
|
|
- <if test="keyword != null">reply_time = #{replyTime},</if>
|
|
|
- <if test="classify != null">degree = #{degree},</if>
|
|
|
- <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
- <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
- </trim>
|
|
|
- where title = #{title}
|
|
|
- </update>
|
|
|
-
|
|
|
- <update id="updateResearchByImport" parameterType="com.ruoyi.project.VRdemo.domain.Research">
|
|
|
- update vr_research
|
|
|
- <trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="title != null">title = #{title},</if>
|
|
|
- <if test="author != null">author = #{author},</if>
|
|
|
- <if test="pressTitle != null">institution = #{institution},</if>
|
|
|
- <if test="issue != null">topic = #{topic},</if>
|
|
|
- <if test="pages != null">publication_time = #{publicationTime},</if>
|
|
|
- <if test="keyword != null">category = #{category},</if>
|
|
|
- <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
- <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
- </trim>
|
|
|
- where title = #{title}
|
|
|
- </update>
|
|
|
-
|
|
|
- <insert id="insertPressDataList" parameterType="java.util.List">
|
|
|
- INSERT INTO vr_press (title, author, press_title, issue, date, pages, keyword, classify,area,create_by,create_time)
|
|
|
- VALUES
|
|
|
- <foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.title}, #{item.author}, #{item.pressTitle}, #{item.issue}, #{item.date}, #{item.pages}, #{item.keyword}, #{item.classify}, #{item.area}, #{item.createBy}, #{item.createTime})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <insert id="insertThesisDataList" parameterType="java.util.List">
|
|
|
- INSERT INTO vr_thesis (name, teacher, major, title, keyword, reply_time, degree, create_by,create_time)
|
|
|
- VALUES
|
|
|
- <foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.name}, #{item.teacher}, #{item.major}, #{item.title}, #{item.keyword}, #{item.replyTime}, #{item.degree}, #{item.createBy}, #{item.createTime})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <insert id="insertResearchDataList" parameterType="java.util.List">
|
|
|
- INSERT INTO vr_research (title, author, institution, topic, publication_time, category, create_by,create_time)
|
|
|
- VALUES
|
|
|
- <foreach collection="list" item="item" separator=",">
|
|
|
- (#{item.title}, #{item.author}, #{item.institution}, #{item.topic}, #{item.publicationTime}, #{item.category}, #{item.createBy}, #{item.createTime})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
</mapper>
|