工作中。需求不断变动
/*
if($x[$j][$i] != 0){
$this->logs_mdl->ins_stock_logs($st_log0);
};
$st_log1 = array(
'trans_id'=>$trid,
'sl_op'=>$oparr['op_id'],
'sl_time'=>time(),
'sl_text'=>'已完成',
'sl_memo'=>'门店:'.$newarr_stores_name[$i].' 增加了 '.$x[$j][$i].$pids[$j]['goods_unit'].$pids[$j]['goods_name'].$pids[$j]['product_pdt_desc'],
//'sl_memo'=>'产品id'.$pids[$j]['product_id'],
);
if($x[$j][$i] != 0){
$this->logs_mdl->ins_stock_logs($st_log1);
};
$st_log2 = array(
'trans_id'=>$trid,
'sl_op'=>$oparr['op_id'],
'sl_time'=>time(),
'sl_text'=>'已出库',
'sl_memo'=>'仓库:'.$ssid_name.' 减少了'.$x[$j][$i].$pids[$j]['goods_unit'].$pids[$j]['goods_name'].$pids[$j]['product_pdt_desc'],
//'sl_memo'=>'产品id'.$pids[$j]['product_id'],
);
if($x[$j][$i] != 0){
$this->logs_mdl->ins_stock_logs($st_log2);
};
*/