|
@@ -30,20 +30,6 @@
|
|
|
online_incomplete_playback, online_complete_playback
|
|
|
</sql>
|
|
|
|
|
|
- <!-- 根据ID查询销售观看统计 -->
|
|
|
- <select id="findById" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
- SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
- FROM fs_statis_saler_watch
|
|
|
- WHERE id = #{id,jdbcType=INTEGER}
|
|
|
- </select>
|
|
|
-
|
|
|
- <!-- 查询所有销售观看统计 -->
|
|
|
- <select id="findAll" resultMap="BaseResultMap">
|
|
|
- SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
- FROM fs_statis_saler_watch
|
|
|
- </select>
|
|
|
<select id="queryList" resultType="com.fs.statis.domain.FsStatisSalerWatch">
|
|
|
select * from fs_statis_saler_watch
|
|
|
<where>
|
|
@@ -65,51 +51,36 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
- <!-- 新增销售观看统计 -->
|
|
|
- <insert id="insert" parameterType="com.fs.statis.domain.FsStatisSalerWatch" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
|
|
|
+ <insert id="batchSave">
|
|
|
INSERT INTO fs_statis_saler_watch (
|
|
|
dept_id, company_user_id, train_camp_num,
|
|
|
not_registered_num, registered_num, reg_rate,
|
|
|
finished_rate, offline_total, offline_not_part,
|
|
|
offline_not_watched, online_total, online_online_rate,
|
|
|
online_playback_comple_rate, online_incomplete_playback,
|
|
|
- online_complete_playback
|
|
|
- ) VALUES (
|
|
|
- #{deptId,jdbcType=INTEGER}, #{companyUserId,jdbcType=INTEGER}, #{trainCampNum,jdbcType=INTEGER},
|
|
|
- #{notRegisteredNum,jdbcType=INTEGER}, #{registeredNum,jdbcType=INTEGER}, #{regRate,jdbcType=FLOAT},
|
|
|
- #{finishedRate,jdbcType=FLOAT}, #{offlineTotal,jdbcType=INTEGER}, #{offlineNotPart,jdbcType=INTEGER},
|
|
|
- #{offlineNotWatched,jdbcType=INTEGER}, #{onlineTotal,jdbcType=INTEGER}, #{onlineOnlineRate,jdbcType=FLOAT},
|
|
|
- #{onlinePlaybackCompleRate,jdbcType=FLOAT}, #{onlineIncompletePlayback,jdbcType=INTEGER},
|
|
|
- #{onlineCompletePlayback,jdbcType=INTEGER}
|
|
|
- )
|
|
|
+ online_complete_playback,period_id,data_date
|
|
|
+ ) VALUES
|
|
|
+ <foreach collection="list" item="item" separator=",">
|
|
|
+ (
|
|
|
+ #{item.deptId,jdbcType=INTEGER},
|
|
|
+ #{item.companyUserId,jdbcType=INTEGER},
|
|
|
+ #{item.trainCampNum,jdbcType=INTEGER},
|
|
|
+ #{item.notRegisteredNum,jdbcType=INTEGER},
|
|
|
+ #{item.registeredNum,jdbcType=INTEGER},
|
|
|
+ #{item.regRate,jdbcType=FLOAT},
|
|
|
+ #{item.finishedRate,jdbcType=FLOAT},
|
|
|
+ #{item.offlineTotal,jdbcType=INTEGER},
|
|
|
+ #{item.offlineNotPart,jdbcType=INTEGER},
|
|
|
+ #{item.offlineNotWatched,jdbcType=INTEGER},
|
|
|
+ #{item.onlineTotal,jdbcType=INTEGER},
|
|
|
+ #{item.onlineOnlineRate,jdbcType=FLOAT},
|
|
|
+ #{item.onlinePlaybackCompleRate,jdbcType=FLOAT},
|
|
|
+ #{item.onlineIncompletePlayback,jdbcType=INTEGER},
|
|
|
+ #{item.onlineCompletePlayback,jdbcType=INTEGER},
|
|
|
+ #{item.periodId,jdbcType=INTEGER},
|
|
|
+ #{item.dataDate,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </foreach>
|
|
|
</insert>
|
|
|
|
|
|
- <!-- 更新销售观看统计 -->
|
|
|
- <update id="update" parameterType="com.fs.statis.domain.FsStatisSalerWatch">
|
|
|
- UPDATE fs_statis_saler_watch
|
|
|
- SET
|
|
|
- dept_id = #{deptId,jdbcType=INTEGER},
|
|
|
- company_user_id = #{companyUserId,jdbcType=INTEGER},
|
|
|
- train_camp_num = #{trainCampNum,jdbcType=INTEGER},
|
|
|
- not_registered_num = #{notRegisteredNum,jdbcType=INTEGER},
|
|
|
- registered_num = #{registeredNum,jdbcType=INTEGER},
|
|
|
- reg_rate = #{regRate,jdbcType=FLOAT},
|
|
|
- finished_rate = #{finishedRate,jdbcType=FLOAT},
|
|
|
- offline_total = #{offlineTotal,jdbcType=INTEGER},
|
|
|
- offline_not_part = #{offlineNotPart,jdbcType=INTEGER},
|
|
|
- offline_not_watched = #{offlineNotWatched,jdbcType=INTEGER},
|
|
|
- online_total = #{onlineTotal,jdbcType=INTEGER},
|
|
|
- online_online_rate = #{onlineOnlineRate,jdbcType=FLOAT},
|
|
|
- online_playback_comple_rate = #{onlinePlaybackCompleRate,jdbcType=FLOAT},
|
|
|
- online_incomplete_playback = #{onlineIncompletePlayback,jdbcType=INTEGER},
|
|
|
- online_complete_playback = #{onlineCompletePlayback,jdbcType=INTEGER}
|
|
|
- WHERE id = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
-
|
|
|
- <!-- 根据ID删除销售观看统计 -->
|
|
|
- <delete id="deleteById" parameterType="java.lang.Integer">
|
|
|
- DELETE FROM fs_statis_saler_watch
|
|
|
- WHERE id = #{id,jdbcType=INTEGER}
|
|
|
- </delete>
|
|
|
-
|
|
|
</mapper>
|