|
|
@@ -61,8 +61,6 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
result += admin.getSuperiorId() + ",";
|
|
|
result += findLadderIds(admin.getSuperiorId());
|
|
|
}
|
|
|
- if(!result.equals("")) result = result.substring(0, result.length()-1);
|
|
|
- //System.out.println("adminId="+adminId+",result="+result);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@@ -73,6 +71,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<CustomerMapper> implemen
|
|
|
String newPaid = "";
|
|
|
for(Customer c:customers){
|
|
|
newPaid = findLadderIds(c.getAid());
|
|
|
+ if(!newPaid.equals("")) newPaid = newPaid.substring(0, newPaid.length()-1);
|
|
|
c.setPaid(newPaid);
|
|
|
customerMapper.updateByPrimaryKeySelective(c);
|
|
|
}
|