no message
							parent
							
								
									9b8be78c1b
								
							
						
					
					
						commit
						ac1bef2026
					
				| 
						 | 
					@ -429,4 +429,7 @@ public interface InventoryManager extends BaseManager{
 | 
				
			||||||
		@Transactional
 | 
							@Transactional
 | 
				
			||||||
		void createReceivingInventory(ReceivedRecord receivedRecord,Location dstloc);
 | 
							void createReceivingInventory(ReceivedRecord receivedRecord,Location dstloc);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
							/** 查询所有在输送线上的库存*/
 | 
				
			||||||
 | 
							@Transactional
 | 
				
			||||||
 | 
							List<Long> selectSSXInventory();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -126,6 +126,7 @@ import com.dev.energy.server.util.LocalizedMessage;
 | 
				
			||||||
import com.dev.energy.server.web.security.UserHolder;
 | 
					import com.dev.energy.server.web.security.UserHolder;
 | 
				
			||||||
import com.sun.mail.util.MailSSLSocketFactory;
 | 
					import com.sun.mail.util.MailSSLSocketFactory;
 | 
				
			||||||
import com.sun.org.apache.xpath.internal.operations.And;
 | 
					import com.sun.org.apache.xpath.internal.operations.And;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.apache.log4j.Logger;
 | 
					import org.apache.log4j.Logger;
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @author  dev
 | 
					 * @author  dev
 | 
				
			||||||
| 
						 | 
					@ -3743,5 +3744,14 @@ public class DefaultInventoryManager extends DefaultBaseManager implements Inven
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				
 | 
									
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
	
 | 
								public List<Long> selectSSXInventory() {
 | 
				
			||||||
 | 
									// TODO 自动生成的方法存根
 | 
				
			||||||
 | 
									String sql=" select inv.id from INVENTORY inv "
 | 
				
			||||||
 | 
											+" left join LOCATION loc on inv.LOCATION_ID=loc.ID "
 | 
				
			||||||
 | 
											+" left join STOCK sto on loc.stock=sto.ID "
 | 
				
			||||||
 | 
											+" right join (select containerCode from agvtask  "
 | 
				
			||||||
 | 
											+" 	where status='ATWORK') agv on agv.containerCode=sto.REMARK ";
 | 
				
			||||||
 | 
									List<Long> ids= jdbcManager.getListLong(sql);
 | 
				
			||||||
 | 
									return ids;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue