From 45f0745fae3abebc75aee10abb46da801a4396c9 Mon Sep 17 00:00:00 2001 From: zhaoxl Date: Wed, 23 Aug 2023 13:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'op-modules/op-sap/src/main/resources/mapper'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/SapBaseFileMapper.xml | 132 +++++++++ .../resources/mapper/SapBaseProductMapper.xml | 260 ++++++++++++++++++ .../mapper/SapProProcessContentMapper.xml | 120 ++++++++ 3 files changed, 512 insertions(+) create mode 100644 op-modules/op-sap/src/main/resources/mapper/SapBaseFileMapper.xml create mode 100644 op-modules/op-sap/src/main/resources/mapper/SapBaseProductMapper.xml create mode 100644 op-modules/op-sap/src/main/resources/mapper/SapProProcessContentMapper.xml diff --git a/op-modules/op-sap/src/main/resources/mapper/SapBaseFileMapper.xml b/op-modules/op-sap/src/main/resources/mapper/SapBaseFileMapper.xml new file mode 100644 index 00000000..17144d6f --- /dev/null +++ b/op-modules/op-sap/src/main/resources/mapper/SapBaseFileMapper.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + select file_id, file_name, file_address, source_id, remark, attr1, + attr2, attr3, attr4, create_by, create_time, update_by, + update_time from base_file + + + + + + + + + insert into base_file + + file_id, + file_name, + file_address, + source_id, + remark, + attr1, + attr2, + attr3, + attr4, + create_by, + create_time, + update_by, + update_time, + + + #{fileId}, + #{fileName}, + #{fileAddress}, + #{sourceId}, + #{remark}, + #{attr1}, + #{attr2}, + #{attr3}, + #{attr4}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + INSERT INTO base_file(file_id, file_name, file_address, source_id, remark, create_by, create_time) + VALUES + + ( + #{baseFile.fileId}, + #{baseFile.fileName}, + #{baseFile.fileAddress}, + #{baseFile.sourceId}, + #{baseFile.remark}, + #{baseFile.createBy}, + #{baseFile.createTime} + ) + + + + + update base_file + + file_name = #{fileName}, + file_address = #{fileAddress}, + source_id = #{sourceId}, + remark = #{remark}, + attr1 = #{attr1}, + attr2 = #{attr2}, + attr3 = #{attr3}, + attr4 = #{attr4}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where file_id = #{fileId} + + + + delete from base_file where file_id = #{fileId} + + + + delete from base_file where file_id in + + #{fileId} + + + + delete from base_file where source_id = #{sourceId} + + diff --git a/op-modules/op-sap/src/main/resources/mapper/SapBaseProductMapper.xml b/op-modules/op-sap/src/main/resources/mapper/SapBaseProductMapper.xml new file mode 100644 index 00000000..9c41bc73 --- /dev/null +++ b/op-modules/op-sap/src/main/resources/mapper/SapBaseProductMapper.xml @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select product_id, product_code, product_desc_zh, product_model,product_desc_en, rule_code, old_product_code, parts_product_code, sku_barcode, length, width, height, gross_weight, net_weight, tare_weight, volume, unit_price, product_group, product_group_name, user_defined1, user_defined2, user_defined3, user_defined4, user_defined5, user_defined6, create_by, create_time, update_by, update_time, factory_code, active_flag, sync_flag, primary_uom, del_flag, bstme, basic_order, conv_order, ausme, basic_issue, conv_issue, append_flag, append_percent from base_product + + + + + + + + + insert into base_product + + product_id, + product_code, + product_desc_zh, + product_model, + product_desc_en, + rule_code, + old_product_code, + parts_product_code, + sku_barcode, + length, + width, + height, + gross_weight, + net_weight, + tare_weight, + volume, + unit_price, + product_group, + product_group_name, + user_defined1, + user_defined2, + user_defined3, + user_defined4, + user_defined5, + user_defined6, + create_by, + create_time, + update_by, + update_time, + factory_code, + active_flag, + sync_flag, + primary_uom, + del_flag, + bstme, + basic_order, + conv_order, + ausme, + basic_issue, + conv_issue, + append_flag, + append_percent, + + + #{productId}, + #{productCode}, + #{productDescZh}, + #{productModel}, + #{productDescEn}, + #{ruleCode}, + #{oldProductCode}, + #{partsProductCode}, + #{skuBarcode}, + #{length}, + #{width}, + #{height}, + #{grossWeight}, + #{netWeight}, + #{tareWeight}, + #{volume}, + #{unitPrice}, + #{productGroup}, + #{productGroupName}, + #{userDefined1}, + #{userDefined2}, + #{userDefined3}, + #{userDefined4}, + #{userDefined5}, + #{userDefined6}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{factoryCode}, + #{activeFlag}, + #{syncFlag}, + #{primaryUom}, + #{delFlag}, + #{bstme}, + #{basicOrder}, + #{convOrder}, + #{ausme}, + #{basicIssue}, + #{convIssue}, + #{appendFlag}, + #{appendPercent}, + + + + + update base_product + + product_code = #{productCode}, + product_desc_zh = #{productDescZh}, + product_model = #{productModel}, + product_desc_en = #{productDescEn}, + rule_code = #{ruleCode}, + old_product_code = #{oldProductCode}, + parts_product_code = #{partsProductCode}, + sku_barcode = #{skuBarcode}, + length = #{length}, + width = #{width}, + height = #{height}, + gross_weight = #{grossWeight}, + net_weight = #{netWeight}, + tare_weight = #{tareWeight}, + volume = #{volume}, + unit_price = #{unitPrice}, + product_group = #{productGroup}, + product_group_name = #{productGroupName}, + user_defined1 = #{userDefined1}, + user_defined2 = #{userDefined2}, + user_defined3 = #{userDefined3}, + user_defined4 = #{userDefined4}, + user_defined5 = #{userDefined5}, + user_defined6 = #{userDefined6}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + factory_code = #{factoryCode}, + active_flag = #{activeFlag}, + sync_flag = #{syncFlag}, + primary_uom = #{primaryUom}, + del_flag = #{delFlag}, + bstme = #{bstme}, + basic_order = #{basicOrder}, + conv_order = #{convOrder}, + ausme = #{ausme}, + basic_issue = #{basicIssue}, + conv_issue = #{convIssue}, + append_flag = #{appendFlag}, + append_percent = #{appendPercent}, + + where product_id = #{productId} + + + + delete from base_product where product_id = #{productId} + + + + delete from base_product where product_id in + + #{productId} + + + + + diff --git a/op-modules/op-sap/src/main/resources/mapper/SapProProcessContentMapper.xml b/op-modules/op-sap/src/main/resources/mapper/SapProProcessContentMapper.xml new file mode 100644 index 00000000..aba63e58 --- /dev/null +++ b/op-modules/op-sap/src/main/resources/mapper/SapProProcessContentMapper.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select content_id, process_id, order_num, content_text, device, material, doc_url, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from pro_process_content + + + + + + + + insert into pro_process_content + + content_id, + process_id, + order_num, + content_text, + device, + material, + doc_url, + remark, + attr1, + attr2, + attr3, + attr4, + create_by, + create_time, + update_by, + update_time, + + + #{contentId}, + #{processId}, + #{orderNum}, + #{contentText}, + #{device}, + #{material}, + #{docUrl}, + #{remark}, + #{attr1}, + #{attr2}, + #{attr3}, + #{attr4}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update pro_process_content + + process_id = #{processId}, + order_num = #{orderNum}, + content_text = #{contentText}, + device = #{device}, + material = #{material}, + doc_url = #{docUrl}, + remark = #{remark}, + attr1 = #{attr1}, + attr2 = #{attr2}, + attr3 = #{attr3}, + attr4 = #{attr4}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where content_id = #{contentId} + + + + delete from pro_process_content where content_id = #{contentId} + + + + delete from pro_process_content where content_id in + + #{contentId} + + +