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
67daf6b0
Commit
67daf6b0
authored
Jul 09, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
0c8181a8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
9 deletions
+10
-9
center-manage/app/base/db/cache/appCache.js
+1
-1
center-manage/app/base/db/cache/channelCache.js
+1
-1
center-manage/app/base/db/cache/clientBindBizUserCache.js
+1
-1
center-manage/app/base/db/cache/codeCache.js
+1
-1
center-manage/app/base/db/cache/companyCache.js
+1
-1
center-manage/app/base/db/cache/txCache.js
+1
-1
center-manage/app/base/db/cache/userCache.js
+1
-1
center-manage/app/base/db/cache/vcodeCache.js
+1
-1
center-manage/app/base/service/impl/auth/userSve.js
+2
-1
No files found.
center-manage/app/base/db/cache/appCache.js
View file @
67daf6b0
...
...
@@ -14,7 +14,7 @@ class AppCache extends CacheBase{
return
"缓存本地应用对象"
;
}
prefix
(){
return
"g_applocal_"
return
"g_applocal_
cm:
"
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
const
configValue
=
await
this
.
appDao
.
findOne
({
appkey
:
inputkey
});
...
...
center-manage/app/base/db/cache/channelCache.js
View file @
67daf6b0
...
...
@@ -13,7 +13,7 @@ class ChannelCache extends CacheBase {
return
"缓存本地应用对象"
;
}
prefix
()
{
return
"g_channel_"
return
"g_channel_
cm:
"
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
const
configValue
=
await
this
.
channelDao
.
model
.
findOne
(
...
...
center-manage/app/base/db/cache/clientBindBizUserCache.js
View file @
67daf6b0
...
...
@@ -12,7 +12,7 @@ class ClientBindBizUserCache extends CacheBase{
return
"缓存本地应用对象"
;
}
prefix
(){
return
"g_client2bizuser_"
return
"g_client2bizuser_
cm:
"
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
return
JSON
.
stringify
(
val
);
...
...
center-manage/app/base/db/cache/codeCache.js
View file @
67daf6b0
...
...
@@ -14,7 +14,7 @@ class CodeCache extends CacheBase{
return
"缓存code子系统用户登录信息对象"
;
}
prefix
(){
return
"g_code_userlocal_"
return
"g_code_userlocal_
cm:
"
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
if
(
val
)
{
...
...
center-manage/app/base/db/cache/companyCache.js
View file @
67daf6b0
...
...
@@ -14,7 +14,7 @@ class CompanyCache extends CacheBase{
return
"缓存统一公司对象"
;
}
prefix
(){
return
"gc_companylocal_"
return
"gc_companylocal_
cm:
"
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
const
configValue
=
await
this
.
companyDao
.
findOne
({
companykey
:
inputkey
});
...
...
center-manage/app/base/db/cache/txCache.js
View file @
67daf6b0
...
...
@@ -13,7 +13,7 @@ class TxCache extends CacheBase {
return
"缓存缓存腾讯队列信息"
;
}
prefix
()
{
return
"g_txInfo_"
return
"g_txInfo_
cm:
"
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
if
(
val
)
{
...
...
center-manage/app/base/db/cache/userCache.js
View file @
67daf6b0
...
...
@@ -13,7 +13,7 @@ class UserCache extends CacheBase{
return
"缓存本地应用对象"
;
}
prefix
(){
return
"g_userlocal_"
return
"g_userlocal_
cm:
"
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
const
configValue
=
await
this
.
userDao
.
model
.
findAll
({
...
...
center-manage/app/base/db/cache/vcodeCache.js
View file @
67daf6b0
...
...
@@ -14,7 +14,7 @@ class VCodeCache extends CacheBase {
return
"缓存给手机发送的验证码60妙"
;
}
prefix
()
{
return
"g_vcode_"
return
"g_vcode_
cm:
"
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
//inputkey采用appkey_mobile的形式
...
...
center-manage/app/base/service/impl/auth/userSve.js
View file @
67daf6b0
...
...
@@ -385,6 +385,7 @@ class UserService extends ServiceBase {
*/
async
getBizUserForBizChance
(
clientMobile
,
spName
,
productCatName
,
regionName
)
{
var
self
=
this
clientMobile
=
clientMobile
+
"_"
+
spName
//按照服务商名字查询到公司,按照公司查询出users,条件是可以接受派单任务,并且技能标签含有,产品类别名称
return
this
.
db
.
transaction
(
async
function
(
t
)
{
//先检查缓存是否存在bizuser
...
...
@@ -463,7 +464,7 @@ class UserService extends ServiceBase {
* @param {*} regionName 区域
*/
async
getBizUserForDelivery
(
xclientMobile
,
spName
,
productCatName
,
skucode
,
regionName
)
{
let
clientMobile
=
'fordeliver'
+
xclientMobile
let
clientMobile
=
'fordeliver'
+
xclientMobile
+
"_"
+
spName
var
self
=
this
//按照服务商名字查询到公司,按照公司查询出users,条件是可以接受派单任务,并且技能标签含有,产品类别名称
return
this
.
db
.
transaction
(
async
function
(
t
)
{
...
...
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