|
|
@@ -91,8 +91,27 @@ class Aatest extends Start_Controller {
|
|
|
public function _remap($arg,$arg_array)
|
|
|
{
|
|
|
|
|
|
-
|
|
|
- //$this->_ttexpress();
|
|
|
+ $tmp_list = $this->db->get_where('whlabel_bh_scan', [
|
|
|
+ 'status'=>1,
|
|
|
+ ])->result_array();
|
|
|
+ $goods_list = [];
|
|
|
+ foreach($tmp_list as $k=>$v){
|
|
|
+ if(isset($goods_list[$v['jm']])){
|
|
|
+ $goods_list[$v['jm']]['dcsl'] += 1;
|
|
|
+ }else{
|
|
|
+ $goods_list[$v['jm']] = [
|
|
|
+ 'jm'=>$v['jm'],
|
|
|
+ 'pm'=>$v['pm'],
|
|
|
+ 'dcsl'=>1,
|
|
|
+ 'final_price'=>1,//让财务录入价格
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ count($goods_list);
|
|
|
+ die;
|
|
|
+
|
|
|
+
|
|
|
+ //$this->_print();
|
|
|
exit('No direct script access allowed');
|
|
|
if($arg == 'dayin')
|
|
|
{
|
|
|
@@ -107,7 +126,7 @@ class Aatest extends Start_Controller {
|
|
|
|
|
|
private function _ttexpress(){
|
|
|
$info = $this->logic_order->getInfo("number = 'TT-KISS-251021-001'");
|
|
|
- $res = $this->express_tt->getData($info,'FBT');
|
|
|
+ $res = $this->express_tt->get_data($info,'FBT');
|
|
|
echo "<pre>";
|
|
|
print_r($res);
|
|
|
}
|