Aggiunto scelta tipo attività in pianificazione
This commit is contained in:
@@ -11,6 +11,7 @@ public class PlanActivityDTO {
|
||||
@JsonProperty("creaAttivita")
|
||||
private String creaAttivita;
|
||||
private String description;
|
||||
private String activityTypeId;
|
||||
private List<User> users;
|
||||
private List<Agenda> agenda;
|
||||
|
||||
@@ -55,6 +56,15 @@ public class PlanActivityDTO {
|
||||
this.creaAttivita = creaAttivita;
|
||||
}
|
||||
|
||||
public String getActivityTypeId() {
|
||||
return activityTypeId;
|
||||
}
|
||||
|
||||
public PlanActivityDTO setActivityTypeId(String activityTypeId) {
|
||||
this.activityTypeId = activityTypeId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public static class User {
|
||||
|
||||
@JsonProperty("user_name")
|
||||
|
||||
@@ -578,13 +578,15 @@ public class ActivityService {
|
||||
|
||||
Map<String, Object> dati = UtilityDB.executeSimpleQueryOnlyFirstRow(multiDBTransactionManager.getPrimaryConnection(), query);
|
||||
|
||||
String activityTypeId = null;
|
||||
if (((Integer) dati.get("conta")).intValue() == 1) {
|
||||
activityTypeId = (String) dati.get("activity_type_id_next");
|
||||
} else if ("OBIETTIVO".equalsIgnoreCase(parentStbActivity.getActivityTypeId())) {
|
||||
activityTypeId = "PROGRAMMAZIONE";
|
||||
} else if ("TICKET".equalsIgnoreCase(parentStbActivity.getActivityTypeId())) {
|
||||
activityTypeId = "TEST,CORREZIONI";
|
||||
String activityTypeId = planActivityDTO.getActivityTypeId();
|
||||
if(activityTypeId == null){
|
||||
if (((Integer) dati.get("conta")).intValue() == 1) {
|
||||
activityTypeId = (String) dati.get("activity_type_id_next");
|
||||
} else if ("OBIETTIVO".equalsIgnoreCase(parentStbActivity.getActivityTypeId())) {
|
||||
activityTypeId = "PROGRAMMAZIONE";
|
||||
} else if ("TICKET".equalsIgnoreCase(parentStbActivity.getActivityTypeId())) {
|
||||
activityTypeId = "TEST,CORREZIONI";
|
||||
}
|
||||
}
|
||||
|
||||
String description = planActivityDTO.getDescription();
|
||||
|
||||
Reference in New Issue
Block a user