Commit bccbe06b by 庄冰

forminfo

parent a852221c
...@@ -117,9 +117,8 @@ class ForminfoService extends ServiceBase { ...@@ -117,9 +117,8 @@ class ForminfoService extends ServiceBase {
//获取相关表单项 //获取相关表单项
// let itemData = await this.formitemDao.findAll({form_id:pobj.id},[]); // let itemData = await this.formitemDao.findAll({form_id:pobj.id},[]);
let itemData = await this.formitemDao.model.findAll({ let itemData = await this.formitemDao.model.findAll({
where:{form_id:pobj.id}, where:{form_id:pobj.id},raw:true,
raw:true, order:[["sequence","asc"]]
order:[["sequence":"asc"],["id":"asc"]]
}); });
let form_items = ''; let form_items = '';
if(itemData.length>0){ if(itemData.length>0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment