增加提取UUID的流程

This commit is contained in:
Li Jianxuan 2013-09-25 09:44:21 +00:00
parent 1cbbb12f8f
commit 68004bd83e
3 changed files with 13 additions and 6 deletions

View File

@ -215,10 +215,17 @@ class Admin_DownController extends Zend_Controller_Action
//如果是wsn数据则生成数据 //如果是wsn数据则生成数据
$dataservice = new DataService(); $dataservice = new DataService();
$wsnData = $dataservice->get($uuid); $offlineapp = new Offlineapp();
if(isset($wsnData['id']) && !empty($wsnData['id']))
$thisorders = $offlineapp->getOneAppInfo($start);
foreach($thisorders as $v)
{ {
@$dataservice->makeWsnData(array('uid'=>$row['userid'])); $wsnData = $dataservice->get($v['uuid']);
if(isset($wsnData['id']) && !empty($wsnData['id']))
{
@$dataservice->makeWsnData(array('uid'=>$row['userid']));
}
} }
$sql="select applicationform as pdflink from offlineapp where id=?"; $sql="select applicationform as pdflink from offlineapp where id=?";

View File

@ -111,7 +111,7 @@ class DataService
$param = array_merge($param,$param_temp); $param = array_merge($param,$param_temp);
$url = "http://waterwsn.westgis.ac.cn/downdatas.php"; $url = "http://waterwsn.westgis.ac.cn/downdatas.php";
$curl = new Curl();
$data = $curl->request($url,$param,"POST"); $data = $curl->request($url,$param,"POST");
$data = json_decode($data['response'],TRUE); $data = json_decode($data['response'],TRUE);
} }

View File

@ -69,7 +69,7 @@ class Offlineapp
//获取一个申请的详细信息 //获取一个申请的详细信息
public function getOneAppInfo($id) public function getOneAppInfo($id)
{ {
$sql = "SELECT off.*,o.status FROM offlineapp off $sql = "SELECT off.*,o.status,o.uuid FROM offlineapp off
LEFT JOIN dataorder o ON off.id=o.offlineappid LEFT JOIN dataorder o ON off.id=o.offlineappid
WHERE off.id = $id WHERE off.id = $id
"; ";