京粉
This commit is contained in:
@@ -1607,6 +1607,17 @@ public class JDUtil {
|
|||||||
wxUtil.sendTextMessage(fromWxid, "添加型号格式错误,请输入正确的格式:添加型号-型号名称-型号SKU", 1, fromWxid, false);
|
wxUtil.sendTextMessage(fromWxid, "添加型号格式错误,请输入正确的格式:添加型号-型号名称-型号SKU", 1, fromWxid, false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
}else if (
|
||||||
|
order.startsWith("删除型号")
|
||||||
|
){
|
||||||
|
String replace = order.replace("删除型号-", "");
|
||||||
|
String[] split = replace.split("-");
|
||||||
|
if (split.length == 1) {
|
||||||
|
delProductTypeMap(split[0]);
|
||||||
|
wxUtil.sendTextMessage(fromWxid, "删除型号成功", 1, fromWxid, false);
|
||||||
|
} else {
|
||||||
|
wxUtil.sendTextMessage(fromWxid, "删除型号格式错误,请输入正确的格式:删除型号-型号名称", 1, fromWxid, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
StringBuilder productTypeStr = new StringBuilder();
|
StringBuilder productTypeStr = new StringBuilder();
|
||||||
@@ -1644,6 +1655,9 @@ public class JDUtil {
|
|||||||
public void addProductTypeMap(String key, String value) {
|
public void addProductTypeMap(String key, String value) {
|
||||||
redisTemplate.opsForHash().put(PRODUCT_TYPE_MAP_PREFIX, key, value);
|
redisTemplate.opsForHash().put(PRODUCT_TYPE_MAP_PREFIX, key, value);
|
||||||
}
|
}
|
||||||
|
public void delProductTypeMap(String key) {
|
||||||
|
redisTemplate.opsForHash().delete(PRODUCT_TYPE_MAP_PREFIX, key);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user