Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
优比特软件工作室
学生信息管理系统
提交
c5ba3f27
学
学生信息管理系统
项目概览
优比特软件工作室
/
学生信息管理系统
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
学
学生信息管理系统
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c5ba3f27
编写于
6月 12, 2023
作者:
小刘28
💬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:完成账号的查询功能;
上级
f45f4922
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
163 addition
and
86 deletion
+163
-86
src/com/ubitgroup/controller/accountm/AccountC.java
src/com/ubitgroup/controller/accountm/AccountC.java
+30
-0
src/com/ubitgroup/controller/mem/changepassword/ChangePasswordC.java
...tgroup/controller/mem/changepassword/ChangePasswordC.java
+2
-2
src/com/ubitgroup/controller/mem/personinformation/PersonInformationC.java
.../controller/mem/personinformation/PersonInformationC.java
+2
-2
src/com/ubitgroup/data/AccountT.java
src/com/ubitgroup/data/AccountT.java
+29
-2
src/com/ubitgroup/data/CurrentAccount.java
src/com/ubitgroup/data/CurrentAccount.java
+4
-4
src/com/ubitgroup/data/DataManager.java
src/com/ubitgroup/data/DataManager.java
+1
-1
src/com/ubitgroup/model/dao/AccountD.java
src/com/ubitgroup/model/dao/AccountD.java
+6
-0
src/com/ubitgroup/model/dao/impl/AccountDI.java
src/com/ubitgroup/model/dao/impl/AccountDI.java
+13
-4
src/com/ubitgroup/view/accountm/.gitkeep
src/com/ubitgroup/view/accountm/.gitkeep
+0
-0
src/com/ubitgroup/view/accountm/AccoV.java
src/com/ubitgroup/view/accountm/AccoV.java
+0
-30
src/com/ubitgroup/view/accountm/AccountV.java
src/com/ubitgroup/view/accountm/AccountV.java
+40
-3
src/com/ubitgroup/view/loginm/LoginV.java
src/com/ubitgroup/view/loginm/LoginV.java
+5
-5
src/com/ubitgroup/view/mainm/MainV.java
src/com/ubitgroup/view/mainm/MainV.java
+7
-7
src/com/ubitgroup/view/mem/MeV.java
src/com/ubitgroup/view/mem/MeV.java
+4
-4
src/com/ubitgroup/view/mem/changepassword/ChangePasswordV.java
...om/ubitgroup/view/mem/changepassword/ChangePasswordV.java
+8
-9
src/com/ubitgroup/view/mem/personinformation/PersonInformationV.java
...tgroup/view/mem/personinformation/PersonInformationV.java
+12
-13
未找到文件。
src/com/ubitgroup/controller/accountm/AccountC.java
0 → 100644
浏览文件 @
c5ba3f27
package
com.ubitgroup.controller.accountm
;
import
com.ubitgroup.model.bean.Account
;
import
com.ubitgroup.model.bean.Result
;
import
com.ubitgroup.model.dao.AccountD
;
import
com.ubitgroup.model.dao.impl.AccountDI
;
import
java.util.ArrayList
;
/*
* 账号管理页面控制器
* */
public
class
AccountC
{
/*
* 搜索账号处理
* */
public
Result
queryAcco
(
Account
account
){
String
msg
;
AccountD
accountD
=
new
AccountDI
();
ArrayList
<
Account
>
list
=
accountD
.
queryAcco
(
account
);
if
(
list
==
null
){
msg
=
"查询账号出错了,请联系管理员!"
;
return
Result
.
error
(
500
,
msg
);
}
msg
=
"查询成功!"
;
return
Result
.
success
(
msg
,
list
);
}
}
src/com/ubitgroup/controller/mem/chan
pass/ChanPass
C.java
→
src/com/ubitgroup/controller/mem/chan
gepassword/ChangePassword
C.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.controller.mem.chan
pass
;
package
com.ubitgroup.controller.mem.chan
gepassword
;
import
com.ubitgroup.model.bean.Account
;
import
com.ubitgroup.model.bean.Result
;
...
...
@@ -8,7 +8,7 @@ import com.ubitgroup.model.dao.impl.AccountDI;
/*
* 修改密码页面控制器
* */
public
class
Chan
Pass
C
{
public
class
Chan
gePassword
C
{
/*
* 修改密码处理
...
...
src/com/ubitgroup/controller/mem/pers
info/PersInfo
C.java
→
src/com/ubitgroup/controller/mem/pers
oninformation/PersonInformation
C.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.controller.mem.pers
info
;
package
com.ubitgroup.controller.mem.pers
oninformation
;
import
com.ubitgroup.model.bean.Account
;
import
com.ubitgroup.model.bean.Result
;
...
...
@@ -8,7 +8,7 @@ import com.ubitgroup.model.dao.impl.AccountDI;
/*
* 个人信息页面控制器
* */
public
class
Pers
Info
C
{
public
class
Pers
onInformation
C
{
/*
* 查看个人信息处理
* */
...
...
src/com/ubitgroup/data/AccountT.java
浏览文件 @
c5ba3f27
...
...
@@ -82,10 +82,36 @@ public class AccountT {
}
/*
* 获取账号通过参数
* 获取账号通过参数
,模糊查询
* 未排除禁用的和已被删除的
* */
public
ArrayList
<
Account
>
getParam
(
Account
account
,
LocalDateTime
createTimeStart
,
LocalDateTime
createTimeEnd
,
LocalDateTime
updateTimeStart
,
LocalDateTime
updateTimeEnd
){
ArrayList
<
Account
>
arrayListTemp
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
arrayList
.
size
();
i
++)
{
boolean
flag
=
true
;
Account
accountTemp
=
arrayList
.
get
(
i
);
// 是否搜索account
if
(
account
.
getAccount
()
!=
null
){
flag
=
flag
&&
accountTemp
.
getAccount
().
contains
(
account
.
getAccount
());
}
// 是否搜索email
if
(
account
.
getEmail
()
!=
null
){
flag
=
flag
&&
accountTemp
.
getEmail
().
contains
(
account
.
getEmail
());
}
if
(
flag
){
arrayListTemp
.
add
(
Account
.
deepClone
(
accountTemp
));
}
}
return
arrayListTemp
;
}
/*
* 获取账号通过参数,完全匹配
* 未排除禁用的和已被删除的
* */
public
ArrayList
<
Account
>
getParamExact
(
Account
account
,
LocalDateTime
createTimeStart
,
LocalDateTime
createTimeEnd
,
LocalDateTime
updateTimeStart
,
LocalDateTime
updateTimeEnd
){
ArrayList
<
Account
>
arrayListTemp
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
arrayList
.
size
();
i
++)
{
boolean
flag
=
true
;
...
...
@@ -108,7 +134,7 @@ public class AccountT {
}
// 是否搜索email
if
(
account
.
getEmail
()
!=
null
){
flag
=
flag
&&
accountTemp
.
getEmail
().
contain
s
(
account
.
getEmail
());
flag
=
flag
&&
accountTemp
.
getEmail
().
equal
s
(
account
.
getEmail
());
}
if
(
flag
){
...
...
@@ -119,4 +145,5 @@ public class AccountT {
return
arrayListTemp
;
}
}
src/com/ubitgroup/data/Curr
Acc
.java
→
src/com/ubitgroup/data/Curr
entAccount
.java
浏览文件 @
c5ba3f27
...
...
@@ -5,14 +5,14 @@ import com.ubitgroup.model.bean.Account;
/*
* 当前登录账号类
* */
public
class
Curr
Acc
{
private
static
final
Curr
Acc
instance
=
new
CurrAcc
();
public
class
Curr
entAccount
{
private
static
final
Curr
entAccount
instance
=
new
CurrentAccount
();
private
Account
account
;
private
Curr
Acc
(){
private
Curr
entAccount
(){
}
public
static
Curr
Acc
getInstance
(){
public
static
Curr
entAccount
getInstance
(){
return
instance
;
}
...
...
src/com/ubitgroup/data/D
b
.java
→
src/com/ubitgroup/data/D
ataManager
.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.data
;
public
class
D
b
{
public
class
D
ataManager
{
}
src/com/ubitgroup/model/dao/AccountD.java
浏览文件 @
c5ba3f27
...
...
@@ -2,6 +2,8 @@ package com.ubitgroup.model.dao;
import
com.ubitgroup.model.bean.Account
;
import
java.util.ArrayList
;
public
interface
AccountD
{
/*
* 登录
...
...
@@ -38,5 +40,9 @@ public interface AccountD {
* */
Integer
chanPass
(
Account
account
,
String
newPassword
);
/*
* 查找用户
* */
ArrayList
<
Account
>
queryAcco
(
Account
account
);
}
src/com/ubitgroup/model/dao/impl/AccountDI.java
浏览文件 @
c5ba3f27
...
...
@@ -2,6 +2,7 @@ package com.ubitgroup.model.dao.impl;
import
com.ubitgroup.data.AccountT
;
import
com.ubitgroup.model.bean.Account
;
import
com.ubitgroup.model.bean.Result
;
import
com.ubitgroup.model.dao.AccountD
;
import
java.time.LocalDateTime
;
...
...
@@ -17,7 +18,7 @@ public class AccountDI implements AccountD {
// 判断账号是否存在
Account
accountTemp
=
new
Account
();
accountTemp
.
setAccount
(
account
.
getAccount
());
ArrayList
<
Account
>
list
=
accountT
.
getParam
(
accountTemp
,
null
,
null
,
null
,
null
);
ArrayList
<
Account
>
list
=
accountT
.
getParam
Exact
(
accountTemp
,
null
,
null
,
null
,
null
);
if
(
list
==
null
){
return
500
;
// 系统出错了
}
...
...
@@ -40,7 +41,7 @@ public class AccountDI implements AccountD {
* */
@Override
public
Account
getAccoInfo
(
Account
account
)
{
ArrayList
<
Account
>
list
=
accountT
.
getParam
(
account
,
null
,
null
,
null
,
null
);
ArrayList
<
Account
>
list
=
accountT
.
getParam
Exact
(
account
,
null
,
null
,
null
,
null
);
account
=
list
.
get
(
0
);
return
account
;
}
...
...
@@ -52,7 +53,7 @@ public class AccountDI implements AccountD {
// 判断账号是否存在
Account
accountTemp
=
new
Account
();
accountTemp
.
setAccount
(
account
.
getAccount
());
ArrayList
<
Account
>
list
=
accountT
.
getParam
(
accountTemp
,
null
,
null
,
null
,
null
);
ArrayList
<
Account
>
list
=
accountT
.
getParam
Exact
(
accountTemp
,
null
,
null
,
null
,
null
);
if
(
list
==
null
){
return
500
;
// 系统出错了
}
...
...
@@ -98,7 +99,7 @@ public class AccountDI implements AccountD {
// 判断账号是否存在
Account
accountTemp
=
new
Account
();
accountTemp
.
setAccount
(
account
.
getAccount
());
ArrayList
<
Account
>
list
=
accountT
.
getParam
(
accountTemp
,
null
,
null
,
null
,
null
);
ArrayList
<
Account
>
list
=
accountT
.
getParam
Exact
(
accountTemp
,
null
,
null
,
null
,
null
);
if
(
list
==
null
){
return
500
;
// 系统出错了
}
...
...
@@ -173,5 +174,13 @@ public class AccountDI implements AccountD {
return
0
;
}
/*
* 查找用户
* */
@Override
public
ArrayList
<
Account
>
queryAcco
(
Account
account
)
{
ArrayList
<
Account
>
list
=
accountT
.
getParam
(
account
,
null
,
null
,
null
,
null
);
return
list
;
}
}
src/com/ubitgroup/view/accountm/.gitkeep
已删除
100644 → 0
浏览文件 @
f45f4922
src/com/ubitgroup/view/accountm/AccoV.java
已删除
100644 → 0
浏览文件 @
f45f4922
package
com.ubitgroup.view.accountm
;
import
java.util.Scanner
;
/*
* 账号管理页面
* */
public
class
AccoV
{
/*
* 初始化页面
* */
public
void
init
()
{
System
.
out
.
println
(
"\n-----欢迎进入账号管理模块-----"
);
Scanner
sc
=
new
Scanner
(
System
.
in
);
while
(
true
)
{
System
.
out
.
println
(
"1、查找账号"
);
System
.
out
.
println
(
"2、新增账号"
);
System
.
out
.
println
(
"3、修改账号"
);
System
.
out
.
println
(
"4、删除账号"
);
System
.
out
.
println
(
"请选择您要进行的操作:"
);
String
choose
=
sc
.
nextLine
();
}
}
}
src/com/ubitgroup/view/acco
m/Acco
V.java
→
src/com/ubitgroup/view/acco
untm/Account
V.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.view.accom
;
package
com.ubitgroup.view.acco
unt
m
;
import
com.ubitgroup.controller.accountm.AccountC
;
import
com.ubitgroup.model.bean.Account
;
import
com.ubitgroup.model.bean.Result
;
import
com.ubitgroup.util.LocalDateTimeUtil
;
import
com.ubitgroup.util.OperationUtil
;
import
com.ubitgroup.view.mainm.MainV
;
import
com.ubitgroup.view.mem.MeV
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Scanner
;
/*
* 账号管理页面
* */
public
class
AccoV
{
public
class
Acco
unt
V
{
/*
* 初始化页面
* */
...
...
@@ -59,6 +65,37 @@ public class AccoV {
public
void
queryAcco
(){
System
.
out
.
println
(
"进入查找账号模块"
);
Scanner
sc
=
new
Scanner
(
System
.
in
);
while
(
true
){
System
.
out
.
println
(
"请输入账号关键字:"
);
String
accoKey
=
sc
.
nextLine
();
if
(
OperationUtil
.
inteOper
(
accoKey
)){
break
;
}
Account
account
=
new
Account
();
account
.
setAccount
(
accoKey
);
AccountC
accountC
=
new
AccountC
();
Result
result
=
accountC
.
queryAcco
(
account
);
if
(
result
.
getCode
()
==
0
){
ArrayList
<
Account
>
list
=
(
ArrayList
<
Account
>)
result
.
getData
();
System
.
out
.
println
(
"查询到 "
+
list
.
size
()
+
" 条数据"
);
System
.
out
.
println
(
"序号\t|账号\t|启用/禁用\t|是否未删除\t|创建时间\t|最近更新时间\t"
);
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
Account
accountTemp
=
list
.
get
(
i
);
StringBuffer
sb
=
new
StringBuffer
();
sb
.
append
((
i
+
1
)
+
"\t"
);
sb
.
append
(
accountTemp
.
getAccount
()
+
"\t"
);
sb
.
append
((
accountTemp
.
getEnable
().
equals
(
"0"
)?
"启用"
:
"禁用"
)
+
"\t"
);
sb
.
append
((
accountTemp
.
getNoDeleted
().
equals
(
"0"
)?
"未删除"
:
"已删除"
)
+
"\t"
);
sb
.
append
(
LocalDateTimeUtil
.
format
(
accountTemp
.
getCreateTime
(),
"yyyy年MM月dd日 hh时mm分ss秒"
)
+
"\t"
);
sb
.
append
(
LocalDateTimeUtil
.
format
(
accountTemp
.
getUpdateTime
(),
"yyyy年MM月dd日 hh时mm分ss秒"
)
+
"\t"
);
System
.
out
.
println
(
sb
);
}
}
else
{
System
.
out
.
println
(
result
.
getMsg
());
}
}
}
...
...
src/com/ubitgroup/view/loginm/LoginV.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.view.loginm
;
import
com.ubitgroup.controller.loginm.LoginC
;
import
com.ubitgroup.data.Curr
Acc
;
import
com.ubitgroup.data.Curr
entAccount
;
import
com.ubitgroup.model.bean.Account
;
import
com.ubitgroup.model.bean.Result
;
import
com.ubitgroup.util.OperationUtil
;
...
...
@@ -73,9 +73,9 @@ public class LoginV {
LoginC
loginC
=
new
LoginC
();
Result
result
=
loginC
.
login
(
accountTemp
);
if
(
result
.
getCode
()
==
0
){
Curr
Acc
currAcc
=
CurrAcc
.
getInstance
();
Curr
entAccount
currentAccount
=
CurrentAccount
.
getInstance
();
accountTemp
=
(
Account
)
result
.
getData
();
curr
Acc
.
setAccount
(
accountTemp
);
curr
entAccount
.
setAccount
(
accountTemp
);
new
MainV
().
init
();
}
else
{
System
.
out
.
println
(
result
.
getMsg
());
...
...
@@ -118,8 +118,8 @@ public class LoginV {
Result
result
=
loginC
.
regi
(
accountTemp
);
if
(
result
.
getCode
()
==
0
){
System
.
out
.
println
(
"注册成功,请登录!"
);
Curr
Acc
currAcc
=
CurrAcc
.
getInstance
();
curr
Acc
.
setAccount
((
Account
)
result
.
getData
());
Curr
entAccount
currentAccount
=
CurrentAccount
.
getInstance
();
curr
entAccount
.
setAccount
((
Account
)
result
.
getData
());
new
MainV
().
init
();
}
else
{
System
.
out
.
println
(
result
.
getMsg
());
...
...
src/com/ubitgroup/view/mainm/MainV.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.view.mainm
;
import
com.ubitgroup.data.Curr
Acc
;
import
com.ubitgroup.view.acco
m.Acco
V
;
import
com.ubitgroup.data.Curr
entAccount
;
import
com.ubitgroup.view.acco
untm.Account
V
;
import
com.ubitgroup.view.loginm.LoginV
;
import
com.ubitgroup.view.mem.MeV
;
...
...
@@ -15,8 +15,8 @@ public class MainV {
* 初始化页面
* */
public
void
init
(){
Curr
Acc
currAcc
=
CurrAcc
.
getInstance
();
System
.
out
.
println
(
"\n-----欢迎"
+
curr
Acc
.
getAccount
().
getAccount
()
+
"登录系统-----"
);
Curr
entAccount
currentAccount
=
CurrentAccount
.
getInstance
();
System
.
out
.
println
(
"\n-----欢迎"
+
curr
entAccount
.
getAccount
().
getAccount
()
+
"登录系统-----"
);
Scanner
sc
=
new
Scanner
(
System
.
in
);
while
(
true
){
System
.
out
.
println
(
"请选择您要进行的操作:"
);
...
...
@@ -35,7 +35,7 @@ public class MainV {
new
MeV
().
init
();
break
;
case
"2"
:
new
AccoV
().
init
();
new
Acco
unt
V
().
init
();
break
;
case
"3"
:
...
...
@@ -64,8 +64,8 @@ public class MainV {
* 退出账号操作
* */
private
void
logout
(){
Curr
Acc
currAcc
=
CurrAcc
.
getInstance
();
curr
Acc
.
setAccount
(
null
);
Curr
entAccount
currentAccount
=
CurrentAccount
.
getInstance
();
curr
entAccount
.
setAccount
(
null
);
LoginV
loginView
=
new
LoginV
();
loginView
.
init
();
}
...
...
src/com/ubitgroup/view/mem/MeV.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.view.mem
;
import
com.ubitgroup.view.mainm.MainV
;
import
com.ubitgroup.view.mem.chan
pass.ChanPass
V
;
import
com.ubitgroup.view.mem.pers
info.PersInfo
V
;
import
com.ubitgroup.view.mem.chan
gepassword.ChangePassword
V
;
import
com.ubitgroup.view.mem.pers
oninformation.PersonInformation
V
;
import
java.util.Scanner
;
...
...
@@ -30,10 +30,10 @@ public class MeV {
new
MainV
().
init
();
break
;
case
"1"
:
new
Pers
Info
V
().
init
();
new
Pers
onInformation
V
().
init
();
break
;
case
"2"
:
new
Chan
Pass
V
().
init
();
new
Chan
gePassword
V
().
init
();
break
;
default
:
System
.
out
.
println
(
"操作指令错误,请重新输入。"
);
...
...
src/com/ubitgroup/view/mem/chan
pass/ChanPass
V.java
→
src/com/ubitgroup/view/mem/chan
gepassword/ChangePassword
V.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.view.mem.chan
pass
;
package
com.ubitgroup.view.mem.chan
gepassword
;
import
com.ubitgroup.controller.mem.chan
pass.ChanPass
C
;
import
com.ubitgroup.data.Curr
Acc
;
import
com.ubitgroup.controller.mem.chan
gepassword.ChangePassword
C
;
import
com.ubitgroup.data.Curr
entAccount
;
import
com.ubitgroup.model.bean.Account
;
import
com.ubitgroup.model.bean.Result
;
import
com.ubitgroup.util.OperationUtil
;
import
com.ubitgroup.view.loginm.LoginV
;
import
com.ubitgroup.view.mainm.MainV
;
import
com.ubitgroup.view.mem.MeV
;
import
java.util.Scanner
;
...
...
@@ -14,7 +13,7 @@ import java.util.Scanner;
/*
* 修改密码页面
* */
public
class
Chan
Pass
V
{
public
class
Chan
gePassword
V
{
/*
* 初始化页面
* */
...
...
@@ -61,13 +60,13 @@ public class ChanPassV {
break
;
}
Curr
Acc
currAcc
=
CurrAcc
.
getInstance
();
Account
account
=
curr
Acc
.
getAccount
();
Curr
entAccount
currentAccount
=
CurrentAccount
.
getInstance
();
Account
account
=
curr
entAccount
.
getAccount
();
Account
accountTemp
=
new
Account
();
accountTemp
.
setId
(
account
.
getId
());
accountTemp
.
setPassword
(
oldPassword
);
Chan
PassC
chanPassC
=
new
ChanPass
C
();
Result
result
=
chan
Pass
C
.
chanPass
(
accountTemp
,
newPassword
);
Chan
gePasswordC
changePasswordC
=
new
ChangePassword
C
();
Result
result
=
chan
gePassword
C
.
chanPass
(
accountTemp
,
newPassword
);
if
(
result
.
getCode
()
==
0
){
System
.
out
.
println
(
result
.
getMsg
());
try
{
...
...
src/com/ubitgroup/view/mem/pers
info/PersInfo
V.java
→
src/com/ubitgroup/view/mem/pers
oninformation/PersonInformation
V.java
浏览文件 @
c5ba3f27
package
com.ubitgroup.view.mem.pers
info
;
package
com.ubitgroup.view.mem.pers
oninformation
;
import
com.ubitgroup.controller.mem.pers
info.PersInfo
C
;
import
com.ubitgroup.data.Curr
Acc
;
import
com.ubitgroup.controller.mem.pers
oninformation.PersonInformation
C
;
import
com.ubitgroup.data.Curr
entAccount
;
import
com.ubitgroup.model.bean.Account
;
import
com.ubitgroup.model.bean.Result
;
import
com.ubitgroup.util.LocalDateTimeUtil
;
import
com.ubitgroup.util.OperationUtil
;
import
com.ubitgroup.view.mainm.MainV
;
import
com.ubitgroup.view.mem.MeV
;
import
java.util.Scanner
;
...
...
@@ -15,7 +14,7 @@ import java.util.regex.Pattern;
/*
* 个人信息页面
* */
public
class
Pers
Info
V
{
public
class
Pers
onInformation
V
{
/*
* 初始化页面
* */
...
...
@@ -51,10 +50,10 @@ public class PersInfoV {
* 查看个人信息操作
* */
private
void
showPersInfo
(){
Curr
Acc
currAcc
=
CurrAcc
.
getInstance
();
Account
account
=
curr
Acc
.
getAccount
();
Pers
InfoC
persInfoC
=
new
PersInfo
C
();
Result
result
=
pers
Info
C
.
showPersInfo
(
account
);
Curr
entAccount
currentAccount
=
CurrentAccount
.
getInstance
();
Account
account
=
curr
entAccount
.
getAccount
();
Pers
onInformationC
personInformationC
=
new
PersonInformation
C
();
Result
result
=
pers
onInformation
C
.
showPersInfo
(
account
);
if
(
result
.
getCode
()
==
0
){
System
.
out
.
println
(
"\n"
+
account
.
getAccount
()
+
"的个人信息如下:"
);
StringBuilder
sb
=
new
StringBuilder
();
...
...
@@ -88,13 +87,13 @@ public class PersInfoV {
System
.
out
.
println
(
"email格式错误,请重新输入!"
);
continue
;
}
Curr
Acc
currAcc
=
CurrAcc
.
getInstance
();
Account
account
=
curr
Acc
.
getAccount
();
Curr
entAccount
currentAccount
=
CurrentAccount
.
getInstance
();
Account
account
=
curr
entAccount
.
getAccount
();
Account
accountTemp
=
new
Account
();
accountTemp
.
setId
(
account
.
getId
());
accountTemp
.
setEmail
(
email
);
Pers
InfoC
persInfoC
=
new
PersInfo
C
();
Result
result
=
pers
Info
C
.
chanPersInfo
(
accountTemp
);
Pers
onInformationC
personInformationC
=
new
PersonInformation
C
();
Result
result
=
pers
onInformation
C
.
chanPersInfo
(
accountTemp
);
if
(
result
.
getCode
()
==
0
){
System
.
out
.
println
(
"修改成功!\n"
);
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录