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
331f9b00
Commit
331f9b00
authored
Feb 09, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6d388b91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
8 deletions
+45
-8
StudentModule.cs
Edu.Module.User/StudentModule.cs
+16
-2
StudentStatModule.cs
Edu.Module.User/StudentStatModule.cs
+17
-2
RB_CustomerRepository.cs
Edu.Repository/Customer/RB_CustomerRepository.cs
+2
-2
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+10
-2
No files found.
Edu.Module.User/StudentModule.cs
View file @
331f9b00
...
@@ -275,8 +275,22 @@ namespace Edu.Module.User
...
@@ -275,8 +275,22 @@ namespace Edu.Module.User
}
}
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
)
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
)
{
{
item
.
StuSourceIdName
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
)?.
CustomerName
??
""
;
var
tempCustomer
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
);
item
.
EnterpriseName
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
)?.
EnterpriseName
??
""
;
item
.
StuSourceIdName
=
tempCustomer
?.
CustomerName
??
""
;
if
(
tempCustomer
!=
null
)
{
if
(
tempCustomer
.
CustomerType
==
Common
.
Enum
.
Customer
.
CatetoryTypeEnum
.
Other
)
{
item
.
EnterpriseName
=
tempCustomer
?.
CategoryName
??
""
;
}
else
{
item
.
EnterpriseName
=
tempCustomer
?.
EnterpriseName
??
""
;
}
}
else
{
item
.
EnterpriseName
=
""
;
}
}
}
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
{
{
...
...
Edu.Module.User/StudentStatModule.cs
View file @
331f9b00
...
@@ -198,8 +198,23 @@ namespace Edu.Module.User
...
@@ -198,8 +198,23 @@ namespace Edu.Module.User
}
}
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
)
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
)
{
{
item
.
StuSourceIdName
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
)?.
CustomerName
??
""
;
var
tempCustomer
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
);
item
.
EnterpriseName
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
)?.
EnterpriseName
??
""
;
item
.
StuSourceIdName
=
tempCustomer
?.
CustomerName
??
""
;
if
(
tempCustomer
!=
null
)
{
if
(
tempCustomer
.
CustomerType
==
Common
.
Enum
.
Customer
.
CatetoryTypeEnum
.
Other
)
{
item
.
EnterpriseName
=
tempCustomer
?.
CategoryName
??
""
;
}
else
{
item
.
EnterpriseName
=
tempCustomer
?.
EnterpriseName
??
""
;
}
}
else
{
item
.
EnterpriseName
=
""
;
}
}
}
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
{
{
...
...
Edu.Repository/Customer/RB_CustomerRepository.cs
View file @
331f9b00
...
@@ -105,8 +105,8 @@ WHERE 1=1
...
@@ -105,8 +105,8 @@ WHERE 1=1
var
parameters
=
new
DynamicParameters
();
var
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
builder
.
AppendFormat
(
@"
SELECT A.*
SELECT A.*
,IFNULL(B.CategoryName,'') AS CategoryName
FROM RB_Customer AS A
FROM RB_Customer AS A
LEFT JOIN rb_customer_category AS B ON A.CategoryId=B.CategoryId
WHERE 1=1
WHERE 1=1
"
);
"
);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
...
...
Edu.Repository/User/RB_StudentRepository.cs
View file @
331f9b00
...
@@ -190,10 +190,18 @@ WHERE 1=1
...
@@ -190,10 +190,18 @@ WHERE 1=1
{
{
var
tempCustomer
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
);
var
tempCustomer
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
);
var
tempStr
=
(
tempCustomer
?.
CustomerName
??
""
);
var
tempStr
=
(
tempCustomer
?.
CustomerName
??
""
);
if
(
(
tempCustomer
?.
EnterpriseName
??
""
)
!=
""
)
if
(
tempCustomer
!=
null
)
{
{
tempStr
+=
"("
+
(
tempCustomer
?.
EnterpriseName
??
""
)
+
")"
;
if
(
tempCustomer
.
CustomerType
==
Common
.
Enum
.
Customer
.
CatetoryTypeEnum
.
Other
)
{
tempStr
+=
"("
+
(
tempCustomer
?.
EnterpriseName
??
""
)
+
")"
;
}
else
{
tempStr
+=
"("
+
(
tempCustomer
?.
CategoryName
??
""
)
+
")"
;
}
}
}
item
.
StuSourceIdName
=
tempStr
;
item
.
StuSourceIdName
=
tempStr
;
}
}
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
...
...
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