|  | @@ -305,7 +305,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                  const maxOrder = await this.ctx.service.contract.getMaxOrder(options, select[this.setting.kid], transaction);
 | 
	
		
			
				|  |  |                  const newDatas = [];
 | 
	
		
			
				|  |  |                  const maxId = await this._getMaxLid(options);
 | 
	
		
			
				|  |  | -                for (let i = 0; i < count; i++) {
 | 
	
		
			
				|  |  | +                for (let i = 1; i < count + 1; i++) {
 | 
	
		
			
				|  |  |                      const newData = [];
 | 
	
		
			
				|  |  |                      if (this.setting.uuid) newData.id = this.uuid.v4();
 | 
	
		
			
				|  |  |                      newData[this.setting.kid] = maxId + i;
 | 
	
	
		
			
				|  | @@ -314,7 +314,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                      newData[this.setting.type] = options[this.setting.type];
 | 
	
		
			
				|  |  |                      newData[this.setting.mid] = options.tid || null;
 | 
	
		
			
				|  |  |                      newData[this.setting.level] = select[this.setting.level] + 1;
 | 
	
		
			
				|  |  | -                    newData[this.setting.order] = maxOrder + i;
 | 
	
		
			
				|  |  | +                    newData[this.setting.order] = maxOrder - 1 + i;
 | 
	
		
			
				|  |  |                      newData[this.setting.fullPath] = select[this.setting.fullPath] + '-' + newData[this.setting.kid];
 | 
	
		
			
				|  |  |                      newData[this.setting.isLeaf] = true;
 | 
	
		
			
				|  |  |                      newDatas.push(newData);
 | 
	
	
		
			
				|  | @@ -336,7 +336,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              let createData = await this.getLastChildData(options, select[this.setting.kid]);
 | 
	
		
			
				|  |  |              let updateData = select;
 | 
	
		
			
				|  |  | -            return { create: createData, update: updateData };
 | 
	
		
			
				|  |  | +            return { create: [createData], update: [updateData] };
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          /**
 |