修复bug

This commit is contained in:
wulin 2020-10-22 12:07:31 +08:00
parent 91fa248be4
commit 662c38011b
3 changed files with 52 additions and 49 deletions

View File

@ -84,22 +84,23 @@
update lz_evaluation_start_staff set is_delete = 1 where id=#{id} limit 1
</update>
<insert id="insertEvaluationStartStaffs" parameterType="EvaluationStartStaff" useGeneratedKeys="true" keyProperty="id" >
<foreach collection="list" item="item" separator=";">
insert into lz_evaluation_start_staff(
<if test="item.evaluationId != null">evaluation_id, </if>
<if test="item.startId != null">start_id, </if>
<if test="item.staffId != null">staff_id, </if>
<if test="item.type != null">type, </if>
evaluation_id,
start_id,
staff_id,
type,
is_delete
)values(
<if test="item.evaluationId != null">#{ item.evaluationId}, </if>
<if test="item.startId != null">#{ item.startId}, </if>
<if test="item.staffId != null">#{ item.staffId}, </if>
<if test="item.type != null">#{ item.type}, </if>
)values
<foreach collection="list" item="item" separator=",">(
#{ item.evaluationId},
#{ item.startId},
#{ item.staffId},
#{ item.type},
0
)
</foreach>
;
</insert>
</mapper>

View File

@ -118,33 +118,34 @@
</select>
<insert id="insertFlowChartDetailRecords" parameterType="FlowChartDetailRecord" useGeneratedKeys="true" keyProperty="id" >
<foreach collection="list" item="item" separator=";">
insert into lz_flow_chart_detail_record(
<if test="chartId != null">chart_id, </if>
<if test="evaluationGroupId != null">evaluation_group_id, </if>
<if test="status != null">status, </if>
<if test="optIds != null">opt_ids, </if>
<if test="optType != null">opt_type, </if>
<if test="roleIds != null">role_ids, </if>
<if test="stepType != null">step_type, </if>
<if test="stepIndex != null">step_index, </if>
<if test="weight != null">weight, </if>
is_delete
)values(
<if test="chartId != null">#{ item.chartId}, </if>
<if test="evaluationGroupId != null">#{ item.evaluationGroupId}, </if>
<if test="status != null">#{ item.status}, </if>
<if test="optIds != null">#{ item.optIds}, </if>
<if test="optType != null">#{ item.optType}, </if>
<if test="roleIds != null">#{ item.roleIds}, </if>
<if test="stepType != null">#{ item.stepType}, </if>
<if test="stepIndex != null">#{ item.stepIndex}, </if>
<if test="weight != null">#{ item.weight}, </if>
insert into lz_flow_chart_detail_record(
chart_id,
evaluation_group_id,
status,
opt_ids,
opt_type,
role_ids,
step_type,
step_index,
weight,
is_delete
)values
<foreach collection="list" item="item" separator=",">(
#{ item.chartId},
#{ item.evaluationGroupId},
#{ item.status},
#{ item.optIds},
#{ item.optType},
#{ item.roleIds},
#{ item.stepType},
#{ item.stepIndex},
#{ item.weight},
0
)
</foreach>
;
</insert>
<update id="updateCoverFlowChartDetailRecordByIds" parameterType="FlowChartDetailRecord" useGeneratedKeys="true" keyProperty="id" >

View File

@ -105,25 +105,26 @@
</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>
insert into lz_result_taget_lib(
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>
;
</insert>
<update id="updateResultTagetLibByIds" parameterType="FlowChartDetailRecord" useGeneratedKeys="true" keyProperty="id" >