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
PromotionPlanCreateDtoName | 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": "e8144078-89a8-4a32-b096-741e4f60b16c", "PersonID": "4044bc6c-124e-4318-a160-13bc9ee4e78d", "AccountID": "f27d874f-b23f-44d6-b142-3ef066b2385c", "StartDate": "2025-06-23 22:03:45", "EndDate": "2025-06-23 22:03:45", "StatusKey": "sample string 1", "StatusValue": "sample string 2", "CanCreate": true, "PromotionPlanList": [ { "CustomerID": "7dccfb26-53a5-46ea-a509-670e1af2a250", "CustomerName": "sample string 1", "PersonID": "5e80540d-cac0-4df9-8147-d8b3712c363b", "AccountID": "bb19724f-cedc-43d6-95bb-2e7c7cc78bd0", "PlanDate": "2025-06-23 22:03:45", "PromotionFlightID": "58b1fde6-afda-42a2-aa29-ab178a833d0c", "Remark": "sample string 2", "AttendanceIn": "sample string 3", "AttendanceOut": "sample string 4", "WorkType": "sample string 5", "IsCrossDay": true, "CanModify": true }, { "CustomerID": "7dccfb26-53a5-46ea-a509-670e1af2a250", "CustomerName": "sample string 1", "PersonID": "5e80540d-cac0-4df9-8147-d8b3712c363b", "AccountID": "bb19724f-cedc-43d6-95bb-2e7c7cc78bd0", "PlanDate": "2025-06-23 22:03:45", "PromotionFlightID": "58b1fde6-afda-42a2-aa29-ab178a833d0c", "Remark": "sample string 2", "AttendanceIn": "sample string 3", "AttendanceOut": "sample string 4", "WorkType": "sample string 5", "IsCrossDay": true, "CanModify": true } ], "PromotionFlightTable": [ { "TID": "2c88f898-2e2e-46b7-b39f-470eb618992e", "FlightDesc": "sample string 1", "WorkType": 1, "AttendanceIn": "sample string 2", "AttendanceOut": "sample string 3" }, { "TID": "2c88f898-2e2e-46b7-b39f-470eb618992e", "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>f27d874f-b23f-44d6-b142-3ef066b2385c</AccountID> <AuditLogData i:nil="true" /> <CanCreate>true</CanCreate> <EndDate>2025-06-23T22:03:45.8133661+08:00</EndDate> <HaveCustomer>true</HaveCustomer> <PersonID>4044bc6c-124e-4318-a160-13bc9ee4e78d</PersonID> <PromotionFlightTable> <PromotionFlightDto> <AttendanceIn>sample string 2</AttendanceIn> <AttendanceOut>sample string 3</AttendanceOut> <FlightDesc>sample string 1</FlightDesc> <TID>2c88f898-2e2e-46b7-b39f-470eb618992e</TID> <WorkType>1</WorkType> </PromotionFlightDto> <PromotionFlightDto> <AttendanceIn>sample string 2</AttendanceIn> <AttendanceOut>sample string 3</AttendanceOut> <FlightDesc>sample string 1</FlightDesc> <TID>2c88f898-2e2e-46b7-b39f-470eb618992e</TID> <WorkType>1</WorkType> </PromotionFlightDto> </PromotionFlightTable> <PromotionPlanList> <PromotionPlanDto> <AccountID>bb19724f-cedc-43d6-95bb-2e7c7cc78bd0</AccountID> <AttendanceIn>sample string 3</AttendanceIn> <AttendanceOut>sample string 4</AttendanceOut> <CanModify>true</CanModify> <CustomerID>7dccfb26-53a5-46ea-a509-670e1af2a250</CustomerID> <CustomerName>sample string 1</CustomerName> <IsCrossDay>true</IsCrossDay> <PersonID>5e80540d-cac0-4df9-8147-d8b3712c363b</PersonID> <PlanDate>2025-06-23T22:03:45.8290157+08:00</PlanDate> <PromotionFlightID>58b1fde6-afda-42a2-aa29-ab178a833d0c</PromotionFlightID> <Remark>sample string 2</Remark> <WorkType>sample string 5</WorkType> </PromotionPlanDto> <PromotionPlanDto> <AccountID>bb19724f-cedc-43d6-95bb-2e7c7cc78bd0</AccountID> <AttendanceIn>sample string 3</AttendanceIn> <AttendanceOut>sample string 4</AttendanceOut> <CanModify>true</CanModify> <CustomerID>7dccfb26-53a5-46ea-a509-670e1af2a250</CustomerID> <CustomerName>sample string 1</CustomerName> <IsCrossDay>true</IsCrossDay> <PersonID>5e80540d-cac0-4df9-8147-d8b3712c363b</PersonID> <PlanDate>2025-06-23T22:03:45.8290157+08:00</PlanDate> <PromotionFlightID>58b1fde6-afda-42a2-aa29-ab178a833d0c</PromotionFlightID> <Remark>sample string 2</Remark> <WorkType>sample string 5</WorkType> </PromotionPlanDto> </PromotionPlanList> <StartDate>2025-06-23T22:03:45.8133661+08:00</StartDate> <StatusKey>sample string 1</StatusKey> <StatusValue>sample string 2</StatusValue> <TID>e8144078-89a8-4a32-b096-741e4f60b16c</TID> </PromotionPlanCreateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfBooleanName | 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>