modifiche per permettere all'utene di accedere a task
This commit is contained in:
@@ -765,7 +765,11 @@ public class ActivityService {
|
||||
public List<ActivityDTO> getActivity(boolean isTable, boolean daInstallare, String activityId) throws Exception {
|
||||
String username = requestDataDTO.getUsername();
|
||||
|
||||
String sql = "WITH escludi_commesse AS (SELECT value_string cod_jcom\n" +
|
||||
String sql = Query.format( "SELECT case when key_group = 3 THEN IsNull(user_name_rif, user_name) ELSE user_name END FROM stb_user WHERE user_name = %s" , username);
|
||||
|
||||
username = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
|
||||
|
||||
sql = "WITH escludi_commesse AS (SELECT value_string cod_jcom\n" +
|
||||
" FROM dbo.parsestringintoarray((SELECT value\n" +
|
||||
" FROM stb_gest_setup\n" +
|
||||
" WHERE gest_name = 'STB_ACTIVITY'\n" +
|
||||
@@ -1307,7 +1311,8 @@ public class ActivityService {
|
||||
|
||||
public List<String> getCommessaFromUsername(String username) throws Exception {
|
||||
String sql = "SELECT DISTINCT jc.cod_jcom\n" +
|
||||
"FROM wtb_clie\n" +
|
||||
"FROM stb_user\n" +
|
||||
" INNER JOIN stb_user ON wtb_clie.user_name = IsNull(stb_user.user_name_rif, stb_user.user_name)\n" +
|
||||
" INNER JOIN gtb_anag ON wtb_clie.cod_anag = gtb_anag.cod_anag\n" +
|
||||
" INNER JOIN wtb_clie wc ON wtb_clie.user_name = wc.user_name\n" +
|
||||
" INNER JOIN jtb_comt jc ON wc.cod_anag = jc.cod_anag\n" +
|
||||
|
||||
Reference in New Issue
Block a user