|
@@ -0,0 +1,51 @@
|
|
|
+<?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.redxun.knowledge.map.mapper.MapContentMapper">
|
|
|
+
|
|
|
+ <resultMap id="MapContent" type="com.redxun.knowledge.map.entity.dao.MapContent">
|
|
|
+ <id property="pkId" column="PK_ID" jdbcType="VARCHAR"/>
|
|
|
+ <result property="mapId" column="MAP_ID" jdbcType="VARCHAR"/>
|
|
|
+ <result property="routeId" column="ROUTE_ID" jdbcType="VARCHAR"/>
|
|
|
+ <result property="type" column="TYPE" jdbcType="NUMERIC"/>
|
|
|
+ <result property="state" column="STATE" jdbcType="NUMERIC"/>
|
|
|
+ <result property="knowledgeId" column="KNOWLEDGE_ID" jdbcType="VARCHAR"/>
|
|
|
+ <result property="outerSystemName" column="OUTER_SYSTEM_NAME" jdbcType="VARCHAR"/>
|
|
|
+ <result property="outerContentName" column="OUTER_CONTENT_NAME" jdbcType="VARCHAR"/>
|
|
|
+ <result property="outerAccessUrl" column="OUTER_ACCESS_URL" jdbcType="VARCHAR"/>
|
|
|
+ <result property="sort" column="SORT" jdbcType="NUMERIC"/>
|
|
|
+ <result property="isDel" column="IS_DEL" jdbcType="NUMERIC"/>
|
|
|
+ <result property="companyId" column="COMPANY_ID_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createDepId" column="CREATE_DEP_ID_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="tenantId" column="TENANT_ID_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createBy" column="CREATE_BY_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createTime" column="CREATE_TIME_" jdbcType="DATE"/>
|
|
|
+ <result property="updateBy" column="UPDATE_BY_" jdbcType="VARCHAR"/>
|
|
|
+ <result property="updateTime" column="UPDATE_TIME_" jdbcType="DATE"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="COLUMNS">
|
|
|
+ PK_ID,MAP_ID,ROUTE_ID,TYPE,STATE,
|
|
|
+ KNOWLEDGE_ID,OUTER_SYSTEM_NAME,OUTER_CONTENT_NAME,OUTER_ACCESS_URL,SORT,IS_DEL,
|
|
|
+ COMPANY_ID_,CREATE_DEP_ID_,TENANT_ID_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_
|
|
|
+ </sql>
|
|
|
+ <select id="query" resultType="com.redxun.knowledge.map.entity.dao.MapContent" parameterType="java.util.Map">
|
|
|
+ select PK_ID,MAP_ID,ROUTE_ID,TYPE,STATE,
|
|
|
+ KNOWLEDGE_ID,OUTER_SYSTEM_NAME,OUTER_CONTENT_NAME,OUTER_ACCESS_URL,SORT,IS_DEL,
|
|
|
+ COMPANY_ID_,CREATE_DEP_ID_,TENANT_ID_,CREATE_BY_,CREATE_TIME_,UPDATE_BY_,UPDATE_TIME_
|
|
|
+ from KM_MAP_CONTENT
|
|
|
+ <where>
|
|
|
+ <if test="@rx.Ognl@isNotEmpty(w.whereSql)">
|
|
|
+ ${w.whereSql}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <if test="@rx.Ognl@isNotEmpty(w.orderBySql)">
|
|
|
+ ORDER BY ${w.orderBySql}
|
|
|
+ </if>
|
|
|
+ <if test="@rx.Ognl@isEmpty(w.orderBySql)">
|
|
|
+ ORDER BY PK_ID DESC
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|
|
|
+
|
|
|
+
|