From 699974a05ec1677fe2d384fb6cf4c4e4cab7cf40 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Sun, 26 Feb 2023 20:33:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=85=B3=E8=81=94=E4=BF=AE=E6=94=B9=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../thrsys/ThrSystemController.java | 7 -- .../mapper/thrsys/ThrSystemBusApiDao.xml | 83 ++++++++++--------- src/main/resources/schemas/schema_v2.1.sql | 1 + 3 files changed, 47 insertions(+), 44 deletions(-) diff --git a/src/main/java/com/glxp/api/controller/thrsys/ThrSystemController.java b/src/main/java/com/glxp/api/controller/thrsys/ThrSystemController.java index 66918de16..74ee0ac5c 100644 --- a/src/main/java/com/glxp/api/controller/thrsys/ThrSystemController.java +++ b/src/main/java/com/glxp/api/controller/thrsys/ThrSystemController.java @@ -272,13 +272,6 @@ public class ThrSystemController { return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL); } - //todo 第三方单据类型还未完成 -// BussinessOriginTypeResponse bussinessOriginTypeResponse = bussinessOriginTypeService.finByLocalAction(basicThirdSysBusApiEntity.getCode()); -// if (bussinessOriginTypeResponse != null) { -// basicThirdSysBusApiEntity.setThirdBuyCode(bussinessOriginTypeResponse.getThirdAction()); -// basicThirdSysBusApiEntity.setThirdBuyName(bussinessOriginTypeResponse.getThirdName()); -// } - boolean result = thrSystemBusApiService.saveBusTypes(thrSystemBusApiEntity); if (result) { return ResultVOUtils.success(); diff --git a/src/main/resources/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml b/src/main/resources/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml index 96adac443..5726b786a 100644 --- a/src/main/resources/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml +++ b/src/main/resources/mybatis/mapper/thrsys/ThrSystemBusApiDao.xml @@ -2,25 +2,42 @@ - UPDATE thr_system_bus_api - code=#{code}, - `name`=#{name}, - `thirdBuyName`=#{thirdBuyName}, - `thirdBuyCode`=#{thirdBuyCode}, - thirdSys=#{thirdSys}, - url=#{url}, - `type`=#{type}, - remark=#{remark}, + + code=#{code}, + + + `name`=#{name}, + + + `thirdBuyName`=#{thirdBuyName}, + + + `thirdBuyCode`=#{thirdBuyCode}, + + + thirdSys=#{thirdSys}, + + + url=#{url}, + + + `type`=#{type}, + + + remark=#{remark}, + - WHERE id=#{id} + WHERE id = #{id} @@ -44,33 +58,29 @@ insert - ignore + ignore INTO thr_system_bus_api - (`code`, `name`, thirdBuyName, thirdBuyCode, `thirdSys`, url, `type`, remark) - values ( - #{code}, - #{name}, - #{thirdBuyName}, - #{thirdBuyCode}, - #{thirdSys}, - #{url}, - #{type}, - #{remark} - ) + (`code`, `name`, thirdBuyName, thirdBuyCode, `thirdSys`, url, `type`, remark) + values (#{code}, + #{name}, + #{thirdBuyName}, + #{thirdBuyCode}, + #{thirdSys}, + #{url}, + #{type}, + #{remark}) insert into thr_system_bus_api (code, `name`, thirdBuyName, thirdBuyCode, thirdSys, type) values - ( - #{item.code}, - #{item.name}, - #{item.thirdBuyName}, - #{item.thirdBuyCode}, - #{item.thirdSys}, - #{item.type} - ) + (#{item.code}, + #{item.name}, + #{item.thirdBuyName}, + #{item.thirdBuyCode}, + #{item.thirdSys}, + #{item.type}) @@ -96,5 +106,4 @@ where thirdSys = #{thirdSys} and type = #{type} - - \ No newline at end of file + diff --git a/src/main/resources/schemas/schema_v2.1.sql b/src/main/resources/schemas/schema_v2.1.sql index 46ff18635..4c01a2e75 100644 --- a/src/main/resources/schemas/schema_v2.1.sql +++ b/src/main/resources/schemas/schema_v2.1.sql @@ -2,3 +2,4 @@ CALL Pro_Temp_ColumnWork('io_order', 'fromReceiveBillNo', 'varchar(255) ', 1); CALL Pro_Temp_ColumnWork('io_order', 'fromThrBillNo', 'varchar(255) ', 1); CALL Pro_Temp_ColumnWork('thr_bustype_origin', 'thirdSysName', 'varchar(255) ', 3); +CALL Pro_Temp_ColumnWork('thr_system_bus_api', 'thirdBuyName', 'varchar(255) ', 3);