Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
5a11b0ad
Commit
5a11b0ad
authored
Oct 15, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
食品
parent
6c7d04b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
2 deletions
+38
-2
icp-deliver/app/base/db/impl/delivery/deliverDao.js
+33
-1
icp-deliver/app/base/utils/toqifutongClient.js
+5
-1
No files found.
icp-deliver/app/base/db/impl/delivery/deliverDao.js
View file @
5a11b0ad
...
@@ -139,7 +139,39 @@ class DeliverDao extends Dao {
...
@@ -139,7 +139,39 @@ class DeliverDao extends Dao {
break
break
}
}
qc
.
where
[
"$and"
]
=
filters
;
qc
.
where
[
"$and"
]
=
filters
;
}
else
{
}
else
if
(
type
===
"foodManagement"
)
{
let
filters
=
[];
filters
.
push
({
product_code
:
"food"
})
switch
(
qobj
.
bizpath
)
{
case
"/foodManagement/wait"
:
filters
.
push
({
delivery_status
:
{
$notIn
:
[
system
.
SERVERSESTATUS
.
SUCCESS
,
system
.
SERVERSESTATUS
.
CLOSED
]
}
});
break
case
"/foodManagement/deliveryAllocated"
:
filters
.
push
({
delivery_man_opcode
:
{
$ne
:
null
}
});
break
case
"/foodManagement/deliveryNoAllocate"
:
filters
.
push
({
delivery_man_opcode
:
{
$eq
:
null
}
});
break
case
"/foodManagement/all"
:
break
}
qc
.
where
[
"$and"
]
=
filters
;
}
else
{
throw
new
Error
(
"页面路径错误"
)
throw
new
Error
(
"页面路径错误"
)
}
}
return
qw
;
return
qw
;
...
...
icp-deliver/app/base/utils/toqifutongClient.js
View file @
5a11b0ad
...
@@ -174,6 +174,10 @@ const submitMaterials = async (deliverData, materials) => {
...
@@ -174,6 +174,10 @@ const submitMaterials = async (deliverData, materials) => {
607: "⼯商部未通过"
607: "⼯商部未通过"
*/
*/
const
wangwenSubmitOption
=
async
(
deliverData
,
materials
)
=>
{
const
wangwenSubmitOption
=
async
(
deliverData
,
materials
)
=>
{
const
channelType
=
{
"wangwen"
:
"esp.wangwen"
,
"food"
:
"esp.food"
};
let
req
=
{};
let
req
=
{};
switch
(
deliverData
.
delivery_status
)
{
switch
(
deliverData
.
delivery_status
)
{
case
system
.
SERVERSESTATUS
.
COLLECTING
:
case
system
.
SERVERSESTATUS
.
COLLECTING
:
...
@@ -224,7 +228,7 @@ const wangwenSubmitOption = async (deliverData, materials) => {
...
@@ -224,7 +228,7 @@ const wangwenSubmitOption = async (deliverData, materials) => {
await
pushQiFuTong
(
deliverData
.
salesman_phone
,
{
await
pushQiFuTong
(
deliverData
.
salesman_phone
,
{
actionType
:
"serviceSubmitOption"
,
actionType
:
"serviceSubmitOption"
,
actionBody
:
{
actionBody
:
{
"channelT
pye"
:
"esp.wangwen"
,
"channelT
ype"
:
channelType
[
deliverData
.
product_code
]
,
"channelNeedNo"
:
deliverData
.
demand_code
,
"channelNeedNo"
:
deliverData
.
demand_code
,
...
req
,
...
req
,
}
}
...
...
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