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
eeae4f19
Commit
eeae4f19
authored
Feb 11, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
29cd4dc2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
2 deletions
+77
-2
RB_Studyabroad_TypeRepository.cs
Edu.Repository/StudyAbroad/RB_Studyabroad_TypeRepository.cs
+1
-1
B2BCustomerController.cs
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
+76
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+0
-1
No files found.
Edu.Repository/StudyAbroad/RB_Studyabroad_TypeRepository.cs
View file @
eeae4f19
...
...
@@ -93,7 +93,7 @@ WHERE 1=1
parameters
.
Add
(
"Name"
,
"%"
+
query
.
Name
.
Trim
()
+
"%"
);
}
}
builder
.
AppendFormat
(
" OR A.CountryId=0 "
);
//
builder.AppendFormat(" OR A.CountryId=0 ");
builder
.
AppendFormat
(
" ORDER BY A.{0} "
,
nameof
(
RB_Studyabroad_Type_Extend
.
Num
));
return
Get
<
RB_Studyabroad_Type_Extend
>(
builder
.
ToString
(),
parameters
).
ToList
();
}
...
...
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
View file @
eeae4f19
...
...
@@ -595,6 +595,82 @@ namespace Edu.WebApi.Controllers.Customer
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 导出同行联系人信息
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
Obsolete
]
public
FileContentResult
DownLoadCustomerLinkMan
()
{
var
query
=
new
RB_Customer_Extend
()
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
CustomerId
=
base
.
ParmJObj
.
GetInt
(
"CustomerId"
),
CustomerName
=
base
.
ParmJObj
.
GetStringValue
(
"CustomerName"
),
ContactNumber
=
base
.
ParmJObj
.
GetStringValue
(
"ContactNumber"
),
ApproveState
=
base
.
ParmJObj
.
GetInt
(
"ApproveState"
),
QCustomerState
=
base
.
ParmJObj
.
GetInt
(
"QCustomerState"
),
CreateBy
=
base
.
ParmJObj
.
GetInt
(
"CreateBy"
),
CategoryName
=
base
.
ParmJObj
.
GetStringValue
(
"CategoryName"
),
CategoryId
=
base
.
ParmJObj
.
GetInt
(
"CategoryId"
),
};
string
excelName
=
"同行联系人.xls"
;
var
list
=
customerModule
.
GetCustomerPageModule_V2
(
1
,
100000
,
out
long
rowsCount
,
query
);
List
<
ExcelDataSource
>
slist
=
new
List
<
ExcelDataSource
>();
try
{
ExcelDataSource
header
=
new
ExcelDataSource
();
header
.
ExcelRows
=
new
List
<
ExcelColumn
>()
{
new
ExcelColumn
(
"联系人名称"
),
new
ExcelColumn
(
"类型"
),
new
ExcelColumn
(
"同行名称"
),
new
ExcelColumn
(
"电话"
),
new
ExcelColumn
(
"QQ号"
),
new
ExcelColumn
(
"微信号"
),
new
ExcelColumn
(
"客户数量"
),
new
ExcelColumn
(
"订单数量"
),
new
ExcelColumn
(
"交易额"
),
new
ExcelColumn
(
"审核状态"
),
new
ExcelColumn
(
"加入时间"
),
new
ExcelColumn
(
"负责人"
),
};
slist
.
Add
(
header
);
foreach
(
var
item
in
list
)
{
var
dataRow
=
new
ExcelDataSource
()
{
ExcelRows
=
new
List
<
ExcelColumn
>()
{
new
ExcelColumn
(
item
.
CustomerName
),
new
ExcelColumn
(
item
.
CustomerType
.
ToName
()),
new
ExcelColumn
(
item
.
CategoryName
),
new
ExcelColumn
(
item
.
ContactNumber
),
new
ExcelColumn
(
item
.
QQ
),
new
ExcelColumn
(
item
.
WeChatNo
),
new
ExcelColumn
(
item
.
StuNum
.
ToString
()),
new
ExcelColumn
(
item
.
OrderNum
.
ToString
()),
new
ExcelColumn
(
item
.
OrderSales
.
ToString
()),
new
ExcelColumn
(
item
.
ApproveStateStr
),
new
ExcelColumn
(
item
.
CreateTimeStr
),
new
ExcelColumn
(
UserReidsCache
.
GetUserLoginInfo
(
item
.
CreateBy
)?.
AccountName
??
""
),
}
};
slist
.
Add
(
dataRow
);
}
var
byteData
=
ExcelTempLateHelper
.
ToExcelExtend
(
slist
);
return
File
(
byteData
,
"application/octet-stream"
,
excelName
);
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"OutToExcelOrderStudentClassHoursList"
);
var
byteData1
=
ExcelTempLateHelper
.
ToExcelExtend
(
slist
);
return
File
(
byteData1
,
"application/octet-stream"
,
excelName
);
}
}
/// <summary>
/// 获取同行佣金幸福存折
/// </summary>
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
eeae4f19
...
...
@@ -905,7 +905,6 @@ namespace Edu.WebApi.Controllers.User
var
byteData1
=
ExcelTempLateHelper
.
ToExcelExtend
(
slist
);
return
File
(
byteData1
,
"application/octet-stream"
,
excelName
);
}
}
/// <summary>
...
...
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