更新模块能进去但是退不出来 这是怎么回事啊
/更新模块
if(OPERATION_UPDATE.equals(in.toUpperCase())
|| OPERATION_UPDATE.subSequence(0, 1).equals(in.toUpperCase())
|| OPERATION_UPDATE.equals(prenious)){
prenious=OPERATION_UPDATE;
if(1==step){
System.out.println("请修改女神的【编号】");
}else if(2==step){
Integer id=null;
try {
id=Integer.valueOf(in);
goddess=action.get(id);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("请修改女神的【姓名】");
}else if(3==step){
goddess.setUser_name(in);
System.out.println("请修改女神【性别】");
}else if(4==step){
goddess.setSex(Integer.valueOf(in));
System.out.println("请修改女神的【年龄】");
}else if (5==step){
goddess.setAge(Integer.valueOf(in));
System.out.println("请修改女神的【邮箱】");
} else if(6==step){
goddess.setEmail(in);
System.out.println("请修改女神的【手机号】");
}else if(6==step){
goddess.setMobile(in);
try {
action.edit(goddess);
System.out.println("成功");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("失败");
}
step=1;
prenious=null;
}
if(OPERATION_UPDATE.equals(prenious)){
step++;
}
}