增加提取UUID的流程
This commit is contained in:
parent
1cbbb12f8f
commit
68004bd83e
|
@ -3,7 +3,7 @@ use Helpers\View as view;
|
||||||
use Files\Files;
|
use Files\Files;
|
||||||
use Files\Output;
|
use Files\Output;
|
||||||
use Files\Listener\FileListener;
|
use Files\Listener\FileListener;
|
||||||
use Order\Manager\Offlineapp;
|
use Order\Manager\Offlineapp;
|
||||||
use data\DataService;
|
use data\DataService;
|
||||||
use Mail\Mail;
|
use Mail\Mail;
|
||||||
|
|
||||||
|
@ -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=?";
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
";
|
";
|
||||||
|
|
Loading…
Reference in New Issue