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

View File

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

View File

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