修改耗材提醒
This commit is contained in:
@@ -69,6 +69,8 @@ public class ConsMsgConsumer {
|
|||||||
@RabbitHandler
|
@RabbitHandler
|
||||||
public void listener(String message) {
|
public void listener(String message) {
|
||||||
|
|
||||||
|
log.info("耗材即将售罄提醒:{}",message);
|
||||||
|
|
||||||
JSONObject object = JSONObject.parseObject(message);
|
JSONObject object = JSONObject.parseObject(message);
|
||||||
if (Objects.isNull(object) || !object.containsKey("skuId") || !object.containsKey("shopId") || Objects.isNull(object.getInteger("skuId")) || Objects.isNull(object.getInteger("shopId"))) {
|
if (Objects.isNull(object) || !object.containsKey("skuId") || !object.containsKey("shopId") || Objects.isNull(object.getInteger("skuId")) || Objects.isNull(object.getInteger("shopId"))) {
|
||||||
log.info("接收的信息为空");
|
log.info("接收的信息为空");
|
||||||
|
|||||||
Reference in New Issue
Block a user