浏览代码

u8产品入库优化

shenjingwei 1 天之前
父节点
当前提交
664691da37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/custom/service/GetStockBillFromU8.java

+ 1 - 1
src/custom/service/GetStockBillFromU8.java

@@ -35,7 +35,7 @@ public class GetStockBillFromU8 extends ServiceController {
         if (u8billRows.isNotEmpty()) {
             logger.info("监测到有{}个u8产品入库单", u8billRows.size());
             //产品入库表体
-            Rows u8billmxAllRows = SQLFactory.createQuerySQL(YUNl_DB, "RdRecords", "autoid,cinvcode,iquantity,iunitcost,iprice,cbmemo,cbatch").setWhere("billtype", "10").setWhere("accid in('666','888')").setWhere("id", u8billRows.toArrayList("id")).query();
+            Rows u8billmxAllRows = SQLFactory.createQuerySQL(YUNl_DB, "RdRecords", "id,autoid,cinvcode,iquantity,iunitcost,iprice,cbmemo,cbatch").setWhere("billtype", "10").setWhere("accid in('666','888')").setWhere("id", u8billRows.toArrayList("id")).query();
             RowsMap u8billmxRowsMap = u8billmxAllRows.toRowsMap("id");
             //产品入库序列号
             RowsMap u8billmxCodeRowsMap = SQLFactory.createQuerySQL(YUNl_DB, "ST_SNDetail", "autoid,ivouchsid,ivouchid,irowno,cinvcode,cwhcode,cposition,cinvsn,cbatch").setWhere("billtype", "10").setWhere("accid in('666','888')").setWhere("ivouchid", u8billRows.toArrayList("id")).setWhere("ivouchsid", u8billmxAllRows.toArrayList("autoid")).query().toRowsMap("ivouchid");