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
d2df324a
Commit
d2df324a
authored
Mar 04, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
1c68922e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
6 deletions
+15
-6
RB_Order_Guest_ViewModel.cs
Edu.Model/ViewModel/Sell/RB_Order_Guest_ViewModel.cs
+5
-0
StudentStatModule.cs
Edu.Module.User/StudentStatModule.cs
+2
-3
RB_Order_GuestRepository.cs
Edu.Repository/Sell/RB_Order_GuestRepository.cs
+2
-2
RB_Student_MarketRepository.cs
Edu.Repository/User/RB_Student_MarketRepository.cs
+1
-1
TeacherClassController.cs
Edu.WebApi/Controllers/Course/TeacherClassController.cs
+4
-0
TimerJobj.cs
Edu.WebApi/Timers/TimerJobj.cs
+1
-0
No files found.
Edu.Model/ViewModel/Sell/RB_Order_Guest_ViewModel.cs
View file @
d2df324a
...
...
@@ -33,6 +33,11 @@ namespace Edu.Model.ViewModel.Sell
/// </summary>
public
int
EnterID
{
get
;
set
;
}
/// <summary>
/// 协助老师
/// </summary>
public
int
HelpEnterId
{
get
;
set
;
}
/// <summary>
/// 业务员
/// </summary>
...
...
Edu.Module.User/StudentStatModule.cs
View file @
d2df324a
...
...
@@ -3208,7 +3208,7 @@ namespace Edu.Module.User
#
region
市场部客户数据统计
/// <summary>
/// 生成每天数据
/// 生成
市场部
每天数据
/// </summary>
/// <param name="user">当前操作用户</param>
/// <param name="StartTime">开始时间</param>
...
...
@@ -3217,7 +3217,6 @@ namespace Edu.Module.User
public
bool
CreateStudentMarketModule
(
UserInfo
user
,
string
StartTime
,
string
EndTime
,
bool
isInit
=
true
)
{
bool
flag
=
true
;
string
empIds
=
""
;
if
(
isInit
)
{
student_MarketRepository
.
DeleteStudentMarketByProcRepository
();
...
...
@@ -3228,7 +3227,7 @@ namespace Edu.Module.User
for
(
int
i
=
0
;
i
<
Days
;
i
++)
{
var
newDate
=
date
.
AddDays
(
i
);
var
procModel
=
student_MarketRepository
.
GetStudentMarketByProcRepository
(
Common
.
ConvertHelper
.
FormatDate
(
newDate
)
,
empIds
);
var
procModel
=
student_MarketRepository
.
GetStudentMarketByProcRepository
(
Common
.
ConvertHelper
.
FormatDate
(
newDate
));
var
newModel
=
new
RB_Student_Market
()
{
Id
=
0
,
...
...
Edu.Repository/Sell/RB_Order_GuestRepository.cs
View file @
d2df324a
...
...
@@ -365,9 +365,9 @@ WHERE 1=1 and A.Status=0 and class.Status=0 and b.OrderState<>3
{
builder
.
AppendFormat
(
$@" AND A.
{
nameof
(
RB_Order_Guest_ViewModel
.
OrderId
)}
=
{
demodel
.
OrderId
}
"
);
}
if
(
demodel
.
Teacher_Id
>
0
)
if
(
demodel
.
Teacher_Id
>
0
||
demodel
.
HelpEnterId
>
0
)
{
builder
.
AppendFormat
(
$@" and
class.Teacher_Id =
{
demodel
.
Teacher_Id
}
"
);
builder
.
AppendFormat
(
$@" and
(class.Teacher_Id =
{
demodel
.
Teacher_Id
}
OR B.HelpEnterId =
{
demodel
.
HelpEnterId
}
)
"
);
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
GuestName
))
{
...
...
Edu.Repository/User/RB_Student_MarketRepository.cs
View file @
d2df324a
...
...
@@ -128,7 +128,7 @@ WHERE 1=1 AND A.Date<>'0001-01-01 00:00:00'
/// </summary>
/// <param name="DateStr"></param>
/// <returns></returns>
public
RB_Student_Market_Extend
GetStudentMarketByProcRepository
(
string
DateStr
,
string
empIds
)
public
RB_Student_Market_Extend
GetStudentMarketByProcRepository
(
string
DateStr
)
{
string
sql
=
string
.
Format
(
"call proc_student_market('{0}') "
,
DateStr
);
var
list
=
Get
<
RB_Student_Market_Extend
>(
sql
);
...
...
Edu.WebApi/Controllers/Course/TeacherClassController.cs
View file @
d2df324a
...
...
@@ -234,6 +234,10 @@ namespace Edu.WebApi.Controllers.Course
CourseId
=
base
.
ParmJObj
.
GetInt
(
"CourseId"
,
0
),
EnterID
=
base
.
ParmJObj
.
GetInt
(
"EnterID"
,
0
),
};
if
(
model
.
Teacher_Id
>
0
)
{
model
.
HelpEnterId
=
base
.
UserInfo
.
Id
;
}
model
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
var
list
=
classModule
.
GetTeacherStudentPage
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
model
);
List
<
object
>
result
=
new
List
<
object
>();
...
...
Edu.WebApi/Timers/TimerJobj.cs
View file @
d2df324a
...
...
@@ -232,6 +232,7 @@ namespace Edu.WebApi.Timers
UserInfo
user
=
UserReidsCache
.
GetUserLoginInfo
(
"1"
);
studentStatModule
.
CreateStudentStaticModule
(
user
,
Common
.
ConvertHelper
.
FormatDate
(
currentDate
.
AddDays
(-
1
)),
Common
.
ConvertHelper
.
FormatDate
(
currentDate
),
isInit
:
false
);
studentStatModule
.
CreateStudentMarketModule
(
user
,
Common
.
ConvertHelper
.
FormatDate
(
currentDate
.
AddDays
(-
1
)),
Common
.
ConvertHelper
.
FormatDate
(
currentDate
),
isInit
:
false
);
}
Interlocked
.
Exchange
(
ref
marketconsultant_Timer
,
0
);
}
...
...
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