Browse Source

2026-03-16

Routing Tool中能够直接修改工具编码
master
fengyuan_yang 4 weeks ago
parent
commit
9c927e7c17
  1. 11
      src/main/resources/mapper/part/RoutingManagementMapper.xml

11
src/main/resources/mapper/part/RoutingManagementMapper.xml

@ -621,14 +621,15 @@
where site = #{site} and part_no = #{partNo} and routing_revision = #{routingRevision} and routing_type = #{routingType} where site = #{site} and part_no = #{partNo} and routing_revision = #{routingRevision} and routing_type = #{routingType}
</select> </select>
<!-- 编辑 routingTools -->
<!-- 编辑 routingTools(以 id 为主键定位,支持修改 tool_id) -->
<update id="routingToolEdit" parameterType="RoutingToolEntity"> <update id="routingToolEdit" parameterType="RoutingToolEntity">
update routing_tool update routing_tool
set tool_qty = #{toolQty},
set tool_id = #{toolId},
tool_qty = #{toolQty},
remark = #{remark}, remark = #{remark},
update_date = getDate(), update_date = getDate(),
update_by = #{updateBy} update_by = #{updateBy}
where site = #{site} and part_no = #{partNo} and routing_revision = #{routingRevision} and routing_type = #{routingType} and alternative_no = #{alternativeNo} and operation_id = #{operationId} and tool_id = #{toolId}
where id = #{id}
</update> </update>
<!-- 删除 routingTools --> <!-- 删除 routingTools -->
@ -1159,7 +1160,7 @@
where a.site = #{site} and a.part_no = #{partNo} and a.routing_type = #{routingType} and a.routing_revision = #{routingRevision} and a.alternative_no = #{alternativeNo} where a.site = #{site} and a.part_no = #{partNo} and a.routing_type = #{routingType} and a.routing_revision = #{routingRevision} and a.alternative_no = #{alternativeNo}
</select> </select>
<!-- 获取Tool(ifs) -->
<!-- 获取Tool(ifs),以 id 为主键查询,确保 tool_id 修改后仍能正确定位记录 -->
<select id="getRoutingToolToIfs" parameterType="RoutingToolEntity" resultType="RoutingIfsTool"> <select id="getRoutingToolToIfs" parameterType="RoutingToolEntity" resultType="RoutingIfsTool">
SELECT SELECT
id, id,
@ -1175,7 +1176,7 @@
ifs_row_id, ifs_row_id,
ifs_row_version ifs_row_version
FROM routing_tool FROM routing_tool
where site = #{site} and part_no = #{partNo} and routing_type = #{routingType} and routing_revision = #{routingRevision} and alternative_no = #{alternativeNo} and operation_id = #{operationId} and tool_id = #{toolId}
where id = #{id}
</select> </select>
<!-- 修改工序的 rowKey rowRevision --> <!-- 修改工序的 rowKey rowRevision -->

Loading…
Cancel
Save