修改了重置申请表的功能,添加了修改状态代码的部分

This commit is contained in:
Li Jianxuan 2013-11-26 09:40:33 +00:00
parent 74a5e3f5fc
commit eb98d79dfc
1 changed files with 10 additions and 10 deletions

View File

@ -100,7 +100,7 @@ class Offlineapp
@unlink($row['applicationform']); @unlink($row['applicationform']);
} }
if($this->db->exec("UPDATE offlineapp SET applicationform=NULL WHERE id=$id")>0) if($this->db->exec("UPDATE offlineapp SET applicationform=NULL,status=2 WHERE id=$id")>0 && $this->db->exec("UPDATE dataorder SET status=2 WHERE offlineappid=$id"))
{ {
@$this->events()->trigger('offlineapp.AppFormReseted', $this, compact('id')); @$this->events()->trigger('offlineapp.AppFormReseted', $this, compact('id'));
return true; return true;