|
|
@@ -31,7 +31,7 @@ public class GetStockBillFromU8 extends ServiceController {
|
|
|
*/
|
|
|
public void getProdIN() throws YosException {
|
|
|
//产品入库表头
|
|
|
- Rows u8billRows = YUNl_DB.runSqlQuery("select top(50) cvencode,ccode,ddate,cwhcode,cmemo,id,dnverifytime,chandler from rdrecord where status=0 and billtype='10' and dnverifytime is not null and accid in('666','888') and isnull(errtimes,0)<=5 order by errtimes");
|
|
|
+ Rows u8billRows = YUNl_DB.runSqlQuery("select top(50) cvencode,ccode,ddate,cwhcode,cmemo,id,dnverifytime,chandler from rdrecord where status=0 and billtype='10' and dnverifytime is not null and accid in('666','888') and (isnull(errtimes,0)<=5 or dDate='" + getDate_Str() + "' )order by errtimes");
|
|
|
if (u8billRows.isNotEmpty()) {
|
|
|
logger.info("监测到有{}个u8产品入库单", u8billRows.size());
|
|
|
//产品入库表体
|
|
|
@@ -42,7 +42,7 @@ public class GetStockBillFromU8 extends ServiceController {
|
|
|
|
|
|
RowsMap stockRowsMap = SQLFactory.createQuerySQL(dbConnect, "st_stock", "stockid", "stockno").query().toRowsMap("stockno");
|
|
|
|
|
|
- RowsMap itemRowsMap = SQLFactory.createQuerySQL(dbConnect, "plm_item", "itemid", "itemno","unitid").setWhere("itemno", u8billmxAllRows.toArrayList("cinvcode")).query().toRowsMap("itemno");
|
|
|
+ RowsMap itemRowsMap = SQLFactory.createQuerySQL(dbConnect, "plm_item", "itemid", "itemno", "unitid").setWhere("itemno", u8billmxAllRows.toArrayList("cinvcode")).query().toRowsMap("itemno");
|
|
|
|
|
|
RowsMap unitRowsMap = SQLFactory.createQuerySQL(dbConnect, "plm_unit", "unitid", "unitname").query().toRowsMap("unitid");
|
|
|
|