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": "a370ea9d-e004-4c63-a7cf-621dc6c21707", "PersonID": "5a1dae30-2f17-4427-a2fc-bd3108436c84", "AccountID": "4e7183d5-7650-49bf-8848-26248ae69721", "StartDate": "2025-07-23 07:36:21", "EndDate": "2025-07-23 07:36:21", "StatusKey": "sample string 1", "StatusValue": "sample string 2", "CanCreate": true, "PromotionPlanList": [ { "CustomerID": "088a4506-1d09-4c5c-a4bd-683414c2695c", "CustomerName": "sample string 1", "PersonID": "c965b2b7-2c0a-4326-a70c-d02fda83f932", "AccountID": "34814b62-7714-4172-89e8-5397b175a456", "PlanDate": "2025-07-23 07:36:21", "PromotionFlightID": "39ba362c-046f-4d7a-b0b7-4b784beeab22", "Remark": "sample string 2", "AttendanceIn": "sample string 3", "AttendanceOut": "sample string 4", "WorkType": "sample string 5", "IsCrossDay": true, "CanModify": true }, { "CustomerID": "088a4506-1d09-4c5c-a4bd-683414c2695c", "CustomerName": "sample string 1", "PersonID": "c965b2b7-2c0a-4326-a70c-d02fda83f932", "AccountID": "34814b62-7714-4172-89e8-5397b175a456", "PlanDate": "2025-07-23 07:36:21", "PromotionFlightID": "39ba362c-046f-4d7a-b0b7-4b784beeab22", "Remark": "sample string 2", "AttendanceIn": "sample string 3", "AttendanceOut": "sample string 4", "WorkType": "sample string 5", "IsCrossDay": true, "CanModify": true } ], "PromotionFlightTable": [ { "TID": "fb1e4afd-fa90-4548-80b6-f896291298fe", "FlightDesc": "sample string 1", "WorkType": 1, "AttendanceIn": "sample string 2", "AttendanceOut": "sample string 3" }, { "TID": "fb1e4afd-fa90-4548-80b6-f896291298fe", "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>4e7183d5-7650-49bf-8848-26248ae69721</AccountID> <AuditLogData i:nil="true" /> <CanCreate>true</CanCreate> <EndDate>2025-07-23T07:36:21.0835958+08:00</EndDate> <HaveCustomer>true</HaveCustomer> <PersonID>5a1dae30-2f17-4427-a2fc-bd3108436c84</PersonID> <PromotionFlightTable> <PromotionFlightDto> <AttendanceIn>sample string 2</AttendanceIn> <AttendanceOut>sample string 3</AttendanceOut> <FlightDesc>sample string 1</FlightDesc> <TID>fb1e4afd-fa90-4548-80b6-f896291298fe</TID> <WorkType>1</WorkType> </PromotionFlightDto> <PromotionFlightDto> <AttendanceIn>sample string 2</AttendanceIn> <AttendanceOut>sample string 3</AttendanceOut> <FlightDesc>sample string 1</FlightDesc> <TID>fb1e4afd-fa90-4548-80b6-f896291298fe</TID> <WorkType>1</WorkType> </PromotionFlightDto> </PromotionFlightTable> <PromotionPlanList> <PromotionPlanDto> <AccountID>34814b62-7714-4172-89e8-5397b175a456</AccountID> <AttendanceIn>sample string 3</AttendanceIn> <AttendanceOut>sample string 4</AttendanceOut> <CanModify>true</CanModify> <CustomerID>088a4506-1d09-4c5c-a4bd-683414c2695c</CustomerID> <CustomerName>sample string 1</CustomerName> <IsCrossDay>true</IsCrossDay> <PersonID>c965b2b7-2c0a-4326-a70c-d02fda83f932</PersonID> <PlanDate>2025-07-23T07:36:21.0835958+08:00</PlanDate> <PromotionFlightID>39ba362c-046f-4d7a-b0b7-4b784beeab22</PromotionFlightID> <Remark>sample string 2</Remark> <WorkType>sample string 5</WorkType> </PromotionPlanDto> <PromotionPlanDto> <AccountID>34814b62-7714-4172-89e8-5397b175a456</AccountID> <AttendanceIn>sample string 3</AttendanceIn> <AttendanceOut>sample string 4</AttendanceOut> <CanModify>true</CanModify> <CustomerID>088a4506-1d09-4c5c-a4bd-683414c2695c</CustomerID> <CustomerName>sample string 1</CustomerName> <IsCrossDay>true</IsCrossDay> <PersonID>c965b2b7-2c0a-4326-a70c-d02fda83f932</PersonID> <PlanDate>2025-07-23T07:36:21.0835958+08:00</PlanDate> <PromotionFlightID>39ba362c-046f-4d7a-b0b7-4b784beeab22</PromotionFlightID> <Remark>sample string 2</Remark> <WorkType>sample string 5</WorkType> </PromotionPlanDto> </PromotionPlanList> <StartDate>2025-07-23T07:36:21.0835958+08:00</StartDate> <StatusKey>sample string 1</StatusKey> <StatusValue>sample string 2</StatusValue> <TID>a370ea9d-e004-4c63-a7cf-621dc6c21707</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>