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
0f1ac400
Commit
0f1ac400
authored
Sep 28, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update async getProductPrice(actionBody){
parent
bbbf4433
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
center-app/app/base/service/impl/dbproduct/productSve.js
+9
-0
center-app/app/base/utils/businessManager/opPlatformUtils.js
+1
-0
No files found.
center-app/app/base/service/impl/dbproduct/productSve.js
View file @
0f1ac400
...
...
@@ -170,6 +170,15 @@ class ProductService extends ServiceBase {
producesql
+=
` AND pc.additions_desc = '
${
actionBody
.
companyType
}
'`
}
break
;
// 2020 0927 lin 新增 /zzfw/wangwen/ 询价方法
case
'zzfw'
:
if
(
actionBody
.
city
){
let
str
=
actionBody
.
city
;
producesql
+=
` AND pc.price_desc LIKE '%
${
str
}
%'`
;
}
else
{
return
system
.
getResultFail
(
null
,
'actionBody.serviceType can not be empty!'
)
}
break
;
default
:
producesql
+=
` AND pt.channel_item_code = '
${
code2
}
'`
;
break
;
...
...
center-app/app/base/utils/businessManager/opPlatformUtils.js
View file @
0f1ac400
...
...
@@ -356,6 +356,7 @@ class OpPlatformUtils {
// }
// var result = await cacheManager["AppUserPinByLoginVcodeCache"].cache(inputkey, pobj, system.exTime);
// 2020 0805 lin 修改 cache 改为buildCache。buildCache为新增的方法。与cache的区别是 不去get获取 直接走buildCacheVal
// 修改原因:cache的方法大概是去缓存取如果有就返回,不更新过期时间,buildCache为查一遍user信息 刷新一下过期时间,redis key不变
var
result
=
await
cacheManager
[
"AppUserPinByLoginVcodeCache"
].
buildCache
(
inputkey
,
pobj
,
system
.
exTime
);
if
(
result
&&
result
.
status
==
0
&&
pobj
.
actionBody
.
reqType
!=
"reg"
)
{
var
userpinKey
=
this
.
getUserPinKey
(
pobj
.
actionBody
.
userpin
);
...
...
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