|
if (itemId.trim() != null) {
sql = "SELECT T1.ITEM_ID AS ITEMID, T1.INV_ID AS INVID, T1.ITEM_NAME AS ITEMNAME, T1.ITEM_MODEL AS ITEMMODEL,";
sql = sql + " T1.item_Spec AS ITEMSPEC, T1.ITEM_UOM AS ITEMUOM, T1.INV_QTY-T1.INV_OR_QTY AS INVQTY,t1.REC_CREATE_TIME AS CWZDDATE,";
sql = sql + " t1.item_flow AS ITEMFLOW, gy01.INV_PHYSIC_NAME AS INVNAME FROM XPPI.TPIKC00 T1,xppi.tpigy01 gy01 WHERE 1=1 AND T1.STATE_ID IN ('00','01')";
sql = sql + " AND t1.MATERIAL_TYPE !='M1' AND t1.inv_physic = gy01.INV_PHYSIC AND t1.INV_QTY!=0 and t1.COMPANY_CODE= ? AND T1.ITEM_ID in(?) AND t1.inv_physic = ? ";
table = DataUtils.queryData(conn, sql, sqlParams, null, null, null);
如果in(?)这个地方传入的是一个值,table是有值的,如果in(?)传入的是多个值,table没有值了。 |
|