|  |  | @ -8,7 +8,7 @@ import com.glxp.udi.admin.dao.inout.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.udi.admin.entity.inout.*; |  |  |  | import com.glxp.udi.admin.entity.inout.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.udi.admin.entity.mongo.*; |  |  |  | import com.glxp.udi.admin.entity.mongo.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.udi.admin.mongo.dao.*; |  |  |  | import com.glxp.udi.admin.mongo.dao.*; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.udi.admin.service.inout.OrderDetailService; |  |  |  | import com.glxp.udi.admin.service.inout.UdiInfoService; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | import lombok.extern.slf4j.Slf4j; |  |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.GetMapping; |  |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.RestController; |  |  |  | import org.springframework.web.bind.annotation.RestController; | 
			
		
	
	
		
		
			
				
					|  |  | @ -23,8 +23,6 @@ import java.util.List; | 
			
		
	
		
		
			
				
					
					|  |  |  | @RestController |  |  |  | @RestController | 
			
		
	
		
		
			
				
					
					|  |  |  | public class TestController { |  |  |  | public class TestController { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     private OrderDetailService orderDetailService; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |     private UdiInfoDao udiInfoDao; |  |  |  |     private UdiInfoDao udiInfoDao; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -55,6 +53,8 @@ public class TestController { | 
			
		
	
		
		
			
				
					
					|  |  |  |     private InvProductDao invProductDao; |  |  |  |     private InvProductDao invProductDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |     @Resource |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |     private InvProductDetailDao invProductDetailDao; |  |  |  |     private InvProductDetailDao invProductDetailDao; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     private UdiInfoService udiInfoService; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     /** |  |  |  |     /** | 
			
		
	
	
		
		
			
				
					|  |  | @ -69,8 +69,12 @@ public class TestController { | 
			
		
	
		
		
			
				
					
					|  |  |  |             List<WarehouseEntity> warehouseEntities = codesDao.selectList(null); |  |  |  |             List<WarehouseEntity> warehouseEntities = codesDao.selectList(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |             warehouseEntities.forEach(code -> { |  |  |  |             warehouseEntities.forEach(code -> { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 UdiInfoEntity udiInfoEntity = udiInfoDao.selectById(code.getRelId()); |  |  |  |                 UdiInfoEntity udiInfoEntity = udiInfoDao.selectById(code.getRelId()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 code.setRelId(udiInfoEntity.getUuid()); |  |  |  |                 try { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 codesDao.updateById(code); |  |  |  |                     code.setRelId(udiInfoEntity.getUuid()); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     codesDao.updateById(code); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } catch (Exception e) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     log.error(e.getMessage(), e); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |             }); |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             //刷新临时码表
 |  |  |  |             //刷新临时码表
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -130,8 +134,10 @@ public class TestController { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     WarehouseEntity warehouseEntity = new WarehouseEntity(); |  |  |  |                     WarehouseEntity warehouseEntity = new WarehouseEntity(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     BeanUtil.copyProperties(code, warehouseEntity, "id"); |  |  |  |                     BeanUtil.copyProperties(code, warehouseEntity, "id"); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     String actDate = warehouseEntity.getActDate(); |  |  |  |                     String actDate = warehouseEntity.getActDate(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     String date = DateUtil.parse(actDate).toString("yyyy-MM-dd HH:mm:ss"); |  |  |  |                     if (StrUtil.isNotBlank(actDate)) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     warehouseEntity.setActDate(date); |  |  |  |                         String date = DateUtil.parse(actDate).toString("yyyy-MM-dd HH:mm:ss"); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         warehouseEntity.setActDate(date); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     warehouseEntity.setNameCode(code.getUdi()); |  |  |  |                     warehouseEntity.setNameCode(code.getUdi()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     codesDao.insert(warehouseEntity); |  |  |  |                     codesDao.insert(warehouseEntity); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 }); |  |  |  |                 }); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |