fix(测试计划): 修复批量编辑标签问题
--bug=1041279 --user=王旭 【测试计划】计划列表-批量编辑标签-开启追加标签-原标签被覆盖了 https://www.tapd.cn/55049933/s/1521807
This commit is contained in:
parent
c792eb55e2
commit
8e9c8d9411
|
@ -18,6 +18,11 @@
|
||||||
<result column="tags" jdbcType="VARCHAR" property="tags" typeHandler="io.metersphere.handler.ListTypeHandler" />
|
<result column="tags" jdbcType="VARCHAR" property="tags" typeHandler="io.metersphere.handler.ListTypeHandler" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="io.metersphere.plan.domain.TestPlan">
|
||||||
|
<result column="tags" jdbcType="VARCHAR" property="tags" typeHandler="io.metersphere.handler.ListTypeHandler" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
<update id="updateDefaultGroupId">
|
<update id="updateDefaultGroupId">
|
||||||
UPDATE test_plan
|
UPDATE test_plan
|
||||||
SET group_id = 'NONE'
|
SET group_id = 'NONE'
|
||||||
|
@ -385,7 +390,7 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="getTagsByIds" resultType="io.metersphere.plan.domain.TestPlan">
|
<select id="getTagsByIds" resultMap="BaseResultMap">
|
||||||
select id, tags from test_plan
|
select id, tags from test_plan
|
||||||
where id in
|
where id in
|
||||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||||
|
|
Loading…
Reference in New Issue