|
|
@@ -21,7 +21,7 @@ class MaterialInspectionTablePresenter : BasePresenter<IMaterialInspectionTableV
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- fun insertCheckRecord(list: MutableList<InspectionCheckTableDataRespVO.IsMaterialsCheckRecord>) {
|
|
|
+ fun insertCheckRecord(list: MutableList<InspectionCheckTableDataRespVO.IsMaterialsCheckRecord>, callBack: (Boolean) -> Unit) {
|
|
|
if (list.isEmpty()) {
|
|
|
LogUtil.w("No check record to save")
|
|
|
return
|
|
|
@@ -32,7 +32,9 @@ class MaterialInspectionTablePresenter : BasePresenter<IMaterialInspectionTableV
|
|
|
object : TypeToken<MutableList<InspectionCheckTableDataRespVO>>() {}.type
|
|
|
)
|
|
|
NetApi.insertCheckRecord(saveList) {
|
|
|
-
|
|
|
+ Executor.runOnMain {
|
|
|
+ callBack(it)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|