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
67813ac8
Commit
67813ac8
authored
Feb 09, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a1a8862d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
RB_CustomerRepository.cs
Edu.Repository/Customer/RB_CustomerRepository.cs
+5
-0
B2BCustomerController.cs
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
+8
-3
No files found.
Edu.Repository/Customer/RB_CustomerRepository.cs
View file @
67813ac8
...
...
@@ -86,6 +86,11 @@ WHERE 1=1
case
4
:
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_Extend
.
CustomerState
),
(
int
)
CustomerStateEnum
.
Disable
);
break
;
}
}
if
(!
string
.
IsNullOrEmpty
(
query
.
CategoryName
))
{
builder
.
AppendFormat
(
" AND B.{0} LIKE @CategoryName "
,
nameof
(
RB_Customer_Extend
.
CategoryName
));
parameters
.
Add
(
"CategoryName"
,
"%"
+
query
.
CategoryName
.
Trim
()
+
"%"
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Customer_Extend
.
CustomerId
));
return
GetPage
<
RB_Customer_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
...
...
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
View file @
67813ac8
...
...
@@ -487,7 +487,8 @@ namespace Edu.WebApi.Controllers.Customer
CustomerName
=
base
.
ParmJObj
.
GetStringValue
(
"CustomerName"
),
ContactNumber
=
base
.
ParmJObj
.
GetStringValue
(
"ContactNumber"
),
ApproveState
=
base
.
ParmJObj
.
GetInt
(
"ApproveState"
),
QCustomerState
=
base
.
ParmJObj
.
GetInt
(
"QCustomerState"
)
QCustomerState
=
base
.
ParmJObj
.
GetInt
(
"QCustomerState"
),
CategoryName
=
base
.
ParmJObj
.
GetStringValue
(
"CategoryName"
),
};
query
.
CreateBy
=
userInfo
.
Id
;
var
list
=
customerModule
.
GetCustomerPageModule_V2
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
...
...
@@ -538,7 +539,8 @@ namespace Edu.WebApi.Controllers.Customer
ContactNumber
=
base
.
ParmJObj
.
GetStringValue
(
"ContactNumber"
),
ApproveState
=
base
.
ParmJObj
.
GetInt
(
"ApproveState"
),
QCustomerState
=
base
.
ParmJObj
.
GetInt
(
"QCustomerState"
),
CreateBy
=
base
.
ParmJObj
.
GetInt
(
"CreateBy"
)
CreateBy
=
base
.
ParmJObj
.
GetInt
(
"CreateBy"
),
CategoryName
=
base
.
ParmJObj
.
GetStringValue
(
"CategoryName"
),
};
var
list
=
customerModule
.
GetCustomerPageModule_V2
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
foreach
(
var
item
in
list
)
...
...
@@ -553,8 +555,9 @@ namespace Edu.WebApi.Controllers.Customer
x
.
CustomerId
,
x
.
CustomerName
,
x
.
ContactNumber
,
x
.
EnterpriseName
,
x
.
CustomerType
,
CustomerTypeName
=
x
.
CustomerType
.
ToName
(),
x
.
EnterpriseName
,
x
.
StuNum
,
x
.
OrderNum
,
x
.
OrderSales
,
...
...
@@ -565,6 +568,8 @@ namespace Edu.WebApi.Controllers.Customer
x
.
CreateTimeStr
,
x
.
QQ
,
x
.
WeChatNo
,
x
.
CategoryName
,
x
.
CategoryId
,
});
pageModel
.
Count
=
rowsCount
;
return
ApiResult
.
Success
(
data
:
pageModel
);
...
...
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