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
a9282b17
Commit
a9282b17
authored
Mar 17, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
083143c4
fe500809
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
MarketConsultantModule.cs
Edu.Module.Customer/MarketConsultantModule.cs
+3
-3
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+13
-11
No files found.
Edu.Module.Customer/MarketConsultantModule.cs
View file @
a9282b17
...
...
@@ -903,13 +903,13 @@ namespace Edu.Module.Customer
decimal
CurWeekAgFollow
=
0
;
if
(
curWeekList
!=
null
&&
curWeekList
.
Where
(
qitem
=>
qitem
.
CurWeekAgFollow
>
0
).
Count
()
>
0
)
{
CurWeekAgFollow
=
Math
.
Round
(
yesData
List
?.
Average
(
qitem
=>
qitem
.
CurWeekAgFollow
)
??
0
,
2
);
CurWeekAgFollow
=
Math
.
Round
(
curWeek
List
?.
Average
(
qitem
=>
qitem
.
CurWeekAgFollow
)
??
0
,
2
);
}
decimal
LastWeekAgFollow
=
0
;
if
(
curWeekList
!=
null
&&
yesData
List
.
Where
(
qitem
=>
qitem
.
LastWeekAgFollow
>
0
).
Count
()
>
0
)
if
(
curWeekList
!=
null
&&
curWeek
List
.
Where
(
qitem
=>
qitem
.
LastWeekAgFollow
>
0
).
Count
()
>
0
)
{
LastWeekAgFollow
=
Math
.
Round
(
yesData
List
?.
Average
(
qitem
=>
qitem
.
LastWeekAgFollow
)
??
0
,
2
);
LastWeekAgFollow
=
Math
.
Round
(
curWeek
List
?.
Average
(
qitem
=>
qitem
.
LastWeekAgFollow
)
??
0
,
2
);
}
decimal
CurMonthAgFollow
=
0
;
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
a9282b17
...
...
@@ -1797,23 +1797,25 @@ namespace Edu.WebApi.Controllers.User
#
endregion
var
oldModel
=
employeeModule
.
GetEmployeeModule
(
0
,
extModel
.
AccountId
,
extModel
.
AccountType
.
ToInt
());
if
(
oldModel
.
IsTenCccUser
==
0
&&
extModel
.
IsTenCccUser
==
1
)
if
(
oldModel
!=
null
)
{
var
cccResult
=
await
new
TenCloudCCCHelper
().
SetUserToCCCUser
(
extModel
);
if
(!
cccResult
.
result
)
if
(
oldModel
.
IsTenCccUser
==
0
&&
extModel
.
IsTenCccUser
==
1
)
{
return
ApiResult
.
Failed
(
$"同步电话坐席失败,
{
cccResult
.
message
}
"
);
var
cccResult
=
await
new
TenCloudCCCHelper
().
SetUserToCCCUser
(
extModel
);
if
(!
cccResult
.
result
)
{
return
ApiResult
.
Failed
(
$"同步电话坐席失败,
{
cccResult
.
message
}
"
);
}
}
}
else
if
(
oldModel
.
IsTenCccUser
==
1
&&
extModel
.
IsTenCccUser
==
0
)
{
var
cccResult
=
await
new
TenCloudCCCHelper
().
DelUserToCCCUser
(
extModel
);
if
(!
cccResult
.
result
)
else
if
(
oldModel
.
IsTenCccUser
==
1
&&
extModel
.
IsTenCccUser
==
0
)
{
return
ApiResult
.
Failed
(
$"电话客服功能关闭失败,请联系管理员"
);
var
cccResult
=
await
new
TenCloudCCCHelper
().
DelUserToCCCUser
(
extModel
);
if
(!
cccResult
.
result
)
{
return
ApiResult
.
Failed
(
$"电话客服功能关闭失败,请联系管理员"
);
}
}
}
bool
flag
=
employeeModule
.
SetEmployeeModule
(
extModel
,
TXLToken
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
...
...
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