修复重构loader模块后出现的组合任务的bug
This commit is contained in:
@@ -61,6 +61,16 @@ public class CommonUtil {
|
||||
public static final String SERVER_CHARSET = "ISO-8859-1";
|
||||
private static long lastClickTime;
|
||||
|
||||
/**
|
||||
* 获取线程名称,命名规则:md5(任务地址 + 线程id)
|
||||
*
|
||||
* @param url 任务地址
|
||||
* @param threadId 线程id
|
||||
*/
|
||||
public static String getThreadName(String url, int threadId) {
|
||||
return getStrMd5(url.concat(String.valueOf(threadId)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查sql的expression是否合法
|
||||
*
|
||||
@@ -436,7 +446,7 @@ public class CommonUtil {
|
||||
md.update(str.getBytes());
|
||||
return new BigInteger(1, md.digest()).toString(16);
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
ALog.e(TAG, e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
@@ -633,7 +643,7 @@ public class CommonUtil {
|
||||
ignore.add(field);
|
||||
}
|
||||
}
|
||||
if (!ignore.isEmpty()){
|
||||
if (!ignore.isEmpty()) {
|
||||
fields.removeAll(ignore);
|
||||
}
|
||||
return fields;
|
||||
|
||||
@@ -85,7 +85,7 @@ public class RecordUtil {
|
||||
DbEntity.findRelationData(RecordWrapper.class, "dGroupHash=?", groupEntity.getGroupHash());
|
||||
|
||||
if (records == null || records.isEmpty()) {
|
||||
ALog.w(TAG, "组任务记录删除失败,记录为null");
|
||||
ALog.w(TAG, "组任务记录已删除");
|
||||
} else {
|
||||
for (RecordWrapper record : records) {
|
||||
if (record == null || record.taskRecord == null) {
|
||||
|
||||
Reference in New Issue
Block a user