记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
8d6466b2
Commit
8d6466b2
authored
Jan 13, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~API:店铺审核:状态调整;
parent
e6c1a209
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
GoblinStoreInfoServiceImpl.java
...ngzai/goblin/service/impl/GoblinStoreInfoServiceImpl.java
+2
-2
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+1
-1
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+7
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinStoreInfoServiceImpl.java
View file @
8d6466b2
...
...
@@ -47,7 +47,7 @@ public class GoblinStoreInfoServiceImpl extends ServiceImpl<GoblinStoreInfoMappe
lambdaUpdateWrapper
.
eq
(
GoblinStoreInfo:
:
getStoreId
,
storeId
);
lambdaUpdateWrapper
.
eq
(
GoblinStoreInfo:
:
getStatus
,
1
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getStatus
,
status
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getStatus
,
status
.
equals
(
"3"
)
?
"4"
:
status
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getReason
,
reason
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getUpdatedBy
,
operator
);
lambdaUpdateWrapper
.
set
(
GoblinStoreInfo:
:
getUpdatedAt
,
now
);
...
...
@@ -60,7 +60,7 @@ public class GoblinStoreInfoServiceImpl extends ServiceImpl<GoblinStoreInfoMappe
}
Query
query
=
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
));
Update
update
=
Update
.
update
(
"status"
,
status
);
Update
update
=
Update
.
update
(
"status"
,
status
.
equals
(
"3"
)
?
"4"
:
status
);
update
.
set
(
"reason"
,
reason
);
update
.
set
(
"updatedBy"
,
operator
);
update
.
set
(
"updatedAt"
,
now
);
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
8d6466b2
...
...
@@ -105,7 +105,7 @@ public class GoblinMongoUtils {
public
List
<
GoblinStoreConfigVo
>
getStoreConfigVo
(
String
storeId
)
{
Query
query
=
Query
.
query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
));
query
.
fields
().
include
(
"config
Name"
).
include
(
"config
Key"
).
include
(
"configVal"
);
query
.
fields
().
include
(
"configKey"
).
include
(
"configVal"
);
return
mongoTemplate
.
find
(
query
,
GoblinStoreConfigVo
.
class
,
GoblinStoreConfigVo
.
class
.
getSimpleName
());
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
8d6466b2
...
...
@@ -7,6 +7,7 @@ import com.liquidnet.commons.lang.util.JsonUtils;
import
com.liquidnet.commons.lang.util.RandomUtil
;
import
com.liquidnet.service.goblin.constant.GoblinRedisConst
;
import
com.liquidnet.service.goblin.dto.vo.*
;
import
com.liquidnet.service.goblin.enums.GoblinStoreConf
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -103,6 +104,12 @@ public class GoblinRedisUtils {
String
rk
=
GoblinRedisConst
.
BASIC_STORE_CONF
.
concat
(
storeId
);
List
<
GoblinStoreConfigVo
>
vos
=
(
List
<
GoblinStoreConfigVo
>)
redisUtil
.
get
(
rk
);
if
(
CollectionUtils
.
isEmpty
(
vos
)
&&
null
!=
(
vos
=
goblinMongoUtils
.
getStoreConfigVo
(
storeId
)))
{
GoblinStoreInfoVo
storeInfoVo
=
this
.
getStoreInfoVo
(
storeId
);
vos
.
add
(
GoblinStoreConfigVo
.
getNew
()
.
setConfigKey
(
GoblinStoreConf
.
BUSINESS_STATUS
.
name
())
.
setConfigVal
(
null
==
storeInfoVo
?
"4"
:
storeInfoVo
.
getStatus
().
equals
(
"3"
)
?
"5"
:
storeInfoVo
.
getStatus
())
);
// redisUtil.set(rk, vos);// TODO: 2022/1/12 zhanggb==
}
return
vos
;
...
...
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