IDEMPIERE-4636 Cross Tenant issue Request processor (#516)

* IDEMPIERE-4636  Cross Tenant issue Request processor

* IDEMPIERE-4636  Cross Tenant issue Request processor
This commit is contained in:
igorpojzl 2021-01-08 17:06:52 +01:00 committed by GitHub
parent 91c5510bbf
commit 829c323170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -433,7 +433,7 @@ public class RequestProcessor extends AdempiereServer
+ "WHERE r.R_Status_ID=s.R_Status_ID"
+ " AND s.TimeoutDays > 0 AND s.Next_Status_ID > 0"
+ " AND r.DateLastAction+s.TimeoutDays < getDate()"
+ ") "
+ ") AND r.AD_Client_ID = ? "
+ "ORDER BY R_Status_ID";
PreparedStatement pstmt = null;
ResultSet rs = null;
@ -442,6 +442,7 @@ public class RequestProcessor extends AdempiereServer
try
{
pstmt = DB.prepareStatement (sql, null);
pstmt.setInt(1, m_model.getAD_Client_ID());
rs = pstmt.executeQuery ();
while (rs.next ())
{
@ -494,7 +495,8 @@ public class RequestProcessor extends AdempiereServer
+ "AND EXISTS ("
+ "SELECT * FROM R_Group g "
+ "WHERE g.R_Group_ID=r.R_Group_ID"
+ " AND (g.M_BOM_ID IS NOT NULL OR g.M_ChangeNotice_ID IS NOT NULL) )";
+ " AND (g.M_BOM_ID IS NOT NULL OR g.M_ChangeNotice_ID IS NOT NULL) )"
+ " AND r.AD_CLient_ID = ? ";
//
int count = 0;
int failure = 0;
@ -504,6 +506,7 @@ public class RequestProcessor extends AdempiereServer
try
{
pstmt = DB.prepareStatement (sql, null);
pstmt.setInt(1, m_model.getAD_Client_ID());
rs = pstmt.executeQuery ();
while (rs.next ())
{