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
d42a59c7
Commit
d42a59c7
authored
Mar 05, 2021
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
01601afe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+7
-2
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
+8
-0
No files found.
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
d42a59c7
...
...
@@ -1206,7 +1206,7 @@ class OrderInfoService extends ServiceBase {
}
/**
*
需求
统计(产品维度)
*
订单
统计(产品维度)
* @param pobj
* @returns {Promise<void>}
*/
...
...
@@ -1233,7 +1233,7 @@ class OrderInfoService extends ServiceBase {
}
/**
*
需求
统计(产品维度)
*
订单
统计(产品维度)
* @param pobj
* @returns {Promise<void>}
*/
...
...
@@ -1333,6 +1333,11 @@ class OrderInfoService extends ServiceBase {
totalSql
+=
` and a.uapp_id = :uapp_id`
;
whereParams
.
uapp_id
=
ab
.
uapp_id
;
}
if
(
ab
.
status
){
listSql
+=
` and a.orderStatus = :status`
;
totalSql
+=
` and a.orderStatus = :status`
;
whereParams
.
status
=
ab
.
status
;
}
if
(
ab
.
type_code
){
listSql
+=
` and b.itemCode = :type_code`
;
totalSql
+=
` and b.itemCode = :type_code`
;
...
...
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
View file @
d42a59c7
...
...
@@ -183,6 +183,7 @@ class NeedinfoService extends ServiceBase {
if
(
ac
.
start
&&
ac
.
end
){
sql
+=
` AND created_at >= :start and created_at <= :end`
;
sql2
+=
` AND created_at >= :start and created_at <= :end`
;
sql3
+=
` AND created_at >= :start and created_at <= :end`
;
whereParams
.
start
=
ac
.
start
;
whereParams
.
end
=
ac
.
end
;
}
...
...
@@ -360,6 +361,13 @@ class NeedinfoService extends ServiceBase {
needToOrderTotalSql
+=
` and b.typeName = :type_name`
;
whereParams
.
typeName
=
actionBody
.
type_name
;
}
if
(
actionBody
.
status
){
needSql
+=
` and a.status = :status`
;
needTotalSql
+=
` and a.status = :status`
;
needToOrderSql
+=
` and b.status = :status`
;
needToOrderTotalSql
+=
` and b.status = :status`
;
whereParams
.
status
=
actionBody
.
status
;
}
if
(
actionBody
.
fuzzy_code
){
needSql
+=
` and ( a.needNo like :fuzzy_code or a.channelNeedNo like :fuzzy_code or a.publishMobile like :fuzzy_code)`
;
needTotalSql
+=
` and ( a.needNo like :fuzzy_code or a.channelNeedNo like :fuzzy_code or a.publishMobile like :fuzzy_code)`
;
...
...
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