修改日志

This commit is contained in:
junj2.liang
2022-09-15 13:51:51 +08:00
parent 4e2f6b3ac4
commit f735244799
3 changed files with 99 additions and 14 deletions
@@ -1,8 +1,6 @@
package com.sunyard.sge.database;
import com.sunyard.sge.database.pool.HsmLinkInfo;
import com.sunyard.sge.log.LogFactory;
import com.sunyard.sge.pool.CommWorker;
import racal.sunyard.main.SydApi4j;
import java.util.ArrayList;
@@ -61,13 +59,14 @@ public class SydApi4Database extends SydApiBaseFunction {
curDataGroup = new ArrayList<>();
curKeyGroup = new ArrayList<>();
totalLen = 0;
}
curDataGroup.add(data);
curKeyGroup.add(iKeyIndex[i]);
totalLen = data.length;
totalLen += data.length;
}
@@ -120,12 +119,13 @@ public class SydApi4Database extends SydApiBaseFunction {
curDataGroup = new ArrayList<>();
curKeyGroup = new ArrayList<>();
totalLen = 0;
}
curDataGroup.add(data);
curKeyGroup.add(iKeyIndex[i]);
totalLen = data.length;
totalLen += data.length;
}
dataGroups.add(curDataGroup);
@@ -182,13 +182,14 @@ public class SydApi4Database extends SydApiBaseFunction {
curDataGroup = new ArrayList<>();
curKeyGroup = new ArrayList<>();
curMacGroup = new ArrayList<>();
totalLen = 0;
}
curDataGroup.add(data);
curKeyGroup.add(iKeyIndex[i]);
curMacGroup.add(pcMac[i]);
totalLen = data.length;
totalLen += data.length;
}
dataGroups.add(curDataGroup);
@@ -183,7 +183,6 @@ public class SydApiLongLinkWrap implements SydApi {
if ( 0 == iKeyIndex.length ) {
return new ArrayList<>();
}
// 将数据进行分组,防止超长。
List<List<byte[]>> dataGroups = new ArrayList<>();
List<List<Integer>> keyGroups = new ArrayList<>();
@@ -206,13 +205,14 @@ public class SydApiLongLinkWrap implements SydApi {
curDataGroup = new ArrayList<>();
curKeyGroup = new ArrayList<>();
totalLen = 0;
}
curDataGroup.add(data);
curKeyGroup.add(iKeyIndex[i]);
totalLen = data.length;
totalLen += data.length;
}
@@ -259,7 +259,6 @@ public class SydApiLongLinkWrap implements SydApi {
if ( 0 == iKeyIndex.length ) {
return new String[0];
}
// 将数据进行分组,防止超长。
List<List<byte[]>> dataGroups = new ArrayList<>();
List<List<Integer>> keyGroups = new ArrayList<>();
@@ -282,12 +281,13 @@ public class SydApiLongLinkWrap implements SydApi {
curDataGroup = new ArrayList<>();
curKeyGroup = new ArrayList<>();
totalLen = 0;
}
curDataGroup.add(data);
curKeyGroup.add(iKeyIndex[i]);
totalLen = data.length;
totalLen += data.length;
}
dataGroups.add(curDataGroup);
@@ -323,7 +323,6 @@ public class SydApiLongLinkWrap implements SydApi {
@Override
public boolean[] SYD_SM4Mac_BatchData(int[] iKeyIndex, List<byte[]> pcData, String[] pcMac) {
if ( null == iKeyIndex || null == pcData ) {
throw new IllegalArgumentException("批量输入数据为 null");
}
@@ -336,7 +335,6 @@ public class SydApiLongLinkWrap implements SydApi {
return new boolean[0];
}
// 将数据进行分组,防止超长。
List<List<byte[]>> dataGroups = new ArrayList<>();
List<List<Integer>> keyGroups = new ArrayList<>();
@@ -364,13 +362,14 @@ public class SydApiLongLinkWrap implements SydApi {
curDataGroup = new ArrayList<>();
curKeyGroup = new ArrayList<>();
curMacGroup = new ArrayList<>();
totalLen = 0;
}
curDataGroup.add(data);
curKeyGroup.add(iKeyIndex[i]);
curMacGroup.add(pcMac[i]);
totalLen = data.length;
totalLen += data.length;
}
dataGroups.add(curDataGroup);