Merge branch 'master' into develop
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -120,7 +120,16 @@ public class UserAbsenceService {
|
|||||||
|
|
||||||
entityList.add(jtbRLavt);
|
entityList.add(jtbRLavt);
|
||||||
|
|
||||||
if (assenzaItem.getCodJcom() != null) {
|
String sql = Query.format(
|
||||||
|
"SELECT CAST(COUNT(*) AS BIT)\n" +
|
||||||
|
"FROM jtb_comt\n" +
|
||||||
|
"WHERE cod_jcom = %s\n",
|
||||||
|
assenzaItem.getNote()
|
||||||
|
);
|
||||||
|
|
||||||
|
boolean isComtPresent = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
|
||||||
|
|
||||||
|
if (assenzaItem.getCodJcom() != null || isComtPresent) {
|
||||||
String sql = Query.format(
|
String sql = Query.format(
|
||||||
"SELECT parent_activity_id\n" +
|
"SELECT parent_activity_id\n" +
|
||||||
"FROM stb_activity\n" +
|
"FROM stb_activity\n" +
|
||||||
|
|||||||
Reference in New Issue
Block a user