Commit 007e7d09e7b65e68d07747a2fbfb71e51140f5b6
0 parents
第一版
Showing
319 changed files
with
9513 additions
and
0 deletions
Too many changes.
To preserve performance only 100 of 319 files are displayed.
.idea/.gitignore
0 → 100644
1 | +++ a/.idea/.gitignore | |
1 | +*.class | |
2 | + | |
3 | +# Mobile Tools for Java (J2ME) | |
4 | +.mtj.tmp/ | |
5 | + | |
6 | +# Package Files # | |
7 | +*.war | |
8 | +*.ear | |
9 | + | |
10 | +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | |
11 | +hs_err_pid* | |
12 | + | |
13 | +.idea/ | |
14 | +*.iml | |
15 | + | |
16 | +/logs | |
17 | +/target | |
18 | + | |
19 | +rebel.xml | |
20 | +resources.dev/ | |
21 | +/resources.dev/ | |
22 | +*/target | ... | ... |
.idea/compiler.xml
0 → 100644
1 | +++ a/.idea/compiler.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="CompilerConfiguration"> | |
4 | + <annotationProcessing> | |
5 | + <profile default="true" name="Default" enabled="true" /> | |
6 | + <profile name="Maven default annotation processors profile" enabled="true"> | |
7 | + <sourceOutputDir name="target/generated-sources/annotations" /> | |
8 | + <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> | |
9 | + <outputRelativeToContentRoot value="true" /> | |
10 | + <module name="zhyx-api" /> | |
11 | + <module name="bin-api" /> | |
12 | + </profile> | |
13 | + </annotationProcessing> | |
14 | + </component> | |
15 | + <component name="JavacSettings"> | |
16 | + <option name="ADDITIONAL_OPTIONS_OVERRIDE"> | |
17 | + <module name="zhyx-api" options="-parameters" /> | |
18 | + </option> | |
19 | + </component> | |
20 | +</project> | |
0 | 21 | \ No newline at end of file | ... | ... |
.idea/encodings.xml
0 → 100644
1 | +++ a/.idea/encodings.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="Encoding"> | |
4 | + <file url="file://$PROJECT_DIR$/zhyx-api/src/main/java" charset="UTF-8" /> | |
5 | + <file url="file://$APPLICATION_HOME_DIR$/jbr/bin/src/main/java" charset="UTF-8" /> | |
6 | + <file url="file://$APPLICATION_HOME_DIR$/jbr/bin/src/main/resources" charset="UTF-8" /> | |
7 | + </component> | |
8 | +</project> | |
0 | 9 | \ No newline at end of file | ... | ... |
.idea/jarRepositories.xml
0 → 100644
1 | +++ a/.idea/jarRepositories.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="RemoteRepositoriesConfiguration"> | |
4 | + <remote-repository> | |
5 | + <option name="id" value="central" /> | |
6 | + <option name="name" value="Central Repository" /> | |
7 | + <option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" /> | |
8 | + </remote-repository> | |
9 | + <remote-repository> | |
10 | + <option name="id" value="central" /> | |
11 | + <option name="name" value="Central Repository" /> | |
12 | + <option name="url" value="https://repo.maven.apache.org/maven2" /> | |
13 | + </remote-repository> | |
14 | + <remote-repository> | |
15 | + <option name="id" value="central" /> | |
16 | + <option name="name" value="Central Repository" /> | |
17 | + <option name="url" value="http://maven.aliyun.com/nexus/content/repositories/central/" /> | |
18 | + </remote-repository> | |
19 | + <remote-repository> | |
20 | + <option name="id" value="central" /> | |
21 | + <option name="name" value="Maven Central repository" /> | |
22 | + <option name="url" value="https://repo1.maven.org/maven2" /> | |
23 | + </remote-repository> | |
24 | + <remote-repository> | |
25 | + <option name="id" value="jboss.community" /> | |
26 | + <option name="name" value="JBoss Community repository" /> | |
27 | + <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> | |
28 | + </remote-repository> | |
29 | + <remote-repository> | |
30 | + <option name="id" value="central" /> | |
31 | + <option name="name" value="Central Repository" /> | |
32 | + <option name="url" value="https://maven.aliyun.com/repository/public" /> | |
33 | + </remote-repository> | |
34 | + </component> | |
35 | +</project> | |
0 | 36 | \ No newline at end of file | ... | ... |
.idea/misc.xml
0 → 100644
1 | +++ a/.idea/misc.xml | |
1 | +<project version="4"> | |
2 | + <component name="ExternalStorageConfigurationManager" enabled="true" /> | |
3 | + <component name="MavenProjectsManager"> | |
4 | + <option name="originalFiles"> | |
5 | + <list> | |
6 | + <option value="$PROJECT_DIR$/pom.xml" /> | |
7 | + <option value="$PROJECT_DIR$/zhyx-api/pom.xml" /> | |
8 | + </list> | |
9 | + </option> | |
10 | + </component> | |
11 | + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK" /> | |
12 | +</project> | |
0 | 13 | \ No newline at end of file | ... | ... |
.idea/modules.xml
0 → 100644
1 | +++ a/.idea/modules.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="ProjectModuleManager"> | |
4 | + <modules> | |
5 | + <module fileurl="file://$PROJECT_DIR$/zhyx-api/zhyx-api.iml" filepath="$PROJECT_DIR$/zhyx-api/zhyx-api.iml" /> | |
6 | + </modules> | |
7 | + </component> | |
8 | +</project> | |
0 | 9 | \ No newline at end of file | ... | ... |
.idea/uiDesigner.xml
0 → 100644
1 | +++ a/.idea/uiDesigner.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="Palette2"> | |
4 | + <group name="Swing"> | |
5 | + <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
6 | + <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" /> | |
7 | + </item> | |
8 | + <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
9 | + <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" /> | |
10 | + </item> | |
11 | + <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
12 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" /> | |
13 | + </item> | |
14 | + <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true"> | |
15 | + <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" /> | |
16 | + </item> | |
17 | + <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
18 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" /> | |
19 | + <initial-values> | |
20 | + <property name="text" value="Button" /> | |
21 | + </initial-values> | |
22 | + </item> | |
23 | + <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
24 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> | |
25 | + <initial-values> | |
26 | + <property name="text" value="RadioButton" /> | |
27 | + </initial-values> | |
28 | + </item> | |
29 | + <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
30 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> | |
31 | + <initial-values> | |
32 | + <property name="text" value="CheckBox" /> | |
33 | + </initial-values> | |
34 | + </item> | |
35 | + <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
36 | + <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" /> | |
37 | + <initial-values> | |
38 | + <property name="text" value="Label" /> | |
39 | + </initial-values> | |
40 | + </item> | |
41 | + <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
42 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
43 | + <preferred-size width="150" height="-1" /> | |
44 | + </default-constraints> | |
45 | + </item> | |
46 | + <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
47 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
48 | + <preferred-size width="150" height="-1" /> | |
49 | + </default-constraints> | |
50 | + </item> | |
51 | + <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
52 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
53 | + <preferred-size width="150" height="-1" /> | |
54 | + </default-constraints> | |
55 | + </item> | |
56 | + <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
57 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
58 | + <preferred-size width="150" height="50" /> | |
59 | + </default-constraints> | |
60 | + </item> | |
61 | + <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
62 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
63 | + <preferred-size width="150" height="50" /> | |
64 | + </default-constraints> | |
65 | + </item> | |
66 | + <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
67 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
68 | + <preferred-size width="150" height="50" /> | |
69 | + </default-constraints> | |
70 | + </item> | |
71 | + <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
72 | + <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" /> | |
73 | + </item> | |
74 | + <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
75 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
76 | + <preferred-size width="150" height="50" /> | |
77 | + </default-constraints> | |
78 | + </item> | |
79 | + <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
80 | + <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3"> | |
81 | + <preferred-size width="150" height="50" /> | |
82 | + </default-constraints> | |
83 | + </item> | |
84 | + <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
85 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
86 | + <preferred-size width="150" height="50" /> | |
87 | + </default-constraints> | |
88 | + </item> | |
89 | + <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
90 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> | |
91 | + <preferred-size width="200" height="200" /> | |
92 | + </default-constraints> | |
93 | + </item> | |
94 | + <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
95 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> | |
96 | + <preferred-size width="200" height="200" /> | |
97 | + </default-constraints> | |
98 | + </item> | |
99 | + <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
100 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | |
101 | + </item> | |
102 | + <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
103 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | |
104 | + </item> | |
105 | + <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
106 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" /> | |
107 | + </item> | |
108 | + <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
109 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" /> | |
110 | + </item> | |
111 | + <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
112 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1"> | |
113 | + <preferred-size width="-1" height="20" /> | |
114 | + </default-constraints> | |
115 | + </item> | |
116 | + <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
117 | + <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" /> | |
118 | + </item> | |
119 | + <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
120 | + <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" /> | |
121 | + </item> | |
122 | + </group> | |
123 | + </component> | |
124 | +</project> | |
0 | 125 | \ No newline at end of file | ... | ... |
.idea/vcs.xml
0 → 100644
.idea/workspace.xml
0 → 100644
1 | +++ a/.idea/workspace.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="AutoImportSettings"> | |
4 | + <option name="autoReloadType" value="SELECTIVE" /> | |
5 | + </component> | |
6 | + <component name="BranchesTreeState"> | |
7 | + <expand> | |
8 | + <path> | |
9 | + <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" /> | |
10 | + <item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" /> | |
11 | + </path> | |
12 | + <path> | |
13 | + <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" /> | |
14 | + <item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" /> | |
15 | + </path> | |
16 | + <path> | |
17 | + <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" /> | |
18 | + <item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" /> | |
19 | + <item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" /> | |
20 | + </path> | |
21 | + </expand> | |
22 | + <select /> | |
23 | + </component> | |
24 | + <component name="ChangeListManager"> | |
25 | + <list default="true" id="b883c22b-106a-4a16-bb9f-eb95a11bc9e4" name="Default Changelist" comment="提交" /> | |
26 | + <option name="SHOW_DIALOG" value="false" /> | |
27 | + <option name="HIGHLIGHT_CONFLICTS" value="true" /> | |
28 | + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | |
29 | + <option name="LAST_RESOLUTION" value="IGNORE" /> | |
30 | + </component> | |
31 | + <component name="ChangesViewManager"> | |
32 | + <option name="groupingKeys"> | |
33 | + <option value="directory" /> | |
34 | + </option> | |
35 | + </component> | |
36 | + <component name="FileTemplateManagerImpl"> | |
37 | + <option name="RECENT_TEMPLATES"> | |
38 | + <list> | |
39 | + <option value="Class" /> | |
40 | + </list> | |
41 | + </option> | |
42 | + </component> | |
43 | + <component name="Git.Settings"> | |
44 | + <option name="RECENT_BRANCH_BY_REPOSITORY"> | |
45 | + <map> | |
46 | + <entry key="$PROJECT_DIR$" value="zfb" /> | |
47 | + </map> | |
48 | + </option> | |
49 | + <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> | |
50 | + </component> | |
51 | + <component name="MarkdownSettingsMigration"> | |
52 | + <option name="stateVersion" value="1" /> | |
53 | + </component> | |
54 | + <component name="MavenImportPreferences"> | |
55 | + <option name="generalSettings"> | |
56 | + <MavenGeneralSettings> | |
57 | + <option name="localRepository" value="D:\mavenRepository" /> | |
58 | + <option name="userSettingsFile" value="D:\IDEA\IntelliJ IDEA 2023.2.1\plugins\maven\lib\maven3\conf\settings.xml" /> | |
59 | + </MavenGeneralSettings> | |
60 | + </option> | |
61 | + </component> | |
62 | + <component name="ProjectColorInfo">{ | |
63 | + "associatedIndex": 2 | |
64 | +}</component> | |
65 | + <component name="ProjectId" id="1n62SmY3gsBlYuYTjMqtf82AD7F" /> | |
66 | + <component name="ProjectViewState"> | |
67 | + <option name="hideEmptyMiddlePackages" value="true" /> | |
68 | + <option name="showLibraryContents" value="true" /> | |
69 | + <option name="showMembers" value="true" /> | |
70 | + </component> | |
71 | + <component name="PropertiesComponent"><![CDATA[{ | |
72 | + "keyToString": { | |
73 | + "RequestMappingsPanelOrder0": "0", | |
74 | + "RequestMappingsPanelOrder1": "1", | |
75 | + "RequestMappingsPanelWidth0": "75", | |
76 | + "RequestMappingsPanelWidth1": "75", | |
77 | + "RunOnceActivity.OpenProjectViewOnStart": "true", | |
78 | + "RunOnceActivity.ShowReadmeOnStart": "true", | |
79 | + "WebServerToolWindowFactoryState": "false", | |
80 | + "last_opened_file_path": "D:/histroy/gitWork/tool/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder", | |
81 | + "node.js.detected.package.eslint": "true", | |
82 | + "node.js.detected.package.tslint": "true", | |
83 | + "node.js.selected.package.eslint": "(autodetect)", | |
84 | + "node.js.selected.package.tslint": "(autodetect)", | |
85 | + "project.structure.last.edited": "Facets", | |
86 | + "project.structure.proportion": "0.0", | |
87 | + "project.structure.side.proportion": "0.2", | |
88 | + "settings.editor.selected.configurable": "MavenSettings", | |
89 | + "spring.configuration.checksum": "d0ca1506a06be3d4e1c7415d9ab9252d", | |
90 | + "vue.rearranger.settings.migration": "true" | |
91 | + } | |
92 | +}]]></component> | |
93 | + <component name="RecentsManager"> | |
94 | + <key name="CopyFile.RECENT_KEYS"> | |
95 | + <recent name="D:\histroy\gitWork\tool\zhyx-api\src\main\java\com\ectrip\cyt\client\cyt\model\cytOrder" /> | |
96 | + <recent name="D:\histroy\gitWork\tool\zhyx-api\src\main\java\com\ectrip\cyt\client\cyt\model\cytOrder\response" /> | |
97 | + <recent name="D:\histroy\gitWork\tool\zhyx-api\src\main\java\com\ectrip\cyt\client\cyt\model\cytOrder\request" /> | |
98 | + <recent name="D:\histroy\gitWork\tool\zhyx-api\src\main\java\com\ectrip\cyt\utils" /> | |
99 | + <recent name="D:\gitWork\tool\zhyx-api" /> | |
100 | + </key> | |
101 | + <key name="CopyClassDialog.RECENTS_KEY"> | |
102 | + <recent name="com.ectrip.cyt.client.cyt.model.cytOrder.request" /> | |
103 | + <recent name="com.ectrip.cyt.utils" /> | |
104 | + <recent name="com.ectrip.cyt.model" /> | |
105 | + <recent name="com.ectrip.cyt.model.param" /> | |
106 | + <recent name="com.ectrip.cyt.client.cyt.model.cytOrder.response" /> | |
107 | + </key> | |
108 | + </component> | |
109 | + <component name="RunManager" selected="Spring Boot.CytApplication"> | |
110 | + <configuration default="true" type="ArquillianTestNG" factoryName="" nameIsGenerated="true"> | |
111 | + <option name="arquillianRunConfiguration"> | |
112 | + <value> | |
113 | + <option name="containerStateName" value="" /> | |
114 | + </value> | |
115 | + </option> | |
116 | + <option name="TEST_OBJECT" value="CLASS" /> | |
117 | + <properties /> | |
118 | + <listeners /> | |
119 | + <method v="2"> | |
120 | + <option name="Make" enabled="true" /> | |
121 | + </method> | |
122 | + </configuration> | |
123 | + <configuration name="AesTools" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> | |
124 | + <option name="MAIN_CLASS_NAME" value="com.ectrip.cyt.utils.AesTools" /> | |
125 | + <module name="zhyx-api" /> | |
126 | + <extension name="coverage"> | |
127 | + <pattern> | |
128 | + <option name="PATTERN" value="com.ectrip.cyt.utils.*" /> | |
129 | + <option name="ENABLED" value="true" /> | |
130 | + </pattern> | |
131 | + </extension> | |
132 | + <method v="2"> | |
133 | + <option name="Make" enabled="true" /> | |
134 | + </method> | |
135 | + </configuration> | |
136 | + <configuration name="SM4Tools" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> | |
137 | + <option name="MAIN_CLASS_NAME" value="com.ectrip.cyt.utils.SM4Tools" /> | |
138 | + <module name="zhyx-api" /> | |
139 | + <extension name="coverage"> | |
140 | + <pattern> | |
141 | + <option name="PATTERN" value="com.ectrip.cyt.utils.*" /> | |
142 | + <option name="ENABLED" value="true" /> | |
143 | + </pattern> | |
144 | + </extension> | |
145 | + <method v="2"> | |
146 | + <option name="Make" enabled="true" /> | |
147 | + </method> | |
148 | + </configuration> | |
149 | + <configuration name="SecurityTools" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true"> | |
150 | + <option name="MAIN_CLASS_NAME" value="com.ectrip.cyt.utils.SecurityTools" /> | |
151 | + <module name="zhyx-api" /> | |
152 | + <extension name="coverage"> | |
153 | + <pattern> | |
154 | + <option name="PATTERN" value="com.ectrip.cyt.utils.*" /> | |
155 | + <option name="ENABLED" value="true" /> | |
156 | + </pattern> | |
157 | + </extension> | |
158 | + <method v="2"> | |
159 | + <option name="Make" enabled="true" /> | |
160 | + </method> | |
161 | + </configuration> | |
162 | + <configuration name="CytApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true"> | |
163 | + <module name="zhyx-api" /> | |
164 | + <option name="SPRING_BOOT_MAIN_CLASS" value="com.ectrip.cyt.CytApplication" /> | |
165 | + <method v="2"> | |
166 | + <option name="Make" enabled="true" /> | |
167 | + </method> | |
168 | + </configuration> | |
169 | + <list> | |
170 | + <item itemvalue="Application.AesTools" /> | |
171 | + <item itemvalue="Application.SM4Tools" /> | |
172 | + <item itemvalue="Application.SecurityTools" /> | |
173 | + <item itemvalue="Spring Boot.CytApplication" /> | |
174 | + </list> | |
175 | + <recent_temporary> | |
176 | + <list> | |
177 | + <item itemvalue="Application.SM4Tools" /> | |
178 | + <item itemvalue="Application.SecurityTools" /> | |
179 | + <item itemvalue="Application.AesTools" /> | |
180 | + <item itemvalue="Spring Boot.CytApplication" /> | |
181 | + </list> | |
182 | + </recent_temporary> | |
183 | + </component> | |
184 | + <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" /> | |
185 | + <component name="TaskManager"> | |
186 | + <task active="true" id="Default" summary="Default task"> | |
187 | + <changelist id="b883c22b-106a-4a16-bb9f-eb95a11bc9e4" name="Default Changelist" comment="" /> | |
188 | + <created>1610696222426</created> | |
189 | + <option name="number" value="Default" /> | |
190 | + <option name="presentableId" value="Default" /> | |
191 | + <updated>1610696222426</updated> | |
192 | + <workItem from="1610696224692" duration="1029000" /> | |
193 | + <workItem from="1610697394235" duration="1430000" /> | |
194 | + <workItem from="1610773111891" duration="556000" /> | |
195 | + <workItem from="1611280579051" duration="3881000" /> | |
196 | + <workItem from="1611383412509" duration="1371000" /> | |
197 | + <workItem from="1611552783052" duration="4956000" /> | |
198 | + <workItem from="1611665821657" duration="937000" /> | |
199 | + <workItem from="1611711152189" duration="601000" /> | |
200 | + <workItem from="1611712158754" duration="1376000" /> | |
201 | + <workItem from="1611996901855" duration="607000" /> | |
202 | + <workItem from="1613957220600" duration="1199000" /> | |
203 | + <workItem from="1616394870470" duration="7604000" /> | |
204 | + <workItem from="1617092258023" duration="399000" /> | |
205 | + <workItem from="1617096626489" duration="871000" /> | |
206 | + <workItem from="1617151935384" duration="653000" /> | |
207 | + <workItem from="1617675772885" duration="117000" /> | |
208 | + <workItem from="1618384603564" duration="2801000" /> | |
209 | + <workItem from="1618398826402" duration="5836000" /> | |
210 | + <workItem from="1618492518491" duration="664000" /> | |
211 | + <workItem from="1618741405267" duration="36000" /> | |
212 | + <workItem from="1618741477253" duration="656000" /> | |
213 | + <workItem from="1618819447100" duration="871000" /> | |
214 | + <workItem from="1618826286070" duration="602000" /> | |
215 | + <workItem from="1619084083310" duration="1277000" /> | |
216 | + <workItem from="1619313497438" duration="4068000" /> | |
217 | + <workItem from="1619398875595" duration="2690000" /> | |
218 | + <workItem from="1619510997385" duration="1264000" /> | |
219 | + <workItem from="1619597641006" duration="2465000" /> | |
220 | + <workItem from="1619676209481" duration="1843000" /> | |
221 | + <workItem from="1619770543133" duration="2210000" /> | |
222 | + <workItem from="1619830774526" duration="482000" /> | |
223 | + <workItem from="1619923901137" duration="5867000" /> | |
224 | + <workItem from="1620630003288" duration="95000" /> | |
225 | + <workItem from="1620630244330" duration="597000" /> | |
226 | + <workItem from="1620635026401" duration="787000" /> | |
227 | + <workItem from="1620636498341" duration="600000" /> | |
228 | + <workItem from="1620695559429" duration="1891000" /> | |
229 | + <workItem from="1620781032026" duration="595000" /> | |
230 | + <workItem from="1620868638113" duration="1908000" /> | |
231 | + <workItem from="1620889243602" duration="905000" /> | |
232 | + <workItem from="1620970454243" duration="3206000" /> | |
233 | + <workItem from="1620982224137" duration="517000" /> | |
234 | + <workItem from="1621213658015" duration="594000" /> | |
235 | + <workItem from="1621216659658" duration="7666000" /> | |
236 | + <workItem from="1621385617124" duration="3968000" /> | |
237 | + <workItem from="1621413147755" duration="3326000" /> | |
238 | + <workItem from="1621493287174" duration="5395000" /> | |
239 | + <workItem from="1622086506456" duration="1242000" /> | |
240 | + <workItem from="1622110603780" duration="331000" /> | |
241 | + <workItem from="1622169455648" duration="4877000" /> | |
242 | + <workItem from="1622426260542" duration="597000" /> | |
243 | + <workItem from="1622452921764" duration="201000" /> | |
244 | + <workItem from="1622511322015" duration="597000" /> | |
245 | + <workItem from="1623745201646" duration="236000" /> | |
246 | + <workItem from="1624330307790" duration="1705000" /> | |
247 | + <workItem from="1626246550746" duration="10155000" /> | |
248 | + <workItem from="1626329931005" duration="825000" /> | |
249 | + <workItem from="1627980180095" duration="768000" /> | |
250 | + <workItem from="1627983644325" duration="13000" /> | |
251 | + <workItem from="1637738954629" duration="3037000" /> | |
252 | + <workItem from="1637826914326" duration="3072000" /> | |
253 | + <workItem from="1637919474031" duration="603000" /> | |
254 | + <workItem from="1638120518829" duration="8470000" /> | |
255 | + <workItem from="1638498953866" duration="957000" /> | |
256 | + <workItem from="1638858583203" duration="3571000" /> | |
257 | + <workItem from="1641975406979" duration="4071000" /> | |
258 | + <workItem from="1642036382502" duration="768000" /> | |
259 | + <workItem from="1644313195716" duration="1097000" /> | |
260 | + <workItem from="1650444107721" duration="2462000" /> | |
261 | + <workItem from="1650607655702" duration="2301000" /> | |
262 | + <workItem from="1650611846603" duration="3945000" /> | |
263 | + <workItem from="1650789139147" duration="4081000" /> | |
264 | + <workItem from="1650848930307" duration="4845000" /> | |
265 | + <workItem from="1650939348887" duration="2249000" /> | |
266 | + <workItem from="1651046827406" duration="5342000" /> | |
267 | + <workItem from="1651915566427" duration="1079000" /> | |
268 | + <workItem from="1652064344129" duration="1092000" /> | |
269 | + <workItem from="1652163875121" duration="6000" /> | |
270 | + <workItem from="1653337857159" duration="755000" /> | |
271 | + <workItem from="1653352806018" duration="796000" /> | |
272 | + <workItem from="1657500920269" duration="6287000" /> | |
273 | + <workItem from="1657587624093" duration="19100000" /> | |
274 | + <workItem from="1658303161354" duration="2137000" /> | |
275 | + <workItem from="1658915476295" duration="1757000" /> | |
276 | + <workItem from="1659511475365" duration="4461000" /> | |
277 | + <workItem from="1659582643339" duration="4602000" /> | |
278 | + <workItem from="1659941749433" duration="15053000" /> | |
279 | + <workItem from="1660035335038" duration="2777000" /> | |
280 | + <workItem from="1660666991679" duration="905000" /> | |
281 | + <workItem from="1660729299803" duration="5383000" /> | |
282 | + <workItem from="1661249846363" duration="366000" /> | |
283 | + <workItem from="1661387393682" duration="732000" /> | |
284 | + <workItem from="1661735799005" duration="597000" /> | |
285 | + <workItem from="1666564538014" duration="2209000" /> | |
286 | + <workItem from="1666573753200" duration="2341000" /> | |
287 | + <workItem from="1668395826714" duration="1226000" /> | |
288 | + <workItem from="1668404977246" duration="1651000" /> | |
289 | + <workItem from="1670826067076" duration="1500000" /> | |
290 | + <workItem from="1675734885102" duration="4171000" /> | |
291 | + <workItem from="1677571939276" duration="2200000" /> | |
292 | + <workItem from="1678240444041" duration="25000" /> | |
293 | + <workItem from="1678421151845" duration="3694000" /> | |
294 | + <workItem from="1678444350879" duration="1215000" /> | |
295 | + <workItem from="1678671238454" duration="3245000" /> | |
296 | + <workItem from="1678689383892" duration="175000" /> | |
297 | + <workItem from="1679282591363" duration="2479000" /> | |
298 | + <workItem from="1679620997488" duration="32000" /> | |
299 | + <workItem from="1681262384461" duration="7176000" /> | |
300 | + <workItem from="1681719723787" duration="296000" /> | |
301 | + <workItem from="1682210929715" duration="2807000" /> | |
302 | + <workItem from="1682232220968" duration="7809000" /> | |
303 | + <workItem from="1682647238314" duration="2327000" /> | |
304 | + <workItem from="1682740636011" duration="51000" /> | |
305 | + <workItem from="1682856404628" duration="1284000" /> | |
306 | + <workItem from="1684395373024" duration="7658000" /> | |
307 | + <workItem from="1684456915089" duration="113000" /> | |
308 | + <workItem from="1684457042484" duration="106000" /> | |
309 | + <workItem from="1684717368830" duration="997000" /> | |
310 | + <workItem from="1685351780537" duration="2632000" /> | |
311 | + <workItem from="1686797621504" duration="1348000" /> | |
312 | + <workItem from="1686799810064" duration="1196000" /> | |
313 | + <workItem from="1686810643195" duration="622000" /> | |
314 | + <workItem from="1686906987257" duration="646000" /> | |
315 | + <workItem from="1687136068626" duration="1737000" /> | |
316 | + <workItem from="1689576225139" duration="4092000" /> | |
317 | + <workItem from="1689640941707" duration="5880000" /> | |
318 | + <workItem from="1689679622849" duration="806000" /> | |
319 | + <workItem from="1690092660314" duration="1000" /> | |
320 | + <workItem from="1690994847042" duration="2592000" /> | |
321 | + <workItem from="1692690839945" duration="1487000" /> | |
322 | + <workItem from="1692751914295" duration="6340000" /> | |
323 | + <workItem from="1692865760889" duration="569000" /> | |
324 | + <workItem from="1693189870169" duration="2043000" /> | |
325 | + <workItem from="1693202366819" duration="4610000" /> | |
326 | + <workItem from="1694501511154" duration="31000" /> | |
327 | + <workItem from="1694501549601" duration="4709000" /> | |
328 | + <workItem from="1694567933669" duration="4511000" /> | |
329 | + <workItem from="1694619551556" duration="7000" /> | |
330 | + <workItem from="1694620187457" duration="835000" /> | |
331 | + <workItem from="1695016353509" duration="2683000" /> | |
332 | + <workItem from="1695021376266" duration="1145000" /> | |
333 | + <workItem from="1696843275899" duration="1042000" /> | |
334 | + <workItem from="1696859075323" duration="523000" /> | |
335 | + <workItem from="1696902166977" duration="687000" /> | |
336 | + <workItem from="1696902862753" duration="1578000" /> | |
337 | + <workItem from="1696908495093" duration="3139000" /> | |
338 | + <workItem from="1697505839612" duration="4000" /> | |
339 | + <workItem from="1697608170743" duration="7253000" /> | |
340 | + <workItem from="1698223705077" duration="7000000" /> | |
341 | + <workItem from="1698368395857" duration="2775000" /> | |
342 | + <workItem from="1698893523509" duration="1759000" /> | |
343 | + <workItem from="1698972665284" duration="1118000" /> | |
344 | + <workItem from="1699492395443" duration="3322000" /> | |
345 | + <workItem from="1700027111881" duration="4574000" /> | |
346 | + <workItem from="1700181732445" duration="5959000" /> | |
347 | + <workItem from="1700644753773" duration="785000" /> | |
348 | + <workItem from="1701160156501" duration="3038000" /> | |
349 | + <workItem from="1701689894696" duration="5642000" /> | |
350 | + <workItem from="1705997544613" duration="2681000" /> | |
351 | + <workItem from="1707271221945" duration="602000" /> | |
352 | + <workItem from="1709081544946" duration="17079000" /> | |
353 | + <workItem from="1709260283769" duration="11355000" /> | |
354 | + <workItem from="1709515440372" duration="3019000" /> | |
355 | + <workItem from="1709519926299" duration="169000" /> | |
356 | + </task> | |
357 | + <task id="LOCAL-00001" summary="优化"> | |
358 | + <created>1610696337509</created> | |
359 | + <option name="number" value="00001" /> | |
360 | + <option name="presentableId" value="LOCAL-00001" /> | |
361 | + <option name="project" value="LOCAL" /> | |
362 | + <updated>1610696337509</updated> | |
363 | + </task> | |
364 | + <task id="LOCAL-00002" summary="优化"> | |
365 | + <created>1610696587982</created> | |
366 | + <option name="number" value="00002" /> | |
367 | + <option name="presentableId" value="LOCAL-00002" /> | |
368 | + <option name="project" value="LOCAL" /> | |
369 | + <updated>1610696587982</updated> | |
370 | + </task> | |
371 | + <task id="LOCAL-00003" summary="优化"> | |
372 | + <created>1610696652896</created> | |
373 | + <option name="number" value="00003" /> | |
374 | + <option name="presentableId" value="LOCAL-00003" /> | |
375 | + <option name="project" value="LOCAL" /> | |
376 | + <updated>1610696652896</updated> | |
377 | + </task> | |
378 | + <task id="LOCAL-00004" summary="优化"> | |
379 | + <created>1610696684032</created> | |
380 | + <option name="number" value="00004" /> | |
381 | + <option name="presentableId" value="LOCAL-00004" /> | |
382 | + <option name="project" value="LOCAL" /> | |
383 | + <updated>1610696684032</updated> | |
384 | + </task> | |
385 | + <task id="LOCAL-00005" summary="优化"> | |
386 | + <created>1610697080892</created> | |
387 | + <option name="number" value="00005" /> | |
388 | + <option name="presentableId" value="LOCAL-00005" /> | |
389 | + <option name="project" value="LOCAL" /> | |
390 | + <updated>1610697080892</updated> | |
391 | + </task> | |
392 | + <task id="LOCAL-00006" summary="优化"> | |
393 | + <created>1638499893941</created> | |
394 | + <option name="number" value="00006" /> | |
395 | + <option name="presentableId" value="LOCAL-00006" /> | |
396 | + <option name="project" value="LOCAL" /> | |
397 | + <updated>1638499893941</updated> | |
398 | + </task> | |
399 | + <task id="LOCAL-00007" summary="座位"> | |
400 | + <created>1660008678245</created> | |
401 | + <option name="number" value="00007" /> | |
402 | + <option name="presentableId" value="LOCAL-00007" /> | |
403 | + <option name="project" value="LOCAL" /> | |
404 | + <updated>1660008678245</updated> | |
405 | + </task> | |
406 | + <task id="LOCAL-00008" summary="座位"> | |
407 | + <created>1660034836851</created> | |
408 | + <option name="number" value="00008" /> | |
409 | + <option name="presentableId" value="LOCAL-00008" /> | |
410 | + <option name="project" value="LOCAL" /> | |
411 | + <updated>1660034836851</updated> | |
412 | + </task> | |
413 | + <task id="LOCAL-00009" summary="提交"> | |
414 | + <created>1681719768299</created> | |
415 | + <option name="number" value="00009" /> | |
416 | + <option name="presentableId" value="LOCAL-00009" /> | |
417 | + <option name="project" value="LOCAL" /> | |
418 | + <updated>1681719768299</updated> | |
419 | + </task> | |
420 | + <option name="localTasksCounter" value="10" /> | |
421 | + <servers /> | |
422 | + </component> | |
423 | + <component name="TypeScriptGeneratedFilesManager"> | |
424 | + <option name="version" value="3" /> | |
425 | + </component> | |
426 | + <component name="Vcs.Log.Tabs.Properties"> | |
427 | + <option name="OPEN_GENERIC_TABS"> | |
428 | + <map> | |
429 | + <entry key="0de0c0e6-52a8-4c5d-b05d-8f59e40a9a76" value="TOOL_WINDOW" /> | |
430 | + </map> | |
431 | + </option> | |
432 | + <option name="TAB_STATES"> | |
433 | + <map> | |
434 | + <entry key="0de0c0e6-52a8-4c5d-b05d-8f59e40a9a76"> | |
435 | + <value> | |
436 | + <State> | |
437 | + <option name="FILTERS"> | |
438 | + <map> | |
439 | + <entry key="branch"> | |
440 | + <value> | |
441 | + <list> | |
442 | + <option value="HEAD" /> | |
443 | + </list> | |
444 | + </value> | |
445 | + </entry> | |
446 | + <entry key="roots"> | |
447 | + <value> | |
448 | + <list> | |
449 | + <option value="$PROJECT_DIR$" /> | |
450 | + </list> | |
451 | + </value> | |
452 | + </entry> | |
453 | + </map> | |
454 | + </option> | |
455 | + <option name="SHOW_ONLY_AFFECTED_CHANGES" value="true" /> | |
456 | + </State> | |
457 | + </value> | |
458 | + </entry> | |
459 | + <entry key="MAIN"> | |
460 | + <value> | |
461 | + <State /> | |
462 | + </value> | |
463 | + </entry> | |
464 | + </map> | |
465 | + </option> | |
466 | + </component> | |
467 | + <component name="VcsManagerConfiguration"> | |
468 | + <MESSAGE value="优化" /> | |
469 | + <MESSAGE value="座位" /> | |
470 | + <MESSAGE value="提交" /> | |
471 | + <option name="LAST_COMMIT_MESSAGE" value="提交" /> | |
472 | + </component> | |
473 | +</project> | |
0 | 474 | \ No newline at end of file | ... | ... |
pom.xml
0 → 100644
1 | +++ a/pom.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | |
3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
5 | + <modelVersion>4.0.0</modelVersion> | |
6 | + | |
7 | + <groupId>com.ectrip</groupId> | |
8 | + <artifactId>bin-api</artifactId> | |
9 | + <version>1.0-SNAPSHOT</version> | |
10 | + | |
11 | + | |
12 | +</project> | |
0 | 13 | \ No newline at end of file | ... | ... |
zhyx-api/pom.xml
0 → 100644
1 | +++ a/zhyx-api/pom.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | |
3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
5 | + <modelVersion>4.0.0</modelVersion> | |
6 | + <parent> | |
7 | + <groupId>org.springframework.boot</groupId> | |
8 | + <artifactId>spring-boot-starter-parent</artifactId> | |
9 | + <version>2.2.4.RELEASE</version> | |
10 | + <relativePath/> <!-- lookup parent from repository --> | |
11 | + </parent> | |
12 | + <groupId>com.ectrip</groupId> | |
13 | + <artifactId>zhyx-api</artifactId> | |
14 | + <version>1.0.0</version> | |
15 | + <name>zhyx-api</name> | |
16 | + <description>整合营销-接口测试平台</description> | |
17 | + <packaging>jar</packaging> | |
18 | + | |
19 | + <properties> | |
20 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
21 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
22 | + <java.version>1.8</java.version> | |
23 | + </properties> | |
24 | + | |
25 | + <dependencies> | |
26 | + <dependency> | |
27 | + <groupId>org.springframework.boot</groupId> | |
28 | + <artifactId>spring-boot-starter-web</artifactId> | |
29 | + </dependency> | |
30 | + | |
31 | + <dependency> | |
32 | + <groupId>org.springframework.boot</groupId> | |
33 | + <artifactId>spring-boot-starter-test</artifactId> | |
34 | + <scope>test</scope> | |
35 | + </dependency> | |
36 | + | |
37 | + <dependency> | |
38 | + <groupId>org.mybatis.spring.boot</groupId> | |
39 | + <artifactId>mybatis-spring-boot-starter</artifactId> | |
40 | + <version>1.3.2</version> | |
41 | + </dependency> | |
42 | + | |
43 | + <dependency> | |
44 | + <groupId>ch.qos.logback</groupId> | |
45 | + <artifactId>logback-classic</artifactId> | |
46 | + <version>1.2.3</version> | |
47 | + </dependency> | |
48 | + | |
49 | + <dependency> | |
50 | + <groupId>ch.qos.logback</groupId> | |
51 | + <artifactId>logback-core</artifactId> | |
52 | + <version>1.2.3</version> | |
53 | + </dependency> | |
54 | + | |
55 | + <dependency> | |
56 | + <groupId>log4j</groupId> | |
57 | + <artifactId>log4j</artifactId> | |
58 | + <version>1.2.17</version> | |
59 | + </dependency> | |
60 | + | |
61 | + <dependency> | |
62 | + <groupId>com.alibaba</groupId> | |
63 | + <artifactId>fastjson</artifactId> | |
64 | + <version>1.2.31</version> | |
65 | + </dependency> | |
66 | + | |
67 | + <!-- 数据源 --> | |
68 | + <dependency> | |
69 | + <groupId>com.alibaba</groupId> | |
70 | + <artifactId>druid</artifactId> | |
71 | + <version>1.0.15</version> | |
72 | + </dependency> | |
73 | + | |
74 | + <dependency> | |
75 | + <groupId>mysql</groupId> | |
76 | + <artifactId>mysql-connector-java</artifactId> | |
77 | + <version>5.1.47</version> | |
78 | + </dependency> | |
79 | + | |
80 | + <!-- 分页插件 --> | |
81 | + <dependency> | |
82 | + <groupId>com.github.pagehelper</groupId> | |
83 | + <artifactId>pagehelper</artifactId> | |
84 | + <version>5.1.2</version> | |
85 | + </dependency> | |
86 | + | |
87 | + <dependency> | |
88 | + <groupId>com.github.pagehelper</groupId> | |
89 | + <artifactId>pagehelper-spring-boot-autoconfigure</artifactId> | |
90 | + <version>1.2.3</version> | |
91 | + </dependency> | |
92 | + | |
93 | + <dependency> | |
94 | + <groupId>com.github.pagehelper</groupId> | |
95 | + <artifactId>pagehelper-spring-boot-starter</artifactId> | |
96 | + <version>1.2.3</version> | |
97 | + </dependency> | |
98 | + | |
99 | + <dependency> | |
100 | + <groupId>org.apache.commons</groupId> | |
101 | + <artifactId>commons-lang3</artifactId> | |
102 | + <version>3.4</version> | |
103 | + </dependency> | |
104 | + | |
105 | + <!--<dependency> | |
106 | + <groupId>org.apache.httpcomponents</groupId> | |
107 | + <artifactId>httpclient</artifactId> | |
108 | + <version>4.5.5</version> | |
109 | + </dependency> | |
110 | + <dependency> | |
111 | + <groupId>org.apache.httpcomponents</groupId> | |
112 | + <artifactId>httpcore</artifactId> | |
113 | + <version>4.4.12</version> | |
114 | + </dependency>--> | |
115 | + <dependency> | |
116 | + <groupId>org.apache.httpcomponents</groupId> | |
117 | + <artifactId>httpclient</artifactId> | |
118 | + <version>4.5</version> | |
119 | + </dependency> | |
120 | + | |
121 | + <dependency> | |
122 | + <groupId>commons-httpclient</groupId> | |
123 | + <artifactId>commons-httpclient</artifactId> | |
124 | + <version>3.1</version> | |
125 | + </dependency> | |
126 | + | |
127 | + <dependency> | |
128 | + <groupId>org.apache.httpcomponents</groupId> | |
129 | + <artifactId>httpmime</artifactId> | |
130 | + <version>4.5</version> | |
131 | + </dependency> | |
132 | + | |
133 | + <!--AOP--> | |
134 | + <dependency> | |
135 | + <groupId>org.aspectj</groupId> | |
136 | + <artifactId>aspectjrt</artifactId> | |
137 | + <version>1.8.13</version> | |
138 | + </dependency> | |
139 | + | |
140 | + <dependency> | |
141 | + <groupId>org.aspectj</groupId> | |
142 | + <artifactId>aspectjweaver</artifactId> | |
143 | + <version>1.8.6</version> | |
144 | + </dependency> | |
145 | + | |
146 | + | |
147 | + | |
148 | + <!-- swagger2 --> | |
149 | + <dependency> | |
150 | + <groupId>io.springfox</groupId> | |
151 | + <artifactId>springfox-swagger2</artifactId> | |
152 | + <version>2.6.0</version> | |
153 | + </dependency> | |
154 | + <dependency> | |
155 | + <groupId>io.springfox</groupId> | |
156 | + <artifactId>springfox-swagger-ui</artifactId> | |
157 | + <version>2.6.0</version> | |
158 | + </dependency> | |
159 | + | |
160 | + <dependency> | |
161 | + <groupId>com.github.xiaoymin</groupId> | |
162 | + <artifactId>swagger-bootstrap-ui</artifactId> | |
163 | + <version>1.9.5</version> | |
164 | + </dependency> | |
165 | + | |
166 | + <dependency> | |
167 | + <groupId>org.apache.poi</groupId> | |
168 | + <artifactId>poi-ooxml</artifactId> | |
169 | + <version>3.9</version> | |
170 | + </dependency> | |
171 | + | |
172 | + <dependency> | |
173 | + <groupId>org.springframework.boot</groupId> | |
174 | + <artifactId>spring-boot-starter-thymeleaf</artifactId> | |
175 | + </dependency> | |
176 | + | |
177 | + <dependency> | |
178 | + <groupId>org.projectlombok</groupId> | |
179 | + <artifactId>lombok</artifactId> | |
180 | + <optional>true</optional> | |
181 | + </dependency> | |
182 | + | |
183 | + <dependency> | |
184 | + <groupId>com.thoughtworks.xstream</groupId> | |
185 | + <artifactId>xstream</artifactId> | |
186 | + <version>1.4.10</version> | |
187 | + </dependency> | |
188 | + | |
189 | + <!--微信支付--> | |
190 | + <dependency> | |
191 | + <groupId>com.github.binarywang</groupId> | |
192 | + <artifactId>weixin-java-pay</artifactId> | |
193 | + <version>3.6.0</version> | |
194 | + </dependency> | |
195 | + </dependencies> | |
196 | + <!--多环境配置--> | |
197 | + <profiles> | |
198 | + <profile> | |
199 | + <id>dev</id> | |
200 | + <activation> | |
201 | + <activeByDefault>true</activeByDefault> | |
202 | + </activation> | |
203 | + <properties> | |
204 | + <activatedProperties>dev</activatedProperties> | |
205 | + </properties> | |
206 | + </profile> | |
207 | + <profile> | |
208 | + <id>qingdao</id> | |
209 | + <activation> | |
210 | + <activeByDefault>false</activeByDefault> | |
211 | + </activation> | |
212 | + <properties> | |
213 | + <activatedProperties>qingdao</activatedProperties> | |
214 | + </properties> | |
215 | + </profile> | |
216 | + </profiles> | |
217 | + | |
218 | + <build> | |
219 | + <resources> | |
220 | + <resource> | |
221 | + <directory>src/main/resources</directory> | |
222 | + <filtering>true</filtering> | |
223 | + </resource> | |
224 | + </resources> | |
225 | + <plugins> | |
226 | + <plugin> | |
227 | + <groupId>org.springframework.boot</groupId> | |
228 | + <artifactId>spring-boot-maven-plugin</artifactId> | |
229 | + <configuration> | |
230 | + <fork>true</fork> | |
231 | + </configuration> | |
232 | + </plugin> | |
233 | + <plugin> | |
234 | + <groupId>org.apache.maven.plugins</groupId> | |
235 | + <artifactId>maven-resources-plugin</artifactId> | |
236 | + <version>${maven-resources-plugin.version}</version> | |
237 | + <configuration> | |
238 | + <delimiters> | |
239 | + <delimiter>@</delimiter> | |
240 | + </delimiters> | |
241 | + <useDefaultDelimiters>false</useDefaultDelimiters> | |
242 | + </configuration> | |
243 | + </plugin> | |
244 | + <plugin> | |
245 | + <groupId>org.apache.maven.plugins</groupId> | |
246 | + <artifactId>maven-surefire-plugin</artifactId> | |
247 | + <version>${maven-surefire-plugin.version}</version> | |
248 | + <configuration> | |
249 | + <skipTests>true</skipTests> | |
250 | + </configuration> | |
251 | + </plugin> | |
252 | + <plugin> | |
253 | + <groupId>org.apache.maven.plugins</groupId> | |
254 | + <artifactId>maven-compiler-plugin</artifactId> | |
255 | + <version>${maven-compiler-plugin.version}</version> | |
256 | + <configuration> | |
257 | + <source>${java.version}</source> | |
258 | + <target>${java.version}</target> | |
259 | + <fork>true</fork> | |
260 | + </configuration> | |
261 | + </plugin> | |
262 | + </plugins> | |
263 | + </build> | |
264 | + | |
265 | + <!--<build> | |
266 | + <resources> | |
267 | + <resource> | |
268 | + <directory>src/main/resources/lib</directory> | |
269 | + <targetPath>BOOT-INF/lib/</targetPath> | |
270 | + <includes> | |
271 | + <include>**/*.jar</include> | |
272 | + </includes> | |
273 | + </resource> | |
274 | + <resource> | |
275 | + <directory>src/main/resources</directory> | |
276 | + <!–<excludes> | |
277 | + <exclude>application.yml</exclude> | |
278 | + <exclude>logback.xml</exclude> | |
279 | + </excludes>–> | |
280 | + </resource> | |
281 | + </resources> | |
282 | + | |
283 | + <plugins> | |
284 | + <plugin> | |
285 | + <groupId>org.springframework.boot</groupId> | |
286 | + <artifactId>spring-boot-maven-plugin</artifactId> | |
287 | + </plugin> | |
288 | + <plugin> | |
289 | + <groupId>org.mybatis.generator</groupId> | |
290 | + <artifactId>mybatis-generator-maven-plugin</artifactId> | |
291 | + <version>1.3.2</version> | |
292 | + <configuration> | |
293 | + <!–允许移动生成的文件 –> | |
294 | + <verbose>true</verbose> | |
295 | + <!– 是否覆盖 –> | |
296 | + <overwrite>true</overwrite> | |
297 | + </configuration> | |
298 | + </plugin> | |
299 | + </plugins> | |
300 | + </build>--> | |
301 | +</project> | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/CytApplication.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/CytApplication.java | |
1 | +package com.ectrip.cyt; | |
2 | + | |
3 | +import org.springframework.boot.SpringApplication; | |
4 | +import org.springframework.boot.autoconfigure.SpringBootApplication; | |
5 | +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | |
6 | +import org.springframework.context.annotation.EnableAspectJAutoProxy; | |
7 | +import org.springframework.scheduling.annotation.EnableScheduling; | |
8 | +import org.springframework.transaction.annotation.EnableTransactionManagement; | |
9 | +import org.springframework.web.bind.annotation.CrossOrigin; | |
10 | + | |
11 | +@SpringBootApplication(exclude={DataSourceAutoConfiguration.class}) | |
12 | +@EnableAspectJAutoProxy//开启AOP | |
13 | +@EnableTransactionManagement//开启事务 | |
14 | +@CrossOrigin//跨域 | |
15 | +@EnableScheduling | |
16 | +//不链接数据库 | |
17 | +public class CytApplication { | |
18 | + | |
19 | + public static void main(String[] args) { | |
20 | + SpringApplication.run(CytApplication.class, args); | |
21 | + } | |
22 | + | |
23 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/common/Parameter.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/common/Parameter.java | |
1 | +package com.ectrip.cyt.client.cyt.common; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | + | |
5 | +public class Parameter implements Serializable, Comparable<Parameter> { | |
6 | + | |
7 | + private static final long serialVersionUID = 2721340807561333705L; | |
8 | + | |
9 | + private String name; | |
10 | + private String value; | |
11 | + | |
12 | + public Parameter() { | |
13 | + super(); | |
14 | + } | |
15 | + | |
16 | + public Parameter(String name, String value) { | |
17 | + super(); | |
18 | + this.name = name; | |
19 | + this.value = value; | |
20 | + } | |
21 | + | |
22 | + public String getName() { | |
23 | + return name; | |
24 | + } | |
25 | + | |
26 | + public void setName(String name) { | |
27 | + this.name = name; | |
28 | + } | |
29 | + | |
30 | + public String getValue() { | |
31 | + return value; | |
32 | + } | |
33 | + | |
34 | + public void setValue(String value) { | |
35 | + this.value = value; | |
36 | + } | |
37 | + | |
38 | + @Override | |
39 | + public boolean equals(Object obj) { | |
40 | + //对象不为空 | |
41 | + if (obj == null) { | |
42 | + return false; | |
43 | + } | |
44 | + //hashCode相等 | |
45 | + if (this == obj) { | |
46 | + return true; | |
47 | + } | |
48 | + | |
49 | + if (obj instanceof Parameter) { | |
50 | + Parameter param = (Parameter) obj; | |
51 | + return this.getName().equals(param.getName()) | |
52 | + && this.getValue().equals(param.getValue()); | |
53 | + } | |
54 | + | |
55 | + return false; | |
56 | + } | |
57 | + | |
58 | + @Override | |
59 | + public String toString() { | |
60 | + return super.toString(); | |
61 | + } | |
62 | + | |
63 | + @Override | |
64 | + public int compareTo(Parameter arg0) { | |
65 | + return 0; | |
66 | + } | |
67 | + | |
68 | +} | |
0 | 69 | \ No newline at end of file | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/common/Transient.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/common/Transient.java | |
1 | +package com.ectrip.cyt.client.cyt.common; | |
2 | + | |
3 | +import java.lang.annotation.ElementType; | |
4 | +import java.lang.annotation.Retention; | |
5 | +import java.lang.annotation.RetentionPolicy; | |
6 | +import java.lang.annotation.Target; | |
7 | + | |
8 | +/** | |
9 | + * 实现描述:标识不需要Json序列化的属性 | |
10 | + * | |
11 | + * @version v1.0.0 | |
12 | + * @see | |
13 | + */ | |
14 | +@Target({ElementType.FIELD, ElementType.PARAMETER}) | |
15 | +@Retention(RetentionPolicy.RUNTIME) | |
16 | +public @interface Transient { | |
17 | + | |
18 | + boolean value() default true; | |
19 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/Base64Util.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/Base64Util.java | |
1 | +package com.ectrip.cyt.client.cyt.model; | |
2 | + | |
3 | +import sun.misc.BASE64Decoder; | |
4 | +import sun.misc.BASE64Encoder; | |
5 | + | |
6 | +import java.io.IOException; | |
7 | + | |
8 | +/** | |
9 | + * Base64转换工具类 | |
10 | + * | |
11 | + * @author | |
12 | + */ | |
13 | +public class Base64Util { | |
14 | + | |
15 | + /** | |
16 | + * 将 s进行 BASE64 编码 | |
17 | + * | |
18 | + * @param s | |
19 | + * @return | |
20 | + * @throws java.io.UnsupportedEncodingException | |
21 | + */ | |
22 | + public static String getBASE64(String s) { | |
23 | + if (s == null) { | |
24 | + return null; | |
25 | + } | |
26 | + return new BASE64Encoder().encode(s.getBytes()); | |
27 | + } | |
28 | + | |
29 | + /** | |
30 | + * 将 BASE64 编码的字符串 s进行解码 | |
31 | + * | |
32 | + * @param s | |
33 | + * @return | |
34 | + */ | |
35 | + public static String getFromBASE64(String s) { | |
36 | + if (s == null) { | |
37 | + return null; | |
38 | + } | |
39 | + BASE64Decoder decoder = new BASE64Decoder(); | |
40 | + try { | |
41 | + byte[] b = decoder.decodeBuffer(s); | |
42 | + return new String(b); | |
43 | + } catch (Exception e) { | |
44 | + return null; | |
45 | + } | |
46 | + } | |
47 | + | |
48 | + public static void main(String[] args) { | |
49 | + System.out.println(System.getProperty("file.encoding")); | |
50 | + System.out.println(Base64Util.getBASE64("颐和园")); | |
51 | + System.out | |
52 | + .println(Base64Util | |
53 | + .getFromBASE64("PG9yZGVyPjxvcmRlcklkPjEzMjkwMTQ8L29yZGVySWQ+PHN0YXR1cz5OT1JNQUw8L3N0YXR1cz48 cGF5bWVudFN0YXR1cz5VTlBBWTwvcGF5bWVudFN0YXR1cz48L29yZGVyPg==")); | |
54 | + } | |
55 | + | |
56 | + public static String encodeToString(byte[] byteArray) { | |
57 | + return new BASE64Encoder().encode(byteArray); | |
58 | + } | |
59 | + | |
60 | + public static byte[] decode(String planString) { | |
61 | + try { | |
62 | + return new BASE64Decoder().decodeBuffer(planString); | |
63 | + } catch (IOException e) { | |
64 | + e.printStackTrace(); | |
65 | + return null; | |
66 | + } | |
67 | + } | |
68 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/OtaBase.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/OtaBase.java | |
1 | +package com.ectrip.cyt.client.cyt.model; | |
2 | + | |
3 | +import java.util.Map; | |
4 | + | |
5 | +/** | |
6 | + * OTA基本交互数据类型实体 | |
7 | + * Created by lingkitho on 2017/4/27. | |
8 | + */ | |
9 | +public class OtaBase { | |
10 | + private String data;//base64的xml加密串 | |
11 | + private String xmlData;//解密后的xml字符串 | |
12 | + private Map<String, Object> mapData;//处理后的map对象 | |
13 | + | |
14 | + private String signed;//签名, MD5(signkey + data) | |
15 | + private String securityType = "MD5"; | |
16 | + | |
17 | + public String getData() { | |
18 | + return data; | |
19 | + } | |
20 | + | |
21 | + public void setData(String data) { | |
22 | + this.data = data; | |
23 | + } | |
24 | + | |
25 | + public String getSigned() { | |
26 | + return signed; | |
27 | + } | |
28 | + | |
29 | + public void setSigned(String signed) { | |
30 | + this.signed = signed; | |
31 | + } | |
32 | + | |
33 | + public String getSecurityType() { | |
34 | + return securityType; | |
35 | + } | |
36 | + | |
37 | + public void setSecurityType(String securityType) { | |
38 | + this.securityType = securityType; | |
39 | + } | |
40 | + | |
41 | + public String getXmlData() { | |
42 | + return xmlData; | |
43 | + } | |
44 | + | |
45 | + public void setXmlData(String xmlData) { | |
46 | + this.xmlData = xmlData; | |
47 | + } | |
48 | + | |
49 | + public Map<String, Object> getMapData() { | |
50 | + return mapData; | |
51 | + } | |
52 | + | |
53 | + public void setMapData(Map<String, Object> mapData) { | |
54 | + this.mapData = mapData; | |
55 | + } | |
56 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/ApplyOrderRefundByUserRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/ApplyOrderRefundByUserRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "ApplyOrderRefundByUserRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class ApplyOrderRefundByUserRequestBody extends RequestBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public ApplyOrderRefundByUserRequestBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"partnerorderId","partnerOrderId","orderId", "refundSeq", "orderPrice", "orderQuantity", "refundQuantity", "orderRefundPrice", "orderRefundCharge", "refundExplain", "visitPerson"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + public String getPartnerorderId() { | |
29 | + return partnerorderId; | |
30 | + } | |
31 | + | |
32 | + public void setPartnerorderId(String partnerorderId) { | |
33 | + this.partnerorderId = partnerorderId; | |
34 | + } | |
35 | + | |
36 | + public String getPartnerOrderId() { | |
37 | + return partnerOrderId; | |
38 | + } | |
39 | + | |
40 | + public void setPartnerOrderId(String partnerOrderId) { | |
41 | + this.partnerOrderId = partnerOrderId; | |
42 | + } | |
43 | + | |
44 | + @XmlElement(required = true) | |
45 | + protected String partnerorderId; | |
46 | + @XmlElement(required = true) | |
47 | + protected String partnerOrderId; | |
48 | + @XmlElement(required = true) | |
49 | + protected String orderId; | |
50 | + @XmlElement(required = true) | |
51 | + protected String refundSeq; | |
52 | + @XmlElement(required = true) | |
53 | + protected String orderPrice; | |
54 | + @XmlElement(required = true) | |
55 | + protected String orderQuantity; | |
56 | + @XmlElement(required = true) | |
57 | + protected String refundQuantity; | |
58 | + @XmlElement(required = true) | |
59 | + protected String orderRefundPrice; | |
60 | + @XmlElement(required = true) | |
61 | + protected String orderRefundCharge; | |
62 | + @XmlElement(required = true) | |
63 | + protected String refundExplain; | |
64 | + @XmlElement(required = true) | |
65 | + protected VisitPerson visitPerson; | |
66 | + | |
67 | + public OrderInfo() { | |
68 | + super(); | |
69 | + this.partnerorderId = ""; | |
70 | + this.partnerOrderId = ""; | |
71 | + this.orderId =""; | |
72 | + this.refundSeq = ""; | |
73 | + this.orderPrice = ""; | |
74 | + this.orderQuantity = ""; | |
75 | + this.refundQuantity = ""; | |
76 | + this.orderRefundPrice = ""; | |
77 | + this.orderRefundCharge = ""; | |
78 | + this.refundExplain = ""; | |
79 | + this.visitPerson = new VisitPerson(); | |
80 | + } | |
81 | + | |
82 | + @XmlAccessorType(XmlAccessType.FIELD) | |
83 | + @XmlType(name = "", propOrder = {"person"}) | |
84 | + @Data | |
85 | + public static class VisitPerson { | |
86 | + protected List<Person> person; | |
87 | + | |
88 | + public VisitPerson() { | |
89 | + super(); | |
90 | + this.person = new ArrayList<Person>(); | |
91 | + } | |
92 | + | |
93 | + @XmlAccessorType(XmlAccessType.FIELD) | |
94 | + @XmlType(name = "", propOrder = {"name", "credentials", "credentialsType", "voucherCode"}) | |
95 | + @Data | |
96 | + public static class Person { | |
97 | + | |
98 | + @XmlElement(required = true) | |
99 | + protected String name; | |
100 | + @XmlElement(required = true) | |
101 | + protected String credentials; | |
102 | + @XmlElement(required = true) | |
103 | + protected String credentialsType; | |
104 | + @XmlElement | |
105 | + protected String voucherCode; | |
106 | + | |
107 | + public Person() { | |
108 | + super(); | |
109 | + this.name = ""; | |
110 | + this.credentials = ""; | |
111 | + this.credentialsType = ""; | |
112 | + this.voucherCode=""; | |
113 | + } | |
114 | + } | |
115 | + } | |
116 | + } | |
117 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/CancelOrderRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/CancelOrderRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "CancelOrderRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class CancelOrderRequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public CancelOrderRequestBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerOrderId", "orderId"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String partnerOrderId; | |
28 | + @XmlElement(required = true) | |
29 | + protected String orderId; | |
30 | + | |
31 | + public OrderInfo() { | |
32 | + super(); | |
33 | + this.orderId=""; | |
34 | + this.partnerOrderId = ""; | |
35 | + } | |
36 | + } | |
37 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/CheckOrderRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/CheckOrderRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "CheckOrderRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class CheckOrderRequestBody extends RequestBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public CheckOrderRequestBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"orderId", "product", "contactPerson", "visitPerson", "orderQuantity", "orderPrice", "orderStatus", "token"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + @XmlElement(required = true) | |
29 | + protected String orderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected Product product; | |
32 | + @XmlElement(required = true) | |
33 | + protected ContactPerson contactPerson; | |
34 | + @XmlElement(required = true) | |
35 | + protected VisitPerson visitPerson; | |
36 | + @XmlElement(required = true) | |
37 | + protected String orderQuantity; | |
38 | + @XmlElement(required = true) | |
39 | + protected String orderPrice; | |
40 | + @XmlElement(required = true) | |
41 | + protected String orderStatus; | |
42 | + @XmlElement(required = true) | |
43 | + protected String token; | |
44 | + | |
45 | + public OrderInfo() { | |
46 | + super(); | |
47 | + this.orderId = ""; | |
48 | + this.product = new Product(); | |
49 | + this.contactPerson = new ContactPerson(); | |
50 | + this.visitPerson = new VisitPerson(); | |
51 | + this.orderQuantity = ""; | |
52 | + this.orderPrice = ""; | |
53 | + this.orderStatus = ""; | |
54 | + this.token = ""; | |
55 | + } | |
56 | + | |
57 | + @XmlAccessorType(XmlAccessType.FIELD) | |
58 | + @XmlType(name = "", propOrder = {"name", "mobile", "credentials", "credentialsType"}) | |
59 | + @Data | |
60 | + public static class ContactPerson { | |
61 | + @XmlElement(required = true) | |
62 | + protected String name; | |
63 | + @XmlElement(required = true) | |
64 | + protected String mobile; | |
65 | + @XmlElement(required = true) | |
66 | + protected String credentials; | |
67 | + @XmlElement(required = true) | |
68 | + protected String credentialsType; | |
69 | + | |
70 | + public ContactPerson() { | |
71 | + super(); | |
72 | + this.name = ""; | |
73 | + this.mobile = ""; | |
74 | + this.credentials = ""; | |
75 | + this.credentialsType = ""; | |
76 | + } | |
77 | + } | |
78 | + | |
79 | + @XmlAccessorType(XmlAccessType.FIELD) | |
80 | + @XmlType(name = "", propOrder = {"resourceId", "timeOfBookId", "productName", "visitDate", "sellPrice"}) | |
81 | + @Data | |
82 | + public static class Product { | |
83 | + @XmlElement(required = true) | |
84 | + protected String resourceId; | |
85 | + @XmlElement(required = true) | |
86 | + protected String timeOfBookId; | |
87 | + @XmlElement(required = true) | |
88 | + protected String productName; | |
89 | + @XmlElement(required = true) | |
90 | + protected String visitDate; | |
91 | + @XmlElement(required = true) | |
92 | + protected String sellPrice; | |
93 | + | |
94 | + public Product() { | |
95 | + super(); | |
96 | + this.resourceId = ""; | |
97 | + this.timeOfBookId = ""; | |
98 | + this.productName = ""; | |
99 | + this.visitDate = ""; | |
100 | + this.sellPrice = ""; | |
101 | + } | |
102 | + } | |
103 | + | |
104 | + @XmlAccessorType(XmlAccessType.FIELD) | |
105 | + @XmlType(name = "", propOrder = {"person"}) | |
106 | + @Data | |
107 | + public static class VisitPerson { | |
108 | + protected List<Person> person; | |
109 | + | |
110 | + public VisitPerson() { | |
111 | + super(); | |
112 | + this.person = new ArrayList<Person>(); | |
113 | + } | |
114 | + | |
115 | + @XmlAccessorType(XmlAccessType.FIELD) | |
116 | + @XmlType(name = "", propOrder = {"name", "credentials", "credentialsType"}) | |
117 | + @Data | |
118 | + public static class Person { | |
119 | + @XmlElement(required = true) | |
120 | + protected String name; | |
121 | + @XmlElement(required = true) | |
122 | + protected String credentials; | |
123 | + @XmlElement(required = true) | |
124 | + protected String credentialsType; | |
125 | + @XmlElement(required = false) | |
126 | + protected String mobile; | |
127 | + | |
128 | + public Person() { | |
129 | + super(); | |
130 | + this.name = ""; | |
131 | + this.credentials = ""; | |
132 | + this.credentialsType = ""; | |
133 | + this.mobile = ""; | |
134 | + } | |
135 | + } | |
136 | + } | |
137 | + } | |
138 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/CreateOrderRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/CreateOrderRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "CreateOrderRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class CreateOrderRequestBody extends RequestBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public CreateOrderRequestBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"orderId", "product", "contactPerson", "visitPerson", "orderQuantity", "orderPrice", "orderStatus", "token"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + @XmlElement(required = true) | |
29 | + protected String orderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected Product product; | |
32 | + @XmlElement(required = true) | |
33 | + protected ContactPerson contactPerson; | |
34 | + @XmlElement(required = true) | |
35 | + protected VisitPerson visitPerson; | |
36 | + @XmlElement(required = true) | |
37 | + protected String orderQuantity; | |
38 | + @XmlElement(required = true) | |
39 | + protected String orderPrice; | |
40 | + @XmlElement(required = true) | |
41 | + protected String orderStatus; | |
42 | + @XmlElement(required = true) | |
43 | + protected String token; | |
44 | + | |
45 | + public OrderInfo() { | |
46 | + super(); | |
47 | + this.orderId = ""; | |
48 | + this.product = new Product(); | |
49 | + this.contactPerson = new ContactPerson(); | |
50 | + this.visitPerson = new VisitPerson(); | |
51 | + this.orderQuantity = ""; | |
52 | + this.orderPrice = ""; | |
53 | + this.orderStatus = ""; | |
54 | + this.token = ""; | |
55 | + } | |
56 | + | |
57 | + @XmlAccessorType(XmlAccessType.FIELD) | |
58 | + @XmlType(name = "", propOrder = {"name", "mobile", "credentials", "credentialsType"}) | |
59 | + @Data | |
60 | + public static class ContactPerson { | |
61 | + @XmlElement(required = true) | |
62 | + protected String name; | |
63 | + @XmlElement(required = true) | |
64 | + protected String mobile; | |
65 | + @XmlElement(required = true) | |
66 | + protected String credentials; | |
67 | + @XmlElement(required = true) | |
68 | + protected String credentialsType; | |
69 | + | |
70 | + public ContactPerson() { | |
71 | + super(); | |
72 | + this.name = ""; | |
73 | + this.mobile = ""; | |
74 | + this.credentials = ""; | |
75 | + this.credentialsType = ""; | |
76 | + } | |
77 | + } | |
78 | + | |
79 | + @XmlAccessorType(XmlAccessType.FIELD) | |
80 | + @XmlType(name = "", propOrder = {"resourceId", "timeOfBookId", "productName", "visitDate", "sellPrice"}) | |
81 | + @Data | |
82 | + public static class Product { | |
83 | + @XmlElement(required = true) | |
84 | + protected String resourceId; | |
85 | + @XmlElement(required = true) | |
86 | + protected String timeOfBookId; | |
87 | + @XmlElement(required = true) | |
88 | + protected String productName; | |
89 | + @XmlElement(required = true) | |
90 | + protected String visitDate; | |
91 | + @XmlElement(required = true) | |
92 | + protected String sellPrice; | |
93 | + | |
94 | + public Product() { | |
95 | + super(); | |
96 | + this.resourceId = ""; | |
97 | + this.timeOfBookId = ""; | |
98 | + this.productName = ""; | |
99 | + this.visitDate = ""; | |
100 | + this.sellPrice = ""; | |
101 | + } | |
102 | + } | |
103 | + | |
104 | + @XmlAccessorType(XmlAccessType.FIELD) | |
105 | + @XmlType(name = "", propOrder = {"person"}) | |
106 | + @Data | |
107 | + public static class VisitPerson { | |
108 | + | |
109 | + protected List<Person> person; | |
110 | + | |
111 | + public VisitPerson() { | |
112 | + super(); | |
113 | + this.person = new ArrayList<Person>(); | |
114 | + } | |
115 | + | |
116 | + @XmlAccessorType(XmlAccessType.FIELD) | |
117 | + @XmlType(name = "", propOrder = {"name", "credentials", "credentialsType", "mobile", "groupId"}) | |
118 | + @Data | |
119 | + public static class Person { | |
120 | + @XmlElement(required = true) | |
121 | + protected String name; | |
122 | + @XmlElement(required = true) | |
123 | + protected String credentials; | |
124 | + @XmlElement(required = true) | |
125 | + protected String credentialsType; | |
126 | + @XmlElement(required = false) | |
127 | + protected String mobile; | |
128 | + @XmlElement(required = false) | |
129 | + protected String groupId; | |
130 | + | |
131 | + public Person() { | |
132 | + super(); | |
133 | + this.name = ""; | |
134 | + this.credentials = ""; | |
135 | + this.credentialsType = ""; | |
136 | + this.mobile = ""; | |
137 | + } | |
138 | + } | |
139 | + } | |
140 | + } | |
141 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/CreatePaymentOrderRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/CreatePaymentOrderRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "CreatePaymentOrderRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class CreatePaymentOrderRequestBody extends RequestBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public CreatePaymentOrderRequestBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"orderId", "product", "contactPerson", "visitPerson", "orderQuantity", "orderPrice", "orderStatus"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + @XmlElement(required = true) | |
29 | + protected String orderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected Product product; | |
32 | + @XmlElement(required = true) | |
33 | + protected ContactPerson contactPerson; | |
34 | + @XmlElement(required = true) | |
35 | + protected VisitPerson visitPerson; | |
36 | + @XmlElement(required = true) | |
37 | + protected String orderQuantity; | |
38 | + @XmlElement(required = true) | |
39 | + protected String orderPrice; | |
40 | + @XmlElement(required = true) | |
41 | + protected String orderStatus; | |
42 | + @XmlElement(required = true) | |
43 | + protected String token; | |
44 | + | |
45 | + | |
46 | + public OrderInfo() { | |
47 | + super(); | |
48 | + this.orderId = ""; | |
49 | + this.product = new Product(); | |
50 | + this.contactPerson = new ContactPerson(); | |
51 | + this.visitPerson = new VisitPerson(); | |
52 | + this.orderQuantity = ""; | |
53 | + this.orderPrice = ""; | |
54 | + this.orderStatus = ""; | |
55 | + this.token = ""; | |
56 | + } | |
57 | + | |
58 | + @XmlAccessorType(XmlAccessType.FIELD) | |
59 | + @XmlType(name = "", propOrder = {"name", "mobile", "credentials", "credentialsType"}) | |
60 | + @Data | |
61 | + public static class ContactPerson { | |
62 | + @XmlElement(required = true) | |
63 | + protected String name; | |
64 | + @XmlElement(required = true) | |
65 | + protected String mobile; | |
66 | + @XmlElement(required = true) | |
67 | + protected String credentials; | |
68 | + @XmlElement(required = true) | |
69 | + protected String credentialsType; | |
70 | + | |
71 | + public ContactPerson() { | |
72 | + super(); | |
73 | + this.name = ""; | |
74 | + this.mobile = ""; | |
75 | + this.credentials = ""; | |
76 | + this.credentialsType = ""; | |
77 | + } | |
78 | + } | |
79 | + | |
80 | + @XmlAccessorType(XmlAccessType.FIELD) | |
81 | + @XmlType(name = "", propOrder = {"resourceId", "timeOfBookId", "productName", "visitDate", "sellPrice"}) | |
82 | + @Data | |
83 | + public static class Product { | |
84 | + @XmlElement(required = true) | |
85 | + protected String resourceId; | |
86 | + @XmlElement(required = true) | |
87 | + protected String timeOfBookId; | |
88 | + @XmlElement(required = true) | |
89 | + protected String productName; | |
90 | + @XmlElement(required = true) | |
91 | + protected String visitDate; | |
92 | + @XmlElement(required = false) | |
93 | + protected String leaveDate; | |
94 | + @XmlElement(required = true) | |
95 | + protected String sellPrice; | |
96 | + | |
97 | + public Product() { | |
98 | + super(); | |
99 | + this.resourceId = ""; | |
100 | + this.timeOfBookId = ""; | |
101 | + this.productName = ""; | |
102 | + this.visitDate = ""; | |
103 | + this.leaveDate = ""; | |
104 | + this.sellPrice = ""; | |
105 | + } | |
106 | + } | |
107 | + | |
108 | + @XmlAccessorType(XmlAccessType.FIELD) | |
109 | + @XmlType(name = "", propOrder = {"person"}) | |
110 | + @Data | |
111 | + public static class VisitPerson { | |
112 | + protected List<Person> person; | |
113 | + | |
114 | + public VisitPerson() { | |
115 | + super(); | |
116 | + this.person = new ArrayList<Person>(); | |
117 | + } | |
118 | + | |
119 | + @XmlAccessorType(XmlAccessType.FIELD) | |
120 | + @XmlType(name = "", propOrder = {"name", "credentials", "credentialsType", "mobile", "groupId"}) | |
121 | + @Data | |
122 | + public static class Person { | |
123 | + @XmlElement(required = true) | |
124 | + protected String name; | |
125 | + @XmlElement(required = true) | |
126 | + protected String credentials; | |
127 | + @XmlElement(required = true) | |
128 | + protected String credentialsType; | |
129 | + @XmlElement(required = false) | |
130 | + protected String mobile; | |
131 | + @XmlElement(required = false) | |
132 | + protected String groupId; | |
133 | + | |
134 | + public Person() { | |
135 | + super(); | |
136 | + this.name = ""; | |
137 | + this.credentials = ""; | |
138 | + this.credentialsType = ""; | |
139 | + this.mobile = ""; | |
140 | + this.groupId = ""; | |
141 | + } | |
142 | + } | |
143 | + } | |
144 | + } | |
145 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/GetOrderByOTARequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/GetOrderByOTARequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "GetOrderByOTARequestBody", propOrder = {"partnerOrderId","orderId"}) | |
12 | +@Data | |
13 | +public class GetOrderByOTARequestBody extends RequestBody { | |
14 | + @XmlElement(required = false) | |
15 | + protected String partnerOrderId; | |
16 | + | |
17 | + @XmlElement(required = false) | |
18 | + protected String orderId; | |
19 | + | |
20 | + public GetOrderByOTARequestBody() { | |
21 | + super(); | |
22 | + this.partnerOrderId = ""; | |
23 | + this.orderId =""; | |
24 | + } | |
25 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/GetProductByOTARequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/GetProductByOTARequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "GetProductByOTARequestBody", propOrder = {"method", "currentPage", "pageSize", "resourceId"}) | |
12 | +@Data | |
13 | +public class GetProductByOTARequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String method; | |
16 | + @XmlElement(required = true) | |
17 | + protected String currentPage; | |
18 | + @XmlElement(required = true) | |
19 | + protected String pageSize; | |
20 | + @XmlElement(required = true) | |
21 | + protected String resourceId; | |
22 | + @XmlElement(required = true) | |
23 | + protected String queryStartDay; | |
24 | + @XmlElement(required = true) | |
25 | + protected String queryEndDay; | |
26 | + | |
27 | + public GetProductByOTARequestBody() { | |
28 | + super(); | |
29 | + this.method = ""; | |
30 | + this.currentPage = ""; | |
31 | + this.pageSize = ""; | |
32 | + this.resourceId = ""; | |
33 | + this.queryStartDay = ""; | |
34 | + this.queryEndDay = ""; | |
35 | + } | |
36 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/GetStockProductInfoRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/GetStockProductInfoRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | +import lombok.Data; | |
3 | + | |
4 | +import javax.xml.bind.annotation.XmlAccessType; | |
5 | +import javax.xml.bind.annotation.XmlAccessorType; | |
6 | +import javax.xml.bind.annotation.XmlElement; | |
7 | +import javax.xml.bind.annotation.XmlType; | |
8 | + | |
9 | +@XmlAccessorType(XmlAccessType.FIELD) | |
10 | +@XmlType(name = "GetStockProductInfoRequestBody", propOrder = {"startDate", "endDate", "resourceId"}) | |
11 | +@Data | |
12 | +public class GetStockProductInfoRequestBody extends RequestBody { | |
13 | + @XmlElement(required = true) | |
14 | + protected String startDate; | |
15 | + @XmlElement(required = true) | |
16 | + protected String endDate; | |
17 | + @XmlElement(required = true) | |
18 | + protected String resourceId; | |
19 | + | |
20 | + public GetStockProductInfoRequestBody() { | |
21 | + super(); | |
22 | + this.startDate = ""; | |
23 | + this.endDate = ""; | |
24 | + this.resourceId = ""; | |
25 | + } | |
26 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderConsumedRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderConsumedRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "NoticeOrderConsumedRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class NoticeOrderConsumedRequestBody extends RequestBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public NoticeOrderConsumedRequestBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"partnerorderId", "otaorderId", "orderQuantity", "useQuantity", "useTotalQuantity", "consumeInfo", "consumedSeq", "orderId", "vouchers"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + @XmlElement(required = true) | |
29 | + protected String partnerorderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected String otaorderId; | |
32 | + @XmlElement(required = true) | |
33 | + protected String orderQuantity; | |
34 | + @XmlElement(required = true) | |
35 | + protected String useQuantity; | |
36 | + @XmlElement(required = true) | |
37 | + protected String useTotalQuantity; | |
38 | + @XmlElement(required = true) | |
39 | + protected String consumeInfo; | |
40 | + @XmlElement(required = true) | |
41 | + protected String consumedSeq; | |
42 | + @XmlElement(required = true) | |
43 | + protected String consumedTime; | |
44 | + @XmlElement(required = true) | |
45 | + protected String orderId; | |
46 | + @XmlElement(required = false) | |
47 | + protected Vouchers vouchers; | |
48 | + | |
49 | + public OrderInfo() { | |
50 | + super(); | |
51 | + this.partnerorderId = ""; | |
52 | + this.otaorderId=""; | |
53 | + this.orderQuantity = ""; | |
54 | + this.useQuantity = ""; | |
55 | + this.consumeInfo = ""; | |
56 | + this.consumedSeq=""; | |
57 | + this.consumedTime=""; | |
58 | + this.orderId=""; | |
59 | + this.useTotalQuantity=""; | |
60 | + this.vouchers=new Vouchers(); | |
61 | + } | |
62 | + | |
63 | + @XmlAccessorType(XmlAccessType.FIELD) | |
64 | + @XmlType(name = "voucher", propOrder = { | |
65 | + "voucher" | |
66 | + }) | |
67 | + @Data | |
68 | + public static class Vouchers{ | |
69 | + @XmlElement(required = false) | |
70 | + protected List<Voucher> voucher; | |
71 | + | |
72 | + public Vouchers(){ | |
73 | + super(); | |
74 | + this.voucher = new ArrayList<Voucher>(); | |
75 | + } | |
76 | + | |
77 | + @XmlAccessorType(XmlAccessType.FIELD) | |
78 | + @XmlType(name = "voucher", propOrder = { | |
79 | + "voucherCard", | |
80 | + "voucherCode", | |
81 | + "voucherCodeUrl", | |
82 | + }) | |
83 | + @Data | |
84 | + public static class Voucher{ | |
85 | + @XmlElement(required = false) | |
86 | + protected String voucherCard; | |
87 | + @XmlElement(required = false) | |
88 | + protected String voucherCode; | |
89 | + @XmlElement(required = false) | |
90 | + protected String voucherCodeUrl; | |
91 | + | |
92 | + public Voucher(){ | |
93 | + super(); | |
94 | + this.voucherCard = ""; | |
95 | + this.voucherCode = ""; | |
96 | + this.voucherCodeUrl=""; | |
97 | + } | |
98 | + } | |
99 | + } | |
100 | + } | |
101 | + | |
102 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderEticketSendedRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderEticketSendedRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderEticketSendedRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class NoticeOrderEticketSendedRequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public NoticeOrderEticketSendedRequestBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerorderId", "eticketNo", "eticketSended"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String partnerorderId; | |
28 | + @XmlElement(required = true) | |
29 | + protected String eticketNo; | |
30 | + @XmlElement(required = true) | |
31 | + protected String eticketSended; | |
32 | + | |
33 | + public OrderInfo() { | |
34 | + super(); | |
35 | + this.partnerorderId = ""; | |
36 | + this.eticketNo = ""; | |
37 | + this.eticketSended = ""; | |
38 | + } | |
39 | + } | |
40 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderModifyRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderModifyRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderPrintSuccessRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class NoticeOrderModifyRequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public NoticeOrderModifyRequestBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerorderId", "otaorderId", "orderStatus","operateData","originalData"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String partnerorderId; | |
28 | + @XmlElement(required = true) | |
29 | + protected String otaorderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected String orderStatus; | |
32 | + @XmlElement(required = true) | |
33 | + protected String operateData; | |
34 | + @XmlElement(required = true) | |
35 | + protected String originalData; | |
36 | + | |
37 | + public OrderInfo() { | |
38 | + super(); | |
39 | + this.partnerorderId = ""; | |
40 | + this.otaorderId = ""; | |
41 | + this.orderStatus = ""; | |
42 | + this.operateData = ""; | |
43 | + this.originalData = ""; | |
44 | + } | |
45 | + } | |
46 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderPrintSuccessRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderPrintSuccessRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "NoticeOrderPrintSuccessRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class NoticeOrderPrintSuccessRequestBody extends RequestBody { | |
16 | + public NoticeOrderPrintSuccessRequestBody() { | |
17 | + super(); | |
18 | + this.orderInfo = new OrderInfo(); | |
19 | + } | |
20 | + | |
21 | + @XmlElement(required = true) | |
22 | + protected OrderInfo orderInfo; | |
23 | + | |
24 | + | |
25 | + @XmlAccessorType(XmlAccessType.FIELD) | |
26 | + @XmlType(name = "", propOrder = { | |
27 | + "partnerorderId", | |
28 | + "orderStatus", | |
29 | + "qrCodeStr", | |
30 | + "qrCodeUrl", | |
31 | + "verifyCode", | |
32 | + "vouchers" | |
33 | + }) | |
34 | + @Data | |
35 | + public static class OrderInfo { | |
36 | + | |
37 | + @XmlElement(required = true) | |
38 | + protected String partnerorderId; | |
39 | + @XmlElement(required = true) | |
40 | + protected String otaorderId; | |
41 | + @XmlElement(required = true) | |
42 | + protected String distributorOrderId; | |
43 | + @XmlElement(required = true) | |
44 | + protected String description; | |
45 | + @XmlElement(required = true) | |
46 | + protected String orderStatus; | |
47 | + @XmlElement(required = false) | |
48 | + protected String qrCodeStr; | |
49 | + @XmlElement(required = false) | |
50 | + protected String qrCodeUrl; | |
51 | + @XmlElement(required = false) | |
52 | + protected String onlyQrCodeUrl; | |
53 | + @XmlElement(required = false) | |
54 | + protected String verifyCode; | |
55 | + @XmlElement(required = false) | |
56 | + protected Vouchers vouchers; | |
57 | + | |
58 | + public OrderInfo() { | |
59 | + super(); | |
60 | + this.partnerorderId = ""; | |
61 | + this.otaorderId = ""; | |
62 | + this.distributorOrderId = ""; | |
63 | + this.description = ""; | |
64 | + this.orderStatus = ""; | |
65 | + this.qrCodeStr = ""; | |
66 | + this.qrCodeUrl = ""; | |
67 | + this.onlyQrCodeUrl=""; | |
68 | + this.verifyCode = ""; | |
69 | + this.vouchers = new Vouchers(); | |
70 | + } | |
71 | + | |
72 | + @XmlAccessorType(XmlAccessType.FIELD) | |
73 | + @XmlType(name = "", propOrder = { | |
74 | + "voucher" | |
75 | + }) | |
76 | + @Data | |
77 | + public static class Vouchers{ | |
78 | + @XmlElement(required = false) | |
79 | + protected List<Voucher> voucher; | |
80 | + | |
81 | + public Vouchers(){ | |
82 | + super(); | |
83 | + this.voucher = new ArrayList<Voucher>(); | |
84 | + } | |
85 | + | |
86 | + @XmlAccessorType(XmlAccessType.FIELD) | |
87 | + @XmlType(name = "", propOrder = { | |
88 | + "voucherCard", | |
89 | + "voucherCode", | |
90 | + "voucherCodeUrl" | |
91 | + }) | |
92 | + @Data | |
93 | + public static class Voucher{ | |
94 | + @XmlElement(required = false) | |
95 | + protected String voucherCard; | |
96 | + @XmlElement(required = false) | |
97 | + protected String voucherCode; | |
98 | + @XmlElement(required = false) | |
99 | + protected String voucherCodeUrl; | |
100 | + | |
101 | + public Voucher(){ | |
102 | + super(); | |
103 | + this.voucherCard = ""; | |
104 | + this.voucherCode = ""; | |
105 | + this.voucherCodeUrl = ""; | |
106 | + } | |
107 | + } | |
108 | + } | |
109 | + } | |
110 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderRefundApproveResultRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderRefundApproveResultRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "NoticeOrderRefundApproveResultRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class NoticeOrderRefundApproveResultRequestBody extends RequestBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public NoticeOrderRefundApproveResultRequestBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = { | |
26 | + "partnerorderId", | |
27 | + "otaorderId", | |
28 | + "refundSeq", | |
29 | + "orderQuantity", | |
30 | + "refundResult", | |
31 | + "refundQuantity", | |
32 | + "refundResult", | |
33 | + "description", | |
34 | + "orderRefundPrice", | |
35 | + "orderRefundCharge" | |
36 | + }) | |
37 | + @Data | |
38 | + public static class OrderInfo { | |
39 | + | |
40 | + @XmlElement(required = true) | |
41 | + protected String partnerorderId; | |
42 | + @XmlElement(required = true) | |
43 | + protected String otaorderId; | |
44 | + @XmlElement(required = true) | |
45 | + protected String refundSeq; | |
46 | + @XmlElement(required = true) | |
47 | + protected String orderQuantity; | |
48 | + @XmlElement(required = true) | |
49 | + protected String refundResult; | |
50 | + @XmlElement(required = true) | |
51 | + protected String description; | |
52 | + @XmlElement(required = true) | |
53 | + protected String refundQuantity; | |
54 | + @XmlElement(required = true) | |
55 | + protected String orderRefundPrice; | |
56 | + @XmlElement(required = true) | |
57 | + protected String orderRefundCharge; | |
58 | + @XmlElement(required = true) | |
59 | + protected Vouchers vouchers; | |
60 | + | |
61 | + public OrderInfo() { | |
62 | + super(); | |
63 | + this.partnerorderId = ""; | |
64 | + this.otaorderId=""; | |
65 | + this.refundSeq = ""; | |
66 | + this.orderQuantity = ""; | |
67 | + this.refundResult = ""; | |
68 | + this.description = ""; | |
69 | + this.refundQuantity = ""; | |
70 | + this.orderRefundPrice = ""; | |
71 | + this.orderRefundCharge = ""; | |
72 | + this.vouchers = new Vouchers(); | |
73 | + } | |
74 | + | |
75 | + @XmlAccessorType(XmlAccessType.FIELD) | |
76 | + @XmlType(name = "vouchers", propOrder = { | |
77 | + "voucher" | |
78 | + }) | |
79 | + @Data | |
80 | + public static class Vouchers{ | |
81 | + @XmlElement(required = false) | |
82 | + protected List<Voucher> voucher; | |
83 | + | |
84 | + public Vouchers(){ | |
85 | + super(); | |
86 | + this.voucher = new ArrayList<Voucher>(); | |
87 | + } | |
88 | + | |
89 | + @XmlAccessorType(XmlAccessType.FIELD) | |
90 | + @XmlType(name = "voucher", propOrder = { | |
91 | + "voucherCard", | |
92 | + "voucherCode", | |
93 | + "voucherStatus", | |
94 | + "voucherCodeUrl", | |
95 | + }) | |
96 | + @Data | |
97 | + public static class Voucher{ | |
98 | + @XmlElement(required = false) | |
99 | + protected String voucherCard; | |
100 | + @XmlElement(required = false) | |
101 | + protected String voucherCode; | |
102 | + @XmlElement(required = false) | |
103 | + protected String voucherStatus; | |
104 | + @XmlElement(required = false) | |
105 | + protected String voucherCodeUrl; | |
106 | + | |
107 | + public Voucher(){ | |
108 | + super(); | |
109 | + this.voucherCard = ""; | |
110 | + this.voucherCode = ""; | |
111 | + this.voucherStatus = ""; | |
112 | + this.voucherCodeUrl=""; | |
113 | + } | |
114 | + } | |
115 | + } | |
116 | + } | |
117 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderRefundRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderRefundRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "NoticeOrderRefundRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class NoticeOrderRefundRequestBody extends RequestBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public NoticeOrderRefundRequestBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"partnerorderId", "otaorderId", "refundSeq", "orderQuantity", "refundQuantity", "orderRefundPrice", "orderRefundCharge", "vouchers"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + @XmlElement(required = true) | |
29 | + protected String partnerorderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected String otaorderId; | |
32 | + @XmlElement(required = true) | |
33 | + protected String refundSeq; | |
34 | + @XmlElement(required = true) | |
35 | + protected String orderQuantity; | |
36 | + @XmlElement(required = true) | |
37 | + protected String refundQuantity; | |
38 | + @XmlElement(required = true) | |
39 | + protected String orderRefundPrice; | |
40 | + @XmlElement(required = true) | |
41 | + protected String orderRefundCharge; | |
42 | + @XmlElement(required = false) | |
43 | + protected Vouchers vouchers; | |
44 | + | |
45 | + public OrderInfo() { | |
46 | + super(); | |
47 | + this.partnerorderId = ""; | |
48 | + this.otaorderId=""; | |
49 | + this.refundSeq = ""; | |
50 | + this.orderQuantity = ""; | |
51 | + this.refundQuantity = ""; | |
52 | + this.orderRefundPrice = ""; | |
53 | + this.orderRefundCharge = ""; | |
54 | + this.vouchers=new Vouchers(); | |
55 | + } | |
56 | + | |
57 | + @XmlAccessorType(XmlAccessType.FIELD) | |
58 | + @XmlType(name = "vouchers", propOrder = {"voucher"}) | |
59 | + @Data | |
60 | + public static class Vouchers{ | |
61 | + @XmlElement(required = false) | |
62 | + protected List<Voucher> voucher; | |
63 | + | |
64 | + public Vouchers(){ | |
65 | + super(); | |
66 | + this.voucher = new ArrayList<Voucher>(); | |
67 | + } | |
68 | + | |
69 | + @XmlAccessorType(XmlAccessType.FIELD) | |
70 | + @XmlType(name = "voucher", propOrder = {"voucherCard", "voucherCode", "voucherStatus", "voucherCodeUrl",}) | |
71 | + @Data | |
72 | + public static class Voucher{ | |
73 | + @XmlElement(required = false) | |
74 | + protected String voucherCard; | |
75 | + @XmlElement(required = false) | |
76 | + protected String voucherCode; | |
77 | + @XmlElement(required = false) | |
78 | + protected String voucherStatus; | |
79 | + @XmlElement(required = false) | |
80 | + protected String voucherCodeUrl; | |
81 | + | |
82 | + public Voucher(){ | |
83 | + super(); | |
84 | + this.voucherCard = ""; | |
85 | + this.voucherCode = ""; | |
86 | + this.voucherStatus = ""; | |
87 | + this.voucherCodeUrl=""; | |
88 | + } | |
89 | + } | |
90 | + } | |
91 | + } | |
92 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderRefundedByOTARequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderRefundedByOTARequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderRefundedByOTARequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class NoticeOrderRefundedByOTARequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public NoticeOrderRefundedByOTARequestBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerorderId", "refundSeq", "orderQuantity", "orderPrice", "refundQuantity", "orderRefundPrice", "orderRefundCharge", "refundExplain"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String partnerorderId; //订单id | |
28 | + @XmlElement(required = true) | |
29 | + protected String refundSeq; //退订流水号 | |
30 | + @XmlElement(required = true) | |
31 | + protected String orderQuantity; //订单数量 | |
32 | + @XmlElement(required = true) | |
33 | + protected String orderPrice; //订单金额 | |
34 | + @XmlElement(required = true) | |
35 | + protected String refundQuantity; //退订数量 | |
36 | + @XmlElement(required = true) | |
37 | + protected String orderRefundPrice; //退订金额 | |
38 | + @XmlElement(required = true) | |
39 | + protected String orderRefundCharge; // 退款手续费 | |
40 | + @XmlElement(required = true) | |
41 | + protected String refundExplain; //退款说明 | |
42 | + | |
43 | + public OrderInfo() { | |
44 | + super(); | |
45 | + this.partnerorderId = ""; | |
46 | + this.refundSeq = ""; | |
47 | + this.orderQuantity = ""; | |
48 | + this.orderPrice = ""; | |
49 | + this.refundQuantity = ""; | |
50 | + this.orderRefundPrice = ""; | |
51 | + this.orderRefundCharge = ""; | |
52 | + this.refundExplain = ""; | |
53 | + } | |
54 | + } | |
55 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderReserveRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeOrderReserveRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderPrintSuccessRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class NoticeOrderReserveRequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public NoticeOrderReserveRequestBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerorderId","otaorderId","orderStatus","price","totalQuantity","totalMoney","quantity"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + private String partnerorderId; | |
28 | + @XmlElement(required = true) | |
29 | + private String otaorderId; | |
30 | + @XmlElement(required = true) | |
31 | + private String orderStatus; | |
32 | + @XmlElement(required = true) | |
33 | + private String price; | |
34 | + @XmlElement(required = true) | |
35 | + private String totalQuantity; | |
36 | + @XmlElement(required = true) | |
37 | + private String totalMoney; | |
38 | + @XmlElement(required = true) | |
39 | + private String quantity; | |
40 | + | |
41 | + public OrderInfo() { | |
42 | + super(); | |
43 | + this.partnerorderId = ""; | |
44 | + this.otaorderId = ""; | |
45 | + this.orderStatus = ""; | |
46 | + this.price = ""; | |
47 | + this.totalQuantity = ""; | |
48 | + this.totalMoney = ""; | |
49 | + this.quantity = ""; | |
50 | + } | |
51 | + } | |
52 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeProductChangeRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/NoticeProductChangeRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeProductChangeRequestBody", propOrder = {"resourceId","changeType"}) | |
12 | +@Data | |
13 | +public class NoticeProductChangeRequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String resourceId; | |
16 | + | |
17 | + @XmlElement(required = true) | |
18 | + protected String changeType; | |
19 | + | |
20 | + public NoticeProductChangeRequestBody(){ | |
21 | + this.resourceId = ""; | |
22 | + this.changeType = ""; | |
23 | + } | |
24 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/PayOrderRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/PayOrderRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "PayOrderRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class PayOrderRequestBody extends RequestBody { | |
14 | + | |
15 | + @XmlElement(required = true) | |
16 | + protected OrderInfo orderInfo; | |
17 | + | |
18 | + public PayOrderRequestBody() { | |
19 | + super(); | |
20 | + this.orderInfo = new OrderInfo(); | |
21 | + } | |
22 | + | |
23 | + @XmlAccessorType(XmlAccessType.FIELD) | |
24 | + @XmlType(name = "", propOrder = {"partnerOrderId","otaOrderId","orderId","orderStatus","orderPrice"}) | |
25 | + @Data | |
26 | + public static class OrderInfo { | |
27 | + @XmlElement(required = true) | |
28 | + protected String partnerOrderId; | |
29 | + @XmlElement(required = true) | |
30 | + protected String otaOrderId; | |
31 | + @XmlElement(required = true) | |
32 | + protected String orderId; | |
33 | + @XmlElement(required = true) | |
34 | + protected String orderStatus; | |
35 | + @XmlElement(required = true) | |
36 | + protected String orderPrice; | |
37 | + | |
38 | + public OrderInfo() { | |
39 | + super(); | |
40 | + this.otaOrderId=""; | |
41 | + this.orderId=""; | |
42 | + this.partnerOrderId = ""; | |
43 | + this.orderStatus = ""; | |
44 | + this.orderPrice = ""; | |
45 | + } | |
46 | + } | |
47 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/PostFaceInfoRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/PostFaceInfoRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "PostFaceInfoRequestBody", propOrder = {"orderId","serialNumber","faceInfos"}) | |
14 | +@Data | |
15 | +public class PostFaceInfoRequestBody extends RequestBody { | |
16 | + /** 订单id */ | |
17 | + @XmlElement(required = true) | |
18 | + protected String orderId; | |
19 | + | |
20 | + /** 流水号 */ | |
21 | + @XmlElement(required = true) | |
22 | + protected String serialNumber; | |
23 | + | |
24 | + /** 人脸信息 */ | |
25 | + @XmlElement(required = true) | |
26 | + protected FaceInfos faceInfos; | |
27 | + | |
28 | + public PostFaceInfoRequestBody(){ | |
29 | + super(); | |
30 | + this.orderId = ""; | |
31 | + this.serialNumber = ""; | |
32 | + this.faceInfos = new FaceInfos(); | |
33 | + } | |
34 | + | |
35 | + @XmlAccessorType(XmlAccessType.FIELD) | |
36 | + @XmlType(name = "", propOrder = {"faceInfo"}) | |
37 | + @Data | |
38 | + public static class FaceInfos{ | |
39 | + protected List<FaceInfo> faceInfo; | |
40 | + | |
41 | + public FaceInfos(){ | |
42 | + super(); | |
43 | + this.faceInfo = new ArrayList<FaceInfo>(); | |
44 | + } | |
45 | + | |
46 | + @XmlAccessorType(XmlAccessType.FIELD) | |
47 | + @XmlType(name = "", propOrder = {"credentials", "url"}) | |
48 | + @Data | |
49 | + public static class FaceInfo { | |
50 | + /** 游客身份证credentials */ | |
51 | + @XmlElement(required = true) | |
52 | + protected String credentials; | |
53 | + | |
54 | + /** 人脸图片地址url */ | |
55 | + @XmlElement(required = true) | |
56 | + protected String url; | |
57 | + | |
58 | + public FaceInfo() { | |
59 | + super(); | |
60 | + this.credentials = ""; | |
61 | + this.url = ""; | |
62 | + } | |
63 | + } | |
64 | + } | |
65 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/PushOrderRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/PushOrderRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "PushOrderRequestBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class PushOrderRequestBody extends RequestBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public PushOrderRequestBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"partnerOrderId", "contactPerson", "visitPerson","visitDate"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + @XmlElement(required = true) | |
29 | + protected String partnerOrderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected ContactPerson contactPerson; | |
32 | + @XmlElement(required = true) | |
33 | + protected VisitPerson visitPerson; | |
34 | + @XmlElement(required = true) | |
35 | + protected String visitDate; | |
36 | + | |
37 | + public OrderInfo() { | |
38 | + super(); | |
39 | + this.partnerOrderId = ""; | |
40 | + this.contactPerson = new ContactPerson(); | |
41 | + this.visitPerson = new VisitPerson(); | |
42 | + this.visitDate = ""; | |
43 | + } | |
44 | + | |
45 | + @XmlAccessorType(XmlAccessType.FIELD) | |
46 | + @XmlType(name = "", propOrder = {"name", "mobile", "credentials", "credentialsType"}) | |
47 | + @Data | |
48 | + public static class ContactPerson { | |
49 | + @XmlElement(required = true) | |
50 | + protected String name; | |
51 | + @XmlElement(required = true) | |
52 | + protected String mobile; | |
53 | + @XmlElement(required = true) | |
54 | + protected String credentials; | |
55 | + @XmlElement(required = true) | |
56 | + protected String credentialsType; | |
57 | + | |
58 | + public ContactPerson() { | |
59 | + super(); | |
60 | + this.name = ""; | |
61 | + this.mobile = ""; | |
62 | + this.credentials = ""; | |
63 | + this.credentialsType = ""; | |
64 | + } | |
65 | + } | |
66 | + | |
67 | + @XmlAccessorType(XmlAccessType.FIELD) | |
68 | + @XmlType(name = "", propOrder = {"person"}) | |
69 | + @Data | |
70 | + public static class VisitPerson { | |
71 | + protected List<Person> person; | |
72 | + | |
73 | + public VisitPerson() { | |
74 | + super(); | |
75 | + this.person = new ArrayList<Person>(); | |
76 | + } | |
77 | + | |
78 | + @XmlAccessorType(XmlAccessType.FIELD) | |
79 | + @XmlType(name = "", propOrder = {"name", "credentials", "credentialsType"}) | |
80 | + @Data | |
81 | + public static class Person { | |
82 | + @XmlElement(required = true) | |
83 | + protected String name; | |
84 | + @XmlElement(required = true) | |
85 | + protected String credentials; | |
86 | + @XmlElement(required = true) | |
87 | + protected String credentialsType; | |
88 | + | |
89 | + public Person() { | |
90 | + super(); | |
91 | + this.name = ""; | |
92 | + this.credentials = ""; | |
93 | + this.credentialsType = ""; | |
94 | + } | |
95 | + } | |
96 | + } | |
97 | + } | |
98 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/QueryOtaOrderRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/QueryOtaOrderRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "queryOtaOrderRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class QueryOtaOrderRequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public QueryOtaOrderRequestBody() { | |
18 | + super(); | |
19 | + this.orderInfo=new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"orderId"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String orderId; | |
28 | + | |
29 | + public OrderInfo() { | |
30 | + super(); | |
31 | + this.orderId = ""; | |
32 | + } | |
33 | + } | |
34 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/Request.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/Request.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.*; | |
6 | + | |
7 | +@XmlAccessorType(XmlAccessType.FIELD) | |
8 | +@XmlType(name = "", propOrder = {"header", "body"}) | |
9 | +@XmlRootElement(name = "request") | |
10 | +@Data | |
11 | +public class Request { | |
12 | + @XmlElement(required = true) | |
13 | + protected RequestHeader header; | |
14 | + @XmlElement(required = true) | |
15 | + protected RequestBody body; | |
16 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/RequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/RequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlType; | |
8 | + | |
9 | +@XmlAccessorType(XmlAccessType.FIELD) | |
10 | +@XmlType(name = "RequestBody") | |
11 | +@Data | |
12 | +public class RequestBody { | |
13 | + | |
14 | + | |
15 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/RequestHeader.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/RequestHeader.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "RequestHeader", propOrder = {"application", "processor", "version", "bodyType", "createUser", "createTime", "supplierIdentity"}) | |
12 | +@Data | |
13 | +public class RequestHeader { | |
14 | + @XmlElement(required = true, defaultValue = "tour.ectrip.com") | |
15 | + protected String application; | |
16 | + @XmlElement(required = true, defaultValue = "DataExchangeProcessor") | |
17 | + protected String processor; | |
18 | + @XmlElement(required = true) | |
19 | + protected String version; | |
20 | + @XmlElement(required = true) | |
21 | + protected String bodyType; | |
22 | + @XmlElement(required = true) | |
23 | + protected String createUser; | |
24 | + @XmlElement(required = true) | |
25 | + protected String createTime; | |
26 | + @XmlElement(required = true) | |
27 | + protected String supplierIdentity; | |
28 | + | |
29 | + public RequestHeader() { | |
30 | + super(); | |
31 | + this.application = ""; | |
32 | + this.processor = ""; | |
33 | + this.version = ""; | |
34 | + this.bodyType = ""; | |
35 | + this.createUser = ""; | |
36 | + this.createTime = ""; | |
37 | + this.supplierIdentity = ""; | |
38 | + } | |
39 | + | |
40 | + public RequestHeader(String application, String processor, String version, String bodyType, String createUser, String createTime, String supplierIdentity) { | |
41 | + super(); | |
42 | + this.application = application; | |
43 | + this.processor = processor; | |
44 | + this.version = version; | |
45 | + this.bodyType = bodyType; | |
46 | + this.createUser = createUser; | |
47 | + this.createTime = createTime; | |
48 | + this.supplierIdentity = supplierIdentity; | |
49 | + } | |
50 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/SendOrderEticketRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/SendOrderEticketRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "SendOrderEticketRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class SendOrderEticketRequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public SendOrderEticketRequestBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerOrderId", "phoneNumber"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String partnerOrderId; | |
28 | + @XmlElement(required = true) | |
29 | + protected String phoneNumber; | |
30 | + | |
31 | + public OrderInfo() { | |
32 | + super(); | |
33 | + this.partnerOrderId = ""; | |
34 | + this.phoneNumber = ""; | |
35 | + } | |
36 | + } | |
37 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/VerifyConsumeRequestBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/request/VerifyConsumeRequestBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.request; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "VerifyConsumeRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class VerifyConsumeRequestBody extends RequestBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public VerifyConsumeRequestBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"otaOrderId", "cytOrderId", "orderQuantity", "token", "posid", "verifyConsumeInfo"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String otaOrderId; | |
28 | + @XmlElement(required = true) | |
29 | + protected String cytOrderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected String orderQuantity; | |
32 | + @XmlElement(required = true) | |
33 | + protected String token; | |
34 | + @XmlElement(required = true) | |
35 | + protected String posid; | |
36 | + @XmlElement(required = true) | |
37 | + protected String verifyConsumeInfo; | |
38 | + | |
39 | + public OrderInfo() { | |
40 | + super(); | |
41 | + this.otaOrderId = ""; | |
42 | + this.cytOrderId = ""; | |
43 | + this.orderQuantity = ""; | |
44 | + this.token = ""; | |
45 | + this.posid = ""; | |
46 | + this.verifyConsumeInfo = ""; | |
47 | + } | |
48 | + } | |
49 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/ApplyOrderRefundByUserResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/ApplyOrderRefundByUserResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "ApplyOrderRefundByUserResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class ApplyOrderRefundByUserResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public ApplyOrderRefundByUserResponseBody() { | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/CancelOrderResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/CancelOrderResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "CancelOrderResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class CancelOrderResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public CancelOrderResponseBody(){ | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/CheckOrderResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/CheckOrderResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "CheckOrderResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class CheckOrderResponseBody extends ResponseBody { | |
14 | + | |
15 | + @XmlElement(required = true) | |
16 | + protected String message; | |
17 | + | |
18 | + public CheckOrderResponseBody() { | |
19 | + super(); | |
20 | + this.message = ""; | |
21 | + } | |
22 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/CreateOrderResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/CreateOrderResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "CreateOrderResponseBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class CreateOrderResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public CreateOrderResponseBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerorderId","partnerOrderId","otaOrderId","orderStatus","qrCodeStr","qrCodeUrl","onlyQrCodeUrl","verifyCode"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String partnerorderId; | |
28 | + @XmlElement(required = true) | |
29 | + protected String partnerOrderId; | |
30 | + @XmlElement(required = true) | |
31 | + protected String otaOrderId; | |
32 | + @XmlElement(required = true) | |
33 | + protected String orderStatus; | |
34 | + @XmlElement(required = false) | |
35 | + protected String qrCodeStr; | |
36 | + @XmlElement(required = false) | |
37 | + protected String qrCodeUrl; | |
38 | + @XmlElement(required = false) | |
39 | + protected String onlyQrCodeUrl; | |
40 | + @XmlElement(required = false) | |
41 | + protected String verifyCode; | |
42 | + | |
43 | + public OrderInfo() { | |
44 | + super(); | |
45 | + this.partnerOrderId = ""; | |
46 | + this.otaOrderId=""; | |
47 | + this.partnerorderId = ""; | |
48 | + this.orderStatus = ""; | |
49 | + this.qrCodeUrl=""; | |
50 | + this.onlyQrCodeUrl=""; | |
51 | + this.qrCodeStr=""; | |
52 | + this.verifyCode = ""; | |
53 | + } | |
54 | + } | |
55 | + | |
56 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/CreatePaymentOrderResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/CreatePaymentOrderResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "CreatePaymentOrderResponseBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class CreatePaymentOrderResponseBody extends ResponseBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public CreatePaymentOrderResponseBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"partnerorderId","otaorderId", "orderStatus", "qrCodeStr", "qrCodeUrl","onlyQrCodeUrl", "verifyCode", "vouchers"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + @XmlElement(required = false) | |
29 | + protected String partnerorderId; | |
30 | + @XmlElement(required = false) | |
31 | + protected String otaorderId; | |
32 | + @XmlElement(required = true) | |
33 | + protected String orderStatus; | |
34 | + @XmlElement(required = false) | |
35 | + protected String qrCodeStr; | |
36 | + @XmlElement(required = false) | |
37 | + protected String qrCodeUrl; | |
38 | + @XmlElement(required = false) | |
39 | + protected String onlyQrCodeUrl; | |
40 | + @XmlElement(required = false) | |
41 | + protected String verifyCode; | |
42 | + @XmlElement(required = false) | |
43 | + protected Vouchers vouchers; | |
44 | + | |
45 | + public OrderInfo() { | |
46 | + super(); | |
47 | + this.partnerorderId = ""; | |
48 | + this.otaorderId = ""; | |
49 | + this.orderStatus = ""; | |
50 | + this.qrCodeStr = ""; | |
51 | + this.qrCodeUrl = ""; | |
52 | + this.onlyQrCodeUrl=""; | |
53 | + this.verifyCode = ""; | |
54 | + this.vouchers = new Vouchers(); | |
55 | + } | |
56 | + | |
57 | + | |
58 | + @XmlAccessorType(XmlAccessType.FIELD) | |
59 | + @XmlType(name = "", propOrder = {"voucher"}) | |
60 | + @Data | |
61 | + public static class Vouchers{ | |
62 | + @XmlElement(required = false) | |
63 | + protected List<Voucher> voucher; | |
64 | + | |
65 | + public Vouchers(){ | |
66 | + super(); | |
67 | + this.voucher = new ArrayList<Voucher>(); | |
68 | + } | |
69 | + | |
70 | + @XmlAccessorType(XmlAccessType.FIELD) | |
71 | + @XmlType(name = "", propOrder = {"voucherCard", "voucherCode", "voucherCodeUrl"}) | |
72 | + @Data | |
73 | + public static class Voucher{ | |
74 | + @XmlElement(required = false) | |
75 | + protected String voucherCard; | |
76 | + @XmlElement(required = false) | |
77 | + protected String voucherCode; | |
78 | + @XmlElement(required = false) | |
79 | + protected String voucherCodeUrl; | |
80 | + | |
81 | + public Voucher(){ | |
82 | + super(); | |
83 | + this.voucherCard = ""; | |
84 | + this.voucherCode = ""; | |
85 | + this.voucherCodeUrl = ""; | |
86 | + } | |
87 | + } | |
88 | + } | |
89 | + } | |
90 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetAvailableProductResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetAvailableProductResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | + | |
13 | +@XmlAccessorType(XmlAccessType.FIELD) | |
14 | +@XmlType(name = "GetProductByOTAResponseBody", propOrder = {"pois"}) | |
15 | +@Data | |
16 | +public class GetAvailableProductResponseBody extends ResponseBody { | |
17 | + @XmlElement(required = true) | |
18 | + protected Pois pois; | |
19 | + | |
20 | + public GetAvailableProductResponseBody() { | |
21 | + super(); | |
22 | + this.pois = new Pois(); | |
23 | + } | |
24 | + | |
25 | + @XmlAccessorType(XmlAccessType.FIELD) | |
26 | + @XmlType(name = "", propOrder = {"poi"}) | |
27 | + @Data | |
28 | + public static class Pois { | |
29 | + protected List<Poi> poi; | |
30 | + | |
31 | + public Pois(){ | |
32 | + this.poi=new ArrayList<>(); | |
33 | + } | |
34 | + | |
35 | + @XmlAccessorType(XmlAccessType.FIELD) | |
36 | + @XmlType(name = "", propOrder = {"poiId","poiName","poiDescription","poiLevel","poiMobile","addressProvince","addressCity","addressDistrict","poiAddress","poiLongitudeAndlatitude","poiOpenTime","poiImages","products"}) | |
37 | + @Data | |
38 | + public static class Poi { | |
39 | + protected String poiId; | |
40 | + protected String poiName; | |
41 | + protected String poiDescription; | |
42 | + protected String poiLevel; | |
43 | + protected String poiMobile; | |
44 | + protected String addressProvince; | |
45 | + protected String addressCity; | |
46 | + protected String addressDistrict; | |
47 | + protected String poiAddress; | |
48 | + protected String poiLongitudeAndlatitude; | |
49 | + protected String poiOpenTime; | |
50 | + protected List<String> poiImages; | |
51 | + protected Products products; | |
52 | + | |
53 | + public Poi(){ | |
54 | + this.poiId = ""; | |
55 | + this.poiName = ""; | |
56 | + this.poiDescription = ""; | |
57 | + this.poiLevel = ""; | |
58 | + this.poiMobile = ""; | |
59 | + this.addressProvince = ""; | |
60 | + this.addressCity = ""; | |
61 | + this.addressDistrict = ""; | |
62 | + this.poiAddress = ""; | |
63 | + this.poiLongitudeAndlatitude = ""; | |
64 | + this.poiOpenTime = ""; | |
65 | + this.poiImages=new ArrayList<>(); | |
66 | + this.products=new Products(); | |
67 | + } | |
68 | + | |
69 | + @Data | |
70 | + @XmlAccessorType(XmlAccessType.FIELD) | |
71 | + @XmlType(name = "", propOrder = {"product"}) | |
72 | + public static class Products { | |
73 | + protected List<Product> product; | |
74 | + | |
75 | + public Products(){ | |
76 | + this.product=new ArrayList<>(); | |
77 | + } | |
78 | + | |
79 | + @Data | |
80 | + @XmlAccessorType(XmlAccessType.FIELD) | |
81 | + @XmlType(name = "", propOrder = {"resourceId", "productName"}) | |
82 | + public static class Product { | |
83 | + protected String resourceId; | |
84 | + protected String productName; | |
85 | + | |
86 | + public Product(){ | |
87 | + this.resourceId = ""; | |
88 | + this.productName = ""; | |
89 | + } | |
90 | + } | |
91 | + } | |
92 | + | |
93 | + } | |
94 | + } | |
95 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetBalanceResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetBalanceResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlType; | |
8 | +import java.util.ArrayList; | |
9 | +import java.util.List; | |
10 | + | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "GetBalanceResponseBody", propOrder = {"supplierBalances"}) | |
14 | +@Data | |
15 | +public class GetBalanceResponseBody extends ResponseBody { | |
16 | + protected SupplierBalances supplierBalances; | |
17 | + | |
18 | + public GetBalanceResponseBody() { | |
19 | + super(); | |
20 | + this.supplierBalances = new SupplierBalances(); | |
21 | + } | |
22 | + | |
23 | + @Data | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "",propOrder = {"supplierBalance"}) | |
26 | + public static class SupplierBalances { | |
27 | + protected List<SupplierBalance> supplierBalance; | |
28 | + | |
29 | + public SupplierBalances(){ | |
30 | + this.supplierBalance=new ArrayList<>(); | |
31 | + } | |
32 | + | |
33 | + @Data | |
34 | + @XmlAccessorType(XmlAccessType.FIELD) | |
35 | + @XmlType(name = "",propOrder = {"name","supplierIdentity","fundType","balance"}) | |
36 | + public static class SupplierBalance { | |
37 | + protected String name; | |
38 | + protected String supplierIdentity; | |
39 | + protected String fundType; | |
40 | + protected String balance; | |
41 | + | |
42 | + public SupplierBalance() { | |
43 | + this.name = ""; | |
44 | + this.supplierIdentity = ""; | |
45 | + this.fundType = ""; | |
46 | + this.balance = ""; | |
47 | + } | |
48 | + } | |
49 | + } | |
50 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetOrderByOTAResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetOrderByOTAResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "GetOrderByOTAResponseBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class GetOrderByOTAResponseBody extends ResponseBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public GetOrderByOTAResponseBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"partnerorderId","partnerOrderId","otaOrderId", "orderStatus","orderMsg","totalQuantity", "orderQuantity", "eticketNo", "eticketSended", "useQuantity","refundQuantity", "consumeInfo", "vouchers","qrCodeStr","qrCodeUrl","onlyQrCodeUrl","otherQRCode"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + public String getPartnerorderId() { | |
29 | + return partnerorderId; | |
30 | + } | |
31 | + | |
32 | + public void setPartnerorderId(String partnerorderId) { | |
33 | + this.partnerorderId = partnerorderId; | |
34 | + } | |
35 | + | |
36 | + public String getPartnerOrderId() { | |
37 | + return partnerOrderId; | |
38 | + } | |
39 | + | |
40 | + public void setPartnerOrderId(String partnerOrderId) { | |
41 | + this.partnerOrderId = partnerOrderId; | |
42 | + } | |
43 | + | |
44 | + @XmlElement(required = true) | |
45 | + protected String partnerorderId; | |
46 | + @XmlElement(required = true) | |
47 | + protected String partnerOrderId; | |
48 | + @XmlElement(required = true) | |
49 | + protected String otaOrderId; | |
50 | + @XmlElement(required = true) | |
51 | + protected String orderStatus; | |
52 | + @XmlElement(required = true) | |
53 | + protected String orderMsg; | |
54 | + @XmlElement(required = true) | |
55 | + protected String totalQuantity; | |
56 | + @XmlElement(required = true) | |
57 | + protected String orderQuantity; | |
58 | + @XmlElement(required = true) | |
59 | + protected String eticketNo; | |
60 | + @XmlElement(required = true) | |
61 | + protected String eticketSended; | |
62 | + @XmlElement(required = true) | |
63 | + protected String useQuantity; | |
64 | + @XmlElement(required = true) | |
65 | + protected String refundQuantity; | |
66 | + @XmlElement(required = true) | |
67 | + protected String consumeInfo; | |
68 | + @XmlElement(required = false) | |
69 | + protected Vouchers vouchers; | |
70 | + @XmlElement(required = false) | |
71 | + protected String qrCodeStr; | |
72 | + @XmlElement(required = false) | |
73 | + protected String qrCodeUrl; | |
74 | + @XmlElement(required = false) | |
75 | + protected String onlyQrCodeUrl; | |
76 | + @XmlElement(required = false) | |
77 | + protected String otherQRCode;//第三方取票码 | |
78 | + | |
79 | + public OrderInfo() { | |
80 | + super(); | |
81 | + this.partnerorderId = ""; | |
82 | + this.partnerOrderId = ""; | |
83 | + this.otaOrderId = ""; | |
84 | + this.orderStatus = ""; | |
85 | + this.orderMsg = ""; | |
86 | + this.totalQuantity=""; | |
87 | + this.orderQuantity = ""; | |
88 | + this.eticketNo = ""; | |
89 | + this.eticketSended = ""; | |
90 | + this.useQuantity = ""; | |
91 | + this.refundQuantity=""; | |
92 | + this.consumeInfo = ""; | |
93 | + this.qrCodeStr = ""; | |
94 | + this.qrCodeUrl = ""; | |
95 | + this.onlyQrCodeUrl=""; | |
96 | + this.otherQRCode = ""; | |
97 | + this.vouchers= new Vouchers(); | |
98 | + } | |
99 | + | |
100 | + @XmlAccessorType(XmlAccessType.FIELD) | |
101 | + @XmlType(name = "", propOrder = {"voucher"}) | |
102 | + @Data | |
103 | + public static class Vouchers{ | |
104 | + @XmlElement(required = false) | |
105 | + protected List<Voucher> voucher; | |
106 | + | |
107 | + public Vouchers(){ | |
108 | + super(); | |
109 | + this.voucher = new ArrayList<Voucher>(); | |
110 | + } | |
111 | + | |
112 | + @XmlAccessorType(XmlAccessType.FIELD) | |
113 | + @XmlType(name = "", propOrder = {"voucherCard", "voucherCode", "voucherCodeUrl"}) | |
114 | + @Data | |
115 | + public static class Voucher{ | |
116 | + @XmlElement(required = false) | |
117 | + protected String voucherCard; | |
118 | + @XmlElement(required = false) | |
119 | + protected String voucherCode; | |
120 | + @XmlElement(required = false) | |
121 | + protected String voucherCodeUrl; | |
122 | + | |
123 | + public Voucher(){ | |
124 | + super(); | |
125 | + this.voucherCard = ""; | |
126 | + this.voucherCode = ""; | |
127 | + this.voucherCodeUrl = ""; | |
128 | + } | |
129 | + } | |
130 | + } | |
131 | + } | |
132 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetProductByOTAResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetProductByOTAResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "GetProductByOTAResponseBody", propOrder = {"count", "productInfos"}) | |
14 | +@Data | |
15 | +public class GetProductByOTAResponseBody extends ResponseBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected String count; | |
18 | + @XmlElement(required = true) | |
19 | + protected ProductInfos productInfos; | |
20 | + | |
21 | + public GetProductByOTAResponseBody() { | |
22 | + super(); | |
23 | + this.count = ""; | |
24 | + this.productInfos = new ProductInfos(); | |
25 | + } | |
26 | + | |
27 | + @XmlAccessorType(XmlAccessType.FIELD) | |
28 | + @XmlType(name = "", propOrder = {"productInfo"}) | |
29 | + @Data | |
30 | + public static class ProductInfos { | |
31 | + protected List<ProductInfo> productInfo; | |
32 | + | |
33 | + public ProductInfos() { | |
34 | + super(); | |
35 | + this.productInfo = new ArrayList<ProductInfo>(); | |
36 | + } | |
37 | + | |
38 | + @XmlAccessorType(XmlAccessType.FIELD) | |
39 | + @XmlType(name = "", propOrder = {"timeOfBooks", "baseInfo", "bookConfig", "priceConfig", "productDescription", "otherConfig"}) | |
40 | + @Data | |
41 | + public static class ProductInfo { | |
42 | + @XmlElement(required = true) | |
43 | + protected TimeOfBooks timeOfBooks; | |
44 | + @XmlElement(required = true) | |
45 | + protected BaseInfo baseInfo; | |
46 | + @XmlElement(required = true) | |
47 | + protected BookConfig bookConfig; | |
48 | + @XmlElement(required = true) | |
49 | + protected PriceConfig priceConfig; | |
50 | + @XmlElement(required = true) | |
51 | + protected ProductDescription productDescription; | |
52 | + @XmlElement(required = true) | |
53 | + protected OtherConfig otherConfig; | |
54 | + | |
55 | + public ProductInfo() { | |
56 | + super(); | |
57 | + this.baseInfo = new BaseInfo(); | |
58 | + this.timeOfBooks = new TimeOfBooks(); | |
59 | + this.bookConfig = new BookConfig(); | |
60 | + this.priceConfig = new PriceConfig(); | |
61 | + this.productDescription = new ProductDescription(); | |
62 | + this.otherConfig = new OtherConfig(); | |
63 | + } | |
64 | + | |
65 | + @XmlAccessorType(XmlAccessType.FIELD) | |
66 | + @XmlType(name = "", propOrder = {"timeOfBook"}) | |
67 | + @Data | |
68 | + public static class TimeOfBooks { | |
69 | + @XmlElement(required = true) | |
70 | + protected List<TimeOfBook> timeOfBook; | |
71 | + | |
72 | + public TimeOfBooks() { | |
73 | + super(); | |
74 | + this.timeOfBook = new ArrayList<TimeOfBook>(); | |
75 | + } | |
76 | + | |
77 | + @XmlAccessorType(XmlAccessType.FIELD) | |
78 | + @XmlType(name = "", propOrder = {"id", "startTime", "endTime", "price", "stock"}) | |
79 | + @Data | |
80 | + public static class TimeOfBook { | |
81 | + @XmlElement(required = true) | |
82 | + protected String id; | |
83 | + @XmlElement(required = true) | |
84 | + protected String startTime; | |
85 | + @XmlElement(required = true) | |
86 | + protected String endTime; | |
87 | + @XmlElement(required = true) | |
88 | + protected String price; | |
89 | + @XmlElement(required = true) | |
90 | + protected String stock; | |
91 | + | |
92 | + public TimeOfBook() { | |
93 | + super(); | |
94 | + this.id = ""; | |
95 | + this.startTime = ""; | |
96 | + this.endTime = ""; | |
97 | + this.price = ""; | |
98 | + this.stock = ""; | |
99 | + } | |
100 | + } | |
101 | + } | |
102 | + | |
103 | + | |
104 | + | |
105 | + @XmlAccessorType(XmlAccessType.FIELD) | |
106 | + @XmlType(name = "", propOrder = {"resourceId", "productType", "sights", "productName"}) | |
107 | + @Data | |
108 | + public static class BaseInfo { | |
109 | + @XmlElement(required = true) | |
110 | + protected String resourceId; | |
111 | + @XmlElement(required = true) | |
112 | + protected String productType; | |
113 | + @XmlElement(required = true) | |
114 | + protected Sights sights; | |
115 | + @XmlElement(required = true) | |
116 | + protected String productName; | |
117 | + | |
118 | + public BaseInfo() { | |
119 | + super(); | |
120 | + this.resourceId = ""; | |
121 | + this.productType = ""; | |
122 | + this.sights = new Sights(); | |
123 | + this.productName = ""; | |
124 | + } | |
125 | + | |
126 | + @XmlAccessorType(XmlAccessType.FIELD) | |
127 | + @XmlType(name = "", propOrder = {"sight"}) | |
128 | + @Data | |
129 | + public static class Sights { | |
130 | + @XmlElement(required = true) | |
131 | + protected List<Sight> sight; | |
132 | + | |
133 | + public Sights() { | |
134 | + super(); | |
135 | + this.sight = new ArrayList<Sight>(); | |
136 | + } | |
137 | + | |
138 | + @XmlAccessorType(XmlAccessType.FIELD) | |
139 | + @XmlType(name = "", propOrder = {"sightName", "city"}) | |
140 | + @Data | |
141 | + public static class Sight { | |
142 | + @XmlElement(required = true) | |
143 | + protected String sightName; | |
144 | + @XmlElement(required = true) | |
145 | + protected String city; | |
146 | + | |
147 | + public Sight() { | |
148 | + super(); | |
149 | + this.sightName = ""; | |
150 | + this.city = ""; | |
151 | + } | |
152 | + } | |
153 | + } | |
154 | + } | |
155 | + | |
156 | + @XmlAccessorType(XmlAccessType.FIELD) | |
157 | + @XmlType(name = "", propOrder = {"paymentType", "advanceOption", "autoCancelTime", "bookPersonType", "visitPersonRequiredForQuantity"}) | |
158 | + @Data | |
159 | + public static class BookConfig { | |
160 | + @XmlElement(required = true) | |
161 | + protected String paymentType; | |
162 | + @XmlElement(required = true) | |
163 | + protected AdvanceOption advanceOption; | |
164 | + @XmlElement(required = true) | |
165 | + protected String autoCancelTime; | |
166 | + @XmlElement(required = true) | |
167 | + protected String bookPersonType; | |
168 | + @XmlElement(required = true) | |
169 | + protected String visitPersonRequiredForQuantity; | |
170 | + | |
171 | + public BookConfig() { | |
172 | + super(); | |
173 | + this.paymentType = ""; | |
174 | + this.advanceOption = new AdvanceOption(); | |
175 | + this.autoCancelTime = ""; | |
176 | + this.bookPersonType = ""; | |
177 | + this.visitPersonRequiredForQuantity = ""; | |
178 | + } | |
179 | + | |
180 | + @XmlAccessorType(XmlAccessType.FIELD) | |
181 | + @XmlType(name = "", propOrder = {"bookAdvanceDay", "bookAdvanceTime", "useAdvanceHour"}) | |
182 | + @Data | |
183 | + public static class AdvanceOption { | |
184 | + @XmlElement(required = true, defaultValue = "0") | |
185 | + protected String bookAdvanceDay; | |
186 | + @XmlElement(required = true) | |
187 | + protected String bookAdvanceTime; | |
188 | + @XmlElement(required = true) | |
189 | + protected String useAdvanceHour; | |
190 | + | |
191 | + public AdvanceOption() { | |
192 | + super(); | |
193 | + this.bookAdvanceDay = ""; | |
194 | + this.bookAdvanceTime = ""; | |
195 | + this.useAdvanceHour = ""; | |
196 | + } | |
197 | + } | |
198 | + } | |
199 | + | |
200 | + @XmlAccessorType(XmlAccessType.FIELD) | |
201 | + @XmlType(name = "", propOrder = {"smsTemplet", "eticketType"}) | |
202 | + @Data | |
203 | + public static class OtherConfig { | |
204 | + @XmlElement(required = true) | |
205 | + protected String smsTemplet; | |
206 | + @XmlElement(required = true) | |
207 | + protected String eticketType; | |
208 | + | |
209 | + public OtherConfig() { | |
210 | + super(); | |
211 | + this.smsTemplet = ""; | |
212 | + this.eticketType = ""; | |
213 | + } | |
214 | + } | |
215 | + | |
216 | + @XmlAccessorType(XmlAccessType.FIELD) | |
217 | + @XmlType(name = "", propOrder = {"validType", "daysAfterUseDateValid", "calendarPrices"}) | |
218 | + @Data | |
219 | + public static class PriceConfig { | |
220 | + @XmlElement(required = true) | |
221 | + protected String validType; | |
222 | + @XmlElement(required = true) | |
223 | + protected String daysAfterUseDateValid; | |
224 | + @XmlElement(required = true) | |
225 | + protected CalendarPrices calendarPrices; | |
226 | + | |
227 | + public PriceConfig() { | |
228 | + super(); | |
229 | + this.validType = ""; | |
230 | + this.daysAfterUseDateValid = ""; | |
231 | + this.calendarPrices = new CalendarPrices(); | |
232 | + } | |
233 | + | |
234 | + @XmlAccessorType(XmlAccessType.FIELD) | |
235 | + @XmlType(name = "", propOrder = {"calendarPrice"}) | |
236 | + @Data | |
237 | + public static class CalendarPrices { | |
238 | + @XmlElement(required = true) | |
239 | + protected List<CalendarPrice> calendarPrice; | |
240 | + | |
241 | + public CalendarPrices() { | |
242 | + super(); | |
243 | + this.calendarPrice = new ArrayList<CalendarPrice>(); | |
244 | + } | |
245 | + | |
246 | + @XmlAccessorType(XmlAccessType.FIELD) | |
247 | + @XmlType(name = "", propOrder = {"useDate", "marketPrice", "sellPrice", "sellstock"}) | |
248 | + @Data | |
249 | + public static class CalendarPrice { | |
250 | + @XmlElement(required = true) | |
251 | + protected String useDate; | |
252 | + @XmlElement(required = true) | |
253 | + protected String marketPrice; | |
254 | + @XmlElement(required = true) | |
255 | + protected String sellPrice; | |
256 | + @XmlElement(required = true) | |
257 | + protected String sellstock; | |
258 | + | |
259 | + public CalendarPrice() { | |
260 | + super(); | |
261 | + this.useDate = ""; | |
262 | + this.marketPrice = ""; | |
263 | + this.sellPrice = ""; | |
264 | + this.sellstock = ""; | |
265 | + } | |
266 | + } | |
267 | + } | |
268 | + } | |
269 | + | |
270 | + @XmlAccessorType(XmlAccessType.FIELD) | |
271 | + @XmlType(name = "", propOrder = {"remind", "refundOption"}) | |
272 | + @Data | |
273 | + public static class ProductDescription { | |
274 | + @XmlElement(required = true) | |
275 | + protected String remind; | |
276 | + @XmlElement(required = true) | |
277 | + protected RefundOption refundOption; | |
278 | + | |
279 | + public ProductDescription() { | |
280 | + super(); | |
281 | + this.remind = ""; | |
282 | + this.refundOption = new RefundOption(); | |
283 | + } | |
284 | + | |
285 | + @XmlAccessorType(XmlAccessType.FIELD) | |
286 | + @XmlType(name = "", propOrder = {"canRefund","canOverdueRefund", "refundApplyTimeBeforeValidEndDay", "refundCharge", "refundChargeType", "refundInfo"}) | |
287 | + @Data | |
288 | + public static class RefundOption { | |
289 | + @XmlElement(required = true) | |
290 | + protected String canRefund; | |
291 | + @XmlElement(required = true) | |
292 | + protected String canOverdueRefund; | |
293 | + @XmlElement(required = true) | |
294 | + protected String refundApplyTimeBeforeValidEndDay; | |
295 | + @XmlElement(required = true) | |
296 | + protected String refundCharge; | |
297 | + @XmlElement(required = true) | |
298 | + protected String refundChargeType; | |
299 | + @XmlElement(required = true) | |
300 | + protected String refundInfo; | |
301 | + | |
302 | + public RefundOption() { | |
303 | + super(); | |
304 | + this.canRefund = ""; | |
305 | + this.canOverdueRefund = ""; | |
306 | + this.refundApplyTimeBeforeValidEndDay = ""; | |
307 | + this.refundCharge = ""; | |
308 | + this.refundChargeType = ""; | |
309 | + this.refundInfo = ""; | |
310 | + } | |
311 | + } | |
312 | + } | |
313 | + } | |
314 | + } | |
315 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetStockProductInfoResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/GetStockProductInfoResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | + | |
13 | +@XmlAccessorType(XmlAccessType.FIELD) | |
14 | +@XmlType(name = "GetStockProductInfoResponseBody", propOrder = {"resourceId", "timeOfBooks", "stockInfos"}) | |
15 | +@Data | |
16 | +public class GetStockProductInfoResponseBody extends ResponseBody { | |
17 | + @XmlElement(required = true) | |
18 | + protected String resourceId; | |
19 | + @XmlElement(required = true) | |
20 | + protected TimeOfBooks timeOfBooks; | |
21 | + @XmlElement(required = true) | |
22 | + protected StockInfos stockInfos; | |
23 | + | |
24 | + public GetStockProductInfoResponseBody() { | |
25 | + super(); | |
26 | + this.resourceId = ""; | |
27 | + this.stockInfos = new StockInfos(); | |
28 | + this.timeOfBooks = new TimeOfBooks(); | |
29 | + } | |
30 | + | |
31 | + @XmlAccessorType(XmlAccessType.FIELD) | |
32 | + @XmlType(name = "", propOrder = {"timeOfBook"}) | |
33 | + @Data | |
34 | + public static class TimeOfBooks { | |
35 | + @XmlElement(required = true) | |
36 | + protected List<TimeOfBook> timeOfBook; | |
37 | + | |
38 | + public TimeOfBooks() { | |
39 | + super(); | |
40 | + this.timeOfBook = new ArrayList<TimeOfBook>(); | |
41 | + } | |
42 | + | |
43 | + @XmlAccessorType(XmlAccessType.FIELD) | |
44 | + @XmlType(name = "", propOrder = {"id", "title", "date", "startTime", "endTime", "remainingNumb"}) | |
45 | + @Data | |
46 | + public static class TimeOfBook { | |
47 | + @XmlElement(required = true) | |
48 | + protected String id; | |
49 | + @XmlElement(required = true) | |
50 | + protected String title; | |
51 | + @XmlElement(required = true) | |
52 | + protected String date; | |
53 | + @XmlElement(required = true) | |
54 | + protected String startTime; | |
55 | + @XmlElement(required = true) | |
56 | + protected String endTime; | |
57 | + @XmlElement(required = true) | |
58 | + protected String remainingNumb; | |
59 | + | |
60 | + public TimeOfBook() { | |
61 | + super(); | |
62 | + this.id = ""; | |
63 | + this.title = ""; | |
64 | + this.date = ""; | |
65 | + this.startTime = ""; | |
66 | + this.endTime = ""; | |
67 | + this.remainingNumb = ""; | |
68 | + } | |
69 | + } | |
70 | + } | |
71 | + | |
72 | + | |
73 | + @XmlAccessorType(XmlAccessType.FIELD) | |
74 | + @XmlType(name = "", propOrder = {"stockInfo"}) | |
75 | + @Data | |
76 | + public static class StockInfos { | |
77 | + @XmlElement(required = true) | |
78 | + protected List<StockInfo> stockInfo; | |
79 | + | |
80 | + public StockInfos() { | |
81 | + this.stockInfo = new ArrayList<>(); | |
82 | + } | |
83 | + | |
84 | + @XmlAccessorType(XmlAccessType.FIELD) | |
85 | + @XmlType(name = "", propOrder = {"date", "channelStock", "commonStock", "productSaleStock"}) | |
86 | + @Data | |
87 | + public static class StockInfo { | |
88 | + @XmlElement(required = true) | |
89 | + protected String date; | |
90 | + @XmlElement(required = true) | |
91 | + protected String channelStock; | |
92 | + @XmlElement(required = true) | |
93 | + protected String commonStock; | |
94 | + @XmlElement(required = true) | |
95 | + protected String productSaleStock; | |
96 | + | |
97 | + public StockInfo() { | |
98 | + super(); | |
99 | + this.date = ""; | |
100 | + this.channelStock = ""; | |
101 | + this.commonStock = ""; | |
102 | + this.productSaleStock = ""; | |
103 | + } | |
104 | + } | |
105 | + } | |
106 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderConsumedResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderConsumedResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderConsumedResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class NoticeOrderConsumedResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public NoticeOrderConsumedResponseBody() { | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderEticketSendedResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderEticketSendedResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderEticketSendedResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class NoticeOrderEticketSendedResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public NoticeOrderEticketSendedResponseBody() { | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderPrintSuccessResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderPrintSuccessResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderPrintSuccessResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class NoticeOrderPrintSuccessResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public NoticeOrderPrintSuccessResponseBody() { | |
18 | + super(); | |
19 | + this.message=""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderRefundApproveResultResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderRefundApproveResultResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderRefundApproveResultResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class NoticeOrderRefundApproveResultResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public NoticeOrderRefundApproveResultResponseBody() { | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderRefundResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderRefundResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderRefundResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class NoticeOrderRefundResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public NoticeOrderRefundResponseBody() { | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderRefundedByOTAResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeOrderRefundedByOTAResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderRefundedByOTAResponseBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class NoticeOrderRefundedByOTAResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public NoticeOrderRefundedByOTAResponseBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerorderId", "refundSeq", "refundResult", "refundQuantity", "orderRefundPrice", "orderRefundCharge"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String partnerorderId; | |
28 | + @XmlElement(required = true) | |
29 | + protected String refundSeq; | |
30 | + @XmlElement(required = true) | |
31 | + protected String refundResult; | |
32 | + @XmlElement(required = true) | |
33 | + protected String refundQuantity; | |
34 | + @XmlElement(required = true) | |
35 | + protected String orderRefundPrice; | |
36 | + @XmlElement(required = true) | |
37 | + protected String orderRefundCharge; | |
38 | + | |
39 | + public OrderInfo() { | |
40 | + super(); | |
41 | + this.partnerorderId = ""; | |
42 | + this.refundSeq = ""; | |
43 | + this.refundResult = ""; | |
44 | + this.refundQuantity = ""; | |
45 | + this.orderRefundPrice = ""; | |
46 | + this.orderRefundCharge = ""; | |
47 | + } | |
48 | + } | |
49 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeProductChangedResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/NoticeProductChangedResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeProductChangedResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class NoticeProductChangedResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public NoticeProductChangedResponseBody() { | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/PayOrderResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/PayOrderResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | +import java.util.ArrayList; | |
10 | +import java.util.List; | |
11 | + | |
12 | +@XmlAccessorType(XmlAccessType.FIELD) | |
13 | +@XmlType(name = "PayOrderResponseBody", propOrder = {"orderInfo"}) | |
14 | +@Data | |
15 | +public class PayOrderResponseBody extends ResponseBody { | |
16 | + @XmlElement(required = true) | |
17 | + protected OrderInfo orderInfo; | |
18 | + | |
19 | + public PayOrderResponseBody() { | |
20 | + super(); | |
21 | + this.orderInfo = new OrderInfo(); | |
22 | + } | |
23 | + | |
24 | + @XmlAccessorType(XmlAccessType.FIELD) | |
25 | + @XmlType(name = "", propOrder = {"partnerorderId", "partnerOrderId", "otaOrderId", "orderStatus", "qrCodeStr", "qrCodeUrl","onlyQrCodeUrl", "verifyCode", "vouchers"}) | |
26 | + @Data | |
27 | + public static class OrderInfo { | |
28 | + public String getPartnerorderId() { | |
29 | + return partnerorderId; | |
30 | + } | |
31 | + | |
32 | + public void setPartnerorderId(String partnerorderId) { | |
33 | + this.partnerorderId = partnerorderId; | |
34 | + } | |
35 | + | |
36 | + public String getPartnerOrderId() { | |
37 | + return partnerOrderId; | |
38 | + } | |
39 | + | |
40 | + public void setPartnerOrderId(String partnerOrderId) { | |
41 | + this.partnerOrderId = partnerOrderId; | |
42 | + } | |
43 | + | |
44 | + @XmlElement(required = true) | |
45 | + protected String partnerorderId; | |
46 | + @XmlElement(required = true) | |
47 | + protected String partnerOrderId; | |
48 | + @XmlElement(required = true) | |
49 | + protected String otaOrderId; | |
50 | + @XmlElement(required = true) | |
51 | + protected String orderStatus; | |
52 | + @XmlElement(required = false) | |
53 | + protected String qrCodeStr; | |
54 | + @XmlElement(required = false) | |
55 | + protected String qrCodeUrl; | |
56 | + @XmlElement(required = false) | |
57 | + protected String onlyQrCodeUrl; | |
58 | + @XmlElement(required = false) | |
59 | + protected String verifyCode; | |
60 | + @XmlElement(required = false) | |
61 | + protected Vouchers vouchers; | |
62 | + | |
63 | + public OrderInfo() { | |
64 | + super(); | |
65 | + this.partnerorderId = ""; | |
66 | + this.partnerOrderId = ""; | |
67 | + this.otaOrderId=""; | |
68 | + this.orderStatus = ""; | |
69 | + this.qrCodeStr = ""; | |
70 | + this.qrCodeUrl = ""; | |
71 | + this.onlyQrCodeUrl=""; | |
72 | + this.verifyCode = ""; | |
73 | + this.vouchers = new Vouchers(); | |
74 | + } | |
75 | + | |
76 | + @XmlAccessorType(XmlAccessType.FIELD) | |
77 | + @XmlType(name = "", propOrder = {"voucher"}) | |
78 | + @Data | |
79 | + public static class Vouchers{ | |
80 | + @XmlElement(required = false) | |
81 | + protected List<Voucher> voucher; | |
82 | + | |
83 | + public Vouchers(){ | |
84 | + super(); | |
85 | + this.voucher = new ArrayList<Voucher>(); | |
86 | + } | |
87 | + | |
88 | + @XmlAccessorType(XmlAccessType.FIELD) | |
89 | + @XmlType(name = "", propOrder = {"voucherCard", "voucherCode", "voucherCodeUrl"}) | |
90 | + @Data | |
91 | + public static class Voucher{ | |
92 | + @XmlElement(required = false) | |
93 | + protected String voucherCard; | |
94 | + @XmlElement(required = false) | |
95 | + protected String voucherCode; | |
96 | + @XmlElement(required = false) | |
97 | + protected String voucherCodeUrl; | |
98 | + | |
99 | + public Voucher(){ | |
100 | + super(); | |
101 | + this.voucherCard = ""; | |
102 | + this.voucherCode = ""; | |
103 | + this.voucherCodeUrl = ""; | |
104 | + } | |
105 | + } | |
106 | + } | |
107 | + } | |
108 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/PostFaceInfoResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/PostFaceInfoResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "NoticeOrderPrintSuccessResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class PostFaceInfoResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public PostFaceInfoResponseBody() { | |
18 | + super(); | |
19 | + this.message=""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/PushOrderResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/PushOrderResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "PushOrderResponseBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class PushOrderResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public PushOrderResponseBody() { | |
18 | + super(); | |
19 | + this.orderInfo = new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"partnerorderId","partnerOrderId"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + public String getPartnerorderId() { | |
27 | + return partnerorderId; | |
28 | + } | |
29 | + | |
30 | + public void setPartnerorderId(String partnerorderId) { | |
31 | + this.partnerorderId = partnerorderId; | |
32 | + } | |
33 | + | |
34 | + public String getPartnerOrderId() { | |
35 | + return partnerOrderId; | |
36 | + } | |
37 | + | |
38 | + public void setPartnerOrderId(String partnerOrderId) { | |
39 | + this.partnerOrderId = partnerOrderId; | |
40 | + } | |
41 | + | |
42 | + @XmlElement(required = true) | |
43 | + protected String partnerorderId; | |
44 | + @XmlElement(required = true) | |
45 | + protected String partnerOrderId; | |
46 | + | |
47 | + public OrderInfo() { | |
48 | + super(); | |
49 | + this.partnerorderId = ""; | |
50 | + this.partnerOrderId = ""; | |
51 | + } | |
52 | + } | |
53 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/QueryOtaOrderResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/QueryOtaOrderResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "queryOtaOrderRequestBody", propOrder = {"orderInfo"}) | |
12 | +@Data | |
13 | +public class QueryOtaOrderResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected OrderInfo orderInfo; | |
16 | + | |
17 | + public QueryOtaOrderResponseBody() { | |
18 | + super(); | |
19 | + this.orderInfo=new OrderInfo(); | |
20 | + } | |
21 | + | |
22 | + @XmlAccessorType(XmlAccessType.FIELD) | |
23 | + @XmlType(name = "", propOrder = {"orderId", "orderStatus"}) | |
24 | + @Data | |
25 | + public static class OrderInfo { | |
26 | + @XmlElement(required = true) | |
27 | + protected String orderId; | |
28 | + @XmlElement(required = true) | |
29 | + protected String orderStatus; | |
30 | + | |
31 | + public OrderInfo() { | |
32 | + super(); | |
33 | + this.orderId = ""; | |
34 | + this.orderStatus = ""; | |
35 | + } | |
36 | + } | |
37 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/Response.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/Response.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.*; | |
6 | + | |
7 | +@XmlAccessorType(XmlAccessType.FIELD) | |
8 | +@XmlType(name = "", propOrder = {"header", "body"}) | |
9 | +@XmlRootElement(name = "response") | |
10 | +@Data | |
11 | +public class Response { | |
12 | + @XmlElement(required = true) | |
13 | + protected ResponseHeader header; | |
14 | + @XmlElement(required = true) | |
15 | + protected ResponseBody body; | |
16 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/ResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/ResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlType; | |
8 | + | |
9 | +@XmlAccessorType(XmlAccessType.FIELD) | |
10 | +@XmlType(name = "ResponseBody") | |
11 | +@Data | |
12 | +public class ResponseBody { | |
13 | + | |
14 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/ResponseHeader.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/ResponseHeader.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "ResponseHeader", propOrder = {"application", "processor", "version", "bodyType", "createUser", "createTime", "code", "describe"}) | |
12 | +@Data | |
13 | +public class ResponseHeader { | |
14 | + @XmlElement(required = true, defaultValue = "tour.ectrip.com") | |
15 | + protected String application; | |
16 | + @XmlElement(required = true, defaultValue = "DataExchangeProcessor") | |
17 | + protected String processor; | |
18 | + @XmlElement(required = true) | |
19 | + protected String version; | |
20 | + @XmlElement(required = true) | |
21 | + protected String bodyType; | |
22 | + @XmlElement(required = true) | |
23 | + protected String createUser; | |
24 | + @XmlElement(required = true) | |
25 | + protected String createTime; | |
26 | + @XmlElement(required = true) | |
27 | + protected String code; | |
28 | + @XmlElement(required = true) | |
29 | + protected String describe; | |
30 | + | |
31 | + public ResponseHeader() { | |
32 | + super(); | |
33 | + this.application = ""; | |
34 | + this.processor = ""; | |
35 | + this.version = ""; | |
36 | + this.bodyType = ""; | |
37 | + this.createUser = ""; | |
38 | + this.createTime = ""; | |
39 | + this.code = ""; | |
40 | + this.describe = ""; | |
41 | + } | |
42 | + | |
43 | + public ResponseHeader(String application, String processor, String version, String bodyType, String createUser, String createTime, String code, String describe) { | |
44 | + super(); | |
45 | + this.application = application; | |
46 | + this.processor = processor; | |
47 | + this.version = version; | |
48 | + this.bodyType = bodyType; | |
49 | + this.createUser = createUser; | |
50 | + this.createTime = createTime; | |
51 | + this.code = code; | |
52 | + this.describe = describe; | |
53 | + } | |
54 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/SendOrderEticketResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/SendOrderEticketResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "SendOrderEticketResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class SendOrderEticketResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public SendOrderEticketResponseBody() { | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/VerifyConsumeResponseBody.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/model/cytOrder/response/VerifyConsumeResponseBody.java | |
1 | +package com.ectrip.cyt.client.cyt.model.cytOrder.response; | |
2 | + | |
3 | +import lombok.Data; | |
4 | + | |
5 | +import javax.xml.bind.annotation.XmlAccessType; | |
6 | +import javax.xml.bind.annotation.XmlAccessorType; | |
7 | +import javax.xml.bind.annotation.XmlElement; | |
8 | +import javax.xml.bind.annotation.XmlType; | |
9 | + | |
10 | +@XmlAccessorType(XmlAccessType.FIELD) | |
11 | +@XmlType(name = "VerifyConsumeResponseBody", propOrder = {"message"}) | |
12 | +@Data | |
13 | +public class VerifyConsumeResponseBody extends ResponseBody { | |
14 | + @XmlElement(required = true) | |
15 | + protected String message; | |
16 | + | |
17 | + public VerifyConsumeResponseBody() { | |
18 | + super(); | |
19 | + this.message = ""; | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/service/TdosApiClient.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/client/cyt/service/TdosApiClient.java | |
1 | +package com.ectrip.cyt.client.cyt.service; | |
2 | + | |
3 | +import com.alibaba.fastjson.JSONObject; | |
4 | + | |
5 | +import com.ectrip.cyt.client.cyt.common.Parameter; | |
6 | +import com.ectrip.cyt.client.cyt.model.cytOrder.request.*; | |
7 | +import com.ectrip.cyt.client.cyt.model.cytOrder.response.CreateOrderResponseBody; | |
8 | +import com.ectrip.cyt.client.cyt.model.cytOrder.response.CreatePaymentOrderResponseBody; | |
9 | +import com.ectrip.cyt.client.cyt.model.cytOrder.response.ResponseHeader; | |
10 | +import com.ectrip.cyt.exception.BusinessException; | |
11 | +import com.ectrip.cyt.model.enums.ApiMethodType; | |
12 | +import com.ectrip.cyt.model.param.*; | |
13 | +import com.ectrip.cyt.model.pojo.EditPerson; | |
14 | +import com.ectrip.cyt.model.pojo.Person; | |
15 | +import com.ectrip.cyt.model.result.Result; | |
16 | +import com.ectrip.cyt.model.enums.CredentialsType; | |
17 | +import com.ectrip.cyt.model.enums.OrderStatusType; | |
18 | +import com.ectrip.cyt.model.rt.CommonReturn; | |
19 | +import com.ectrip.cyt.utils.*; | |
20 | +import com.google.common.collect.Lists; | |
21 | +import com.google.common.collect.Maps; | |
22 | +import org.apache.commons.collections.CollectionUtils; | |
23 | +import org.apache.commons.httpclient.HttpClient; | |
24 | +import org.apache.commons.httpclient.methods.PostMethod; | |
25 | +import org.apache.commons.httpclient.params.HttpMethodParams; | |
26 | +import org.apache.commons.lang3.StringUtils; | |
27 | +import org.apache.commons.lang3.time.DateFormatUtils; | |
28 | +import org.apache.http.HttpStatus; | |
29 | + | |
30 | +import java.io.IOException; | |
31 | +import java.io.UnsupportedEncodingException; | |
32 | +import java.net.SocketTimeoutException; | |
33 | +import java.nio.charset.Charset; | |
34 | +import java.util.*; | |
35 | + | |
36 | +public class TdosApiClient{ | |
37 | + public static Result heartBeat(AccountParam accountParam){ | |
38 | + return commonApi(accountParam,new RequestBody(),OtaUtils.HEART_BEAT); | |
39 | + } | |
40 | + | |
41 | + public static Result getBalance(AccountParam accountParam) { | |
42 | + return commonApi(accountParam,new RequestBody(),OtaUtils.GET_BALANCE); | |
43 | + } | |
44 | + | |
45 | + public static Result checkOrder(CreateOrderParam orderParam, AccountParam accountParam) { | |
46 | + CreateOrderRequestBody requestBody = new CreateOrderRequestBody(); | |
47 | + CreateOrderRequestBody.OrderInfo requestOrderInfo = new CreateOrderRequestBody.OrderInfo(); | |
48 | + requestOrderInfo.setOrderId(orderParam.getOrderCode()); | |
49 | + //测试接口不支持淘宝 | |
50 | + //requestOrderInfo.setToken();//淘宝订单(令牌信息) | |
51 | + //产品信息 | |
52 | + CreateOrderRequestBody.OrderInfo.Product product = new CreateOrderRequestBody.OrderInfo.Product(); | |
53 | + product.setResourceId(orderParam.getProduct().getProductNo()); //产品id | |
54 | + product.setVisitDate(formatDate(DateUtils.convertDate(orderParam.getVisitDate(),DateUtils.DATE_PATTERN)));//游玩日期 | |
55 | + /*if(StringUtils.isNotBlank(orderParam.getLeaveDate())) { | |
56 | + product.setLeaveDate(formatDate(DateUtils.convertDate(orderParam.getLeaveDate(), DateUtils.DATE_PATTERN)));//住店日期 | |
57 | + }*/ | |
58 | + product.setSellPrice(Long.toString(convertCents(orderParam.getProduct().getSellPrice())));//产品售卖价格,转换为分 | |
59 | + product.setTimeOfBookId(Long.toString(orderParam.getProduct().getTimeOfBookId())); | |
60 | + requestOrderInfo.setProduct(product); | |
61 | + //取票人信息 | |
62 | + CreateOrderRequestBody.OrderInfo.ContactPerson contactPerson = new CreateOrderRequestBody.OrderInfo.ContactPerson(); | |
63 | + contactPerson.setName(orderParam.getContactPerson().getName()); | |
64 | + contactPerson.setMobile(orderParam.getContactPerson().getPhone()); | |
65 | + contactPerson.setCredentials(orderParam.getContactPerson().getCredentials()); | |
66 | + CredentialsType credentialsType=CredentialsType.typeOf(orderParam.getContactPerson().getCredentialsType()); | |
67 | + contactPerson.setCredentialsType(OtaUtils.credentialsTypeStringMap.get(credentialsType)); | |
68 | + requestOrderInfo.setContactPerson(contactPerson); | |
69 | + //游玩人信息 | |
70 | + CreateOrderRequestBody.OrderInfo.VisitPerson visitPerson = new CreateOrderRequestBody.OrderInfo.VisitPerson(); | |
71 | + List<CreateOrderRequestBody.OrderInfo.VisitPerson.Person> persons = Lists.newArrayList(); | |
72 | + if (CollectionUtils.isNotEmpty(orderParam.getVisitPersons())) { | |
73 | + for (Person p : orderParam.getVisitPersons()) { | |
74 | + CreateOrderRequestBody.OrderInfo.VisitPerson.Person person = new CreateOrderRequestBody.OrderInfo.VisitPerson.Person(); | |
75 | + person.setName(p.getName()); | |
76 | + person.setCredentials(p.getCredentials()); | |
77 | + CredentialsType ct=CredentialsType.typeOf(p.getCredentialsType()); | |
78 | + person.setCredentialsType(OtaUtils.credentialsTypeStringMap.get(ct) | |
79 | + ); | |
80 | + person.setMobile(p.getPhone()); | |
81 | + persons.add(person); | |
82 | + } | |
83 | + } | |
84 | + visitPerson.setPerson(persons); | |
85 | + requestOrderInfo.setVisitPerson(visitPerson); | |
86 | + OrderStatusType orderStatusType=OrderStatusType.ORDER_RESERVE_SUCCESSFUL; | |
87 | + //订单票数 | |
88 | + requestOrderInfo.setOrderQuantity(orderParam.getOrderQuantity().toString()); | |
89 | + //订单金额 | |
90 | + requestOrderInfo.setOrderPrice(Long.toString(convertCents(orderParam.getOrderPrice()))); | |
91 | + //只支持预付 | |
92 | + requestOrderInfo.setOrderStatus(OtaUtils.prepayOrderStatusTypeStringMap.get(orderStatusType)); | |
93 | + requestBody.setOrderInfo(requestOrderInfo); | |
94 | + return commonApi(accountParam,requestBody,OtaUtils.CHECK_ORDER); | |
95 | + } | |
96 | + | |
97 | + public static Result createOrder(CreateOrderParam orderParam, AccountParam accountParam) { | |
98 | + CreateOrderRequestBody requestBody = new CreateOrderRequestBody(); | |
99 | + CreateOrderRequestBody.OrderInfo requestOrderInfo = new CreateOrderRequestBody.OrderInfo(); | |
100 | + requestOrderInfo.setOrderId(orderParam.getOrderCode()); | |
101 | + //测试接口不支持淘宝 | |
102 | + //requestOrderInfo.setToken();//淘宝订单(令牌信息) | |
103 | + //产品信息 | |
104 | + CreateOrderRequestBody.OrderInfo.Product product = new CreateOrderRequestBody.OrderInfo.Product(); | |
105 | + product.setResourceId(orderParam.getProduct().getProductNo()); //产品id | |
106 | + product.setVisitDate(formatDate(DateUtils.convertDate(orderParam.getVisitDate(),DateUtils.DATE_PATTERN)));//游玩日期 | |
107 | + /*if(StringUtils.isNotBlank(orderParam.getLeaveDate())) { | |
108 | + product.setLeaveDate(formatDate(DateUtils.convertDate(orderParam.getLeaveDate(), DateUtils.DATE_PATTERN)));//住店日期 | |
109 | + }*/ | |
110 | + product.setSellPrice(Long.toString(convertCents(orderParam.getProduct().getSellPrice())));//产品售卖价格,转换为分 | |
111 | + product.setTimeOfBookId(Long.toString(orderParam.getProduct().getTimeOfBookId())); | |
112 | + //product.setSeatIds(orderParam.getProduct().getSeatIds()); | |
113 | + requestOrderInfo.setProduct(product); | |
114 | + //取票人信息 | |
115 | + CreateOrderRequestBody.OrderInfo.ContactPerson contactPerson = new CreateOrderRequestBody.OrderInfo.ContactPerson(); | |
116 | + contactPerson.setName(orderParam.getContactPerson().getName()); | |
117 | + contactPerson.setMobile(orderParam.getContactPerson().getPhone()); | |
118 | + //contactPerson.setCredentials(orderParam.getContactPerson().getCredentials()); | |
119 | + CredentialsType credentialsType=CredentialsType.typeOf(orderParam.getContactPerson().getCredentialsType()); | |
120 | + //contactPerson.setCredentialsType(OtaUtils.credentialsTypeStringMap.get(credentialsType)); | |
121 | + requestOrderInfo.setContactPerson(contactPerson); | |
122 | + //游玩人信息 | |
123 | + CreateOrderRequestBody.OrderInfo.VisitPerson visitPerson = new CreateOrderRequestBody.OrderInfo.VisitPerson(); | |
124 | + List<CreateOrderRequestBody.OrderInfo.VisitPerson.Person> persons = Lists.newArrayList(); | |
125 | + if (CollectionUtils.isNotEmpty(orderParam.getVisitPersons())) { | |
126 | + for (Person p : orderParam.getVisitPersons()) { | |
127 | + CreateOrderRequestBody.OrderInfo.VisitPerson.Person person = new CreateOrderRequestBody.OrderInfo.VisitPerson.Person(); | |
128 | + person.setName(p.getName()); | |
129 | + person.setCredentials(p.getCredentials()); | |
130 | + CredentialsType ct=CredentialsType.typeOf(p.getCredentialsType()); | |
131 | + person.setCredentialsType(OtaUtils.credentialsTypeStringMap.get(ct) | |
132 | + ); | |
133 | + person.setMobile(p.getPhone()); | |
134 | + persons.add(person); | |
135 | + } | |
136 | + } | |
137 | + visitPerson.setPerson(persons); | |
138 | + requestOrderInfo.setVisitPerson(visitPerson); | |
139 | + OrderStatusType orderStatusType=OrderStatusType.ORDER_NOT_PAYED_YET; | |
140 | + //订单票数 | |
141 | + requestOrderInfo.setOrderQuantity(orderParam.getOrderQuantity().toString()); | |
142 | + //订单金额 | |
143 | + requestOrderInfo.setOrderPrice(Long.toString(convertCents(orderParam.getOrderPrice()))); | |
144 | + //只支持预付 | |
145 | + requestOrderInfo.setOrderStatus(OtaUtils.prepayOrderStatusTypeStringMap.get(orderStatusType)); | |
146 | + requestBody.setOrderInfo(requestOrderInfo); | |
147 | + return commonApi(accountParam,requestBody,OtaUtils.CREATE_ORDER); | |
148 | + } | |
149 | + | |
150 | + public static Result cancelOrder(CancelOrderParam cancelOrder,AccountParam accountParam) { | |
151 | + CancelOrderRequestBody requestBody=new CancelOrderRequestBody(); | |
152 | + CancelOrderRequestBody.OrderInfo oiRequest = new CancelOrderRequestBody.OrderInfo(); | |
153 | + oiRequest.setPartnerOrderId(cancelOrder.getCytOrderCode()); | |
154 | + oiRequest.setOrderId(cancelOrder.getOtaOrderCode()); | |
155 | + requestBody.setOrderInfo(oiRequest); | |
156 | + return commonApi(accountParam,requestBody,OtaUtils.CANCEL_ORDER); | |
157 | + } | |
158 | + | |
159 | + public static Result payOrder(PayOrderParam payOrder,AccountParam accountParam) { | |
160 | + PayOrderRequestBody requestBody=new PayOrderRequestBody(); | |
161 | + PayOrderRequestBody.OrderInfo oiRequest = new PayOrderRequestBody.OrderInfo(); | |
162 | + oiRequest.setPartnerOrderId(payOrder.getCytOrderCode()); | |
163 | + oiRequest.setOtaOrderId(payOrder.getOtaOrderCode()); | |
164 | + oiRequest.setOrderPrice(Long.toString(convertCents(payOrder.getOrderPrice()))); | |
165 | + oiRequest.setOrderStatus(OrderStatusUtils.PREPAY_ORDER_PRINT_SUCCESS); | |
166 | + requestBody.setOrderInfo(oiRequest); | |
167 | + return commonApi(accountParam,requestBody,OtaUtils.PAY_ORDER); | |
168 | + } | |
169 | + | |
170 | + public static Result queryOrder(QueryOrderParam queryOrder,AccountParam accountParam) { | |
171 | + GetOrderByOTARequestBody requestBody=new GetOrderByOTARequestBody(); | |
172 | + //ota订单查询 | |
173 | + requestBody.setOrderId(queryOrder.getOrderCode()); | |
174 | + requestBody.setPartnerOrderId(queryOrder.getCytOrderCode()); | |
175 | + return commonApi(accountParam,requestBody,OtaUtils.GET_ORDER_BY_OTA); | |
176 | + } | |
177 | + | |
178 | + public static Result pushOrder(PushOrderParam pushOrder,AccountParam accountParam) { | |
179 | + PushOrderRequestBody requestBody=new PushOrderRequestBody(); | |
180 | + PushOrderRequestBody.OrderInfo oiRequest = new PushOrderRequestBody.OrderInfo(); | |
181 | + //联系人信息 | |
182 | + Person contact = pushOrder.getContactPerson(); | |
183 | + if (contact != null) { | |
184 | + PushOrderRequestBody.OrderInfo.ContactPerson contactPerson = new PushOrderRequestBody.OrderInfo.ContactPerson(); | |
185 | + contactPerson.setName(contact.getName()); | |
186 | + contactPerson.setMobile(contact.getPhone()); | |
187 | + contactPerson.setCredentials(contact.getCredentials()); | |
188 | + CredentialsType ct=CredentialsType.typeOf(contact.getCredentialsType()); | |
189 | + contactPerson.setCredentialsType(OtaUtils.credentialsTypeStringMap.get(ct)); | |
190 | + oiRequest.setContactPerson(contactPerson); | |
191 | + } | |
192 | + //游玩人信息 | |
193 | + if (CollectionUtils.isNotEmpty(pushOrder.getVisitPersons())) { | |
194 | + PushOrderRequestBody.OrderInfo.VisitPerson visitPerson = new PushOrderRequestBody.OrderInfo.VisitPerson(); | |
195 | + List<PushOrderRequestBody.OrderInfo.VisitPerson.Person> persons = Lists.newArrayList(); | |
196 | + for (EditPerson visitor : pushOrder.getVisitPersons()) { | |
197 | + PushOrderRequestBody.OrderInfo.VisitPerson.Person person = new PushOrderRequestBody.OrderInfo.VisitPerson.Person(); | |
198 | + person.setCredentials(visitor.getEditCredentials()); | |
199 | + person.setName(visitor.getEditName()); | |
200 | + persons.add(person); | |
201 | + } | |
202 | + visitPerson.setPerson(persons); | |
203 | + oiRequest.setVisitPerson(visitPerson); | |
204 | + } | |
205 | + oiRequest.setVisitDate(pushOrder.getVisitDate()); | |
206 | + oiRequest.setPartnerOrderId(pushOrder.getCytOrderCode()); | |
207 | + requestBody.setOrderInfo(oiRequest); | |
208 | + return commonApi(accountParam,requestBody,OtaUtils.PUSH_ORDER); | |
209 | + } | |
210 | + | |
211 | + public static Result applyOrderRefundByUser(RefundOrderParam refundOrder,AccountParam accountParam) { | |
212 | + ApplyOrderRefundByUserRequestBody requestBody=new ApplyOrderRefundByUserRequestBody(); | |
213 | + ApplyOrderRefundByUserRequestBody.OrderInfo oiRequest = new ApplyOrderRefundByUserRequestBody.OrderInfo(); | |
214 | + //畅游通订单号 | |
215 | + oiRequest.setPartnerOrderId(refundOrder.getCytOrderCode()); | |
216 | + //退款流水号 | |
217 | + oiRequest.setRefundSeq(refundOrder.getRefundSeq()); | |
218 | + //订单金额 | |
219 | + //oiRequest.setOrderPrice(Long.toString(convertCents(refundOrder.getOrderMoney()))); | |
220 | + //订单票数 | |
221 | + //oiRequest.setOrderQuantity(Integer.toString(refundOrder.getOrderQuantity())); | |
222 | + //退款票数 | |
223 | + oiRequest.setRefundQuantity(Integer.toString(refundOrder.getRefundQuantity())); | |
224 | + //订单退订金额,转换成分 | |
225 | + oiRequest.setOrderRefundPrice(Long.toString(convertCents(refundOrder.getRefundMoney()))); | |
226 | + //退订手续费,转换成分 | |
227 | + //oiRequest.setOrderRefundCharge(Long.toString(convertCents(refundOrder.getRefundCharge()))); | |
228 | + | |
229 | + if (CollectionUtils.isNotEmpty(refundOrder.getVisitPersons())) { | |
230 | + ApplyOrderRefundByUserRequestBody.OrderInfo.VisitPerson visitPerson = new ApplyOrderRefundByUserRequestBody.OrderInfo.VisitPerson(); | |
231 | + List<ApplyOrderRefundByUserRequestBody.OrderInfo.VisitPerson.Person> persons = Lists.newArrayList(); | |
232 | + for (Person visitor : refundOrder.getVisitPersons()) { | |
233 | + ApplyOrderRefundByUserRequestBody.OrderInfo.VisitPerson.Person person = new ApplyOrderRefundByUserRequestBody.OrderInfo.VisitPerson.Person(); | |
234 | + person.setName(visitor.getName()); | |
235 | + CredentialsType ct=CredentialsType.typeOf(visitor.getCredentialsType()); | |
236 | + person.setCredentialsType(OtaUtils.credentialsTypeStringMap.get(ct)); | |
237 | + person.setCredentials(visitor.getCredentials()); | |
238 | + person.setVoucherCode(visitor.getVoucher()); | |
239 | + persons.add(person); | |
240 | + } | |
241 | + visitPerson.setPerson(persons); | |
242 | + oiRequest.setVisitPerson(visitPerson); | |
243 | + } | |
244 | + | |
245 | + String refundReason = refundOrder.getRefundReason(); | |
246 | + if (org.apache.commons.lang3.StringUtils.isBlank(refundReason)) { | |
247 | + refundReason = "客人想退款"; | |
248 | + } | |
249 | + oiRequest.setRefundExplain(refundReason); | |
250 | + requestBody.setOrderInfo(oiRequest); | |
251 | + return commonApi(accountParam,requestBody,OtaUtils.APPLY_ORDER_REFUND_BY_USER); | |
252 | + } | |
253 | + | |
254 | + public static Result queryPois(AccountParam accountParam){ | |
255 | + return commonApi(accountParam,new RequestBody(),OtaUtils.GET_AVAILABLE_PRODUCT); | |
256 | + } | |
257 | + | |
258 | + public static Result queryStockAndTsds(GetStockParam param,AccountParam accountParam){ | |
259 | + GetStockProductInfoRequestBody requestBody=new GetStockProductInfoRequestBody(); | |
260 | + requestBody.setResourceId(param.getResourceId()); | |
261 | + requestBody.setStartDate(param.getStartDate()); | |
262 | + requestBody.setEndDate(param.getEndDate()); | |
263 | + return commonApi(accountParam,requestBody,OtaUtils.GET_STOCK_PRODUCT_INFO); | |
264 | + } | |
265 | + | |
266 | + /*public static Result querySeatList(GetSeatParam param,AccountParam accountParam){ | |
267 | + GetSeatInfoRequestBody requestBody=new GetSeatInfoRequestBody(); | |
268 | + requestBody.setTimeOfBookId(param.getTimeOfBookId()); | |
269 | + return commonApi(accountParam,requestBody,OtaUtils.GET_SEAT_INFO); | |
270 | + }*/ | |
271 | + | |
272 | + public static Result sendOrderEticket(SendOrderEticketParam param,AccountParam accountParam){ | |
273 | + SendOrderEticketRequestBody requestBody=new SendOrderEticketRequestBody(); | |
274 | + requestBody.getOrderInfo().setPartnerOrderId(param.getCytOrderCode()); | |
275 | + requestBody.getOrderInfo().setPhoneNumber(param.getPhone()); | |
276 | + return commonApi(accountParam,requestBody,OtaUtils.SEND_ORDER_ETICKET); | |
277 | + } | |
278 | + | |
279 | + public static Result queryProducts(GetProductParam productParam, AccountParam accountParam) { | |
280 | + GetProductByOTARequestBody requestBody=new GetProductByOTARequestBody(); | |
281 | + if(StringUtils.isNotBlank(productParam.getResourceId())){ | |
282 | + requestBody.setResourceId(productParam.getResourceId()); | |
283 | + requestBody.setCurrentPage(""); | |
284 | + requestBody.setPageSize(""); | |
285 | + }else{ | |
286 | + requestBody.setCurrentPage(productParam.getCurrentPage().toString()); | |
287 | + requestBody.setPageSize(productParam.getPageSize().toString()); | |
288 | + } | |
289 | + return commonApi(accountParam,requestBody,OtaUtils.GET_PRODUCT_BY_OTA); | |
290 | + } | |
291 | + | |
292 | + public static Result createPaymentOrder(CreateOrderParam orderParam, AccountParam accountParam) { | |
293 | + CreatePaymentOrderRequestBody requestBody = new CreatePaymentOrderRequestBody(); | |
294 | + CreatePaymentOrderRequestBody.OrderInfo requestOrderInfo = new CreatePaymentOrderRequestBody.OrderInfo(); | |
295 | + requestOrderInfo.setOrderId(orderParam.getOrderCode()); | |
296 | + //产品信息 | |
297 | + CreatePaymentOrderRequestBody.OrderInfo.Product product = new CreatePaymentOrderRequestBody.OrderInfo.Product(); | |
298 | + product.setResourceId(orderParam.getProduct().getProductNo()); //产品id | |
299 | + product.setVisitDate(formatDate(DateUtils.convertDate(orderParam.getVisitDate(),DateUtils.DATE_PATTERN))); //游玩日期 | |
300 | + if(StringUtils.isNotBlank(orderParam.getLeaveDate())) { | |
301 | + product.setLeaveDate(formatDate(DateUtils.convertDate(orderParam.getLeaveDate(), DateUtils.DATE_PATTERN)));//住店日期 | |
302 | + } | |
303 | + product.setSellPrice(Long.toString(convertCents(orderParam.getProduct().getSellPrice())));//产品售卖价格,转换为分 | |
304 | + product.setTimeOfBookId(Long.toString(orderParam.getProduct().getTimeOfBookId())); | |
305 | + //product.setSeatIds(orderParam.getProduct().getSeatIds()); | |
306 | + requestOrderInfo.setProduct(product); | |
307 | + //取票人信息 | |
308 | + CreatePaymentOrderRequestBody.OrderInfo.ContactPerson contactPerson = new CreatePaymentOrderRequestBody.OrderInfo.ContactPerson(); | |
309 | + contactPerson.setName(orderParam.getContactPerson().getName()); | |
310 | + contactPerson.setMobile(orderParam.getContactPerson().getPhone()); | |
311 | + contactPerson.setCredentials(orderParam.getContactPerson().getCredentials()); | |
312 | + CredentialsType credentialsType=CredentialsType.typeOf(orderParam.getContactPerson().getCredentialsType()); | |
313 | + contactPerson.setCredentialsType(OtaUtils.credentialsTypeStringMap.get(credentialsType) | |
314 | + ); | |
315 | + requestOrderInfo.setContactPerson(contactPerson); | |
316 | + //游玩人信息 | |
317 | + CreatePaymentOrderRequestBody.OrderInfo.VisitPerson visitPerson = new CreatePaymentOrderRequestBody.OrderInfo.VisitPerson(); | |
318 | + List<CreatePaymentOrderRequestBody.OrderInfo.VisitPerson.Person> persons = Lists.newArrayList(); | |
319 | + if (CollectionUtils.isNotEmpty(orderParam.getVisitPersons())) { | |
320 | + for (Person p : orderParam.getVisitPersons()) { | |
321 | + CreatePaymentOrderRequestBody.OrderInfo.VisitPerson.Person person = new CreatePaymentOrderRequestBody.OrderInfo.VisitPerson.Person(); | |
322 | + person.setName(p.getName()); | |
323 | + person.setMobile(p.getPhone()); | |
324 | + person.setCredentials(p.getCredentials()); | |
325 | + CredentialsType ct=CredentialsType.typeOf(p.getCredentialsType()); | |
326 | + person.setCredentialsType(OtaUtils.credentialsTypeStringMap.get(ct) | |
327 | + ); | |
328 | + persons.add(person); | |
329 | + } | |
330 | + } | |
331 | + visitPerson.setPerson(persons); | |
332 | + requestOrderInfo.setVisitPerson(visitPerson); | |
333 | + OrderStatusType orderStatusType=OrderStatusType.ORDER_RESERVE_SUCCESSFUL; | |
334 | + //订单票数 | |
335 | + requestOrderInfo.setOrderQuantity(orderParam.getOrderQuantity().toString()); | |
336 | + //订单金额 | |
337 | + requestOrderInfo.setOrderPrice(Long.toString(convertCents(orderParam.getOrderPrice()))); | |
338 | + //只支持预付 | |
339 | + requestOrderInfo.setOrderStatus(OtaUtils.prepayOrderStatusTypeStringMap.get(orderStatusType)); | |
340 | + requestBody.setOrderInfo(requestOrderInfo); | |
341 | + return commonApi(accountParam,requestBody,OtaUtils.CREATE_PAY_ORDER); | |
342 | + } | |
343 | + | |
344 | + //<!=============================通用请求====================================!> | |
345 | + public static Result commonApi(AccountParam account,RequestBody requestBody,String method){ | |
346 | + ApiMethodType methodType=ApiMethodType.typeOf(method); | |
347 | + | |
348 | + CommonReturn data=new CommonReturn(); | |
349 | + | |
350 | + Date dateTimeStart = new Date(); //开始时间 | |
351 | + data.setRequestTime(DateUtils.formatDate(dateTimeStart,DateUtils.DATETIME_PATTERN)); | |
352 | + | |
353 | + Map<String, Object> mapRequest = parseRequest(requestBody,account.getDistributorName(), account.getIdentity(), account.getKey(),account.getSecurityType()); | |
354 | + | |
355 | + //定义请求的报文 | |
356 | + String requestXml = (String) mapRequest.get(OtaUtils.REQUEST_XML); | |
357 | + JSONObject requestJson = (JSONObject) mapRequest.get(OtaUtils.REQUEST_JSON_OBJECT); | |
358 | + | |
359 | + Result<String> resultSend = sendData(account.getUrl(), method, | |
360 | + requestJson.toJSONString()); | |
361 | + if (!resultSend.isSuccess()) { | |
362 | + return Result.error(resultSend.getThrowable(), resultSend.getDescription()); | |
363 | + } | |
364 | + | |
365 | + String response = resultSend.getData(); | |
366 | + | |
367 | + //返回报文 | |
368 | + String responseXml = getResponseXml(response,account.getKey(),account.getSecurityType()); | |
369 | + | |
370 | + Date dateTimeEnd = new Date(); //结束时间 | |
371 | + data.setResponseTime(DateUtils.formatDate(dateTimeEnd,DateUtils.DATETIME_PATTERN)); | |
372 | + //记录日志 | |
373 | + data.setRequestJson(requestJson); | |
374 | + data.setRequestXml(requestXml); | |
375 | + | |
376 | + JSONObject res=JSONObject.parseObject(response); | |
377 | + if(res.get("xml")!=null){ | |
378 | + res.remove("xml"); | |
379 | + } | |
380 | + data.setResponseJson(res); | |
381 | + data.setResponseXml(responseXml); | |
382 | + data.setInterfaceType("整合营销接口"); | |
383 | + data.setInterfaceMethod(method); | |
384 | + data.setDescription(methodType.getName()); | |
385 | + //解析报文 | |
386 | + Map map = xmlToBean(responseXml, new ResponseHeader(), new CreateOrderResponseBody()); | |
387 | + ResponseHeader header = (ResponseHeader) map.get(OtaUtils.DOM_HEADER); | |
388 | + // 判定header返回值,是否为1000 | |
389 | + String codeResponse = header.getCode(); | |
390 | + if (!OtaUtils.SUCCESS_CODE.equals(codeResponse)) { | |
391 | + data.setApiStatus(false); | |
392 | + }else{ | |
393 | + data.setApiStatus(true); | |
394 | + if(method.equals(ApiMethodType.CREATE_ORDER.getType())) { | |
395 | + CreateOrderResponseBody responseBody = (CreateOrderResponseBody) map.get(OtaUtils.DOM_BODY); | |
396 | + data.setCytOrderCode(responseBody.getOrderInfo().getPartnerorderId()); | |
397 | + }else if(method.equals(ApiMethodType.CREATE_PAY_ORDER)){ | |
398 | + CreatePaymentOrderResponseBody responseBody = (CreatePaymentOrderResponseBody) map.get(OtaUtils.DOM_BODY); | |
399 | + data.setCytOrderCode(responseBody.getOrderInfo().getPartnerorderId()); | |
400 | + } | |
401 | + } | |
402 | + return Result.success(data); | |
403 | + } | |
404 | + | |
405 | + //<!=============================工具类或通用方法====================================!> | |
406 | + public static String formatDate(Date date) { | |
407 | + return DateFormatUtils.format(date, DateUtils.DATE_PATTERN); | |
408 | + } | |
409 | + | |
410 | + public static long convertCents(double money) { | |
411 | + return BigDecimalUtils.amplify2long(money, 2); | |
412 | + } | |
413 | + | |
414 | + /* | |
415 | + 发送数据 | |
416 | + */ | |
417 | + private static Result<String> sendData(String url, String method, String requestJson) { | |
418 | + String response = ""; | |
419 | + HttpClient client = new HttpClient(); | |
420 | + | |
421 | + //Platfrom_sign platfrom_sign=Platfrom_sign.typeOf(platfrom_sign_type); | |
422 | + //PostMethod postMethod = new UTF8PostMethod(platfrom_sign.getName() + ota_api_method_url); | |
423 | + PostMethod postMethod = new UTF8PostMethod(url); | |
424 | + | |
425 | + postMethod.addParameter("Connection", "Keep-Alive"); | |
426 | + postMethod.addParameter("Charset", OtaUtils.ENCODE_UTF8); | |
427 | + postMethod.addParameter("Content-Type", "application/x-www-form-urlencoded"); | |
428 | + postMethod.getParams().setParameter(HttpMethodParams.SO_TIMEOUT, 30000);//30S超时 | |
429 | + | |
430 | + List<Parameter> params = new ArrayList<Parameter>(); | |
431 | + params.add(new Parameter("method", method)); | |
432 | + params.add(new Parameter("requestParam", requestJson)); | |
433 | + postMethod.setRequestBody(buildNameValuePair(params)); | |
434 | + | |
435 | + try { | |
436 | + /*java.net.URL endpointURL = new java.net.URL(url); | |
437 | + CytDataServiceSoapBindingStub ssl = new CytDataServiceSoapBindingStub(endpointURL, null); | |
438 | + ssl.setMaintainSession(true); | |
439 | + String responseString = ssl.doCYTRequest(method, requestJson); | |
440 | + return Result.success(responseString);*/ | |
441 | + int statusCode = client.executeMethod(postMethod); | |
442 | + if (statusCode == HttpStatus.SC_OK) { | |
443 | + response = postMethod.getResponseBodyAsString(); | |
444 | + } else { | |
445 | + throw new IOException("Http Post Exception Of Code: " + statusCode); | |
446 | + } | |
447 | + postMethod.releaseConnection(); | |
448 | + client = null; | |
449 | + | |
450 | + return Result.success(response); | |
451 | + } | |
452 | + //PMS数据发送异常,将异常信息返回 | |
453 | + catch (Exception e) { | |
454 | + if(e instanceof SocketTimeoutException){ | |
455 | + return Result.error(e, "畅游通网络超时,请稍后再试."); | |
456 | + } | |
457 | + return Result.error(e, "自测平台请求["+method+"]接口发生异常."+e.getMessage()); | |
458 | + } | |
459 | + } | |
460 | + | |
461 | + private static org.apache.commons.httpclient.NameValuePair[] buildNameValuePair(List<Parameter> list) { | |
462 | + int length = list.size(); | |
463 | + org.apache.commons.httpclient.NameValuePair[] pais = new org.apache.commons.httpclient.NameValuePair[length]; | |
464 | + for (int i = 0; i < length; i++) { | |
465 | + Parameter param = list.get(i); | |
466 | + pais[i] = new org.apache.commons.httpclient.NameValuePair(param.getName(), param.getValue()); | |
467 | + } | |
468 | + return pais; | |
469 | + } | |
470 | + | |
471 | + /* | |
472 | + * 对象转XML | |
473 | + */ | |
474 | + private static String beanToXml(RequestBody requestBody, String distributorName, String supplierIdentity) { | |
475 | + try { | |
476 | + RequestHeader header = new RequestHeader(); | |
477 | + header.setApplication("tour.ectrip.com"); | |
478 | + header.setProcessor("DataExchangeProcessor"); | |
479 | + header.setVersion("1.0.0"); | |
480 | + header.setCreateUser(distributorName); | |
481 | + header.setCreateTime(DateUtils.formatDate(new Date(),DateUtils.DATETIME_PATTERN)); | |
482 | + header.setSupplierIdentity(supplierIdentity); | |
483 | + | |
484 | + return XmlParseUtil.beanToXML(requestBody, header, OtaUtils.ECTRIP); | |
485 | + } catch (Throwable throwable) { | |
486 | + throw new BusinessException(throwable); | |
487 | + } | |
488 | + } | |
489 | + | |
490 | + /* | |
491 | + * XML转成map对象 | |
492 | + */ | |
493 | + private static Map xmlToBean(String xml, Object head, Object body) { | |
494 | + try { | |
495 | + return XmlParseUtil.xmlToBean(xml, head, body); | |
496 | + } | |
497 | + //XML解析异常 | |
498 | + catch (Exception e) { | |
499 | + e.printStackTrace(); | |
500 | + throw new BusinessException(e); | |
501 | + } | |
502 | + } | |
503 | + | |
504 | + public static Map<String, Object> parseRequest(RequestBody requestBody, | |
505 | + String distributorName, | |
506 | + String supplierIdentity, | |
507 | + String key, | |
508 | + String securityType) { | |
509 | + String requestXml = beanToXml(requestBody, distributorName, supplierIdentity); | |
510 | + | |
511 | + JSONObject requestJSON = new JSONObject(); | |
512 | + | |
513 | + if(StringUtils.isBlank(securityType)){ | |
514 | + //默认MD5加密 | |
515 | + securityType = OtaUtils.SECURITY_MD5; | |
516 | + } | |
517 | + securityType = securityType.toUpperCase(); | |
518 | + | |
519 | + String requestData; | |
520 | + if(securityType.equals(OtaUtils.SECURITY_MD5)){ | |
521 | + String responseSigned = EncryptUtil.MD5Hex(key + requestXml).toUpperCase(); | |
522 | + requestJSON.put(OtaUtils.JSON_SIGNED, responseSigned); | |
523 | + | |
524 | + byte[] requestByte = requestXml.getBytes(Charset.forName(OtaUtils.ENCODE_UTF8)); | |
525 | + requestData = Base64Utils.encode(requestByte); | |
526 | + }else{ | |
527 | + String iv = SecurityTools.generatorIv(); | |
528 | + if(securityType.equals(OtaUtils.SECURITY_AES_CBC)){ | |
529 | + requestData = AesTools.encryptCBC(requestXml,key,iv); | |
530 | + }else if(securityType.equals(OtaUtils.SECURITY_SM4_CBC)){ | |
531 | + requestData = SM4Tools.encryptCBC(requestXml,key,iv); | |
532 | + }else{ | |
533 | + throw new BusinessException("不支持的加密算法!"); | |
534 | + } | |
535 | + requestJSON.put(OtaUtils.JSON_IV, iv); | |
536 | + requestJSON.put(OtaUtils.JSON_CREATEUSER,distributorName); | |
537 | + } | |
538 | + | |
539 | + requestJSON.put(OtaUtils.JSON_DATA, requestData); | |
540 | + requestJSON.put(OtaUtils.JSON_SECURITY_TYPE,securityType); | |
541 | + | |
542 | + //返回结果 | |
543 | + Map<String, Object> mapResult = Maps.newHashMap(); | |
544 | + mapResult.put(OtaUtils.REQUEST_XML, requestXml); | |
545 | + mapResult.put(OtaUtils.REQUEST_JSON_OBJECT, requestJSON); | |
546 | + return mapResult; | |
547 | + } | |
548 | + | |
549 | + /* | |
550 | + 获得返回的xml字符串 | |
551 | + */ | |
552 | + private static String getResponseXml(String responseJson, String key,String securityType) { | |
553 | + JSONObject jsonObject = JSONObject.parseObject(responseJson); | |
554 | + Object dataObject = jsonObject.get(OtaUtils.JSON_DATA); | |
555 | + Object signedObject = jsonObject.get(OtaUtils.JSON_SIGNED); | |
556 | + Object ivObject = jsonObject.get(OtaUtils.JSON_IV); | |
557 | + //String securityType = jsonObject.get(OtaUtils.JSON_SECURITY_TYPE).toString(); | |
558 | + | |
559 | + if(dataObject == null && dataObject.toString().equals("")){ | |
560 | + throw new BusinessException("data返回为空"); | |
561 | + } | |
562 | + | |
563 | + String data = dataObject.toString(); | |
564 | + String xml; | |
565 | + if (OtaUtils.SECURITY_MD5.equals(securityType)) { | |
566 | + if(signedObject == null || signedObject.toString().equals("")){ | |
567 | + throw new BusinessException("signed返回为空"); | |
568 | + } | |
569 | + String signed = signedObject.toString(); | |
570 | + | |
571 | + String signedEncryption = EncryptUtil.MD5Hex(key + data).toUpperCase(); | |
572 | + if (!signedEncryption.equalsIgnoreCase(signed)) { | |
573 | + throw new BusinessException("签证验证不通过"); | |
574 | + } | |
575 | + | |
576 | + try { | |
577 | + byte[] xmlByte = Base64Utils.decode(data); | |
578 | + xml = new String(xmlByte,OtaUtils.ENCODE_UTF8); | |
579 | + } catch (UnsupportedEncodingException e) { | |
580 | + e.printStackTrace(); | |
581 | + throw new BusinessException("Base64解密失败"); | |
582 | + } | |
583 | + | |
584 | + } else { | |
585 | + if(ivObject == null || ivObject.toString().equals("")){ | |
586 | + throw new BusinessException("iv返回为空"); | |
587 | + } | |
588 | + String iv = ivObject.toString(); | |
589 | + | |
590 | + if (securityType.equals(OtaUtils.SECURITY_AES_CBC)) { | |
591 | + xml = AesTools.decryptCBC(data,key,iv); | |
592 | + }else if (securityType.equals(OtaUtils.SECURITY_SM4_CBC)) { | |
593 | + xml = SM4Tools.decryptCBC(data,key,iv); | |
594 | + }else { | |
595 | + throw new BusinessException("不支持的加密算法"); | |
596 | + } | |
597 | + } | |
598 | + return xml; | |
599 | + } | |
600 | + | |
601 | + | |
602 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/config/DruidConfig.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/config/DruidConfig.java | |
1 | +package com.ectrip.cyt.config; | |
2 | + | |
3 | +import com.alibaba.druid.pool.DruidDataSource; | |
4 | +import org.springframework.boot.context.properties.ConfigurationProperties; | |
5 | +import org.springframework.context.annotation.Bean; | |
6 | +import org.springframework.context.annotation.Configuration; | |
7 | + | |
8 | +import javax.sql.DataSource; | |
9 | + | |
10 | +/** | |
11 | + * Created by chenxinhao on 2018/11/2. | |
12 | + */ | |
13 | +@Configuration | |
14 | +public class DruidConfig { | |
15 | + | |
16 | + @Bean | |
17 | + @ConfigurationProperties(prefix = "spring.datasource") | |
18 | + public DataSource druidDataSource() { | |
19 | + return new DruidDataSource(); | |
20 | + } | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/config/Swagger2.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/config/Swagger2.java | |
1 | +package com.ectrip.cyt.config; | |
2 | + | |
3 | +import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI; | |
4 | +import org.springframework.context.annotation.Bean; | |
5 | +import org.springframework.context.annotation.Configuration; | |
6 | +import springfox.documentation.builders.ApiInfoBuilder; | |
7 | +import springfox.documentation.builders.PathSelectors; | |
8 | +import springfox.documentation.builders.RequestHandlerSelectors; | |
9 | +import springfox.documentation.service.ApiInfo; | |
10 | +import springfox.documentation.spi.DocumentationType; | |
11 | +import springfox.documentation.spring.web.plugins.Docket; | |
12 | +import springfox.documentation.swagger2.annotations.EnableSwagger2; | |
13 | + | |
14 | +/** | |
15 | + * Created by chenxinhao on 2019-10-16. | |
16 | + */ | |
17 | +@Configuration | |
18 | +@EnableSwagger2 | |
19 | +@EnableSwaggerBootstrapUI | |
20 | +public class Swagger2 { | |
21 | + | |
22 | + /** | |
23 | + * 通过 createRestApi函数来构建一个DocketBean | |
24 | + * 函数名,可以随意命名,喜欢什么命名就什么命名 | |
25 | + */ | |
26 | + @Bean | |
27 | + public Docket createRestApi() { | |
28 | + return new Docket(DocumentationType.SWAGGER_2) | |
29 | + .apiInfo(apiInfo())//调用apiInfo方法,创建一个ApiInfo实例,里面是展示在文档页面信息内容 | |
30 | + .select() | |
31 | + //控制暴露出去的路径下的实例 | |
32 | + //如果某个接口不想暴露,可以使用以下注解 | |
33 | + //@ApiIgnore 这样,该接口就不会暴露在 swagger2 的页面下 | |
34 | + .apis(RequestHandlerSelectors.basePackage("com.ectrip.cyt.controller")) | |
35 | + .paths(PathSelectors.any()) | |
36 | + .build(); | |
37 | + } | |
38 | + | |
39 | + //构建 api文档的详细信息函数 | |
40 | + private ApiInfo apiInfo() { | |
41 | + return new ApiInfoBuilder() | |
42 | + //页面标题 | |
43 | + .title("整合营销-自测接口平台") | |
44 | + //条款地址 | |
45 | + .termsOfServiceUrl("http://despairyoke.github.io/") | |
46 | + .version("1.0") | |
47 | + //描述 | |
48 | + .description("接口文档") | |
49 | + .build(); | |
50 | + } | |
51 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/controller/TdosApiController.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/controller/TdosApiController.java | |
1 | +package com.ectrip.cyt.controller; | |
2 | + | |
3 | +import com.alibaba.fastjson.JSONObject; | |
4 | +import com.ectrip.cyt.client.cyt.service.TdosApiClient; | |
5 | +import com.ectrip.cyt.model.*; | |
6 | +import com.ectrip.cyt.model.Request; | |
7 | +import com.ectrip.cyt.model.param.AccountParam; | |
8 | +import com.ectrip.cyt.model.param.CreateOrderParam; | |
9 | +import com.ectrip.cyt.model.param.ProductParam; | |
10 | +import com.ectrip.cyt.model.pojo.Person; | |
11 | +import com.ectrip.cyt.model.result.AjaxResult; | |
12 | +import com.ectrip.cyt.model.result.Result; | |
13 | +import com.ectrip.cyt.model.rt.CommonReturn; | |
14 | +import com.ectrip.cyt.model.rt.PushOrderRequest; | |
15 | +import com.ectrip.cyt.utils.DateUtils; | |
16 | +import com.ectrip.cyt.utils.UUIDTools; | |
17 | +import io.swagger.annotations.Api; | |
18 | +import io.swagger.annotations.ApiOperation; | |
19 | +import org.apache.commons.lang3.StringUtils; | |
20 | +import org.springframework.validation.BindingResult; | |
21 | +import org.springframework.web.bind.annotation.*; | |
22 | +import org.springframework.web.bind.annotation.RequestBody; | |
23 | +import org.springframework.web.bind.annotation.ResponseBody; | |
24 | + | |
25 | +import javax.validation.Valid; | |
26 | +import java.util.*; | |
27 | + | |
28 | +@RestController | |
29 | +@RequestMapping(value = "/tdos") | |
30 | +@Api(value = "整合营销OTA自测接口",tags = {"整合营销OTA自测接口"}) | |
31 | +public class TdosApiController { | |
32 | + @ApiOperation(value = "心跳检测接口",notes = "心跳检测接口") | |
33 | + @ResponseBody | |
34 | + @PostMapping("/heartBeat") | |
35 | + public AjaxResult heartBeat(@RequestBody @Valid Request request, BindingResult results) { | |
36 | + AjaxResult ajaxResult = new AjaxResult(); | |
37 | + ajaxResult.setSuccess(false); | |
38 | + try { | |
39 | + if (results.hasErrors()) { | |
40 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
41 | + return ajaxResult; | |
42 | + } | |
43 | + Result result=TdosApiClient.heartBeat(request.getAccount()); | |
44 | + if(result.isSuccess()) { | |
45 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
46 | + ajaxResult.setSuccess(true); | |
47 | + ajaxResult.setDescription("接口联通成功"); | |
48 | + ajaxResult.setData(commonReturn); | |
49 | + }else{ | |
50 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
51 | + } | |
52 | + } catch (Exception e) { | |
53 | + e.printStackTrace(); | |
54 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
55 | + } | |
56 | + return ajaxResult; | |
57 | + } | |
58 | + | |
59 | + | |
60 | + @ApiOperation(value = "查询用户余额",notes = "获取产品接口") | |
61 | + @ResponseBody | |
62 | + @PostMapping("/getBalance") | |
63 | + public AjaxResult getBalance(@RequestBody @Valid Request request, BindingResult results) { | |
64 | + AjaxResult ajaxResult = new AjaxResult(); | |
65 | + ajaxResult.setSuccess(false); | |
66 | + try { | |
67 | + if (results.hasErrors()) { | |
68 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
69 | + return ajaxResult; | |
70 | + } | |
71 | + //判断方法类型 | |
72 | + StringBuffer errorMsg=new StringBuffer(); | |
73 | + if(StringUtils.isNotBlank(errorMsg)){ | |
74 | + ajaxResult.setDescription(errorMsg.toString()); | |
75 | + return ajaxResult; | |
76 | + } | |
77 | + Result result=TdosApiClient.getBalance(request.getAccount()); | |
78 | + if(result.isSuccess()) { | |
79 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
80 | + ajaxResult.setSuccess(true); | |
81 | + ajaxResult.setDescription("接口联通成功"); | |
82 | + ajaxResult.setData(commonReturn); | |
83 | + }else{ | |
84 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
85 | + } | |
86 | + } catch (Exception e) { | |
87 | + e.printStackTrace(); | |
88 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
89 | + } | |
90 | + return ajaxResult; | |
91 | + } | |
92 | + | |
93 | + @ApiOperation(value = "获取景区接口",notes = "获取景区接口") | |
94 | + @ResponseBody | |
95 | + @PostMapping("/queryPois") | |
96 | + public AjaxResult queryPois(@RequestBody @Valid Request request, BindingResult results) { | |
97 | + AjaxResult ajaxResult = new AjaxResult(); | |
98 | + ajaxResult.setSuccess(false); | |
99 | + try { | |
100 | + if (results.hasErrors()) { | |
101 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
102 | + return ajaxResult; | |
103 | + } | |
104 | + Result result=TdosApiClient.queryPois(request.getAccount()); | |
105 | + if(result.isSuccess()) { | |
106 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
107 | + ajaxResult.setSuccess(true); | |
108 | + ajaxResult.setDescription("接口联通成功"); | |
109 | + ajaxResult.setData(commonReturn); | |
110 | + }else{ | |
111 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
112 | + } | |
113 | + } catch (Exception e) { | |
114 | + e.printStackTrace(); | |
115 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
116 | + } | |
117 | + return ajaxResult; | |
118 | + } | |
119 | + | |
120 | + | |
121 | + @ApiOperation(value = "获取产品接口",notes = "获取产品接口") | |
122 | + @ResponseBody | |
123 | + @PostMapping("/queryProducts") | |
124 | + public AjaxResult queryProducts(@RequestBody @Valid GetProductRequest request, BindingResult results) { | |
125 | + AjaxResult ajaxResult = new AjaxResult(); | |
126 | + ajaxResult.setSuccess(false); | |
127 | + try { | |
128 | + if (results.hasErrors()) { | |
129 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
130 | + return ajaxResult; | |
131 | + } | |
132 | + //判断方法类型 | |
133 | + StringBuffer errorMsg=new StringBuffer(); | |
134 | + if(StringUtils.isBlank(request.getQueryProducts().getResourceId())){ | |
135 | + if(request.getQueryProducts().getCurrentPage()==null){ | |
136 | + errorMsg.append("查询所有可分销商品时,未设置页数"); | |
137 | + }else{ | |
138 | + if(request.getQueryProducts().getCurrentPage()<=0){ | |
139 | + errorMsg.append("查询所有可分销商品时,设置页数必须大于0"); | |
140 | + } | |
141 | + } | |
142 | + if(request.getQueryProducts().getPageSize()==null){ | |
143 | + errorMsg.append("查询所有可分销商品时,未设置每页条数"); | |
144 | + }else{ | |
145 | + if(request.getQueryProducts().getPageSize()>5||request.getQueryProducts().getPageSize()<=0){ | |
146 | + errorMsg.append("查询所有可分销商品时,每页条数范围在[1,5]内"); | |
147 | + } | |
148 | + } | |
149 | + } | |
150 | + | |
151 | + if(StringUtils.isNotBlank(errorMsg)){ | |
152 | + ajaxResult.setDescription(errorMsg.toString()); | |
153 | + return ajaxResult; | |
154 | + } | |
155 | + | |
156 | + /*if(request.getQueryProducts().getMethod().equals("SINGLE")){ | |
157 | + if(!StringUtils.isBlank(request.getQueryProducts().getResourceId())){ | |
158 | + ajaxResult.setDescription("获取产品方法为单个时, 产品ID必填"); | |
159 | + return ajaxResult; | |
160 | + } | |
161 | + }*/ | |
162 | + Result result=TdosApiClient.queryProducts(request.getQueryProducts(),request.getAccount()); | |
163 | + if(result.isSuccess()) { | |
164 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
165 | + ajaxResult.setSuccess(true); | |
166 | + ajaxResult.setDescription("接口联通成功"); | |
167 | + ajaxResult.setData(commonReturn); | |
168 | + }else{ | |
169 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
170 | + } | |
171 | + } catch (Exception e) { | |
172 | + e.printStackTrace(); | |
173 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
174 | + } | |
175 | + return ajaxResult; | |
176 | + } | |
177 | + | |
178 | + @ApiOperation(value = "获取库存接口",notes = "获取库存接口") | |
179 | + @ResponseBody | |
180 | + @PostMapping("/queryStock") | |
181 | + public AjaxResult queryStock(@RequestBody @Valid GetStockRequest request, BindingResult results) { | |
182 | + AjaxResult ajaxResult = new AjaxResult(); | |
183 | + ajaxResult.setSuccess(false); | |
184 | + try { | |
185 | + if (results.hasErrors()) { | |
186 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
187 | + return ajaxResult; | |
188 | + } | |
189 | + Result result=TdosApiClient.queryStockAndTsds(request.getGetStockParam(),request.getAccount()); | |
190 | + if(result.isSuccess()) { | |
191 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
192 | + ajaxResult.setSuccess(true); | |
193 | + ajaxResult.setDescription("接口联通成功"); | |
194 | + ajaxResult.setData(commonReturn); | |
195 | + }else{ | |
196 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
197 | + } | |
198 | + } catch (Exception e) { | |
199 | + e.printStackTrace(); | |
200 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
201 | + } | |
202 | + return ajaxResult; | |
203 | + } | |
204 | + | |
205 | + /*@ApiOperation(value = "获取座位接口",notes = "获取座位接口") | |
206 | + @ResponseBody | |
207 | + @PostMapping("/querySeatList") | |
208 | + public AjaxResult querySeatList(@RequestBody @Valid GetSeatRequset request, BindingResult results) { | |
209 | + AjaxResult ajaxResult = new AjaxResult(); | |
210 | + ajaxResult.setSuccess(false); | |
211 | + try { | |
212 | + if (results.hasErrors()) { | |
213 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
214 | + return ajaxResult; | |
215 | + } | |
216 | + Result result=TdosApiClient.querySeatList(request.getGetSeatParam(),request.getAccount()); | |
217 | + if(result.isSuccess()) { | |
218 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
219 | + ajaxResult.setSuccess(true); | |
220 | + ajaxResult.setDescription("接口联通成功"); | |
221 | + ajaxResult.setData(commonReturn); | |
222 | + }else{ | |
223 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
224 | + } | |
225 | + } catch (Exception e) { | |
226 | + e.printStackTrace(); | |
227 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
228 | + } | |
229 | + return ajaxResult; | |
230 | + }*/ | |
231 | + | |
232 | + @ApiOperation(value = "重发短信接口",notes = "重发短信接口") | |
233 | + @ResponseBody | |
234 | + @PostMapping("/sendOrderEticket") | |
235 | + public AjaxResult sendOrderEticket(@RequestBody @Valid SendOrderEticketRequest request, BindingResult results) { | |
236 | + AjaxResult ajaxResult = new AjaxResult(); | |
237 | + ajaxResult.setSuccess(false); | |
238 | + try { | |
239 | + if (results.hasErrors()) { | |
240 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
241 | + return ajaxResult; | |
242 | + } | |
243 | + Result result=TdosApiClient.sendOrderEticket(request.getParam(),request.getAccount()); | |
244 | + if(result.isSuccess()) { | |
245 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
246 | + ajaxResult.setSuccess(true); | |
247 | + ajaxResult.setDescription("接口联通成功"); | |
248 | + ajaxResult.setData(commonReturn); | |
249 | + }else{ | |
250 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
251 | + } | |
252 | + } catch (Exception e) { | |
253 | + e.printStackTrace(); | |
254 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
255 | + } | |
256 | + return ajaxResult; | |
257 | + } | |
258 | + | |
259 | + @ApiOperation(value = "下单接口",notes = "下单接口") | |
260 | + @ResponseBody | |
261 | + @PostMapping("/createOrder") | |
262 | + public AjaxResult createOrder(@RequestBody @Valid CreateOrderRequest request, BindingResult results) { | |
263 | + AjaxResult ajaxResult = new AjaxResult(); | |
264 | + ajaxResult.setSuccess(false); | |
265 | + try { | |
266 | + if (results.hasErrors()) { | |
267 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
268 | + return ajaxResult; | |
269 | + } | |
270 | + Result result=TdosApiClient.createOrder(request.getCreateOrder(),request.getAccount()); | |
271 | + if(result.isSuccess()) { | |
272 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
273 | + ajaxResult.setSuccess(true); | |
274 | + ajaxResult.setDescription("接口联通成功"); | |
275 | + ajaxResult.setData(commonReturn); | |
276 | + }else{ | |
277 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
278 | + } | |
279 | + } catch (Exception e) { | |
280 | + e.printStackTrace(); | |
281 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
282 | + } | |
283 | + return ajaxResult; | |
284 | + } | |
285 | + | |
286 | + | |
287 | + @ApiOperation(value = "查询订单接口",notes = "查询订单接口") | |
288 | + @ResponseBody | |
289 | + @PostMapping("/queryOrder") | |
290 | + public AjaxResult queryOrder(@RequestBody @Valid QueryOrderRequest request, BindingResult results) { | |
291 | + AjaxResult ajaxResult = new AjaxResult(); | |
292 | + ajaxResult.setSuccess(false); | |
293 | + try { | |
294 | + if (results.hasErrors()) { | |
295 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
296 | + return ajaxResult; | |
297 | + } | |
298 | + //判断订单状态 | |
299 | + Result result=TdosApiClient.queryOrder(request.getQueryOrder(),request.getAccount()); | |
300 | + if(result.isSuccess()) { | |
301 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
302 | + ajaxResult.setSuccess(true); | |
303 | + ajaxResult.setDescription("接口联通成功"); | |
304 | + ajaxResult.setData(commonReturn); | |
305 | + }else{ | |
306 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
307 | + } | |
308 | + } catch (Exception e) { | |
309 | + e.printStackTrace(); | |
310 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
311 | + } | |
312 | + return ajaxResult; | |
313 | + } | |
314 | + | |
315 | + | |
316 | + @ApiOperation(value = "改签接口",notes = "改签接口") | |
317 | + @ResponseBody | |
318 | + @PostMapping("/pushOrder") | |
319 | + public AjaxResult pushOrder(@RequestBody @Valid PushOrderRequest request, BindingResult results) { | |
320 | + AjaxResult ajaxResult = new AjaxResult(); | |
321 | + ajaxResult.setSuccess(false); | |
322 | + try { | |
323 | + if (results.hasErrors()) { | |
324 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
325 | + return ajaxResult; | |
326 | + } | |
327 | + Result result=TdosApiClient.pushOrder(request.getPushOrder(),request.getAccount()); | |
328 | + if(result.isSuccess()) { | |
329 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
330 | + ajaxResult.setSuccess(true); | |
331 | + ajaxResult.setDescription("接口联通成功"); | |
332 | + ajaxResult.setData(commonReturn); | |
333 | + }else{ | |
334 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
335 | + } | |
336 | + } catch (Exception e) { | |
337 | + e.printStackTrace(); | |
338 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
339 | + } | |
340 | + return ajaxResult; | |
341 | + } | |
342 | + | |
343 | + @ApiOperation(value = "申请退订接口",notes = "申请退订接口") | |
344 | + @ResponseBody | |
345 | + @PostMapping("/refundOrder") | |
346 | + public AjaxResult refundOrder(@RequestBody @Valid RefundOrderRequest request, BindingResult results) { | |
347 | + AjaxResult ajaxResult = new AjaxResult(); | |
348 | + ajaxResult.setSuccess(false); | |
349 | + try { | |
350 | + if (results.hasErrors()) { | |
351 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
352 | + return ajaxResult; | |
353 | + } | |
354 | + Result result=TdosApiClient.applyOrderRefundByUser(request.getRefundOrder(),request.getAccount()); | |
355 | + if(result.isSuccess()) { | |
356 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
357 | + ajaxResult.setSuccess(true); | |
358 | + ajaxResult.setDescription("接口联通成功"); | |
359 | + ajaxResult.setData(commonReturn); | |
360 | + }else{ | |
361 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
362 | + } | |
363 | + } catch (Exception e) { | |
364 | + e.printStackTrace(); | |
365 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
366 | + } | |
367 | + return ajaxResult; | |
368 | + } | |
369 | + | |
370 | + @ApiOperation(value = "取消订单接口",notes = "取消订单接口") | |
371 | + @ResponseBody | |
372 | + @PostMapping("/cancelOrder") | |
373 | + public AjaxResult cancelOrder(@RequestBody @Valid CancelOrderRequest request, BindingResult results) { | |
374 | + AjaxResult ajaxResult = new AjaxResult(); | |
375 | + ajaxResult.setSuccess(false); | |
376 | + try { | |
377 | + if (results.hasErrors()) { | |
378 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
379 | + return ajaxResult; | |
380 | + } | |
381 | + Result result=TdosApiClient.cancelOrder(request.getCancelOrder(),request.getAccount()); | |
382 | + if(result.isSuccess()) { | |
383 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
384 | + ajaxResult.setSuccess(true); | |
385 | + ajaxResult.setDescription("接口联通成功"); | |
386 | + ajaxResult.setData(commonReturn); | |
387 | + }else{ | |
388 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
389 | + } | |
390 | + } catch (Exception e) { | |
391 | + e.printStackTrace(); | |
392 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
393 | + } | |
394 | + return ajaxResult; | |
395 | + } | |
396 | + | |
397 | + @ApiOperation(value = "支付接口",notes = "支付接口") | |
398 | + @ResponseBody | |
399 | + @PostMapping("/payOrder") | |
400 | + public AjaxResult payOrder(@RequestBody @Valid PayOrderRequest request, BindingResult results) { | |
401 | + AjaxResult ajaxResult = new AjaxResult(); | |
402 | + ajaxResult.setSuccess(false); | |
403 | + try { | |
404 | + if (results.hasErrors()) { | |
405 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
406 | + return ajaxResult; | |
407 | + } | |
408 | + Result result=TdosApiClient.payOrder(request.getPayOrder(),request.getAccount()); | |
409 | + if(result.isSuccess()) { | |
410 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
411 | + ajaxResult.setSuccess(true); | |
412 | + ajaxResult.setDescription("接口联通成功"); | |
413 | + ajaxResult.setData(commonReturn); | |
414 | + }else{ | |
415 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
416 | + } | |
417 | + } catch (Exception e) { | |
418 | + e.printStackTrace(); | |
419 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
420 | + } | |
421 | + return ajaxResult; | |
422 | + } | |
423 | + | |
424 | + @ApiOperation(value = "下单前校验接口",notes = "下单前校验接口") | |
425 | + @ResponseBody | |
426 | + @PostMapping("/checkOrder") | |
427 | + public AjaxResult checkOrder(@RequestBody @Valid CreateOrderRequest request, BindingResult results) { | |
428 | + AjaxResult ajaxResult = new AjaxResult(); | |
429 | + ajaxResult.setSuccess(false); | |
430 | + try { | |
431 | + if (results.hasErrors()) { | |
432 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
433 | + return ajaxResult; | |
434 | + } | |
435 | + Result result=TdosApiClient.checkOrder(request.getCreateOrder(),request.getAccount()); | |
436 | + if(result.isSuccess()) { | |
437 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
438 | + ajaxResult.setSuccess(true); | |
439 | + ajaxResult.setDescription("接口联通成功"); | |
440 | + ajaxResult.setData(commonReturn); | |
441 | + }else{ | |
442 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
443 | + } | |
444 | + } catch (Exception e) { | |
445 | + e.printStackTrace(); | |
446 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
447 | + } | |
448 | + return ajaxResult; | |
449 | + } | |
450 | + | |
451 | + @ApiOperation(value = "下单并支付接口",notes = "下单并支付接口") | |
452 | + @ResponseBody | |
453 | + @PostMapping("/createPaymentOrder") | |
454 | + public AjaxResult createPaymentOrder(@RequestBody @Valid CreateOrderRequest request, BindingResult results) { | |
455 | + AjaxResult ajaxResult = new AjaxResult(); | |
456 | + ajaxResult.setSuccess(false); | |
457 | + try { | |
458 | + if (results.hasErrors()) { | |
459 | + ajaxResult.setDescription("请求参数错误:"+results.getFieldError().getDefaultMessage()); | |
460 | + return ajaxResult; | |
461 | + } | |
462 | + Result result=TdosApiClient.createPaymentOrder(request.getCreateOrder(),request.getAccount()); | |
463 | + if(result.isSuccess()) { | |
464 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
465 | + ajaxResult.setSuccess(true); | |
466 | + ajaxResult.setDescription("接口联通成功"); | |
467 | + ajaxResult.setData(commonReturn); | |
468 | + }else{ | |
469 | + ajaxResult.setDescription("接口联通失败,错误原因:"+result.getDescription()); | |
470 | + } | |
471 | + } catch (Exception e) { | |
472 | + e.printStackTrace(); | |
473 | + ajaxResult.setDescription("接口联通异常!"+e.getMessage()); | |
474 | + } | |
475 | + return ajaxResult; | |
476 | + } | |
477 | + | |
478 | + @ApiOperation(value = "批量下单测试接口",notes = "批量下单测试接口") | |
479 | + @ResponseBody | |
480 | + @PostMapping("/testCreateOrders") | |
481 | + public Object testCreateOrders() { | |
482 | + JSONObject returnJson=new JSONObject(); | |
483 | + String otaCode = UUIDTools.get16UUID(); | |
484 | + returnJson.put("ota订单号",otaCode); | |
485 | + CreateOrderRequest request=new CreateOrderRequest(); | |
486 | + CreateOrderParam createOrder=new CreateOrderParam(); | |
487 | + createOrder.setOrderCode(otaCode); | |
488 | + createOrder.setVisitDate(DateUtils.formatDate(DateUtils.today())); | |
489 | + | |
490 | + ProductParam productParam=new ProductParam(); | |
491 | + productParam.setProductNo("21"); | |
492 | + productParam.setSellPrice(0.01); | |
493 | + createOrder.setProduct(productParam); | |
494 | + | |
495 | + createOrder.setOrderQuantity(2); | |
496 | + createOrder.setOrderPrice(createOrder.getOrderQuantity()*productParam.getSellPrice()); | |
497 | + | |
498 | + Person person=new Person(); | |
499 | + person.setName("测试A"); | |
500 | + person.setCredentialsType(0); | |
501 | + person.setCredentials("445222199608083833"); | |
502 | + person.setPhone("15622980172"); | |
503 | + | |
504 | + Person personB=new Person(); | |
505 | + personB.setName("测试B"); | |
506 | + personB.setCredentialsType(0); | |
507 | + personB.setCredentials("110101199003070476"); | |
508 | + personB.setPhone("15622980172"); | |
509 | + | |
510 | + List<Person> persons=new ArrayList<Person>(); | |
511 | + persons.add(person); | |
512 | + persons.add(personB); | |
513 | + | |
514 | + createOrder.setContactPerson(person); | |
515 | + createOrder.setVisitPersons(persons); | |
516 | + | |
517 | + AccountParam account=new AccountParam(); | |
518 | + account.setDistributorName("binFxs"); | |
519 | + account.setIdentity(""); | |
520 | + account.setKey("12345678"); | |
521 | + account.setUrl("http://127.0.0.1:8080/service_/distributor_.do"); | |
522 | + | |
523 | + request.setCreateOrder(createOrder); | |
524 | + request.setAccount(account); | |
525 | + | |
526 | + | |
527 | + AjaxResult ajaxResult = new AjaxResult(); | |
528 | + ajaxResult.setSuccess(false); | |
529 | + | |
530 | + String cytCode=""; | |
531 | + | |
532 | + try { | |
533 | + Result result=TdosApiClient.createPaymentOrder(request.getCreateOrder(),request.getAccount()); | |
534 | + if(result.isSuccess()) { | |
535 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
536 | + cytCode= commonReturn.getCytOrderCode(); | |
537 | + returnJson.put("畅游通订单号",cytCode); | |
538 | + returnJson.put("下单",commonReturn); | |
539 | + }else{ | |
540 | + return "下单接口联通失败,错误原因:"+result.getDescription(); | |
541 | + } | |
542 | + } catch (Exception e) { | |
543 | + e.printStackTrace(); | |
544 | + return"下单接口联通异常!"+e.getMessage(); | |
545 | + } | |
546 | + | |
547 | + /*PayOrderParam payOrderParam=new PayOrderParam(); | |
548 | + payOrderParam.setCytOrderCode(cytCode); | |
549 | + payOrderParam.setOrderPrice(createOrder.getOrderQuantity()*productParam.getSellPrice()); | |
550 | + | |
551 | + try { | |
552 | + Result result=TdosApiClient.payOrder(payOrderParam,request.getAccount()); | |
553 | + if(result.isSuccess()) { | |
554 | + CommonReturn commonReturn=(CommonReturn)result.getData(); | |
555 | + returnJson.put("支付",commonReturn); | |
556 | + }else{ | |
557 | + return "支付接口联通失败,错误原因:"+result.getDescription(); | |
558 | + } | |
559 | + } catch (Exception e) { | |
560 | + e.printStackTrace(); | |
561 | + return"支付接口联通异常!"+e.getMessage(); | |
562 | + }*/ | |
563 | + return returnJson; | |
564 | + } | |
565 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/exception/BusinessException.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/exception/BusinessException.java | |
1 | +package com.ectrip.cyt.exception; | |
2 | + | |
3 | +/** | |
4 | + * 业务异常信息 | |
5 | + * | |
6 | + * @author changjiang.tang Date:8/18/15 Time:5:33 PM | |
7 | + */ | |
8 | +public class BusinessException extends RuntimeException{ | |
9 | + | |
10 | + private static final long serialVersionUID = 6401507641198338287L; | |
11 | + | |
12 | + /** 异常代码 */ | |
13 | + protected String code; | |
14 | + | |
15 | + /** 异常消息 */ | |
16 | + protected String message; | |
17 | + | |
18 | + @Override | |
19 | + public String getMessage() { | |
20 | + return message; | |
21 | + } | |
22 | + | |
23 | + public void setMessage(String message) { | |
24 | + this.message = message; | |
25 | + } | |
26 | + | |
27 | + public String getCode() { | |
28 | + return code; | |
29 | + } | |
30 | + | |
31 | + public void setCode(String code) { | |
32 | + this.code = code; | |
33 | + } | |
34 | + | |
35 | + public BusinessException() { | |
36 | + super(); | |
37 | + } | |
38 | + | |
39 | + public BusinessException(String message) { | |
40 | + this("99999", message); | |
41 | + } | |
42 | + | |
43 | + public BusinessException(String code, String message) { | |
44 | + super(message); | |
45 | + this.code = code; | |
46 | + this.message = message; | |
47 | + } | |
48 | + | |
49 | + public BusinessException(String message, Throwable cause) { | |
50 | + this("99999", message, cause); | |
51 | + } | |
52 | + | |
53 | + public BusinessException(String code, String message, Throwable cause) { | |
54 | + super(message, cause); | |
55 | + this.code = code; | |
56 | + this.message = message; | |
57 | + } | |
58 | + | |
59 | + public BusinessException(Throwable cause) { | |
60 | + super(cause); | |
61 | + } | |
62 | + | |
63 | + @Override | |
64 | + public String toString() { | |
65 | + return "错误代码: " + code + ", 描述: " + message; | |
66 | + } | |
67 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/CancelOrderRequest.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/CancelOrderRequest.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.CancelOrderParam; | |
4 | +import com.ectrip.cyt.model.param.PayOrderParam; | |
5 | +import io.swagger.annotations.ApiModel; | |
6 | +import lombok.AllArgsConstructor; | |
7 | +import lombok.Data; | |
8 | +import lombok.NoArgsConstructor; | |
9 | + | |
10 | +import javax.validation.Valid; | |
11 | +import javax.validation.constraints.NotNull; | |
12 | + | |
13 | +@Data | |
14 | +@AllArgsConstructor | |
15 | +@NoArgsConstructor | |
16 | +@ApiModel(description = "取消订单参数") | |
17 | +public class CancelOrderRequest extends Request { | |
18 | + @Valid | |
19 | + @NotNull(message = "必须传入取消订单参数") | |
20 | + private CancelOrderParam cancelOrder; | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/CreateOrderRequest.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/CreateOrderRequest.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.CreateOrderParam; | |
4 | +import io.swagger.annotations.ApiModel; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.Valid; | |
10 | +import javax.validation.constraints.NotNull; | |
11 | + | |
12 | +@Data | |
13 | +@AllArgsConstructor | |
14 | +@NoArgsConstructor | |
15 | +@ApiModel(description = "下单请求参数") | |
16 | +public class CreateOrderRequest extends Request { | |
17 | + @Valid | |
18 | + @NotNull(message = "必须传入下单参数") | |
19 | + private CreateOrderParam createOrder; | |
20 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/GetProductRequest.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/GetProductRequest.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.GetProductParam; | |
4 | +import io.swagger.annotations.ApiModel; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.Valid; | |
10 | +import javax.validation.constraints.NotNull; | |
11 | + | |
12 | +@Data | |
13 | +@AllArgsConstructor | |
14 | +@NoArgsConstructor | |
15 | +@ApiModel(description = "获取产品参数") | |
16 | +public class GetProductRequest extends Request { | |
17 | + @Valid | |
18 | + @NotNull(message = "必须传入获取产品参数") | |
19 | + private GetProductParam queryProducts; | |
20 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/GetSeatRequset.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/GetSeatRequset.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.GetSeatParam; | |
4 | +import com.ectrip.cyt.model.param.GetStockParam; | |
5 | +import io.swagger.annotations.ApiModel; | |
6 | +import lombok.AllArgsConstructor; | |
7 | +import lombok.Data; | |
8 | +import lombok.NoArgsConstructor; | |
9 | + | |
10 | +import javax.validation.Valid; | |
11 | +import javax.validation.constraints.NotNull; | |
12 | + | |
13 | +@Data | |
14 | +@AllArgsConstructor | |
15 | +@NoArgsConstructor | |
16 | +@ApiModel(description = "获取座位参数") | |
17 | +public class GetSeatRequset extends Request { | |
18 | + @Valid | |
19 | + @NotNull(message = "必须传入座位参数") | |
20 | + private GetSeatParam getSeatParam; | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/GetStockRequest.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/GetStockRequest.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.GetProductParam; | |
4 | +import com.ectrip.cyt.model.param.GetStockParam; | |
5 | +import io.swagger.annotations.ApiModel; | |
6 | +import lombok.AllArgsConstructor; | |
7 | +import lombok.Data; | |
8 | +import lombok.NoArgsConstructor; | |
9 | + | |
10 | +import javax.validation.Valid; | |
11 | +import javax.validation.constraints.NotNull; | |
12 | + | |
13 | +@Data | |
14 | +@AllArgsConstructor | |
15 | +@NoArgsConstructor | |
16 | +@ApiModel(description = "获取产品参数") | |
17 | +public class GetStockRequest extends Request { | |
18 | + @Valid | |
19 | + @NotNull(message = "必须传入获取产品参数") | |
20 | + private GetStockParam getStockParam; | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/PayOrderRequest.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/PayOrderRequest.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.PayOrderParam; | |
4 | +import io.swagger.annotations.ApiModel; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.Valid; | |
10 | +import javax.validation.constraints.NotNull; | |
11 | + | |
12 | +@Data | |
13 | +@AllArgsConstructor | |
14 | +@NoArgsConstructor | |
15 | +@ApiModel(description = "支付订单参数") | |
16 | +public class PayOrderRequest extends Request { | |
17 | + @Valid | |
18 | + @NotNull(message = "必须传入支付订单参数") | |
19 | + private PayOrderParam payOrder; | |
20 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/QueryOrderRequest.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/QueryOrderRequest.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.QueryOrderParam; | |
4 | +import io.swagger.annotations.ApiModel; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.Valid; | |
10 | +import javax.validation.constraints.NotNull; | |
11 | + | |
12 | +@Data | |
13 | +@AllArgsConstructor | |
14 | +@NoArgsConstructor | |
15 | +@ApiModel(description = "查询订单参数") | |
16 | +public class QueryOrderRequest extends Request { | |
17 | + @Valid | |
18 | + @NotNull(message = "必须传入查询订单参数") | |
19 | + private QueryOrderParam queryOrder; | |
20 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/RefundOrderRequest.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/RefundOrderRequest.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.RefundOrderParam; | |
4 | +import io.swagger.annotations.ApiModel; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.Valid; | |
10 | +import javax.validation.constraints.NotNull; | |
11 | + | |
12 | +@Data | |
13 | +@AllArgsConstructor | |
14 | +@NoArgsConstructor | |
15 | +@ApiModel(description = "退订请求参数") | |
16 | +public class RefundOrderRequest extends Request { | |
17 | + @Valid | |
18 | + @NotNull(message = "必须传入退订参数") | |
19 | + private RefundOrderParam refundOrder; | |
20 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/Request.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/Request.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.AccountParam; | |
4 | +import lombok.AllArgsConstructor; | |
5 | +import lombok.Data; | |
6 | +import lombok.NoArgsConstructor; | |
7 | + | |
8 | + | |
9 | +import javax.validation.Valid; | |
10 | +import javax.validation.constraints.NotNull; | |
11 | + | |
12 | + | |
13 | +@Data | |
14 | +@AllArgsConstructor | |
15 | +@NoArgsConstructor | |
16 | +//通用请求参数 | |
17 | +public class Request { | |
18 | + @Valid | |
19 | + @NotNull(message = "必须传入分销用户信息") | |
20 | + private AccountParam account; | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/SendOrderEticketRequest.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/SendOrderEticketRequest.java | |
1 | +package com.ectrip.cyt.model; | |
2 | + | |
3 | +import com.ectrip.cyt.model.param.CreateOrderParam; | |
4 | +import com.ectrip.cyt.model.param.SendOrderEticketParam; | |
5 | +import io.swagger.annotations.ApiModel; | |
6 | +import lombok.AllArgsConstructor; | |
7 | +import lombok.Data; | |
8 | +import lombok.NoArgsConstructor; | |
9 | + | |
10 | +import javax.validation.Valid; | |
11 | +import javax.validation.constraints.NotNull; | |
12 | + | |
13 | +@Data | |
14 | +@AllArgsConstructor | |
15 | +@NoArgsConstructor | |
16 | +@ApiModel(description = "重发短信") | |
17 | +public class SendOrderEticketRequest extends Request { | |
18 | + @Valid | |
19 | + @NotNull(message = "必须传入下单参数") | |
20 | + private SendOrderEticketParam param; | |
21 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/enums/ApiMethodType.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/enums/ApiMethodType.java | |
1 | +package com.ectrip.cyt.model.enums; | |
2 | + | |
3 | +public enum ApiMethodType { | |
4 | + HEART_BEAT("heartBeat","同步订单"), | |
5 | + get_Balance("getBalance","获取余额"), | |
6 | + PUSH_ORDER("pushOrder","同步订单"), | |
7 | + CHECK_ORDER("checkOrder","下单前校验"), | |
8 | + GET_ORDER_BY_OTA("getOrderByOTA","查询订单信息"), | |
9 | + APPLY_ORDER_REFUND_BY_USER( "applyOrderRefundByUser","申请退订"), | |
10 | + CREATE_ORDER ("createOrder","创建订单"), | |
11 | + CREATE_PAY_ORDER ("createPaymentOrder","创建订单"), | |
12 | + PAY_ORDER ("payOrder","支付订单"), | |
13 | + CANCEL_ORDER ("cancelOrder","取消订单"), | |
14 | + GET_PRODUCT_BY_OTA("getProductByOTA","获取产品"), | |
15 | + GET_AVAILABLE_PRODUCT("getAvailableProduct","获取POI"), | |
16 | + GET_STOCK_PRODUCT_INFO("getStockProductInfo","获取库存"), | |
17 | + GET_SEAT_INFO("getSeatInfo","获取库存"), | |
18 | + SEND_ORDER_ETICKET("sendOrderEticket","重发短信"); | |
19 | + | |
20 | + /** | |
21 | + * 类型 | |
22 | + */ | |
23 | + private String type; | |
24 | + | |
25 | + /** | |
26 | + * 名称 | |
27 | + */ | |
28 | + private String name; | |
29 | + | |
30 | + /** | |
31 | + * 构造函数,枚举类型构造函数只能私有 | |
32 | + */ | |
33 | + ApiMethodType(String type, String name) { | |
34 | + this.type = type; | |
35 | + this.name = name; | |
36 | + } | |
37 | + | |
38 | + public String getType() { | |
39 | + return this.type; | |
40 | + } | |
41 | + | |
42 | + public String getName() { | |
43 | + return this.name; | |
44 | + } | |
45 | + | |
46 | + /** | |
47 | + * 根据类型获取枚举对象 | |
48 | + * | |
49 | + * @param type 枚举类型值 | |
50 | + * @return 枚举对象 | |
51 | + */ | |
52 | + public static ApiMethodType typeOf(String type) { | |
53 | + for(ApiMethodType apiMethodType : values()) { | |
54 | + if(apiMethodType.getType().equals(type)) { | |
55 | + return apiMethodType; | |
56 | + } | |
57 | + } | |
58 | + throw new IllegalArgumentException("Invalid ApiMethodType type: " + type); | |
59 | + } | |
60 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/enums/CredentialsType.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/enums/CredentialsType.java | |
1 | +package com.ectrip.cyt.model.enums; | |
2 | + | |
3 | +import java.util.HashMap; | |
4 | +import java.util.Map; | |
5 | + | |
6 | +/** | |
7 | + * 游客证件类型枚举:(身份证 : ID_CARD,护照 : HUZHAO,台胞证 : TAIBAO ,港澳通行证: GANGAO 其它:OTHER) | |
8 | + * Created by weiyu.huang on 2015/9/2. | |
9 | + */ | |
10 | +public enum CredentialsType { | |
11 | + | |
12 | + /** | |
13 | + * 身份证 | |
14 | + */ | |
15 | + ID_CARD(0, "身份证"), | |
16 | + | |
17 | + /** | |
18 | + * 护照 | |
19 | + */ | |
20 | + HUZHAO(1, "护照 PASSPORT"), | |
21 | + | |
22 | + /** | |
23 | + * 军官证 | |
24 | + */ | |
25 | + OFFICER(2, "军官证"), | |
26 | + | |
27 | + /** | |
28 | + * 台胞证 | |
29 | + */ | |
30 | + TAIBAO(3, "台胞证"), | |
31 | + | |
32 | + /** | |
33 | + * 港澳通行证 | |
34 | + */ | |
35 | + GANGAO(4, "港澳通行证"), | |
36 | + | |
37 | + /** | |
38 | + * 其它 | |
39 | + */ | |
40 | + OTHER(5, "其它"), | |
41 | + | |
42 | + /** | |
43 | + * 皈依证 | |
44 | + */ | |
45 | + GUIYI(6, "皈依证"), | |
46 | + | |
47 | + /** | |
48 | + * 学生证 | |
49 | + */ | |
50 | + STUDENT(7,"学生证"); | |
51 | + | |
52 | + /** | |
53 | + * 类型 | |
54 | + */ | |
55 | + private int type; | |
56 | + | |
57 | + /** | |
58 | + * 名称 | |
59 | + */ | |
60 | + private String name; | |
61 | + | |
62 | + /** | |
63 | + * 构造函数,枚举类型构造函数只能私有 | |
64 | + */ | |
65 | + CredentialsType(int type, String name) { | |
66 | + this.type = type; | |
67 | + this.name = name; | |
68 | + } | |
69 | + | |
70 | + public int getType() { | |
71 | + return this.type; | |
72 | + } | |
73 | + | |
74 | + public String getName() { | |
75 | + return this.name; | |
76 | + } | |
77 | + | |
78 | + /** | |
79 | + * 根据类型获取枚举对象 | |
80 | + * | |
81 | + * @param type 枚举类型值 | |
82 | + * @return 枚举对象 | |
83 | + */ | |
84 | + public static CredentialsType typeOf(int type) { | |
85 | + for(CredentialsType credentialsType : values()) { | |
86 | + if(credentialsType.getType() == type) { | |
87 | + return credentialsType; | |
88 | + } | |
89 | + } | |
90 | + throw new IllegalArgumentException("Invalid CredentialsType type: " + type); | |
91 | + } | |
92 | + | |
93 | + /** | |
94 | + * 枚举转成 Map | |
95 | + * @return Map | |
96 | + */ | |
97 | + public static Map<Integer, Object> convertToMap() { | |
98 | + Map<Integer, Object> map = new HashMap<Integer, Object>(); | |
99 | + for(CredentialsType credentialsType : values()) { | |
100 | + map.put(credentialsType.getType(), credentialsType.getName()); | |
101 | + } | |
102 | + return map; | |
103 | + } | |
104 | + | |
105 | + /** | |
106 | + * 判断是否存在该证件类型值 | |
107 | + * @param type 证件类型值 | |
108 | + * @return true/false | |
109 | + */ | |
110 | + public static boolean contains(int type) { | |
111 | + return CredentialsType.convertToMap().containsKey(type); | |
112 | + } | |
113 | + | |
114 | + @Override | |
115 | + public String toString() { | |
116 | + return "CredentialsType{" + | |
117 | + "type=" + type + | |
118 | + ", name='" + name + '\'' + | |
119 | + '}'; | |
120 | + } | |
121 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/enums/OrderStatusType.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/enums/OrderStatusType.java | |
1 | +package com.ectrip.cyt.model.enums; | |
2 | + | |
3 | +import java.util.ArrayList; | |
4 | +import java.util.HashMap; | |
5 | +import java.util.List; | |
6 | +import java.util.Map; | |
7 | + | |
8 | +/** | |
9 | + * 订单状态 | |
10 | + * @author Jiehao Ling, date:9/26/2015, time:11:24 AM | |
11 | + */ | |
12 | +public enum OrderStatusType { | |
13 | + | |
14 | + /** 订单状态 */ | |
15 | + ORDER_NOT_PAYED_YET ( 0 , "未付款"), | |
16 | + | |
17 | + ORDER_CANCELED ( 1 , "已取消"), | |
18 | + | |
19 | + ORDER_WAITING_CONFIRM ( 2 , "待确认"), | |
20 | + | |
21 | + ORDER_RESERVE_FAILED ( 3 , "预订失败"), | |
22 | + | |
23 | + ORDER_RESERVE_SUCCESSFUL ( 4 , "预订成功"), | |
24 | + | |
25 | + ORDER_CONSUMED(5, "已消费"), | |
26 | + | |
27 | + ORDER_REFUNDED(6, "已退款"), | |
28 | + | |
29 | + ORDER_CONSUME_CONFIRM(7,"消费待确认"), | |
30 | + | |
31 | + ORDER_REFUNDED_CONFIRM(8,"退订待确认"), | |
32 | + | |
33 | + ORDER_RESERVE_CONFIRM(9,"订单待确认"), | |
34 | + | |
35 | + ORDER_OVERDUE(10,"订单过期"), | |
36 | + | |
37 | + ORDER_EXCEPTION(11,"订单异常"), | |
38 | + | |
39 | + ORDER_REFUNDED_WAIT_AUDIT(12,"退订待审核"), | |
40 | + | |
41 | + LMM_ORDER_PUSH(13,"预定成功待推送"),//驴妈妈酒店订单异步用 | |
42 | + | |
43 | + ORDER_NOT_PUSH_SUCCESS(14,"订单未推送成功或已全退");//驴妈妈酒店订单异步用 | |
44 | + | |
45 | + OrderStatusType(int statusIndex, String statusName) { | |
46 | + this.statusIndex = statusIndex; | |
47 | + this.statusName = statusName; | |
48 | + } | |
49 | + | |
50 | + /** 状态下标 */ | |
51 | + private int statusIndex; | |
52 | + | |
53 | + /** 状态名称 */ | |
54 | + private String statusName; | |
55 | + | |
56 | + public int getStatusIndex() { | |
57 | + return statusIndex; | |
58 | + } | |
59 | + | |
60 | + public void setStatusIndex(int statusIndex) { | |
61 | + this.statusIndex = statusIndex; | |
62 | + } | |
63 | + | |
64 | + public String getStatusName() { | |
65 | + return statusName; | |
66 | + } | |
67 | + | |
68 | + public void setStatusName(String statusName) { | |
69 | + this.statusName = statusName; | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * 根据订单状态ID类型获取枚举对象 | |
74 | + * @param orderStatusIndex 支付类型值 | |
75 | + * @return 支付类型枚举 | |
76 | + */ | |
77 | + public static OrderStatusType typeOf(int orderStatusIndex){ | |
78 | + OrderStatusType[] OrderStatusTypes = OrderStatusType.values(); | |
79 | + for(OrderStatusType OrderStatusType: OrderStatusTypes){ | |
80 | + if(OrderStatusType.getStatusIndex() == orderStatusIndex){ | |
81 | + return OrderStatusType; | |
82 | + } | |
83 | + } | |
84 | + throw new IllegalArgumentException("非法订单类型: " + orderStatusIndex); | |
85 | + } | |
86 | + | |
87 | + /** | |
88 | + * 枚举转Map | |
89 | + * @return Map | |
90 | + */ | |
91 | + public static Map<Integer,String> convertToMap(){ | |
92 | + Map<Integer,String> OrderStatusTypeMap = new HashMap<Integer, String>(); | |
93 | + OrderStatusType[] OrderStatusTypes = OrderStatusType.values(); | |
94 | + for(OrderStatusType OrderStatusType : OrderStatusTypes){ | |
95 | + OrderStatusTypeMap.put(OrderStatusType.getStatusIndex(),OrderStatusType.getStatusName()); | |
96 | + } | |
97 | + return OrderStatusTypeMap; | |
98 | + } | |
99 | + | |
100 | + /** | |
101 | + * 枚举转换成JSON字符串 | |
102 | + * @author yongkang.liao | |
103 | + * @date 2015-12-03 | |
104 | + * @return String | |
105 | + */ | |
106 | + public static String convertJson(){ | |
107 | + OrderStatusType[] orderStatusTypes = OrderStatusType.values(); | |
108 | + StringBuffer sb = new StringBuffer(); | |
109 | + sb.append("{\"orderStatus\":["); | |
110 | + for(int i = 0; i < orderStatusTypes.length; i++){ | |
111 | + OrderStatusType orderStatusType = orderStatusTypes[i]; | |
112 | + sb.append("{\"type\":" + orderStatusType.getStatusIndex() + ",\"name\":\"" | |
113 | + + orderStatusType.getStatusName() + "\"}"); | |
114 | + if((i + 1) != orderStatusTypes.length){ | |
115 | + sb.append(","); | |
116 | + } | |
117 | + } | |
118 | + sb.append("]}"); | |
119 | + return sb.toString(); | |
120 | + } | |
121 | + | |
122 | + @Override | |
123 | + public String toString() { | |
124 | + return "OrderStatusType{" + | |
125 | + "statusIndex=" + statusIndex + | |
126 | + ", statusName='" + statusName + '\'' + | |
127 | + '}'; | |
128 | + } | |
129 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/enums/PaymentWay.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/enums/PaymentWay.java | |
1 | +package com.ectrip.cyt.model.enums; | |
2 | + | |
3 | +import java.util.HashMap; | |
4 | +import java.util.Map; | |
5 | + | |
6 | +/** | |
7 | + * 支付类型枚举 | |
8 | + * @author wenqiang.luo date:15-9-3 | |
9 | + */ | |
10 | +public enum PaymentWay { | |
11 | + | |
12 | + /** | |
13 | + * 在线支付 | |
14 | + */ | |
15 | + PRE_PAY(0, "预付"), | |
16 | + | |
17 | + /** | |
18 | + * 现场支付 | |
19 | + */ | |
20 | + CASH_PAY(1, "到付"); | |
21 | + | |
22 | + /** 支付类型 */ | |
23 | + private int way; | |
24 | + | |
25 | + /** 支付名称 */ | |
26 | + private String name; | |
27 | + | |
28 | + PaymentWay(int way, String name) { | |
29 | + this.way = way; | |
30 | + this.name = name; | |
31 | + } | |
32 | + | |
33 | + public int getWay() { | |
34 | + return way; | |
35 | + } | |
36 | + | |
37 | + public String getName() { | |
38 | + return name; | |
39 | + } | |
40 | + | |
41 | + /** | |
42 | + * 根据支付类型获取枚举对象 | |
43 | + * @param type 支付类型值 | |
44 | + * @return 支付类型枚举 | |
45 | + */ | |
46 | + public static PaymentWay wayOf(int type) { | |
47 | + //枚举结果 | |
48 | + PaymentWay[] paymentWays = PaymentWay.values(); | |
49 | + for (PaymentWay paymentWay : paymentWays) { | |
50 | + if (paymentWay.getWay() == type) { | |
51 | + return paymentWay; | |
52 | + } | |
53 | + } | |
54 | + throw new IllegalArgumentException("Invalid PaymentType way: " + type); | |
55 | + } | |
56 | + | |
57 | + /** | |
58 | + * 枚举转Map | |
59 | + * @return Map | |
60 | + */ | |
61 | + public static Map<Integer, String> convertToMap() { | |
62 | + Map<Integer, String> integerStringMap = new HashMap<Integer, String>(); | |
63 | + PaymentWay[] paymentWays = PaymentWay.values(); | |
64 | + for (PaymentWay paymentWay : paymentWays) { | |
65 | + integerStringMap.put(paymentWay.getWay(), paymentWay.getName()); | |
66 | + } | |
67 | + return integerStringMap; | |
68 | + } | |
69 | + | |
70 | + @Override | |
71 | + public String toString() { | |
72 | + return "PaymentWay{" + | |
73 | + "way=" + way + | |
74 | + ", name='" + name + '\'' + | |
75 | + '}'; | |
76 | + } | |
77 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/AccountParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/AccountParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | +import org.hibernate.validator.constraints.Range; | |
9 | + | |
10 | +import javax.validation.constraints.NotBlank; | |
11 | + | |
12 | +@Data | |
13 | +@AllArgsConstructor | |
14 | +@NoArgsConstructor | |
15 | +@ApiModel(description = "用户信息") | |
16 | +public class AccountParam { | |
17 | + @NotBlank(message = "加密算法必填") | |
18 | + @ApiModelProperty(value = "OTA接口加密算法:0:MD5 1:AES/CBC 2:SM4/CBC", required = false) | |
19 | + private String securityType; | |
20 | + | |
21 | + //分销商名称 | |
22 | + @NotBlank(message = "分销商名不能为空") | |
23 | + @ApiModelProperty(value = "分销商名", required = true) | |
24 | + private String distributorName; | |
25 | + | |
26 | + //分销商密钥 | |
27 | + @NotBlank(message = "分销商密钥不能为空") | |
28 | + @ApiModelProperty(value = "分销商密钥", required = true) | |
29 | + private String key; | |
30 | + | |
31 | + //供应商标识 | |
32 | + @ApiModelProperty(value = "供应商标识", required = false) | |
33 | + private String identity; | |
34 | + | |
35 | + @NotBlank(message = "平台接口地址不能为空") | |
36 | + @ApiModelProperty(value = "平台接口地址", required = true) | |
37 | + private String url; | |
38 | + | |
39 | + //接口地址 | |
40 | + //@Range(min=0,max=2,message ="对接平台范围不在[0,2]內") | |
41 | + /*@ApiModelProperty(value = "对接平台 {" + | |
42 | + "0:tour.12301cn.cn(整合营销测试版)," + | |
43 | + "1:jy.12301cn.cn(整合营销公共版)," + | |
44 | + "2:www.12301cn.cn(整合营销独立版)" + | |
45 | + "3:59.59.7.54:8081(瘦西湖)" + | |
46 | + "4:cyt.51yzly.com(土楼)" + | |
47 | + "10:cyt.jingqu.cn/tdos(整合营销3.0)" + | |
48 | + "11:w.qdocti.com/tdos(青岛3.0)" + | |
49 | + "99:本地环境(8038端口)" + | |
50 | + "}", required = true) | |
51 | + private Integer platfrom_sign;*/ | |
52 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/CancelOrderParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/CancelOrderParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.constraints.Min; | |
10 | +import javax.validation.constraints.NotBlank; | |
11 | + | |
12 | +@Data | |
13 | +@AllArgsConstructor | |
14 | +@NoArgsConstructor | |
15 | +@ApiModel(description = "取消订单参数") | |
16 | +public class CancelOrderParam { | |
17 | + @ApiModelProperty(value = "畅游通订单号", required = true) | |
18 | + private String cytOrderCode; | |
19 | + | |
20 | + @ApiModelProperty(value = "OTA订单号", required = true) | |
21 | + private String otaOrderCode; | |
22 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/CreateOrderParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/CreateOrderParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import com.ectrip.cyt.model.pojo.Person; | |
4 | +import com.ectrip.cyt.utils.DateUtils; | |
5 | +import com.ectrip.cyt.utils.TestOrderUtils; | |
6 | +import io.swagger.annotations.ApiModel; | |
7 | +import io.swagger.annotations.ApiModelProperty; | |
8 | +import lombok.AllArgsConstructor; | |
9 | +import lombok.Data; | |
10 | +import lombok.NoArgsConstructor; | |
11 | +import org.apache.commons.collections.CollectionUtils; | |
12 | +import org.apache.commons.lang3.StringUtils; | |
13 | +import org.hibernate.validator.constraints.Range; | |
14 | + | |
15 | +import javax.validation.Valid; | |
16 | +import javax.validation.constraints.Min; | |
17 | +import javax.validation.constraints.NotNull; | |
18 | +import java.util.ArrayList; | |
19 | +import java.util.Date; | |
20 | +import java.util.List; | |
21 | + | |
22 | +@Data | |
23 | +@AllArgsConstructor | |
24 | +@NoArgsConstructor | |
25 | +@ApiModel(description = "创建订单参数") | |
26 | +public class CreateOrderParam { | |
27 | + //ota订单号 | |
28 | + //@NotBlank(message = "OTA订单号不能为空") | |
29 | + @ApiModelProperty(value = "OTA订单号", required = true) | |
30 | + private String orderCode; | |
31 | + | |
32 | + public String getOrderCode() { | |
33 | + if(StringUtils.isBlank(orderCode)){ | |
34 | + orderCode = TestOrderUtils.get16UUID(); | |
35 | + } | |
36 | + return orderCode; | |
37 | + } | |
38 | + | |
39 | + //游览日期 | |
40 | + //@NotBlank(message = "游览日期不能为空") | |
41 | + //@Pattern(regexp = "(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)",message = "游览日期格式不对") | |
42 | + @ApiModelProperty(value = "住店日期", required = true) | |
43 | + private String visitDate; | |
44 | + | |
45 | + @ApiModelProperty(value = "离店日期", required = true) | |
46 | + private String leaveDate; | |
47 | + | |
48 | + public String getVisitDate() { | |
49 | + if(StringUtils.isBlank(visitDate)){ | |
50 | + visitDate = DateUtils.formatDate(new Date(),DateUtils.DATE_PATTERN); | |
51 | + } | |
52 | + return visitDate; | |
53 | + } | |
54 | + | |
55 | + //票数 | |
56 | + @Min(value = 1,message = "订单数量必须大于或等于1") | |
57 | + @ApiModelProperty(value = "订单数量", required = true) | |
58 | + private Integer orderQuantity; | |
59 | + | |
60 | + //金额 | |
61 | + @Min(value = 0,message = "订单金额必须大于或等于0") | |
62 | + @ApiModelProperty(value = "订单金额", required = true) | |
63 | + private Double orderPrice; | |
64 | + | |
65 | + @ApiModelProperty(value = "一票几人 默认一票一人", required = false) | |
66 | + private Integer ticketPersonNum; | |
67 | + | |
68 | + @Valid | |
69 | + @NotNull(message = "必须传入产品信息") | |
70 | + @ApiModelProperty(value = "产品信息", required = true) | |
71 | + //产品信息 | |
72 | + private ProductParam product; | |
73 | + | |
74 | + //@NotNull(message = "必须传入联系人信息 至少保留手机号") | |
75 | + @ApiModelProperty(value = "联系人信息", required = true) | |
76 | + //联系人 | |
77 | + private Person contactPerson; | |
78 | + | |
79 | + @ApiModelProperty(value = "游客信息", required = false) | |
80 | + //游客信息 | |
81 | + private List<Person> visitPersons; | |
82 | + | |
83 | + public Person getContactPerson() { | |
84 | + if(contactPerson == null){ | |
85 | + contactPerson = new Person(); | |
86 | + } | |
87 | + if(StringUtils.isBlank(contactPerson.getName())){ | |
88 | + contactPerson.setName("测试联系人"); | |
89 | + } | |
90 | + if(contactPerson.getCredentialsType() == null){ | |
91 | + contactPerson.setCredentialsType(0); | |
92 | + } | |
93 | + if(StringUtils.isBlank(contactPerson.getPhone())){ | |
94 | + contactPerson.setPhone(TestOrderUtils.createMobile(2)); | |
95 | + } | |
96 | + if(StringUtils.isBlank(contactPerson.getCredentials())){ | |
97 | + contactPerson.setCredentials(TestOrderUtils.getIdNo(false)); | |
98 | + } | |
99 | + return contactPerson; | |
100 | + } | |
101 | + | |
102 | + public List<Person> getVisitPersons() { | |
103 | + if(CollectionUtils.isEmpty(visitPersons)){ | |
104 | + visitPersons = new ArrayList<>(); | |
105 | + visitPersons.add(contactPerson); | |
106 | + | |
107 | + if(ticketPersonNum == null){ | |
108 | + ticketPersonNum = 1; | |
109 | + } | |
110 | + | |
111 | + if((ticketPersonNum * orderQuantity) >1) { | |
112 | + for (int i = 0; i < ((ticketPersonNum * orderQuantity) - 1); i++) { | |
113 | + Person p = new Person(); | |
114 | + p.setName("测试游客" + (i+1)); | |
115 | + p.setCredentialsType(0); | |
116 | + p.setPhone(TestOrderUtils.createMobile(2)); | |
117 | + p.setCredentials(TestOrderUtils.getIdNo(false)); | |
118 | + visitPersons.add(p); | |
119 | + } | |
120 | + } | |
121 | + } | |
122 | + return visitPersons; | |
123 | + } | |
124 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/GetProductParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/GetProductParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | +import org.hibernate.validator.constraints.Range; | |
9 | +import org.omg.PortableInterceptor.INACTIVE; | |
10 | + | |
11 | +import javax.validation.constraints.Min; | |
12 | +import javax.validation.constraints.NotBlank; | |
13 | + | |
14 | +@Data | |
15 | +@AllArgsConstructor | |
16 | +@NoArgsConstructor | |
17 | +@ApiModel(description = "获取产品参数") | |
18 | +public class GetProductParam { | |
19 | + //获取产品方法 全部ALL 单个SINGLE | |
20 | + //@NotBlank(message = "获取产品方法不能为空") | |
21 | + /*@ApiModelProperty(value = "获取产品方法 全部ALL 单个SINGLE", required = true) | |
22 | + private String method;*/ | |
23 | + | |
24 | + //分页数 | |
25 | + //@Min(value = 1,message = "分页数必须大于或等于1") | |
26 | + @ApiModelProperty(value = "分页数", required = true) | |
27 | + private Integer currentPage; | |
28 | + //分页大小 | |
29 | + | |
30 | + //@Range(min=1,max=5,message ="分页大小不在[1,5]內") | |
31 | + @ApiModelProperty(value = "分页大小(最大5条)", required = true) | |
32 | + private Integer pageSize; | |
33 | + //产品ID | |
34 | + @ApiModelProperty(value = "产品ID 获取产品方法为SINGLE必填", required = false) | |
35 | + private String resourceId; | |
36 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/GetSeatParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/GetSeatParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.constraints.NotBlank; | |
10 | + | |
11 | +@Data | |
12 | +@AllArgsConstructor | |
13 | +@NoArgsConstructor | |
14 | +@ApiModel(description = "获取座位参数") | |
15 | +public class GetSeatParam { | |
16 | + @NotBlank(message = "分时ID不能为空") | |
17 | + @ApiModelProperty(value = "分时ID", required = false) | |
18 | + private String timeOfBookId; | |
19 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/GetStockParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/GetStockParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.constraints.NotBlank; | |
10 | + | |
11 | +@Data | |
12 | +@AllArgsConstructor | |
13 | +@NoArgsConstructor | |
14 | +@ApiModel(description = "获取库存参数") | |
15 | +public class GetStockParam { | |
16 | + @ApiModelProperty(value = "开始日期", required = false) | |
17 | + private String startDate; | |
18 | + @ApiModelProperty(value = "截至日期", required = false) | |
19 | + private String endDate; | |
20 | + @NotBlank(message = "资源ID不能为空") | |
21 | + @ApiModelProperty(value = "资源ID", required = false) | |
22 | + private String resourceId; | |
23 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/PayOrderParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/PayOrderParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.constraints.Min; | |
10 | + | |
11 | +import javax.validation.constraints.NotBlank; | |
12 | + | |
13 | +@Data | |
14 | +@AllArgsConstructor | |
15 | +@NoArgsConstructor | |
16 | +@ApiModel(description = "支付订单参数") | |
17 | +public class PayOrderParam { | |
18 | + @ApiModelProperty(value = "畅游通订单号", required = true) | |
19 | + private String cytOrderCode; | |
20 | + | |
21 | + @ApiModelProperty(value = "OTA订单号", required = true) | |
22 | + private String otaOrderCode; | |
23 | + | |
24 | + //金额 | |
25 | + @Min(value = 0,message = "支付金额必须大于或等于0") | |
26 | + @ApiModelProperty(value = "支付金额", required = true) | |
27 | + private Double orderPrice; | |
28 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/ProductParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/ProductParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.constraints.Min; | |
10 | +import javax.validation.constraints.NotBlank; | |
11 | +import java.util.List; | |
12 | + | |
13 | +@Data | |
14 | +@AllArgsConstructor | |
15 | +@NoArgsConstructor | |
16 | +@ApiModel(description = "产品信息") | |
17 | +public class ProductParam { | |
18 | + @NotBlank(message = "产品编号不能为空") | |
19 | + @ApiModelProperty(value = "产品编号", required = true) | |
20 | + private String productNo; | |
21 | + | |
22 | + @Min(value = 0,message = "产品结算价必须大于或等于0") | |
23 | + @ApiModelProperty(value = "产品结算价", required = true) | |
24 | + private Double sellPrice; | |
25 | + | |
26 | + @ApiModelProperty(value = "分时ID", required = true) | |
27 | + private Integer timeOfBookId; | |
28 | + | |
29 | + @ApiModelProperty(value = "座位集合", required = true) | |
30 | + private String seatIds; | |
31 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/PushOrderParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/PushOrderParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import com.ectrip.cyt.model.pojo.EditPerson; | |
4 | +import com.ectrip.cyt.model.pojo.Person; | |
5 | +import io.swagger.annotations.ApiModel; | |
6 | +import io.swagger.annotations.ApiModelProperty; | |
7 | +import lombok.AllArgsConstructor; | |
8 | +import lombok.Data; | |
9 | +import lombok.NoArgsConstructor; | |
10 | +import javax.validation.constraints.NotBlank; | |
11 | +import javax.validation.constraints.Pattern; | |
12 | +import java.util.List; | |
13 | + | |
14 | +@Data | |
15 | +@AllArgsConstructor | |
16 | +@NoArgsConstructor | |
17 | +@ApiModel(description = "改签订单参数") | |
18 | +public class PushOrderParam { | |
19 | + @NotBlank(message = "畅游通订单号不能为空") | |
20 | + @ApiModelProperty(value = "畅游通订单号", required = true) | |
21 | + private String cytOrderCode; | |
22 | + | |
23 | + @NotBlank(message = "改签日期不能为空") | |
24 | + @Pattern(regexp = "(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)",message = "改签日期格式不对") | |
25 | + @ApiModelProperty(value = "改签日期", required = true) | |
26 | + private String visitDate; | |
27 | + | |
28 | + @ApiModelProperty(value = "改签联系人信息", required = false) | |
29 | + //联系人 | |
30 | + private Person contactPerson; | |
31 | + | |
32 | + @ApiModelProperty(value = "改签游客信息", required = false) | |
33 | + //游客信息 | |
34 | + private List<EditPerson> visitPersons; | |
35 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/QueryOrderParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/QueryOrderParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import javax.validation.constraints.Min; | |
10 | +import javax.validation.constraints.NotBlank; | |
11 | + | |
12 | +@Data | |
13 | +@AllArgsConstructor | |
14 | +@NoArgsConstructor | |
15 | +@ApiModel(description = "查询订单参数") | |
16 | +public class QueryOrderParam { | |
17 | + @ApiModelProperty(value = "畅游通订单号(二选一 优先级)", required = false) | |
18 | + private String cytOrderCode; | |
19 | + | |
20 | + @ApiModelProperty(value = "OTA订单号(二选一)", required = false) | |
21 | + private String orderCode; | |
22 | + | |
23 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/RefundOrderParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/RefundOrderParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import com.ectrip.cyt.model.pojo.Person; | |
4 | +import io.swagger.annotations.ApiModel; | |
5 | +import io.swagger.annotations.ApiModelProperty; | |
6 | +import lombok.AllArgsConstructor; | |
7 | +import lombok.Data; | |
8 | +import lombok.NoArgsConstructor; | |
9 | + | |
10 | +import javax.validation.constraints.Min; | |
11 | +import javax.validation.constraints.NotBlank; | |
12 | +import java.util.List; | |
13 | + | |
14 | +@Data | |
15 | +@AllArgsConstructor | |
16 | +@NoArgsConstructor | |
17 | +@ApiModel(description = "退订订单参数") | |
18 | +public class RefundOrderParam { | |
19 | + @NotBlank(message = "畅游通订单号不能为空") | |
20 | + @ApiModelProperty(value = "畅游通订单号", required = true) | |
21 | + private String cytOrderCode; | |
22 | + | |
23 | + @NotBlank(message = "退订流水号不能为空") | |
24 | + @ApiModelProperty(value = "退订流水号", required = true) | |
25 | + private String refundSeq; | |
26 | + | |
27 | + @Min(value = 0,message = "退订金额必须大于或等于0") | |
28 | + @ApiModelProperty(value = "退订金额", required = true) | |
29 | + private Double refundMoney; | |
30 | + | |
31 | + @Min(value = 1,message = "退订数量必须大于或等于1") | |
32 | + @ApiModelProperty(value = "退订数量", required = true) | |
33 | + private Integer refundQuantity; | |
34 | + | |
35 | + @ApiModelProperty(value = "退订游客信息", required = false) | |
36 | + private List<Person> visitPersons; | |
37 | + | |
38 | + @ApiModelProperty(value = "退订原因", required = false) | |
39 | + private String refundReason; | |
40 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/param/SendOrderEticketParam.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/param/SendOrderEticketParam.java | |
1 | +package com.ectrip.cyt.model.param; | |
2 | + | |
3 | +import com.ectrip.cyt.model.pojo.Person; | |
4 | +import io.swagger.annotations.ApiModel; | |
5 | +import io.swagger.annotations.ApiModelProperty; | |
6 | +import lombok.AllArgsConstructor; | |
7 | +import lombok.Data; | |
8 | +import lombok.NoArgsConstructor; | |
9 | +import org.hibernate.validator.constraints.Range; | |
10 | + | |
11 | +import javax.validation.Valid; | |
12 | +import javax.validation.constraints.Min; | |
13 | +import javax.validation.constraints.NotBlank; | |
14 | +import javax.validation.constraints.NotNull; | |
15 | +import javax.validation.constraints.Pattern; | |
16 | +import java.util.List; | |
17 | + | |
18 | +@Data | |
19 | +@AllArgsConstructor | |
20 | +@NoArgsConstructor | |
21 | +@ApiModel(description = "重发短信参数") | |
22 | +public class SendOrderEticketParam { | |
23 | + @NotBlank(message = "畅游通订单号不能为空") | |
24 | + @ApiModelProperty(value = "畅游通订单号", required = true) | |
25 | + private String cytOrderCode; | |
26 | + /** 游客电话 */ | |
27 | + @ApiModelProperty(value = "电话号", required = false) | |
28 | + private String phone; | |
29 | +} | ... | ... |
zhyx-api/src/main/java/com/ectrip/cyt/model/pojo/EditPerson.java
0 → 100644
1 | +++ a/zhyx-api/src/main/java/com/ectrip/cyt/model/pojo/EditPerson.java | |
1 | +package com.ectrip.cyt.model.pojo; | |
2 | + | |
3 | +import io.swagger.annotations.ApiModel; | |
4 | +import io.swagger.annotations.ApiModelProperty; | |
5 | +import lombok.AllArgsConstructor; | |
6 | +import lombok.Data; | |
7 | +import lombok.NoArgsConstructor; | |
8 | + | |
9 | +import java.io.Serializable; | |
10 | + | |
11 | +@Data | |
12 | +@AllArgsConstructor | |
13 | +@NoArgsConstructor | |
14 | +@ApiModel(description = "联系人/游客信息") | |
15 | +public class EditPerson implements Serializable { | |
16 | + /** 游客证件号码 */ | |
17 | + @ApiModelProperty(value = "原游客证件号码", required = true) | |
18 | + private String credentials; | |
19 | + | |
20 | + /** 游客姓名 */ | |
21 | + @ApiModelProperty(value = "修改后的游客姓名", required = false) | |
22 | + private String editName; | |
23 | + | |
24 | + /** 游客电话 */ | |
25 | + @ApiModelProperty(value = "修改后的游客电话 ", required = false) | |
26 | + private String editPhone; | |
27 | + | |
28 | + /** 游客证件号码 */ | |
29 | + @ApiModelProperty(value = "修改后的游客证件号码", required = false) | |
30 | + private String editCredentials; | |
31 | +} | ... | ... |