Browse Source

fix bug:/rwd/def/funcid接口不返回dataSource字段

lijie 3 years ago
parent
commit
fa285806d1
1 changed files with 1 additions and 30 deletions
  1. 1 30
      dmp-business/dmp-rwd/src/main/resources/mapper/DefineInfoMapper.xml

+ 1 - 30
dmp-business/dmp-rwd/src/main/resources/mapper/DefineInfoMapper.xml

@@ -7,36 +7,7 @@
     且在xml自定义sql使用的是MybatisConfiguration类对象,
     无法使用mybatis-plus,所以这里定义了一个ResultMap-->
     <resultMap id="BaseResultMap" type="com.persagy.dmp.define.entity.ObjectInfoDefine">
-        <id property="id" column="id" jdbcType="VARCHAR"/>
-        <result property="code" column="code" jdbcType="VARCHAR"/>
-        <result property="name" column="name" jdbcType="VARCHAR"/>
-        <result property="aliasCode" column="alias_code" jdbcType="VARCHAR"/>
-        <result property="aliasName" column="alias_name" jdbcType="VARCHAR"/>
-        <result property="classCode" column="class_code" jdbcType="VARCHAR"/>
-        <result property="groupCode" column="group_code" jdbcType="VARCHAR"/>
-        <result property="projectId" column="project_id" jdbcType="VARCHAR"/>
-        <result property="category" column="category" jdbcType="VARCHAR"/>
-        <result property="firstTag" column="first_tag" jdbcType="VARCHAR"/>
-        <result property="secondTag" column="second_tag" jdbcType="VARCHAR"/>
-        <result property="priority" column="priority" jdbcType="VARCHAR"/>
-        <result property="inputMode" column="input_mode" jdbcType="VARCHAR"/>
-        <result property="unit" column="unit" jdbcType="VARCHAR"/>
-        <result property="dataType" column="data_type" jdbcType="VARCHAR"/>
-        <result property="isMultiple" column="is_multiple" jdbcType="INTEGER"/>
-        <result property="isRegion" column="is_region" jdbcType="INTEGER"/>
-        <result property="formater" column="formater" jdbcType="VARCHAR"/>
         <result property="dataSource" column="data_source" jdbcType="OTHER" typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"/>
-        <result property="remark" column="remark" jdbcType="VARCHAR"/>
-        <result property="subFlag" column="sub_flag" jdbcType="INTEGER"/>
-        <result property="weakPoint" column="weak_point" jdbcType="INTEGER"/>
-        <result property="showOrder" column="show_order" jdbcType="INTEGER"/>
-        <result property="version" column="version" jdbcType="VARCHAR"/>
-        <result property="creator" column="creator" jdbcType="VARCHAR"/>
-        <result property="creationTime" column="creation_time" jdbcType="CHAR"/>
-        <result property="modifier" column="modifier" jdbcType="VARCHAR"/>
-        <result property="modifiedTime" column="modified_time" jdbcType="CHAR"/>
-        <result property="valid" column="valid" jdbcType="TINYINT"/>
-        <result property="ts" column="ts" jdbcType="TIMESTAMP"/>
     </resultMap>
     <!-- 类型如果重复则会出现多条,因此这里先用distinct容错.将基础类型的信息点与非基础信息点一起返回,且class_code改为对应的非基础对象类型 -->
     <sql id="SelectColumns">
@@ -100,7 +71,7 @@
         ) T
         where T.class_code = dt_define_type.code and T.code = dt_define_info.code and T.max_show_level = <include refid="ShowLevelSQL"/>)
     </sql>
-    <select id="queryByClassCodes" resultMap="BaseResultMap">
+    <select id="queryByClassCodes" resultType="com.persagy.dmp.define.entity.ObjectInfoDefine" resultMap="BaseResultMap">
         select ${ew.sqlSelect}
         from ( <include refid="InfoTableSQL"/> ) dt_define_info
         WHERE ${ew.expression.sqlSegment}