|
@@ -230,7 +230,7 @@ public class CustomerServiceImpl implements CustomerService {
|
|
|
|
|
|
// 更新父级客户的子客户数量
|
|
|
protected void updateParentChildrenNum(Integer parentId) {
|
|
|
- if(parentId > 0) {
|
|
|
+ if(parentId != null && parentId > 0) {
|
|
|
Integer count = customerMapper.countChildrenNum(parentId);
|
|
|
Customer customer = this.findById(parentId);
|
|
|
customer.setId(parentId);
|