Commit 1f6f79da by 毛勇泽

修改代码

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