Commit 43fbbbb7 authored by tank.li@mushiny.com's avatar tank.li@mushiny.com

init

parent 90e73bdd
...@@ -26,6 +26,7 @@ public class InboundService { ...@@ -26,6 +26,7 @@ public class InboundService {
"SELECT * FROM WMS_INBOUND_ORDER WHERE ENTRYID = ?"; "SELECT * FROM WMS_INBOUND_ORDER WHERE ENTRYID = ?";
private final static Logger logger = LoggerFactory.getLogger(InboundService.class); private final static Logger logger = LoggerFactory.getLogger(InboundService.class);
private static final String SQL_SEARCHINBOUND_ENTRYID = " AND ENTRYID like ? ";
@Autowired @Autowired
...@@ -34,14 +35,18 @@ public class InboundService { ...@@ -34,14 +35,18 @@ public class InboundService {
@Autowired @Autowired
private SystemPropertiesManager systemPropertiesManager; private SystemPropertiesManager systemPropertiesManager;
public static final String SQL_SEARCHINBOUND = "SELECT * FROM WMS_INBOUND_ORDER WHERE ENTRYID like ? "; public static final String SQL_SEARCHINBOUND = "SELECT * FROM WMS_INBOUND_ORDER WHERE 1=1 ";
public List<Map> searchInbound(String entryId, String warehouseId, String sectionId) { public List<Map> searchInbound(String entryId, String warehouseId, String sectionId) {
List params = new ArrayList(); List params = new ArrayList();
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append(SQL_SEARCHINBOUND); sql.append(SQL_SEARCHINBOUND);
params.add(entryId); if(!CommonUtils.isEmpty(warehouseId)){
sql.append(SQL_SEARCHINBOUND_ENTRYID);
params.add(entryId);
}
if(!CommonUtils.isEmpty(warehouseId)){ if(!CommonUtils.isEmpty(warehouseId)){
sql.append(SQL_SEARCHINBOUND_FACTORY); sql.append(SQL_SEARCHINBOUND_FACTORY);
params.add(warehouseId); params.add(warehouseId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment