|  |  |  | @ -182,6 +182,9 @@ public class DeviceChangeOrderParam { | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     public void valid(AuthAdmin user) { | 
			
		
	
		
			
				
					|  |  |  |  |         if (StrUtil.isBlank(this.deptCode)) { | 
			
		
	
		
			
				
					|  |  |  |  |             throw new JsonException("请选择操作部门"); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         if (this.type == DeviceChangeTypeEnum.CHANGE) { | 
			
		
	
		
			
				
					|  |  |  |  |             if (StrUtil.isBlank(this.toDeptCode)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 throw new JsonException("请选择目标部门"); | 
			
		
	
	
		
			
				
					|  |  |  | @ -216,7 +219,7 @@ public class DeviceChangeOrderParam { | 
			
		
	
		
			
				
					|  |  |  |  |                 .orderId(SnowflakeUtil.getId()) | 
			
		
	
		
			
				
					|  |  |  |  |                 .type(type) | 
			
		
	
		
			
				
					|  |  |  |  |                 .status(DeviceChangeStatusEnum.WAIT_CONFIRM) | 
			
		
	
		
			
				
					|  |  |  |  |                 .deptCode(user.getLocDeptCode()) | 
			
		
	
		
			
				
					|  |  |  |  |                 .deptCode(deptCode) | 
			
		
	
		
			
				
					|  |  |  |  |                 .toDeptCode(toDeptCode) | 
			
		
	
		
			
				
					|  |  |  |  |                 .remark(remark) | 
			
		
	
		
			
				
					|  |  |  |  |                 .createUser(user.getId()) | 
			
		
	
	
		
			
				
					|  |  |  | 
 |