This commit is contained in:
杜建超 2020-10-22 11:55:55 +08:00
parent 96c18e66e0
commit 3c403c1d28

View File

@ -105,21 +105,20 @@
</update>
<insert id="insertResultTagetLibs" parameterType="FlowChartDetailRecord" useGeneratedKeys="true" keyProperty="id" >
<foreach collection="list" item="item" separator=";">
insert into lz_result_taget_lib(
<if test="item.name != null">name, </if>
<if test="item.modelId != null">model_id, </if>
<if test="item.weight != null">weight, </if>
<if test="item.keyResult != null">key_result, </if>
<if test="item.orderBy != null">order_by, </if>
is_delete
)values(
<if test="item.name != null">#{ item.name}, </if>
<if test="item.modelId != null">#{ item.modelId}, </if>
<if test="item.weight != null">#{ item.weight}, </if>
<if test="item.keyResult != null">#{ item.keyResult}, </if>
<if test="item.orderBy != null">#{ item.orderBy},</if>
name,
model_id,
weight,
key_result,
order_by,
is_delete
)values
<foreach collection="list" item="item" separator=",">(
#{ item.name},
#{ item.modelId},
#{ item.weight},
#{ item.keyResult},
#{ item.orderBy},
0
)
</foreach>