前台数据
["One","Two","Three"]
controller =>
HttpPost(
"get_employee_activity_type")]
ProducesResponseType(
typeof(
IEnumerable<
EmployeeAssignmentsViewModel>), (
int)
HttpStatusCode.
OK)]
public
async
Task<
IActionResult>
GetEmployeeActivityType([
FromBody]
List<
string> operatorIds)
Queries(Services)
public
async
Task<
IEnumerable<
EmployeeAssignmentsViewModel>>
GetEmployeeActivityTypeAsync(
List<
string> operatorIds)
string operatorIdWhere
=
String.
Join(
"','",
operatorIds);
因为我要的数据格式要成 'One','Two','Three'的
昨个脑卡。。一直没想出来。。。。。基础啊