Commit 36d49522 authored by yanghao's avatar yanghao

fix: 修复跟进纪录编号生成bug

parent 27376485
...@@ -54,7 +54,7 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu ...@@ -54,7 +54,7 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
Long count = followupMapper.selectCount(new LambdaQueryWrapperX<CustomerFollowupDO>() Long count = followupMapper.selectCount(new LambdaQueryWrapperX<CustomerFollowupDO>()
.ge(CustomerFollowupDO::getCreateTime, from)); .ge(CustomerFollowupDO::getCreateTime, from));
return String.format("GJ%d%06d", year, count); return String.format("GJ%d%06d", year, count + 1);
} }
@Override @Override
......
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