fuweng11 commented on code in PR #8410:
URL: https://github.com/apache/inlong/pull/8410#discussion_r1251528416
##########
inlong-manager/manager-dao/src/main/resources/mappers/WorkflowApproverEntityMapper.xml:
##########
@@ -33,30 +34,34 @@
<result column="version" jdbcType="INTEGER" property="version"/>
</resultMap>
<sql id="Base_Column_List">
- id, process_name, task_name, approvers, creator, modifier,
create_time, modify_time, is_deleted, version
+ id, process_name, task_name, tenant, approvers, creator, modifier,
create_time, modify_time, is_deleted, version
</sql>
<insert id="insert" useGeneratedKeys="true" keyProperty="id"
parameterType="org.apache.inlong.manager.dao.entity.WorkflowApproverEntity">
- insert into workflow_approver (id, process_name, task_name,
+ insert into workflow_approver (id, process_name, task_name, tenant,
approvers, creator, modifier)
values (#{id, jdbcType=INTEGER}, #{processName, jdbcType=VARCHAR},
#{taskName, jdbcType=VARCHAR},
- #{approvers, jdbcType=VARCHAR}, #{creator, jdbcType=VARCHAR},
#{modifier, jdbcType=VARCHAR})
+ #{tenant,jdbcType=VARCHAR}, #{approvers, jdbcType=VARCHAR},
#{creator, jdbcType=VARCHAR},
+ #{modifier, jdbcType=VARCHAR})
</insert>
- <select id="selectById" parameterType="java.lang.Integer"
resultMap="BaseResultMap">
+ <select id="selectById" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from workflow_approver
- where id = #{id, jdbcType=INTEGER} and is_deleted=0
+ where tenant = #{tenant,jdbcType=VARCHAR}
+ and id = #{id, jdbcType=INTEGER}
+ and is_deleted=0
Review Comment:
`is_deleted = 0`
--
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]