wardlican commented on a change in pull request #2182:
URL: https://github.com/apache/incubator-inlong/pull/2182#discussion_r787293823



##########
File path: 
inlong-manager/manager-dao/src/main/resources/mappers/TaskIdParamsKafkaEntityMapper.xml
##########
@@ -68,4 +68,138 @@
       topic = #{topic,jdbcType=VARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>
+  <resultMap id="BaseResultMap" 
type="org.apache.inlong.manager.dao.entity.TaskIdParamsKafkaEntity">
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="parent_name" jdbcType="VARCHAR" property="parentName" />
+    <result column="topic" jdbcType="VARCHAR" property="topic" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    id, parent_name, topic
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" 
resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from task_id_params_kafka
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from task_id_params_kafka
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" 
parameterType="org.apache.inlong.manager.dao.entity.TaskIdParamsKafkaEntity">
+    insert into task_id_params_kafka (id, parent_name, topic

Review comment:
       need to sort out the format here




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to