POST api/PromotionPlan/SavePromotionPlan?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}
提交排班计划
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DomainId |
域Id |
globally unique identifier |
None. |
| AccountId |
账户Id |
globally unique identifier |
None. |
| PersonId |
人员Id |
globally unique identifier |
None. |
Body Parameters
PromotionPlanCreateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| TID | globally unique identifier |
None. |
|
| PersonID | globally unique identifier |
None. |
|
| AccountID | globally unique identifier |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| StatusKey | string |
None. |
|
| StatusValue | string |
None. |
|
| CanCreate | boolean |
None. |
|
| PromotionPlanList | Collection of PromotionPlanDto |
None. |
|
| PromotionFlightTable | Collection of PromotionFlightDto |
None. |
|
| HaveCustomer | boolean |
None. |
|
| AuditLogData | DataSet |
None. |
Request Formats
application/json, text/json
Sample:
{
"TID": "018d1deb-8b0f-4665-abd4-179bfe712d19",
"PersonID": "042f78fc-8a63-435f-9953-b8f9733111a5",
"AccountID": "7c6a9ef5-7136-4a41-9512-8153fe4798e5",
"StartDate": "2025-12-17 05:52:02",
"EndDate": "2025-12-17 05:52:02",
"StatusKey": "sample string 1",
"StatusValue": "sample string 2",
"CanCreate": true,
"PromotionPlanList": [
{
"CustomerID": "97cd36df-f200-40ad-8751-f32edc0c0525",
"CustomerName": "sample string 1",
"PersonID": "d6241160-7b57-443b-946b-9f9d0ebde38d",
"AccountID": "5c5219a0-e2a0-4e16-8b60-15b38d4a434c",
"PlanDate": "2025-12-17 05:52:02",
"PromotionFlightID": "f4f3d8b0-a761-44db-a317-48aefc79888c",
"Remark": "sample string 2",
"AttendanceIn": "sample string 3",
"AttendanceOut": "sample string 4",
"WorkType": "sample string 5",
"IsCrossDay": true,
"CanModify": true
},
{
"CustomerID": "97cd36df-f200-40ad-8751-f32edc0c0525",
"CustomerName": "sample string 1",
"PersonID": "d6241160-7b57-443b-946b-9f9d0ebde38d",
"AccountID": "5c5219a0-e2a0-4e16-8b60-15b38d4a434c",
"PlanDate": "2025-12-17 05:52:02",
"PromotionFlightID": "f4f3d8b0-a761-44db-a317-48aefc79888c",
"Remark": "sample string 2",
"AttendanceIn": "sample string 3",
"AttendanceOut": "sample string 4",
"WorkType": "sample string 5",
"IsCrossDay": true,
"CanModify": true
}
],
"PromotionFlightTable": [
{
"TID": "d60dd812-95dd-4631-bd45-b47ca294de3c",
"FlightDesc": "sample string 1",
"WorkType": 1,
"AttendanceIn": "sample string 2",
"AttendanceOut": "sample string 3"
},
{
"TID": "d60dd812-95dd-4631-bd45-b47ca294de3c",
"FlightDesc": "sample string 1",
"WorkType": 1,
"AttendanceIn": "sample string 2",
"AttendanceOut": "sample string 3"
}
],
"HaveCustomer": true,
"AuditLogData": null
}
application/xml, text/xml
Sample:
<PromotionPlanCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO.ApiDTO">
<AccountID>7c6a9ef5-7136-4a41-9512-8153fe4798e5</AccountID>
<AuditLogData i:nil="true" />
<CanCreate>true</CanCreate>
<EndDate>2025-12-17T05:52:02.4254933+08:00</EndDate>
<HaveCustomer>true</HaveCustomer>
<PersonID>042f78fc-8a63-435f-9953-b8f9733111a5</PersonID>
<PromotionFlightTable>
<PromotionFlightDto>
<AttendanceIn>sample string 2</AttendanceIn>
<AttendanceOut>sample string 3</AttendanceOut>
<FlightDesc>sample string 1</FlightDesc>
<TID>d60dd812-95dd-4631-bd45-b47ca294de3c</TID>
<WorkType>1</WorkType>
</PromotionFlightDto>
<PromotionFlightDto>
<AttendanceIn>sample string 2</AttendanceIn>
<AttendanceOut>sample string 3</AttendanceOut>
<FlightDesc>sample string 1</FlightDesc>
<TID>d60dd812-95dd-4631-bd45-b47ca294de3c</TID>
<WorkType>1</WorkType>
</PromotionFlightDto>
</PromotionFlightTable>
<PromotionPlanList>
<PromotionPlanDto>
<AccountID>5c5219a0-e2a0-4e16-8b60-15b38d4a434c</AccountID>
<AttendanceIn>sample string 3</AttendanceIn>
<AttendanceOut>sample string 4</AttendanceOut>
<CanModify>true</CanModify>
<CustomerID>97cd36df-f200-40ad-8751-f32edc0c0525</CustomerID>
<CustomerName>sample string 1</CustomerName>
<IsCrossDay>true</IsCrossDay>
<PersonID>d6241160-7b57-443b-946b-9f9d0ebde38d</PersonID>
<PlanDate>2025-12-17T05:52:02.4254933+08:00</PlanDate>
<PromotionFlightID>f4f3d8b0-a761-44db-a317-48aefc79888c</PromotionFlightID>
<Remark>sample string 2</Remark>
<WorkType>sample string 5</WorkType>
</PromotionPlanDto>
<PromotionPlanDto>
<AccountID>5c5219a0-e2a0-4e16-8b60-15b38d4a434c</AccountID>
<AttendanceIn>sample string 3</AttendanceIn>
<AttendanceOut>sample string 4</AttendanceOut>
<CanModify>true</CanModify>
<CustomerID>97cd36df-f200-40ad-8751-f32edc0c0525</CustomerID>
<CustomerName>sample string 1</CustomerName>
<IsCrossDay>true</IsCrossDay>
<PersonID>d6241160-7b57-443b-946b-9f9d0ebde38d</PersonID>
<PlanDate>2025-12-17T05:52:02.4254933+08:00</PlanDate>
<PromotionFlightID>f4f3d8b0-a761-44db-a317-48aefc79888c</PromotionFlightID>
<Remark>sample string 2</Remark>
<WorkType>sample string 5</WorkType>
</PromotionPlanDto>
</PromotionPlanList>
<StartDate>2025-12-17T05:52:02.4254933+08:00</StartDate>
<StatusKey>sample string 1</StatusKey>
<StatusValue>sample string 2</StatusValue>
<TID>018d1deb-8b0f-4665-abd4-179bfe712d19</TID>
</PromotionPlanCreateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | ReturnCode |
None. |
|
| Message | string |
None. |
|
| Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 200,
"Message": "sample string 1",
"Data": true
}
application/xml, text/xml
Sample:
<ResultModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility"> <Code>Success</Code> <Data>true</Data> <Message>sample string 1</Message> </ResultModelOfboolean>