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
1fce6a38
Commit
1fce6a38
authored
Dec 10, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
7bae9f30
62d718da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
9 deletions
+81
-9
CustomerStudentModule.cs
Edu.Module.Customer/CustomerStudentModule.cs
+50
-3
RB_Student_LogRepository.cs
Edu.Repository/Customer/RB_Student_LogRepository.cs
+1
-1
CustomerStudentController.cs
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
+30
-5
No files found.
Edu.Module.Customer/CustomerStudentModule.cs
View file @
1fce6a38
...
...
@@ -101,7 +101,6 @@ namespace Edu.Module.Customer
{
nameof
(
RB_Student_Appointment_Extend
.
AppointmentPoint
),
model
.
AppointmentPoint
},
{
nameof
(
RB_Student_Appointment_Extend
.
AppointmentTime
),
model
.
AppointmentTime
},
{
nameof
(
RB_Student_Appointment_Extend
.
Remark
),
model
.
Remark
},
{
nameof
(
RB_Student_Appointment_Extend
.
Feedback
),
model
.
Feedback
},
};
flag
=
student_AppointmentRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Student_Appointment_Extend
.
Id
),
model
.
Id
));
logTitle
=
"修改学员约访"
;
...
...
@@ -114,11 +113,35 @@ namespace Edu.Module.Customer
logTitle
=
"新增学员约访"
;
logContent
=
model
.
Remark
;
}
student_LogRepository
.
AddStuLogRepository
(
model
.
StuId
,
Common
.
Enum
.
Log
.
StudentLogTypeEnum
.
Appointment
,
logTitle
,
logContent
,
model
.
CreateBy
);
return
flag
;
}
/// <summary>
/// 新增修改约访反馈
/// </summary>
/// <param name="Feedback"></param>
/// <param name="Id"></param>
/// <param name="OperateId"></param>
/// <returns></returns>
public
bool
SetStudentAppointmentFeedBackModule
(
string
Feedback
,
int
Id
,
int
OperateId
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Student_Appointment_Extend
.
Feedback
),
Feedback
},
};
var
oldModel
=
GetStudentAppointmentModule
(
Id
);
string
logTitle
=
"修改约访"
;
string
logContent
=
""
;
if
(
oldModel
.
Feedback
!=
Feedback
)
{
logContent
+=
string
.
Format
(
"反馈信息:由【{0}】=>【{1}】"
,
oldModel
.
Feedback
,
Feedback
);
}
bool
flag
=
student_VisitRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Student_Appointment_Extend
.
Id
),
Id
));
student_LogRepository
.
AddStuLogRepository
(
oldModel
.
StuId
,
Common
.
Enum
.
Log
.
StudentLogTypeEnum
.
Appointment
,
logTitle
,
logContent
,
OperateId
);
return
flag
;
}
/// <summary>
/// 根据编号获取学员约访信息
/// </summary>
...
...
@@ -317,7 +340,6 @@ namespace Edu.Module.Customer
{
nameof
(
RB_Student_Visit_Extend
.
VisitTime
),
model
.
VisitTime
},
{
nameof
(
RB_Student_Visit_Extend
.
ReceptionPersion
),
model
.
ReceptionPersion
},
{
nameof
(
RB_Student_Visit_Extend
.
Remark
),
model
.
Remark
},
{
nameof
(
RB_Student_Visit_Extend
.
Feedback
),
model
.
Feedback
},
};
flag
=
student_VisitRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Student_Visit_Extend
.
Id
),
model
.
Id
));
}
...
...
@@ -333,6 +355,31 @@ namespace Edu.Module.Customer
return
flag
;
}
/// <summary>
/// 新增修改反馈
/// </summary>
/// <param name="Feedback"></param>
/// <param name="Id"></param>
/// <param name="OperateId"></param>
/// <returns></returns>
public
bool
SetStudentVisitFeedbackModule
(
string
Feedback
,
int
Id
,
int
OperateId
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Student_Visit_Extend
.
Feedback
),
Feedback
},
};
var
oldModel
=
GetStudentVisitModule
(
Id
);
string
logTitle
=
"修改到访"
;
string
logContent
=
""
;
if
(
oldModel
.
Feedback
!=
Feedback
)
{
logContent
+=
string
.
Format
(
"反馈信息:由【{0}】=>【{1}】"
,
oldModel
.
Feedback
,
Feedback
);
}
bool
flag
=
student_VisitRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Student_Visit_Extend
.
Id
),
Id
));
student_LogRepository
.
AddStuLogRepository
(
oldModel
.
StuId
,
Common
.
Enum
.
Log
.
StudentLogTypeEnum
.
Visit
,
logTitle
,
logContent
,
OperateId
);
return
flag
;
}
/// <summary>
/// 根据编号获取学员到访信息
/// </summary>
...
...
Edu.Repository/Customer/RB_Student_LogRepository.cs
View file @
1fce6a38
...
...
@@ -34,7 +34,7 @@ WHERE 1=1
{
if
(
query
.
StuId
>
0
)
{
//
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Student_Log_Extend.StuId), query.StuId);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Log_Extend
.
StuId
),
query
.
StuId
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Student_Log_Extend
.
LogId
));
...
...
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
View file @
1fce6a38
...
...
@@ -47,7 +47,10 @@ namespace Edu.WebApi.Controllers.Customer
{
item
.
Id
,
item
.
StuId
,
item
.
AppointmentPoint
,
AppointmentTime
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
AppointmentTime
),
item
.
Remark
,
item
.
Feedback
,
CreateTime
=
Common
.
ConvertHelper
.
FormatTimeStr2
(
item
.
CreateTime
),
CreateByName
,
});
...
...
@@ -72,7 +75,6 @@ namespace Edu.WebApi.Controllers.Customer
AppointmentPoint
=
base
.
ParmJObj
.
GetStringValue
(
"AppointmentPoint"
),
AppointmentTime
=
base
.
ParmJObj
.
GetDateTime
(
"AppointmentTime"
),
Remark
=
base
.
ParmJObj
.
GetStringValue
(
"Remark"
),
Feedback
=
base
.
ParmJObj
.
GetStringValue
(
"Feedback"
)
};
extModel
.
CreateBy
=
base
.
UserInfo
.
Id
;
extModel
.
CreateTime
=
DateTime
.
Now
;
...
...
@@ -83,6 +85,19 @@ namespace Edu.WebApi.Controllers.Customer
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 新增修改约访反馈
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetStudentAppointmentFeedBack
()
{
var
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
);
string
Feedback
=
base
.
ParmJObj
.
GetStringValue
(
"Feedback"
);
bool
flag
=
customerStudentModule
.
SetStudentAppointmentFeedBackModule
(
Feedback
,
Id
,
base
.
UserInfo
.
Id
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 根据编号获取约访
/// </summary>
...
...
@@ -234,7 +249,6 @@ namespace Edu.WebApi.Controllers.Customer
VisitTime
=
base
.
ParmJObj
.
GetStringValue
(
"VisitTime"
),
ReceptionPersion
=
base
.
ParmJObj
.
GetInt
(
"ReceptionPersion"
),
Remark
=
base
.
ParmJObj
.
GetStringValue
(
"Remark"
),
Feedback
=
base
.
ParmJObj
.
GetStringValue
(
"Feedback"
),
};
extModel
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
extModel
.
CreateBy
=
base
.
UserInfo
.
Id
;
...
...
@@ -246,6 +260,19 @@ namespace Edu.WebApi.Controllers.Customer
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 新增修改到访反馈
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetStudentVisitFeedback
()
{
var
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
);
string
Feedback
=
base
.
ParmJObj
.
GetStringValue
(
"Feedback"
);
bool
flag
=
customerStudentModule
.
SetStudentVisitFeedbackModule
(
Feedback
,
Id
,
base
.
UserInfo
.
Id
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 根据编号获取到访信息
/// </summary>
...
...
@@ -322,7 +349,6 @@ namespace Edu.WebApi.Controllers.Customer
{
Student_Id
=
base
.
ParmJObj
.
GetInt
(
"StuId"
),
};
//query.Group_Id = base.UserInfo.Group_Id;
var
data
=
customerStudentModule
.
GetStuOrderGuestPageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
List
<
object
>
list
=
new
List
<
object
>();
foreach
(
var
item
in
data
)
...
...
@@ -354,9 +380,8 @@ namespace Edu.WebApi.Controllers.Customer
var
pageModel
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
Msg
.
ToString
());
var
query
=
new
RB_Student_OrderGuest_ViewModel
()
{
//
Student_Id = base.ParmJObj.GetInt("StuId"),
Student_Id
=
base
.
ParmJObj
.
GetInt
(
"StuId"
),
};
//query.Group_Id = base.UserInfo.Group_Id;
var
data
=
customerStudentModule
.
GetStuOrderGuestContractPageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
List
<
object
>
list
=
new
List
<
object
>();
foreach
(
var
item
in
data
)
...
...
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