Commit bf0faadb by hanghang.wang

调整取餐码起始规则

parent c790af3c
......@@ -99,8 +99,7 @@ public class OrderTackCodeManager {
if(incrementCode.length() < length){
code = redisTemplate.opsForHash().increment(randomKey, tackDesc+"Code", 1).toString();
}else{
code = "1";
redisTemplate.opsForHash().put(randomKey, tackDesc + "Code", Integer.parseInt(code));
redisTemplate.opsForHash().put(randomKey, tackDesc + "Code", 1);
}
}
code = String.format("%0" + length + "d", Integer.parseInt(code));
......
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