解决无法同时处理一个用户多个申请的BUG。(ticket #90)

This commit is contained in:
wlx 2009-10-12 08:44:46 +00:00
parent e19702215b
commit d9bfbe9273
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class Admin_DataController extends Zend_Controller_Action
$this->_redirect('/admin/data/offlineapp');
} elseif ($finish) {
try {
$sql="update dataorder set status=5,ts_approved=now() where (status=3 or status=4) and userid=?";
$sql="update dataorder set status=5,ts_approved=now() where status=4 and userid=?";
$this->db->query($sql,array($finish));
$sql="update offlineapp set ts_approved=now() where userid=? and ts_approved is null";
$this->db->query($sql,array($finish));