| 
					
				 | 
			
			
				@@ -4,6 +4,7 @@ import java.util.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.admin.dto.GoodsTransportInfoDetailExcelDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.admin.entity.GoodsTransportInfoEntity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.kmall.admin.utils.ShiroUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.common.constant.JxlsXmlTemplateName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.common.utils.PageUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.common.utils.Query; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -25,7 +26,7 @@ import org.springframework.web.multipart.MultipartFile; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @email admin@qhdswl.com 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @date 2020-06-15 18:19:23 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-@Controller 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@RestController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("goodstransportinfodetail") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class GoodsTransportInfoDetailController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -76,6 +77,8 @@ public class GoodsTransportInfoDetailController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsTransportInfoDetail.setCreateTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsTransportInfoDetail.setModTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsTransportInfoDetail.setTstm(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        goodsTransportInfoDetail.setCreaterSn(ShiroUtils.getUserId().toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        goodsTransportInfoDetail.setModerSn(ShiroUtils.getUserId().toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsTransportInfoDetailService.save(goodsTransportInfoDetail); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return R.ok(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -93,6 +96,7 @@ public class GoodsTransportInfoDetailController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsTransportInfoDetail.setModTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsTransportInfoDetail.setTstm(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        goodsTransportInfoDetail.setModerSn(ShiroUtils.getUserId().toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsTransportInfoDetailService.update(goodsTransportInfoDetail); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return R.ok(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -162,7 +166,7 @@ public class GoodsTransportInfoDetailController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (file.isEmpty()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return R.error("文件不能为空!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            excelUtil.readExcel(JxlsXmlTemplateName.GOODS_TRANSPORT_INFO_DETAIL_ENTITY_LIST, beans, file.getInputStream()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            excelUtil.readExcel(JxlsXmlTemplateName.Goods_Transport_Info_Detail_Excel_Dto_List, beans, file.getInputStream()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return R.error("导入失败!"); 
			 |