|
|
@@ -20,7 +20,7 @@ public class itemrequestitems extends Controller {
|
|
|
@API(title = "其他入库单配件领料单选择", apiversion = R.ID2026020309241501.v1.class)
|
|
|
public String itemrequestselect() throws YosException {
|
|
|
long st_stockbillid = content.getLongValue("st_stockbillid");
|
|
|
- ArrayList<Long> ids = dbConnect.runSqlQuery("select sa_itemrequestitemsid from st_stockbill_items where st_stockbillid=" + st_stockbillid + " and sourceobject='sa_itemrequestitems'").toArrayList("sa_itemrequestitemsid", new ArrayList<>());
|
|
|
+ ArrayList<Long> ids = dbConnect.runSqlQuery("select sourceid from st_stockbill_items where st_stockbillid=" + st_stockbillid + " and sourceobject='sa_itemrequestitems'").toArrayList("sourceid", new ArrayList<>());
|
|
|
|
|
|
QuerySQL saItemrequest = SQLFactory.createQuerySQL(this, "sa_itemrequestitems", "sa_itemrequestitemsid", "itemid", "qty", "instockqty").setTableAlias("t1");
|
|
|
saItemrequest.addJoinTable(JOINTYPE.left, "plm_item", "t2", "itemid=:itemid", "itemno", "itemname", "model", "standards");
|