From c22aea78de6434ae259265f04a01d92cd1b98961 Mon Sep 17 00:00:00 2001 From: a364176773 <364176773@qq.com> Date: Wed, 1 Feb 2023 14:24:31 +0800 Subject: [PATCH] opt --- .../store/db/sql/CommonFenceStoreSqls.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/integration-tx-api/src/main/java/io/seata/integration/tx/api/fence/store/db/sql/CommonFenceStoreSqls.java b/integration-tx-api/src/main/java/io/seata/integration/tx/api/fence/store/db/sql/CommonFenceStoreSqls.java index a6b01c05138..3b590151f85 100644 --- a/integration-tx-api/src/main/java/io/seata/integration/tx/api/fence/store/db/sql/CommonFenceStoreSqls.java +++ b/integration-tx-api/src/main/java/io/seata/integration/tx/api/fence/store/db/sql/CommonFenceStoreSqls.java @@ -24,15 +24,6 @@ */ public class CommonFenceStoreSqls { - /** - * The constant QUERY_END_STATUS_BY_DATE. - */ - protected static final String QUERY_END_STATUS_BY_DATE = "select xid, branch_id, status, gmt_create, gmt_modified " - + "from " + LOCAL_TCC_LOG_PLACEHOLD - + " where gmt_modified < ? " - + " and status in (" + CommonFenceConstant.STATUS_COMMITTED + " , " + CommonFenceConstant.STATUS_ROLLBACKED + " , " + CommonFenceConstant.STATUS_SUSPENDED + ")" - + " limit ?"; - /** * The constant LOCAL_TCC_LOG_PLACEHOLD. */ @@ -51,6 +42,15 @@ public class CommonFenceStoreSqls { + " (xid, branch_id, action_name, status, gmt_create, gmt_modified) " + " values (?, ?, ?, ?, ?, ?) "; + /** + * The constant QUERY_END_STATUS_BY_DATE. + */ + protected static final String QUERY_END_STATUS_BY_DATE = "select xid, branch_id, status, gmt_create, gmt_modified " + + "from " + LOCAL_TCC_LOG_PLACEHOLD + + " where gmt_modified < ? " + + " and status in (" + CommonFenceConstant.STATUS_COMMITTED + " , " + CommonFenceConstant.STATUS_ROLLBACKED + " , " + CommonFenceConstant.STATUS_SUSPENDED + ")" + + " limit ?"; + /** * The constant QUERY_BY_BRANCH_ID_AND_XID. */