1
This commit is contained in:
parent
ee1960550d
commit
660762b0a4
@ -6,12 +6,16 @@ use app\common\logic\BaseLogic;
|
|||||||
use app\common\model\store_order_cart_info\StoreOrderCartInfo;
|
use app\common\model\store_order_cart_info\StoreOrderCartInfo;
|
||||||
use app\common\model\user_product_storage\UserProductStorage;
|
use app\common\model\user_product_storage\UserProductStorage;
|
||||||
use app\common\model\user_product_storage_log\UserProductStorageLog;
|
use app\common\model\user_product_storage_log\UserProductStorageLog;
|
||||||
|
use think\facade\Db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户商品储存逻辑
|
* 用户商品储存逻辑
|
||||||
*/
|
*/
|
||||||
class UserProductStorageLogic extends BaseLogic
|
class UserProductStorageLogic extends BaseLogic
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* 入库逻辑处理
|
||||||
|
*/
|
||||||
public static function add($order){
|
public static function add($order){
|
||||||
$arr=StoreOrderCartInfo::where('oid',$order['id'])->field('product_id,cart_num nums')->select();
|
$arr=StoreOrderCartInfo::where('oid',$order['id'])->field('product_id,cart_num nums')->select();
|
||||||
if($arr){
|
if($arr){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user