| 
					
				 | 
			
			
				@@ -77,6 +77,26 @@ public class StatisticalReportImpl implements IStatisticalReportService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public List<Map<String, Object>> getAllSaleReport(Map<String, Object> map) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<Map<String, Object>> mapList = statisticalReportMapper.getAllSaleReport(map); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for(Map<String, Object> map1 : mapList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if ( map1.get("resultEntryGateTime") == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                map1.put("transportStatus", "未进厂"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (map1.get("resultOutGateTime") == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                map1.put("transportStatus", "已进厂"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (map1.get("arrivalAddress") == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                map1.put("transportStatus", "已出厂"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (map1.get("receiptAddress") == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                map1.put("transportStatus", "已抵达"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                map1.put("transportStatus", "已签收"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (Map<String, Object> mesMap : mapList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             calculateDifferenceTime(mesMap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -86,25 +106,6 @@ public class StatisticalReportImpl implements IStatisticalReportService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public List<Map<String, Object>> getAllSaleReportNum(Map<String, Object> map) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          List<Map<String, Object>> listMap = statisticalReportMapper.getAllSaleReport(map); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         for(Map<String, Object> map1 : listMap) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             if ( map1.get("resultEntryGateTime") == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 map1.put("transportStatus", "未进厂"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             if (map1.get("resultOutGateTime") == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 map1.put("transportStatus", "已进厂"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             if (map1.get("arrivaladdress") == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 map1.put("transportStatus", "运输中"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             if (map1.get("receiveTime") == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 map1.put("transportStatus", "已抵达"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             } else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                 map1.put("transportStatus", "已签收"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          return listMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |