|
@@ -89,6 +89,7 @@ class Aatest extends Start_Controller {
|
|
//定义方法的调用规则 获取URI第二段值
|
|
//定义方法的调用规则 获取URI第二段值
|
|
public function _remap($arg,$arg_array)
|
|
public function _remap($arg,$arg_array)
|
|
{
|
|
{
|
|
|
|
+ $this->dokucun();
|
|
exit('No direct script access allowed');
|
|
exit('No direct script access allowed');
|
|
if($arg == 'dayin')
|
|
if($arg == 'dayin')
|
|
{
|
|
{
|
|
@@ -100,6 +101,25 @@ class Aatest extends Start_Controller {
|
|
exit('No direct script access allowed');
|
|
exit('No direct script access allowed');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ private function dokucun(){
|
|
|
|
+ //美仓 未出库
|
|
|
|
+ $info = $this->db->from("whlabel")->where([
|
|
|
|
+ "warehouse"=>5,
|
|
|
|
+ 'state'=>0
|
|
|
|
+ ])->select("id,number,sku,warehouse,title,COUNT(id) AS total_num")->group_by('number')->order_by('total_num','desc')->limit(10,0)->get();
|
|
|
|
+ echo "<pre>";
|
|
|
|
+ print_r($info->result_array());
|
|
|
|
+ die;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function _pdfurl($pdf,$title,$bctime)
|
|
|
|
+ {
|
|
|
|
+ $pdf_path = './data/pdf/'.$bctime.'/';
|
|
|
|
+ $pdf = fopen($pdf,"r");
|
|
|
|
+ if(!is_dir($pdf_path))mkdir($pdf_path,0777); //上传目录不存在则创建
|
|
|
|
+ file_put_contents($pdf_path.$title.'.pdf',$pdf);
|
|
|
|
+ return $bctime;
|
|
|
|
+ }
|
|
|
|
|
|
public function _linshittmsg(){
|
|
public function _linshittmsg(){
|
|
exit;
|
|
exit;
|