记得上下班打卡 | 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
5f2dfeec
Commit
5f2dfeec
authored
Apr 12, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exit
parent
ec2672d8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
69 deletions
+0
-69
GoblinGoodsAnticipateServiceImpl.java
...goblin/service/impl/GoblinGoodsAnticipateServiceImpl.java
+0
-60
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+0
-9
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinGoodsAnticipateServiceImpl.java
View file @
5f2dfeec
...
...
@@ -239,66 +239,6 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
return
ResponseDto
.
success
();
}
/* @Override
public ResponseDto<Object> update(GoblinGoodsAnticipateUpdateParam goodsAnticipateUpdateParam) {
//跟新mongodb
goblinMongoUtils.updateGoblinGoodsAnticipateVo(goodsAnticipateUpdateParam);
//修改mysql
LinkedList<Object[]> sqlValue = CollectionUtil.linkedListObjectArr();
sqlValue.add(new Object[]{
goodsAnticipateUpdateParam.getName(),
goodsAnticipateUpdateParam.getRule(),
goodsAnticipateUpdateParam.getAntId()
});
sendRedis("goblin_goods_anticipate_update", sqlValue);
return ResponseDto.success();
}
@Override
public ResponseDto<Object> updateAnticipateValues(List<GoblinGoodsAnticipateValueParam> list) {
if (list != null && list.size() > 0) {
list.forEach(item -> {
GoblinGoodsAnticipateValueVo goodsAnticipateValueVo = new GoblinGoodsAnticipateValueVo();
BeanUtils.copyProperties(item, goodsAnticipateValueVo);
LinkedList<Object[]> sqlValue = CollectionUtil.linkedListObjectArr();
if (goodsAnticipateValueVo.getDelTag() == 1) {
//删除该sku关联
goblinMongoUtils.delAnticipateValueVo(goodsAnticipateValueVo);
//删除redis
goblinRedisUtils.delAnticipateValue(goodsAnticipateValueVo.getSkuId());
//删除mysql中的关联数据
sqlValue.add(new Object[]{
goodsAnticipateValueVo.getAntId(),
goodsAnticipateValueVo.getSkuId()
});
sendRedis("goblin_goods_anticipate_value_delete_by_antId_and_skuId", sqlValue);
} else {
//保存mysql中间表
sqlValue.add(new Object[]{
goodsAnticipateValueVo.getAboutStartDate(),
goodsAnticipateValueVo.getAboutEndDate(),
goodsAnticipateValueVo.getAntId(),
goodsAnticipateValueVo.getSkuId(),
goodsAnticipateValueVo.getSpuId(),
});
sendRedis("goblin_goods_anticipate_value_update", sqlValue);
//修改mongodb
goblinMongoUtils.updateAnticipateValueVo(goodsAnticipateValueVo);
}
});
}
return ResponseDto.success();
}
@Override
public ResponseDto<Object> getAnticipateValues(String antId) {
return ResponseDto.success(goblinMongoUtils.getGoodsAnticipateValues(antId));
}*/
public
void
sendRedis
(
String
sqlKey
,
LinkedList
<
Object
[]>
sqlData
)
{
LinkedList
<
String
>
sql
=
CollectionUtil
.
linkedListString
();
sql
.
add
(
SqlMapping
.
get
(
sqlKey
));
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
5f2dfeec
...
...
@@ -158,15 +158,6 @@ public class GoblinMongoUtils {
mongoTemplate
.
remove
(
query
,
GoblinGoodAnticipateUserVo
.
class
.
getSimpleName
()).
getDeletedCount
();
}
}
/**
* 根据预约ID获取预约详情
*/
public
GoblinGoodsAnticipateVo
getAnticipateVo
(
String
antId
)
{
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"autId"
).
is
(
antId
)),
GoblinGoodsAnticipateVo
.
class
,
GoblinGoodsAnticipateVo
.
class
.
getSimpleName
());
}
/**
* 添加预约中间表信息
*/
...
...
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