@@ -429,7 +429,8 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
builder.append(" and a.user_id='").append(userName).append("'");
builder.append(" and a.type='").append(type).append("'");
- if (dirId != null){
+ // dirId为空或者为1 :根目录
+ if (dirId != null && dirId > 1){
builder.append(" and a.dir_id=").append(dirId);
}