|
@@ -41,7 +41,6 @@ class Whlabel extends Start_Controller
|
|
|
$this->load->_model('Model_whlabel_list', 'whlabel_list');
|
|
|
$this->load->_model("Model_logic_whlabel", "logic_whlabel");
|
|
|
$this->load->_model("Model_logic_order","logic_order");
|
|
|
- $this->load->_model("Model_logic_ding","logic_ding");
|
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg, $arg_array)
|
|
@@ -1289,7 +1288,6 @@ class Whlabel extends Start_Controller
|
|
|
}
|
|
|
|
|
|
|
|
|
- $this->logic_ding->sendToDing("监听美仓BCA".$where. $fjnr);
|
|
|
//$where .= " and time > '$ktime' and time < '$jtime'";
|
|
|
$info_list = $this->whlabel->find_pc($where . $fjnr, 'sku,purchase,features,warehouse', 'id,warehouse,purchase,sku,title,details,shop,cpbz,label,type,features,number,sm', $order_str, $start, $perpage); //改这需要修改_gbhtype
|
|
|
|
|
@@ -1316,7 +1314,6 @@ class Whlabel extends Start_Controller
|
|
|
$cdata = array_filter($qbdata, function ($item) {
|
|
|
return $item['state'] < 1;
|
|
|
});
|
|
|
- $this->logic_ding->sendToDing("监听美仓BCA【".json_encode($qbdata)."】".json_encode($cdata));
|
|
|
$c = array_sum(array_column($cdata, 'jnum'));
|
|
|
|
|
|
$gdata = array_filter($qbdata, function ($item) use ($ktime, $jtime) {
|
|
@@ -3790,7 +3787,7 @@ class Whlabel extends Start_Controller
|
|
|
$start = ($page - 1) * $perpage;
|
|
|
}
|
|
|
|
|
|
- //$this->logic_ding->sendToDing("导出出入库分类数据".$where);
|
|
|
+
|
|
|
|
|
|
//取得信息列表
|
|
|
if ($type != 3 && $type != 5) {
|
|
@@ -3933,7 +3930,7 @@ class Whlabel extends Start_Controller
|
|
|
$this->excel->get_fz2($final_list, $titlename, $filename, $tail);
|
|
|
} else if ($type == 5) {
|
|
|
$info_list = $this->whlabel->find_all($where, 'warehouse,purchase,sku,title,features,label,outk', $order_str);
|
|
|
- //$this->logic_ding->sendToDing("导出出入库分类数据".json_encode($info_list));
|
|
|
+
|
|
|
foreach ($info_list as $key => $value) {
|
|
|
$info_list[$key]['purchase'] = (isset($prc[$value['purchase']])) ? $prc[$value['purchase']] : '未知';
|
|
|
$info_list[$key]['outk'] = date('Y-m-d H:i:s', $value['outk']); //减12调整美国时间
|