|
@@ -1,44 +0,0 @@
|
|
|
-<?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.zhaoliangsz.grainsearch.mapper.FilFileMapper">
|
|
|
-
|
|
|
-
|
|
|
- <!-- 通用查询映射结果 -->
|
|
|
- <resultMap id="BaseResultMap" type="com.zhaoliangsz.grainsearch.domain.entity.FilFile">
|
|
|
- <result column="ff_id" property="ffId" />
|
|
|
- <result column="ff_biz_id" property="ffBizId" />
|
|
|
- <result column="ff_biz_type" property="ffBizType" />
|
|
|
- <result column="ff_file_name" property="ffFileName" />
|
|
|
- <result column="ff_relative_path" property="ffRelativePath" />
|
|
|
- <result column="creator_id" property="creatorId" />
|
|
|
- <result column="create_by" property="createBy" />
|
|
|
- <result column="create_time" property="createTime" />
|
|
|
- <result column="update_by" property="updateBy" />
|
|
|
- <result column="update_time" property="updateTime" />
|
|
|
- <result column="has_deleted" property="hasDeleted" />
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <!-- 通用查询结果列 -->
|
|
|
- <sql id="Base_Column_List">
|
|
|
- ff_id, ff_biz_id, ff_biz_type, ff_file_name, ff_relative_path, creator_id, create_by, create_time, update_by, update_time, has_deleted
|
|
|
- </sql>
|
|
|
-
|
|
|
-
|
|
|
- <select id="getCountByCondition" parameterType="Map" resultType="java.lang.Integer">
|
|
|
- SELECT
|
|
|
- COUNT(1)
|
|
|
- FROM fil_file
|
|
|
- WHERE has_deleted = '0'
|
|
|
- </select>
|
|
|
- <select id="getListByCondition" parameterType="Map"
|
|
|
- resultType="com.zhaoliangsz.grainsearch.domain.entity.FilFile">
|
|
|
- SELECT
|
|
|
- *
|
|
|
- FROM fil_file
|
|
|
- WHERE has_deleted = '0'
|
|
|
- ORDER BY update_time DESC
|
|
|
- <if test="currentPage != null and currentPage != ''">
|
|
|
- LIMIT ${startRecord}, ${pageSize}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-</mapper>
|