Commit 7b700b17 authored by wwccw0591's avatar wwccw0591

pc

parent 752838d0
......@@ -162,6 +162,8 @@ class ApiConst
//平台介入
const platIn = 1;
const platNotIn = 0;
//平台介入中
const platProccess=2;
//平台审核状态
const refundPlatformVerify = 0;
const refundPlatformAgree = 1;
......
......@@ -787,14 +787,13 @@ class OrderModel extends \DAO\AbstractModel
}
//删除订单缓存
public function deleteOrderCache($memberId, $orderId = false, $stroeId = false, $deleteGetShopKeeperCountByStoreId = false, $deleteGetFavoritesCountByStoreId = false,$diliverymanId=0)
public function deleteOrderCache($memberId, $orderId = false, $stroeId = false, $deleteGetShopKeeperCountByStoreId = false, $deleteGetFavoritesCountByStoreId = false,$diliverymanId=ApiConst::zero)
{
if (!empty($memberId)) {
$this->deleteGetListByMemberId($memberId);
\DAO\MemberModel::getInstance()->deleteTotalCache($memberId);
}
if (!empty($stroeId)) {
if ($deleteGetShopKeeperCountByStoreId) {
$this->deleteGetShopKeeperCountByStoreId($stroeId);
......@@ -885,7 +884,7 @@ class OrderModel extends \DAO\AbstractModel
$limit = TIMESTAMP - $timeLimit;
$where[$timeField] = array('lt', $limit);
$where = $this->db->getSqlWhereByArray($where);
return $this->db->update($this->_tableName)->where($where)->rows(array('order_state' => $toState))->execute();
return $this->db->update($this->_tableName)->where($where)->rows(array('order_state' => $toState,'gmt_update'=>$toState))->execute();
}
......
......@@ -100,6 +100,7 @@ class RefundReturnModel extends \DAO\AbstractModel {
$where['refund_id'] = $refundId;
$where['buyer_id'] = $buyerId;
$data['is_platform_in']=ApiConst::platIn;
$data['refund_state']=ApiConst::platProccess;
$data['platform_in_reason']=$applyMessage;
return $this->update($where, $data);
}
......
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