minimal changes
This commit is contained in:
parent
106b97e105
commit
dbe98686bd
@ -41,9 +41,7 @@ public class ConsoleMain {
|
|||||||
String selection = sc.nextLine();
|
String selection = sc.nextLine();
|
||||||
switch (selection) {
|
switch (selection) {
|
||||||
case "0" -> running = false;
|
case "0" -> running = false;
|
||||||
case "1" -> {
|
case "1" -> AccountMgr.currentUser = ConsoleLib.loginPrompt();
|
||||||
AccountMgr.currentUser = ConsoleLib.loginPrompt();
|
|
||||||
}
|
|
||||||
case "2" -> ConsoleLib.showFood_planPrompt();
|
case "2" -> ConsoleLib.showFood_planPrompt();
|
||||||
case "3" -> ConsoleLib.createParentPrompt();
|
case "3" -> ConsoleLib.createParentPrompt();
|
||||||
}
|
}
|
||||||
@ -70,9 +68,7 @@ public class ConsoleMain {
|
|||||||
Scanner sc = new Scanner(System.in);
|
Scanner sc = new Scanner(System.in);
|
||||||
String selection = sc.nextLine();
|
String selection = sc.nextLine();
|
||||||
switch (selection) {
|
switch (selection) {
|
||||||
case "0" -> {
|
case "0" -> AccountMgr.currentUser = null;
|
||||||
AccountMgr.currentUser = null;
|
|
||||||
}
|
|
||||||
case "1" -> ConsoleLib.createWorkerPrompt();
|
case "1" -> ConsoleLib.createWorkerPrompt();
|
||||||
case "2" -> ConsoleLib.createParentPrompt();
|
case "2" -> ConsoleLib.createParentPrompt();
|
||||||
case "3" -> ConsoleLib.createChildPrompt(String.valueOf(AccountMgr.currentUser.getId()));
|
case "3" -> ConsoleLib.createChildPrompt(String.valueOf(AccountMgr.currentUser.getId()));
|
||||||
@ -101,11 +97,9 @@ public class ConsoleMain {
|
|||||||
Scanner sc = new Scanner(System.in);
|
Scanner sc = new Scanner(System.in);
|
||||||
String selection = sc.nextLine();
|
String selection = sc.nextLine();
|
||||||
switch (selection) {
|
switch (selection) {
|
||||||
case "0" -> {
|
case "0" -> AccountMgr.currentUser = null;
|
||||||
AccountMgr.currentUser = null;
|
|
||||||
}
|
|
||||||
case "3" -> ConsoleLib.createChildPrompt(String.valueOf(AccountMgr.currentUser.getId()));
|
case "3" -> ConsoleLib.createChildPrompt(String.valueOf(AccountMgr.currentUser.getId()));
|
||||||
case "6" -> ConsoleLib.tablePrompt();
|
case "x1" -> ConsoleLib.tablePrompt();
|
||||||
case "7" -> ConsoleLib.showFood_planPrompt();
|
case "7" -> ConsoleLib.showFood_planPrompt();
|
||||||
case "8" -> ConsoleLib.createFood_selectionPrompt();
|
case "8" -> ConsoleLib.createFood_selectionPrompt();
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ public class FoodMgr {
|
|||||||
/**
|
/**
|
||||||
* updates a food_plan into the database
|
* updates a food_plan into the database
|
||||||
* @return number of rows affected or -1 on error
|
* @return number of rows affected or -1 on error
|
||||||
|
* @author Johannes Kantz
|
||||||
*/
|
*/
|
||||||
public static long updateFood_plan(FoodPlan foodPlan){
|
public static long updateFood_plan(FoodPlan foodPlan){
|
||||||
String[] food_planH = {"id","food1","food2","dessert1","dessert2"};
|
String[] food_planH = {"id","food1","food2","dessert1","dessert2"};
|
||||||
|
Loading…
Reference in New Issue
Block a user