no message

main
暴炳林 2025-01-02 11:14:29 +08:00
parent 024366cd21
commit 3664d4bc78
2 changed files with 10 additions and 8 deletions

View File

@ -3750,7 +3750,7 @@ public class DefaultInventoryManager extends DefaultBaseManager implements Inven
+" left join LOCATION loc on inv.LOCATION_ID=loc.ID "
+" left join STOCK sto on loc.stock=sto.ID "
+" right join (select containerCode from agvtask "
+" where status='ATWORK') agv on agv.containerCode=sto.REMARK ";
+" where status='ATWORK') agv on agv.containerCode=sto.REMARK and inv.id is not null";
List<Long> ids= jdbcManager.getListLong(sql);
return ids;
}

View File

@ -232,6 +232,7 @@ public class DefaultNewAutoAllocator extends DefaultBaseManager implements NewAu
sb.append(",");
}
}
if (sb.length()>0) {
sqlBuffer.append(" CASE "
+" WHEN i.id IN ("
+ sb.toString()
@ -239,6 +240,7 @@ public class DefaultNewAutoAllocator extends DefaultBaseManager implements NewAu
+" ELSE 0 "
+" END, ");
}
}
sqlBuffer.append(" i.itemKey.lotInfo.propD2,i.itemKey.lotInfo.propC3,i.itemKey.lotInfo.propC1,i.statuss desc,i.storageDate,i.quantity,i.id");
String hql2=sqlBuffer.toString();
//排序