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
103fb329
Commit
103fb329
authored
Mar 19, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口修改
parent
a3ebadf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
RB_StudyAbroadRepository.cs
Edu.Repository/StudyAbroad/RB_StudyAbroadRepository.cs
+4
-0
StudyAbroadController.cs
Edu.WebApi/Controllers/StudyAbroad/StudyAbroadController.cs
+13
-0
No files found.
Edu.Repository/StudyAbroad/RB_StudyAbroadRepository.cs
View file @
103fb329
...
@@ -60,6 +60,10 @@ WHERE 1=1
...
@@ -60,6 +60,10 @@ WHERE 1=1
{
{
builder
.
AppendFormat
(
" AND A.SaleState=2 AND A.DirectorId>0 AND A.DirectorStatus=1 AND A.ManagerStatus=0 "
);
builder
.
AppendFormat
(
" AND A.SaleState=2 AND A.DirectorId>0 AND A.DirectorStatus=1 AND A.ManagerStatus=0 "
);
}
}
if
(
query
.
SaleState
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1}"
,
nameof
(
RB_StudyAbroad_ViewModel
.
SaleState
),(
int
)
query
.
SaleState
);
}
return
GetPage
<
RB_StudyAbroad_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
return
GetPage
<
RB_StudyAbroad_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
}
}
}
}
...
...
Edu.WebApi/Controllers/StudyAbroad/StudyAbroadController.cs
View file @
103fb329
using
Edu.Cache.User
;
using
Edu.Cache.User
;
using
Edu.Common.API
;
using
Edu.Common.API
;
using
Edu.Common.Enum.Sale
;
using
Edu.Common.Plugin
;
using
Edu.Common.Plugin
;
using
Edu.Model.ViewModel.StudyAbroad
;
using
Edu.Model.ViewModel.StudyAbroad
;
using
Edu.Module.StudyAbroad
;
using
Edu.Module.StudyAbroad
;
...
@@ -190,6 +191,7 @@ namespace Edu.WebApi.Controllers.StudyAbroad
...
@@ -190,6 +191,7 @@ namespace Edu.WebApi.Controllers.StudyAbroad
SupplierId
=
base
.
ParmJObj
.
GetInt
(
"SupplierId"
),
SupplierId
=
base
.
ParmJObj
.
GetInt
(
"SupplierId"
),
IsQPrice
=
base
.
ParmJObj
.
GetInt
(
"IsQPrice"
),
IsQPrice
=
base
.
ParmJObj
.
GetInt
(
"IsQPrice"
),
AuditType
=
base
.
ParmJObj
.
GetInt
(
"AuditType"
),
AuditType
=
base
.
ParmJObj
.
GetInt
(
"AuditType"
),
SaleState
=(
SaleStateEnum
)
base
.
ParmJObj
.
GetInt
(
"SaleState"
)
};
};
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
List
<
object
>
result
=
new
List
<
object
>();
List
<
object
>
result
=
new
List
<
object
>();
...
@@ -447,6 +449,17 @@ namespace Edu.WebApi.Controllers.StudyAbroad
...
@@ -447,6 +449,17 @@ namespace Edu.WebApi.Controllers.StudyAbroad
});
});
return
ApiResult
.
Success
(
data
:
list
);
return
ApiResult
.
Success
(
data
:
list
);
}
}
/// <summary>
/// 获取留学就业销售状态列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetSaleStateList
()
{
var
list
=
Common
.
Plugin
.
EnumHelper
.
EnumToList
(
typeof
(
SaleStateEnum
));
return
ApiResult
.
Success
(
data
:
list
);
}
#
endregion
#
endregion
}
}
}
}
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