| 
					
				 | 
			
			
				@@ -5,17 +5,17 @@ import com.steerinfo.dil.feign.ESFeign; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.steerinfo.dil.service.IAmstruckSporadicOrderService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.steerinfo.dil.util.BaseRESTfulController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.steerinfo.dil.util.ColumnDataUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.steerinfo.dil.util.DataChange; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.steerinfo.dil.util.PageListAdd; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.steerinfo.framework.controller.RESTfulResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.steerinfo.framework.service.pagehelper.PageHelper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiImplicitParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiImplicitParams; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import io.swagger.models.auth.In; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.HashMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.text.SimpleDateFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -46,6 +46,7 @@ public class AmstruckSporadicOrderController extends BaseRESTfulController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ESFeign esFeign; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value="新增零星物资进出厂(以及销售钢材退货),包括内转精煤") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/addSporadicOrders") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -86,9 +87,12 @@ public class AmstruckSporadicOrderController extends BaseRESTfulController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                Integer sporadicStatus, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                String carrierSsoId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                String userId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                               String userIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                               String userIds, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                               String startTime, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                               String endTime 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                               ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        DataChange.queryDataByDateTime(startTime, endTime, mapValue,sdfDateTime);//根据时间段查询数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (orderType!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             mapValue.put("orderType",orderType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -110,6 +114,9 @@ public class AmstruckSporadicOrderController extends BaseRESTfulController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (userIds!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             mapValue.put("userIds",userIds); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(con != null && !"null".equals(con)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            mapValue.put("con","%" + con + "%"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         PageHelper.startPage(pageNum,pageSize); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<Map<String, Object>> columnList = amstruckSporadicOrderService.getSporadicOrdersList(mapValue); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         PageListAdd pageList = columnDataUtil.tableColumnData(apiId, null,columnList); 
			 |