Commit 0cd584fb authored by hywang's avatar hywang

1.修改上传打标数据,无法删除的bug

parent 6e994d9c
......@@ -259,20 +259,32 @@ public class UploadVM extends BackBarVM<Repository> {
.subscribe((Consumer<CattleResponse<List<Marking>>>) response -> {
KLog.e(response.getCode() + response.getMsg());
if (response.getCode() == 0) {
for (int i = 0; i < result.size(); i++) {
result.get(i).setStatus(0);
}
// for (int i = 0; i < result.size(); i++) {
// result.get(i).setStatus(0);
// }
// DbUtil.getInstance().setDbIDUCallBack(new DbIDUCallBack() {
// @Override
// public void onNotification(boolean result) {
// if (result) {
// dismissDialog();
// } else {
// ToastUtils.showShort("删除marking数据失败");
// }
// uploadNext();
// }
// }).deleteAsyncBatch(Marking.class, result);
DbUtil.getInstance().setDbIDUCallBack(new DbIDUCallBack() {
@Override
public void onNotification(boolean result) {
if (result) {
dismissDialog();
} else {
ToastUtils.showShort("删除marking数据失败");
}else{
toastStr += "删除标签数据失败;";
}
uploadNext();
}
}).deleteAsyncBatch(Marking.class, result);
}).deleteAsyncAll(Marking.class);
} else {
dismissDialog();
toastStr += "marking上传失败;";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment