Commit 1f6f79da by 毛勇泽

修改代码

parent 7fee8966
......@@ -21,8 +21,7 @@ export class WzcrkmxDao extends BaseTable<Wzcrkmx> {
crksl: cursor.getLong(cursor.getColumnIndex('crksl')),
wzcrkguid: cursor.getString(cursor.getColumnIndex('wzcrkguid')),
hwh: cursor.getString(cursor.getColumnIndex('hwh')),
pzmxguid: cursor.getString(cursor.getColumnIndex('pzmxguid')),
wzdm: cursor.getString(cursor.getColumnIndex('wzdm')),
pzmxguid: cursor.getString(cursor.getColumnIndex('pzmxguid'))
};
return info;
}
......
......@@ -20,6 +20,10 @@ class DsRfidModel {
let res = await SQLiteContext.with(DsRfidDao).updateSJStatus(guid, hwh)
return res;
}
// 清空表
async clear() {
await SQLiteContext.with(DsRfidDao).clearTable()
}
}
const dsRfidModel = new DsRfidModel()
......
......@@ -99,8 +99,7 @@ struct GoodsSelectHwPage{
pmdmcode: row.pmdmcode,
hwh: this.hwh,
wzcrkguid: row.wzcrkguid,
pzmxguid: '',
wzdm: '',
pzmxguid: ''
}
Logger.info("插入不存在数据===》"+JSON.stringify(wzcrxmx))
wzcrkmxModel.setInsert(wzcrxmx)
......
......@@ -18,6 +18,7 @@ import { Bggl } from '@ohos/common/src/main/ets/entity/Bggl'
import bgglModel from '../../../model/BgglModel'
import wzdmModel from '../../../model/WzdmModel'
import drModel from '../../../model/DrModel'
import dsRfidModel from '../../../model/DsRfidModel'
import { DrInfo } from '@ohos/common/src/main/ets/entity/DrInfo'
import wzcrkmxModel from '../../../model/WzcrkmxModel'
......@@ -101,6 +102,7 @@ export struct Pmhx {
await hwModel.clear();
await hjModel.clear();
await gldwModel.clear();
await dsRfidModel.clear();
const res = await getPmList({ rows: 5000, page: 1 })
// 获取品名
const allData = JSON.parse(res).bzhxList as Bzhx[]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论