| 
					
				 | 
			
			
				@@ -64,7 +64,7 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        async setCategoryValue(cid, value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        async setCategoryValue(subProject, cid, value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const tenders = await this.ctx.service.tender.getList('', null, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.transaction = await this.db.beginTransaction(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,13 +77,14 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         const result = await this.transaction.insert(this.tableName, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             cid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             pid: this.ctx.session.sessionProject.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            spid: subProject.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             value: v.value, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             sort, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         v.id = result.insertId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         sort++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        await this.transaction.update(this.tableName, { id: v.id, value: v.value, sort }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        await this.transaction.update(this.tableName, { id: v.id, spid: subProject.id, value: v.value, sort }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         sort++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (!v.newTenders) { continue } 
			 |