修复重构loader模块后出现的组合任务的bug

This commit is contained in:
laoyuyu
2020-01-02 21:04:44 +08:00
parent 102d3ba0f6
commit c39bfbdd88
29 changed files with 390 additions and 262 deletions

View File

@@ -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;

View File

@@ -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) {