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
d9e0fa28
Commit
d9e0fa28
authored
Dec 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
fb2df615
05a239d6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
11 deletions
+22
-11
RB_Customer_Extend.cs
Edu.Model/ViewModel/Customer/RB_Customer_Extend.cs
+0
-5
RB_Student_ViewModel.cs
Edu.Model/ViewModel/User/RB_Student_ViewModel.cs
+5
-0
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+11
-0
RB_CustomerRepository.cs
Edu.Repository/Customer/RB_CustomerRepository.cs
+0
-4
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+4
-0
B2BCustomerController.cs
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
+1
-2
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+1
-0
No files found.
Edu.Model/ViewModel/Customer/RB_Customer_Extend.cs
View file @
d9e0fa28
...
...
@@ -74,11 +74,6 @@ namespace Edu.Model.ViewModel.Customer
/// </summary>
public
int
QCustomerState
{
get
;
set
;
}
/// <summary>
/// 查询同业类型 1非关联同业客人
/// </summary>
public
int
QCustomerType
{
get
;
set
;
}
/// <summary>
/// 同业Ids
/// </summary>
...
...
Edu.Model/ViewModel/User/RB_Student_ViewModel.cs
View file @
d9e0fa28
...
...
@@ -159,6 +159,11 @@ namespace Edu.Model.ViewModel.User
/// </summary>
public
int
IsQueryMyStu
{
get
;
set
;
}
/// <summary>
/// 学生类型 1非关联同行的
/// </summary>
public
int
QStudentType
{
get
;
set
;
}
/// <summary>
/// 开始时间
/// </summary>
...
...
Edu.Module.Course/OrderModule.cs
View file @
d9e0fa28
...
...
@@ -785,6 +785,8 @@ namespace Edu.Module.Course
{
nameof
(
RB_Order_ViewModel
.
EffectStatus
),
demodel
.
EffectStatus
},
{
nameof
(
RB_Order_ViewModel
.
EffectTime
),
demodel
.
EffectTime
},
{
nameof
(
RB_Order_ViewModel
.
UpOrderId
),
demodel
.
UpOrderId
},
{
nameof
(
RB_Order_ViewModel
.
CustomerId
),
demodel
.
CustomerId
},
{
nameof
(
RB_Order_ViewModel
.
CourseConsultantId
),
demodel
.
CourseConsultantId
},
};
flag
=
orderRepository
.
Update
(
keyValues
,
new
WhereHelper
(
nameof
(
RB_Order_ViewModel
.
OrderId
),
demodel
.
OrderId
));
//记录日志信息
...
...
@@ -818,6 +820,15 @@ namespace Edu.Module.Course
var
empList
=
accountRepository
.
GetAccountListRepository
(
new
RB_Account_ViewModel
()
{
QIds
=
orderModel
.
HelpEnterId
+
","
+
demodel
.
HelpEnterId
});
LogContent
+=
$",协助人员由【
{
empList
?.
Where
(
qitem
=>
qitem
.
Id
==
orderModel
.
HelpEnterId
)?.
FirstOrDefault
()?.
AccountName
}
】修改为【
{
empList
?.
Where
(
qitem
=>
qitem
.
Id
==
demodel
.
HelpEnterId
)?.
FirstOrDefault
()?.
AccountName
}
】"
;
}
if
(
orderModel
.
CourseConsultantId
!=
demodel
.
CourseConsultantId
)
{
var
empList
=
accountRepository
.
GetAccountListRepository
(
new
RB_Account_ViewModel
()
{
QIds
=
orderModel
.
CourseConsultantId
+
","
+
demodel
.
CourseConsultantId
});
LogContent
+=
$",课程顾问由【
{
empList
?.
Where
(
qitem
=>
qitem
.
Id
==
orderModel
.
CourseConsultantId
)?.
FirstOrDefault
()?.
AccountName
}
】修改为【
{
empList
?.
Where
(
qitem
=>
qitem
.
Id
==
demodel
.
CourseConsultantId
)?.
FirstOrDefault
()?.
AccountName
}
】"
;
}
if
(
orderModel
.
CustomerId
!=
demodel
.
CustomerId
)
{
LogContent
+=
$",关联同行由【
{
customerRepository
.
GetEntity
(
orderModel
.
CustomerId
)?.
CustomerName
??
""
}
】修改为【
{
customerRepository
.
GetEntity
(
demodel
.
CustomerId
)?.
CustomerName
??
""
}
】"
;
}
if
(
orderModel
.
GeneralOccupation
!=
demodel
.
GeneralOccupation
)
{
LogContent
+=
$",一般同行由【
{
orderModel
.
GeneralOccupation
}
】修改为【
{
demodel
.
GeneralOccupation
}
】"
;
...
...
Edu.Repository/Customer/RB_CustomerRepository.cs
View file @
d9e0fa28
...
...
@@ -43,10 +43,6 @@ WHERE 1=1
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_Extend
.
CustomerId
),
query
.
CustomerId
);
}
if
(
query
.
QCustomerType
==
1
)
{
builder
.
AppendFormat
(
" AND A.{0}=0 "
,
nameof
(
RB_Customer_Extend
.
CustomerId
));
}
if
(
query
.
CreateBy
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_Extend
.
CreateBy
),
query
.
CreateBy
);
...
...
Edu.Repository/User/RB_StudentRepository.cs
View file @
d9e0fa28
...
...
@@ -145,6 +145,10 @@ WHERE 1=1
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
CustomerId
),
query
.
CustomerId
);
}
if
(
query
.
QStudentType
==
1
)
{
builder
.
AppendFormat
(
" AND t.{0}=0 "
,
nameof
(
RB_Student_ViewModel
.
CustomerId
));
}
if
(
query
.
StuId
>
0
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
StuId
),
query
.
StuId
);
...
...
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
View file @
d9e0fa28
...
...
@@ -458,8 +458,7 @@ 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"
),
QCustomerType
=
base
.
ParmJObj
.
GetInt
(
"QCustomerType"
,
-
1
)
QCustomerState
=
base
.
ParmJObj
.
GetInt
(
"QCustomerState"
)
};
query
.
CreateBy
=
userInfo
.
Id
;
var
list
=
customerModule
.
GetCustomerPageModule_V2
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
d9e0fa28
...
...
@@ -670,6 +670,7 @@ namespace Edu.WebApi.Controllers.User
StartTime
=
base
.
ParmJObj
.
GetStringValue
(
"StartTime"
),
EndTime
=
base
.
ParmJObj
.
GetStringValue
(
"EndTime"
),
BelongType
=
base
.
ParmJObj
.
GetInt
(
"BelongType"
),
QStudentType
=
base
.
ParmJObj
.
GetInt
(
"QStudentType"
,
-
1
)
};
if
(
query
.
IsQueryMyStu
==
1
)
{
...
...
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