fix:工艺流程删除功能逻辑完善
This commit is contained in:
@@ -108,6 +108,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</choose>
|
||||
ORDER BY order_num ASC LIMIT 1
|
||||
</select>
|
||||
<select id="selectByRecordId" resultType="ProRouteProcess" resultMap="ProRouteProcessResult">
|
||||
select * from pro_route_process where record_id = #{recordIds}
|
||||
</select>
|
||||
<select id="selectByRouteId" resultType="ProRouteProcess" resultMap="ProRouteProcessResult">
|
||||
select * from pro_route_process where route_id = #{routeId}
|
||||
</select>
|
||||
|
||||
<insert id="insertProRouteProcess" parameterType="ProRouteProcess" useGeneratedKeys="true" keyProperty="recordId">
|
||||
insert into pro_route_process
|
||||
@@ -192,6 +198,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
<update id="updateBatch">
|
||||
<foreach collection="entity" item="item" separator=";">
|
||||
update pro_route_process
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="item.routeId != null">route_id = #{item.routeId},</if>
|
||||
<if test="item.processId != null">process_id = #{item.processId},</if>
|
||||
<if test="item.processCode != null">process_code = #{item.processCode},</if>
|
||||
<if test="item.processName != null">process_name = #{item.processName},</if>
|
||||
<if test="item.orderNum != null">order_num = #{item.orderNum},</if>
|
||||
<if test="item.nextProcessId != null">next_process_id = #{item.nextProcessId},</if>
|
||||
<if test="item.nextProcessCode != null">next_process_code = #{item.nextProcessCode},</if>
|
||||
<if test="item.nextProcessName != null">next_process_name = #{item.nextProcessName},</if>
|
||||
<if test="item.linkType != null">link_type = #{item.linkType},</if>
|
||||
<if test="item.defaultPreTime != null">default_pre_time = #{item.defaultPreTime},</if>
|
||||
<if test="item.defaultSufTime != null">default_suf_time = #{item.defaultSufTime},</if>
|
||||
<if test="item.keyFlag !=null">key_flag = #{item.keyFlag},</if>
|
||||
<if test="item.isCheck !=null">is_check = #{item.isCheck},</if>
|
||||
<if test="item.colorCode != null">color_code = #{item.colorCode},</if>
|
||||
<if test="item.remark != null">remark = #{item.remark},</if>
|
||||
<if test="item.attr1 != null">attr1 = #{item.attr1},</if>
|
||||
<if test="item.attr2 != null">attr2 = #{item.attr2},</if>
|
||||
<if test="item.attr3 != null">attr3 = #{item.attr3},</if>
|
||||
<if test="item.attr4 != null">attr4 = #{item.attr4},</if>
|
||||
<if test="item.createBy != null">create_by = #{item.createBy},</if>
|
||||
<if test="item.createTime != null">create_time = #{item.createTime},</if>
|
||||
<if test="item.updateBy != null">update_by = #{item.updateBy},</if>
|
||||
<if test="item.updateTime != null">update_time = #{item.updateTime},</if>
|
||||
</trim>
|
||||
where record_id = #{item.recordId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<delete id="deleteProRouteProcessByRecordId" parameterType="Long">
|
||||
delete from pro_route_process where record_id = #{recordId}
|
||||
|
||||
Reference in New Issue
Block a user