|
@@ -23,6 +23,7 @@
|
|
<result column="download_num" jdbcType="BIGINT" property="downloadNum" />
|
|
<result column="download_num" jdbcType="BIGINT" property="downloadNum" />
|
|
<result column="icon" jdbcType="VARCHAR" property="icon" />
|
|
<result column="icon" jdbcType="VARCHAR" property="icon" />
|
|
<result column="dir_code" jdbcType="VARCHAR" property="dirCode" />
|
|
<result column="dir_code" jdbcType="VARCHAR" property="dirCode" />
|
|
|
|
+ <result column="visit" jdbcType="BIGINT" property="visit" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.fdage.pojo.TbCollection">
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.fdage.pojo.TbCollection">
|
|
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
|
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
|
@@ -46,6 +47,17 @@
|
|
delete from tb_collection
|
|
delete from tb_collection
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</delete>
|
|
</delete>
|
|
|
|
+
|
|
|
|
+ <select id="countVisit" resultType="java.lang.Long">
|
|
|
|
+ SELECT SUM(visit) from tb_collection;
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <update id="addVisit" parameterType="java.lang.Long">
|
|
|
|
+ update tb_collection set visit = visit + 1 where id = #{id,jdbcType=BIGINT}
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+
|
|
<insert id="insert" parameterType="com.fdage.pojo.TbCollection">
|
|
<insert id="insert" parameterType="com.fdage.pojo.TbCollection">
|
|
insert into tb_collection (id, name, type_id,
|
|
insert into tb_collection (id, name, type_id,
|
|
time_id, num, discovery_time, repair_time,
|
|
time_id, num, discovery_time, repair_time,
|