Commit 8037f849 by ning

新增单位列表查询

parent 76a293da
......@@ -8,7 +8,6 @@ import { Table } from '../decorator/Decorators';
*/
@Table({ db: 'db_wms_app', name: 'TAB_BZGL_KNZY_APP_BGDDW' })
export class GldwDao extends BaseTable<Gldw> {
toBean(cursor: relationalStore.ResultSet): Gldw {
let info: Gldw = {
guid: cursor.getString(cursor.getColumnIndex('GUID')),
......@@ -47,4 +46,16 @@ export class GldwDao extends BaseTable<Gldw> {
)`;
return gldw_sql;
}
/**
* 查询管理单位列表
*/
getGldwList(dwmc: string): Promise<Gldw[]> {
let wp = this.getPredicates();
if (dwmc) {
wp.like('DWFH', dwmc)
}
wp.orderByAsc('DWDM');
return this.query(wp, this.getTableColumns());
}
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论