增加提取UUID的流程
This commit is contained in:
parent
1cbbb12f8f
commit
68004bd83e
|
@ -3,7 +3,7 @@ use Helpers\View as view;
|
|||
use Files\Files;
|
||||
use Files\Output;
|
||||
use Files\Listener\FileListener;
|
||||
use Order\Manager\Offlineapp;
|
||||
use Order\Manager\Offlineapp;
|
||||
use data\DataService;
|
||||
use Mail\Mail;
|
||||
|
||||
|
@ -215,10 +215,17 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
|
||||
//如果是wsn数据则生成数据
|
||||
$dataservice = new DataService();
|
||||
$wsnData = $dataservice->get($uuid);
|
||||
if(isset($wsnData['id']) && !empty($wsnData['id']))
|
||||
$offlineapp = new Offlineapp();
|
||||
|
||||
$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=?";
|
||||
|
|
|
@ -111,7 +111,7 @@ class DataService
|
|||
$param = array_merge($param,$param_temp);
|
||||
|
||||
$url = "http://waterwsn.westgis.ac.cn/downdatas.php";
|
||||
|
||||
$curl = new Curl();
|
||||
$data = $curl->request($url,$param,"POST");
|
||||
$data = json_decode($data['response'],TRUE);
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ class Offlineapp
|
|||
//获取一个申请的详细信息
|
||||
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
|
||||
WHERE off.id = $id
|
||||
";
|
||||
|
|
Loading…
Reference in New Issue