package com.ubt.jimu.transport; import com.ubt.jimu.base.db.DatabaseUtils; import com.ubt.jimu.base.db.diy.DiyDBModel; import com.ubt.jimu.diy.DiyRobotDbHandler; import com.ubt.jimu.transport.dao.TransportFileDbHandler; import com.ubt.jimu.utils.SystemUtils; /* loaded from: classes2.dex */ class FileTransporter { private DiyRobotDbHandler a = new DiyRobotDbHandler(DatabaseUtils.getDaoSession(true).d()); private TransportFileDbHandler b = new TransportFileDbHandler(DatabaseUtils.getDaoSession(true).v()); FileTransporter() { } public void a(String str, DiyDBModel diyDBModel) { if (diyDBModel == null) { return; } this.a.delete(diyDBModel); this.b.deleteModelFiles(str, diyDBModel.getCustomModelId()); } public void a(DiyDBModel diyDBModel) { if (diyDBModel == null) { return; } long a = SystemUtils.a(); diyDBModel.setIsDelete(true); diyDBModel.setModify(true); diyDBModel.setModifyTime(a); this.a.update(diyDBModel); } }