From a5767e0144e6ecf4d9e058a6a4d0dbb2e28423b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=A4=E9=94=A6=E7=A7=91?= <32996823@qq.com> Date: Thu, 5 Dec 2024 17:37:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E6=95=B0=E9=87=8F=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/md/BaseKnifeMapper.xml | 1 + .../mapper/wm/BaseTechnologyBomMapper.xml | 128 ------------------ 2 files changed, 1 insertion(+), 128 deletions(-) delete mode 100644 ktg-mes/src/main/resources/mapper/wm/BaseTechnologyBomMapper.xml diff --git a/ktg-mes/src/main/resources/mapper/md/BaseKnifeMapper.xml b/ktg-mes/src/main/resources/mapper/md/BaseKnifeMapper.xml index 1c8e252..733e49f 100644 --- a/ktg-mes/src/main/resources/mapper/md/BaseKnifeMapper.xml +++ b/ktg-mes/src/main/resources/mapper/md/BaseKnifeMapper.xml @@ -577,6 +577,7 @@ FROM BASE_KNIFE BK WHERE MBB_BD_MRL_ID = #{mbbBdMrlId} AND (KNIFE_FINE_STATE = 0 OR KNIFE_FINE_STATE = 1) + AND IS_VALID = 0 - - - and figure_code = #{figureCode} - and process_code = #{processCode} - and process_name like concat('%', #{processName}, '%') - and knife_code = #{knifeCode} - and knife_sort = #{knifeSort} - and knife_count = #{knifeCount} - and expend_life = #{expendLife} - and attr1 = #{attr1} - and attr2 = #{attr2} - and attr3 = #{attr3} - and attr4 = #{attr4} - - - - - - - insert into base_technology_bom - - technology_bom_id, - figure_code, - process_code, - process_name, - knife_code, - knife_sort, - knife_count, - expend_life, - remark, - attr1, - attr2, - attr3, - attr4, - create_by, - create_time, - update_by, - update_time, - - - #{technologyBomId}, - #{figureCode}, - #{processCode}, - #{processName}, - #{knifeCode}, - #{knifeSort}, - #{knifeCount}, - #{expendLife}, - #{remark}, - #{attr1}, - #{attr2}, - #{attr3}, - #{attr4}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - - - - - update base_technology_bom - - figure_code = #{figureCode}, - process_code = #{processCode}, - process_name = #{processName}, - knife_code = #{knifeCode}, - knife_sort = #{knifeSort}, - knife_count = #{knifeCount}, - expend_life = #{expendLife}, - remark = #{remark}, - attr1 = #{attr1}, - attr2 = #{attr2}, - attr3 = #{attr3}, - attr4 = #{attr4}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, - - where technology_bom_id = #{technologyBomId} - - - - delete from base_technology_bom where technology_bom_id = #{technologyBomId} - - - - delete from base_technology_bom where technology_bom_id in - - #{technologyBomId} - - - \ No newline at end of file