记得上下班打卡 | git大法好,push需谨慎

Commit bd9a79ca authored by 高虎's avatar 高虎 Committed by GaoHu

exit

parent 2f25b577
...@@ -71,7 +71,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS ...@@ -71,7 +71,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
goodsAnticipateVo.getAboutStartDate(), goodsAnticipateVo.getAboutStartDate(),
goodsAnticipateVo.getAboutEndDate() goodsAnticipateVo.getAboutEndDate()
}); });
sendRedis(MQConst.GoblinQueue.GOBLIN_STORE_MARKET.getKey(), "goblin_goods_anticipate", sqlAnt); sendRedis("goblin_goods_anticipate", sqlAnt);
//redis消息 //redis消息
goodsAnticipateValues.forEach(goodsAnticipateValueVo -> { goodsAnticipateValues.forEach(goodsAnticipateValueVo -> {
...@@ -84,7 +84,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS ...@@ -84,7 +84,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
goodsAnticipateValueVo.getAboutStartDate(), goodsAnticipateValueVo.getAboutStartDate(),
goodsAnticipateValueVo.getAboutEndDate(), goodsAnticipateValueVo.getAboutEndDate(),
}); });
sendRedis(MQConst.GoblinQueue.GOBLIN_STORE_MARKET.getKey(), "goblin_goods_anticipate_value", sqlValue); sendRedis("goblin_goods_anticipate_value", sqlValue);
}); });
//更新mongodb //更新mongodb
...@@ -94,15 +94,6 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS ...@@ -94,15 +94,6 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
return ResponseDto.failure("参数有误"); return ResponseDto.failure("参数有误");
} }
public void sendRedis(String rediskey, String sqlKey, LinkedList<Object[]> sqlData) {
LinkedList<String> sql = CollectionUtil.linkedListString();
sql.add(SqlMapping.get(sqlKey));
String sqlStr = SqlMapping.gets(sql, sqlData);
queueUtils.sendMsgByRedis(
rediskey,
sqlStr);
}
@Override @Override
public ResponseDto<Object> updatePeople(Long people) { public ResponseDto<Object> updatePeople(Long people) {
//修改Mongodb //修改Mongodb
...@@ -119,4 +110,13 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS ...@@ -119,4 +110,13 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
} }
public void sendRedis(String sqlKey, LinkedList<Object[]> sqlData) {
LinkedList<String> sql = CollectionUtil.linkedListString();
sql.add(SqlMapping.get(sqlKey));
String sqlStr = SqlMapping.gets(sql, sqlData);
queueUtils.sendMsgByRedis(
MQConst.GoblinQueue.GOBLIN_STORE_MARKET.getKey(),
sqlStr);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment