Commit d78f1519 authored by wwccw0591's avatar wwccw0591

qm

parent b359d583
...@@ -24,7 +24,19 @@ class DeliveryServiceModel extends \Business\AbstractModel ...@@ -24,7 +24,19 @@ class DeliveryServiceModel extends \Business\AbstractModel
$this->storeDao = StoreModel::getInstance(); $this->storeDao = StoreModel::getInstance();
} }
public function selectDeliveryMan($data){
$orderDao=\DAO\Order\OrderModel::getInstance(DbNameConst::masterDBConnectName);
$qmDeliveryManLog=\DAO\Order\QmDeliverymanLogModel::getInstance(DbNameConst::masterDBConnectName);
$orderDao->setDb($orderDao->dbName);
$orderDao->db->doTransaction();
$orderData['diliveryman_id']=$data['id'];
$orderRes=$orderDao->updateByOrderId($orderData,$data['orderId']);
if(!$orderRes){
$orderDao->db->doRollback();
}
}
/** /**
* 登录业务 * 登录业务
* *
......
...@@ -50,6 +50,18 @@ class QmDeliverymanLogModel extends \DAO\AbstractModel ...@@ -50,6 +50,18 @@ class QmDeliverymanLogModel extends \DAO\AbstractModel
return $this->db->update($this->_tableName)->where($where)->rows($data)->execute(); return $this->db->update($this->_tableName)->where($where)->rows($data)->execute();
} }
/**
* 插入数据
* @param $data
* @param $where
* @return mixed
*/
public function insert($data)
{
$this->setDb(\Our\DbNameConst::masterDBConnectName);
return $this->db->insert($this->_tableName)->rows($data)->execute();
}
public function updateStatusById($id) public function updateStatusById($id)
{ {
$where['id'] = $id; $where['id'] = $id;
......
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