Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
d78f1519
Commit
d78f1519
authored
Oct 30, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qm
parent
b359d583
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
DeliveryService.php
application/models/Business/Store/DeliveryService.php
+12
-0
QmDeliverymanLog.php
application/models/DAO/Order/QmDeliverymanLog.php
+12
-0
No files found.
application/models/Business/Store/DeliveryService.php
View file @
d78f1519
...
@@ -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
();
}
}
/**
/**
* 登录业务
* 登录业务
*
*
...
...
application/models/DAO/Order/QmDeliverymanLog.php
View file @
d78f1519
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment