Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
bee881e4
Commit
bee881e4
authored
Dec 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0c583460
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
10 deletions
+30
-10
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+30
-10
No files found.
Edu.Repository/User/RB_StudentRepository.cs
View file @
bee881e4
using
Edu.Common.Enum
;
using
Edu.Common.Enum
;
using
Edu.Common.Plugin
;
using
Edu.Common.Plugin
;
using
Edu.Model.Entity.User
;
using
Edu.Model.ViewModel.User
;
using
Edu.Model.ViewModel.User
;
using
Edu.Repository.Customer
;
using
Edu.Repository.Customer
;
using
Edu.Repository.System
;
using
Edu.Repository.System
;
...
@@ -423,7 +424,6 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
...
@@ -423,7 +424,6 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
{
{
{
nameof
(
RB_Student_ViewModel
.
StuName
),
model
.
StuName
.
Trim
()
},
{
nameof
(
RB_Student_ViewModel
.
StuName
),
model
.
StuName
.
Trim
()
},
{
nameof
(
RB_Student_ViewModel
.
StuTel
),
model
.
StuTel
.
Trim
()
},
{
nameof
(
RB_Student_ViewModel
.
StuTel
),
model
.
StuTel
.
Trim
()
},
{
nameof
(
RB_Student_ViewModel
.
StuSex
),
model
.
StuSex
},
{
nameof
(
RB_Student_ViewModel
.
StuSex
),
model
.
StuSex
},
{
nameof
(
RB_Student_ViewModel
.
StuBirth
),
model
.
StuBirth
},
{
nameof
(
RB_Student_ViewModel
.
StuBirth
),
model
.
StuBirth
},
{
nameof
(
RB_Student_ViewModel
.
ProviceId
),
model
.
ProviceId
},
{
nameof
(
RB_Student_ViewModel
.
ProviceId
),
model
.
ProviceId
},
...
@@ -470,9 +470,25 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
...
@@ -470,9 +470,25 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
var
newId
=
base
.
Insert
(
model
);
var
newId
=
base
.
Insert
(
model
);
model
.
StuId
=
newId
;
model
.
StuId
=
newId
;
flag
=
newId
>
0
;
flag
=
newId
>
0
;
if
(
model
.
CreateType
==
Common
.
Enum
.
User
.
StuCreateTypeEnum
.
EmployeeInput
)
{
createBy
=
model
.
CreateBy
;
}
else
{
createBy
=
model
.
CustomerId
;
}
logContent
=
"创建了该客户"
;
logTitle
=
"创建客户"
;
}
#
region
处理学员账号信息
var
accountModel
=
accountRepository
.
GetAccountListRepository
(
new
RB_Account_ViewModel
()
{
Group_Id
=
model
.
Group_Id
,
AccountType
=
Common
.
Enum
.
User
.
AccountTypeEnum
.
Student
,
AccountId
=
model
.
StuId
}).
FirstOrDefault
();
if
(
accountModel
==
null
)
{
//创建学生账号
//创建学生账号
model
.
Account_Id
=
accountRepository
.
Insert
(
new
Model
.
Entity
.
User
.
RB_Account
()
model
.
Account_Id
=
accountRepository
.
Insert
(
new
RB_Account
()
{
{
Id
=
0
,
Id
=
0
,
Account
=
model
.
StuTel
,
Account
=
model
.
StuTel
,
...
@@ -488,17 +504,21 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
...
@@ -488,17 +504,21 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
UpdateTime
=
DateTime
.
Now
,
UpdateTime
=
DateTime
.
Now
,
Password
=
Common
.
DES
.
Encrypt
(
Common
.
Config
.
DefaultPwd
)
Password
=
Common
.
DES
.
Encrypt
(
Common
.
Config
.
DefaultPwd
)
});
});
if
(
model
.
CreateType
==
Common
.
Enum
.
User
.
StuCreateTypeEnum
.
EmployeeInput
)
}
{
else
createBy
=
model
.
CreateBy
;
{
}
if
(
model
.
StuTel
!=
accountModel
.
Account
)
else
{
{
createBy
=
model
.
CustomerId
;
Dictionary
<
string
,
object
>
accountFileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Account
.
Account
),
model
.
StuTel
}
};
accountRepository
.
Update
(
accountFileds
,
new
WhereHelper
(
nameof
(
RB_Account
.
Id
),
accountModel
.
Id
));
}
}
logContent
=
"创建了该客户"
;
logTitle
=
"创建客户"
;
}
}
#
endregion
student_LogRepository
.
AddStuLogRepository
(
model
.
StuId
,
Common
.
Enum
.
Log
.
StudentLogTypeEnum
.
BasicInfo
,
logTitle
,
logContent
,
createBy
,
CreateType
:
model
.
OperateType
);
student_LogRepository
.
AddStuLogRepository
(
model
.
StuId
,
Common
.
Enum
.
Log
.
StudentLogTypeEnum
.
BasicInfo
,
logTitle
,
logContent
,
createBy
,
CreateType
:
model
.
OperateType
);
return
flag
;
return
flag
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment