| 
					
				 | 
			
			
				@@ -1,5 +1,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.huaxu.order.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.alibaba.fastjson.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.core.metadata.IPage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.huaxu.client.UserCenterClient; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -40,7 +41,8 @@ import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.multipart.MultipartFile; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.io.IOException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.lang.reflect.Array; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.text.ParseException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.text.SimpleDateFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.stream.Collectors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -393,6 +395,21 @@ public class WorkOrderManageController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //1是公司,2是公司及以下,3部门,4部门及以下,5自定义 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         workOrderManageDto.setPermissonType(loginUser.getPermissonType()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<WorkOrderManageDto> list = workOrderManageService.selectMaintainOrder(workOrderManageDto); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for(WorkOrderManageDto dto : list){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(dto.getFlowDetail() != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              JSONObject jsonDetail = (JSONObject) JSONObject.parse(dto.getFlowDetail()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if(jsonDetail.containsKey("预计完成时间")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  Date planFinishDate = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      planFinishDate = dateFormat.parse(jsonDetail.getString("预计完成时间")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  } catch (ParseException e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                      e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  dto.setPlanFinishDate(planFinishDate); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         setName(list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return new AjaxMessage<>(ResultStatus.OK, list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |