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
b1ced265
Commit
b1ced265
authored
Jan 24, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增字段
parent
35841dda
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
2 deletions
+25
-2
RB_Channel.cs
Edu.Model/Entity/System/RB_Channel.cs
+5
-0
RB_Channel_Extend.cs
Edu.Model/ViewModel/System/RB_Channel_Extend.cs
+5
-0
CustomerStudentModule.cs
Edu.Module.Customer/CustomerStudentModule.cs
+1
-0
MarketConsultantModule.cs
Edu.Module.Customer/MarketConsultantModule.cs
+2
-2
CustomerStudentController.cs
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
+12
-0
No files found.
Edu.Model/Entity/System/RB_Channel.cs
View file @
b1ced265
...
...
@@ -50,5 +50,10 @@ namespace Edu.Model.Entity.System
/// 更新时间
/// </summary>
public
DateTime
UpdateTime
{
get
;
set
;
}
/// <summary>
/// 统计类型(1-普通员工统计,2-主管统计)
/// </summary>
public
string
StaticType
{
get
;
set
;
}
}
}
Edu.Model/ViewModel/System/RB_Channel_Extend.cs
View file @
b1ced265
...
...
@@ -14,5 +14,10 @@ namespace Edu.Model.ViewModel.System
/// 渠道编号【查询使用】
/// </summary>
public
string
QChannelIds
{
get
;
set
;}
/// <summary>
/// 统计类型
/// </summary>
public
List
<
string
>
StaticTypeList
{
get
{
return
Common
.
ConvertHelper
.
StringToFileList
(
this
.
StaticType
);
}
}
}
}
Edu.Module.Customer/CustomerStudentModule.cs
View file @
b1ced265
...
...
@@ -1131,6 +1131,7 @@ namespace Edu.Module.Customer
{
nameof
(
RB_Channel_Extend
.
Name
),
model
.
Name
},
{
nameof
(
RB_Channel_Extend
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_Channel_Extend
.
UpdateTime
),
model
.
UpdateTime
},
{
nameof
(
RB_Channel_Extend
.
StaticType
),
model
.
StaticType
},
};
flag
=
channelRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Channel_Extend
.
Id
),
model
.
Id
));
}
...
...
Edu.Module.Customer/MarketConsultantModule.cs
View file @
b1ced265
...
...
@@ -602,7 +602,7 @@ namespace Edu.Module.Customer
}
dayList
.
Add
(
tempObj
);
}
var
yesDataList
=
lastList
?.
Where
(
qitem
=>
Common
.
ConvertHelper
.
FormatMonthDay
(
qitem
.
Date
)
==
Common
.
ConvertHelper
.
FormatMonthDay
(
end
.
AddDays
(-
1
))
)?.
ToList
();
var
yesDataList
=
lastList
?.
Where
(
qitem
=>
qitem
.
Date
.
Year
==
end
.
AddDays
(-
1
).
Year
&&
qitem
.
Date
.
Month
==
end
.
AddDays
(-
1
).
Month
)?.
ToList
();
obj
=
new
{
dayList
,
...
...
@@ -667,7 +667,7 @@ namespace Edu.Module.Customer
QCreateByIds
=
EmpIds
});
var
consultantGoal
=
GetConsultantGoalListModule
(
new
RB_Consultant_Goal_Extend
()
{
Group_Id
=
100000
,
Dept_Id
=
13
,
YearStr
=
end
.
Year
,
MonthStr
=
end
.
Month
})?.
FirstOrDefault
();
var
yesDataList
=
lastList
?.
Where
(
qitem
=>
Common
.
ConvertHelper
.
FormatMonthDay
(
qitem
.
Date
)
==
Common
.
ConvertHelper
.
FormatMonthDay
(
end
.
AddDays
(-
1
))
)?.
ToList
();
var
yesDataList
=
lastList
?.
Where
(
qitem
=>
qitem
.
Date
.
Year
==
end
.
AddDays
(-
1
).
Year
&&
qitem
.
Date
.
Month
==
end
.
AddDays
(-
1
).
Month
)?.
ToList
();
obj
=
new
{
DayStr
=
Common
.
ConvertHelper
.
FormatMonthDay
(
end
.
AddDays
(-
1
)),
...
...
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
View file @
b1ced265
...
...
@@ -792,6 +792,8 @@ namespace Edu.WebApi.Controllers.Customer
item
.
Id
,
item
.
Name
,
CreateByName
,
item
.
StaticType
,
item
.
StaticTypeList
,
CreateTime
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
),
});
}
...
...
@@ -822,6 +824,8 @@ namespace Edu.WebApi.Controllers.Customer
item
.
Id
,
item
.
Name
,
CreateByName
,
item
.
StaticType
,
item
.
StaticTypeList
,
CreateTime
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
),
});
}
...
...
@@ -839,7 +843,15 @@ namespace Edu.WebApi.Controllers.Customer
{
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
),
Name
=
base
.
ParmJObj
.
GetStringValue
(
"Name"
),
};
string
staticTypes
=
base
.
ParmJObj
.
GetStringValue
(
"StaticTypeList"
);
List
<
string
>
Ids
=
new
List
<
string
>();
if
(!
string
.
IsNullOrEmpty
(
staticTypes
))
{
Ids
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
string
>>(
staticTypes
);
}
extModel
.
StaticType
=
string
.
Join
(
","
,
Ids
);
extModel
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
extModel
.
CreateBy
=
base
.
UserInfo
.
Id
;
extModel
.
CreateTime
=
DateTime
.
Now
;
...
...
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