Commit 4a9b9578 authored by clone's avatar clone

修改商铺数量

parent 1c75b6bf
...@@ -31,7 +31,7 @@ class HouseNumUpdateService ...@@ -31,7 +31,7 @@ class HouseNumUpdateService
$bargainModel = new OBargainModel(); $bargainModel = new OBargainModel();
$params["father_id"] = 0; $params["father_id"] = 0;
$params["order_id"] = $order_id; $params["order_id"] = $order_id;
//$params["status"] = 10; $params["status"] = 10;
$bargainNum = $bargainModel->ifBargainNumByOrderId($params); $bargainNum = $bargainModel->ifBargainNumByOrderId($params);
if($bargainNum == 1){ if($bargainNum == 1){
$orderModel = new OrderModel(); $orderModel = new OrderModel();
...@@ -39,7 +39,7 @@ class HouseNumUpdateService ...@@ -39,7 +39,7 @@ class HouseNumUpdateService
$orderParams["a.id"] = $order_id; $orderParams["a.id"] = $order_id;
$houseInfo = $orderModel->getHouseInfoByOrderId($field,$orderParams); $houseInfo = $orderModel->getHouseInfoByOrderId($field,$orderParams);
if(count($houseInfo) > 0 && $houseInfo[0]["residue_num"] > 0 && $houseInfo[0]["status"] == 1){ if(count($houseInfo) > 0 && $houseInfo[0]["residue_num"] > 0 ){
//减数量 //减数量
$houseModel = new GHouses(); $houseModel = new GHouses();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment