Bladeren bron

Merge branch 'master' of http://git.shengws.com/csx/XT_Admin_Api

csx 5 jaren geleden
bovenliggende
commit
9c0cf753b5

+ 503 - 0
.idea/workspace.xml Bestand weergeven

@@ -0,0 +1,503 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="7aa7cc45-aece-4fa3-9063-5e3df12471b4" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/controllers/admin_api_controllers/admin_api_base_controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controllers/admin_api_controllers/admin_api_base_controller.go" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/controllers/admin_api_controllers/analysis_api_controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controllers/admin_api_controllers/analysis_api_controller.go" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/routers/router.go" beforeDir="false" afterPath="$PROJECT_DIR$/routers/router.go" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/service/admin_service.go" beforeDir="false" afterPath="$PROJECT_DIR$/service/admin_service.go" afterDir="false" />
9
+    </list>
10
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
+    <option name="TRACKING_ENABLED" value="true" />
12
+    <option name="SHOW_DIALOG" value="false" />
13
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+    <option name="LAST_RESOLUTION" value="IGNORE" />
16
+  </component>
17
+  <component name="FileEditorManager">
18
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
19
+      <file leaf-file-name="function_api_base_controller.go" pinned="false" current-in-tab="true">
20
+        <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_base_controller.go">
21
+          <provider selected="true" editor-type-id="text-editor">
22
+            <state relative-caret-position="238">
23
+              <caret line="1830" column="73" selection-start-line="1803" selection-start-column="6" selection-end-line="1830" selection-end-column="73" />
24
+            </state>
25
+          </provider>
26
+        </entry>
27
+      </file>
28
+      <file leaf-file-name="analysis_api_controller.go" pinned="false" current-in-tab="false">
29
+        <entry file="file://$PROJECT_DIR$/controllers/admin_api_controllers/analysis_api_controller.go">
30
+          <provider selected="true" editor-type-id="text-editor">
31
+            <state relative-caret-position="-965">
32
+              <caret line="512" column="28" selection-start-line="512" selection-start-column="8" selection-end-line="512" selection-end-column="28" />
33
+            </state>
34
+          </provider>
35
+        </entry>
36
+      </file>
37
+      <file leaf-file-name="function_api_router_register.go" pinned="false" current-in-tab="false">
38
+        <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_router_register.go">
39
+          <provider selected="true" editor-type-id="text-editor">
40
+            <state relative-caret-position="311">
41
+              <caret line="54" selection-start-line="54" selection-end-line="54" />
42
+              <folding>
43
+                <element signature="e#34#79#0" expanded="true" />
44
+              </folding>
45
+            </state>
46
+          </provider>
47
+        </entry>
48
+      </file>
49
+      <file leaf-file-name="function_service.go" pinned="false" current-in-tab="false">
50
+        <entry file="file://$PROJECT_DIR$/service/function_service.go">
51
+          <provider selected="true" editor-type-id="text-editor">
52
+            <state relative-caret-position="267">
53
+              <caret line="53" column="29" selection-start-line="53" selection-start-column="29" selection-end-line="53" selection-end-column="29" />
54
+            </state>
55
+          </provider>
56
+        </entry>
57
+      </file>
58
+      <file leaf-file-name="fuction_query_models.go" pinned="false" current-in-tab="false">
59
+        <entry file="file://$PROJECT_DIR$/models/function_models/fuction_query_models.go">
60
+          <provider selected="true" editor-type-id="text-editor">
61
+            <state relative-caret-position="1472">
62
+              <caret line="398" column="25" selection-start-line="398" selection-start-column="25" selection-end-line="398" selection-end-column="25" />
63
+            </state>
64
+          </provider>
65
+        </entry>
66
+      </file>
67
+      <file leaf-file-name="admin_service.go" pinned="false" current-in-tab="false">
68
+        <entry file="file://$PROJECT_DIR$/service/admin_service.go">
69
+          <provider selected="true" editor-type-id="text-editor">
70
+            <state relative-caret-position="-902">
71
+              <caret line="473" column="124" selection-start-line="473" selection-start-column="67" selection-end-line="473" selection-end-column="124" />
72
+              <folding>
73
+                <element signature="e#35#139#0" expanded="true" />
74
+              </folding>
75
+            </state>
76
+          </provider>
77
+        </entry>
78
+      </file>
79
+      <file leaf-file-name="app.conf" pinned="false" current-in-tab="false">
80
+        <entry file="file://$PROJECT_DIR$/conf/app.conf">
81
+          <provider selected="true" editor-type-id="text-editor">
82
+            <state>
83
+              <caret column="12" selection-start-column="12" selection-end-column="12" />
84
+            </state>
85
+          </provider>
86
+        </entry>
87
+      </file>
88
+    </leaf>
89
+  </component>
90
+  <component name="FileTemplateManagerImpl">
91
+    <option name="RECENT_TEMPLATES">
92
+      <list>
93
+        <option value="Go Application" />
94
+      </list>
95
+    </option>
96
+  </component>
97
+  <component name="FindInProjectRecents">
98
+    <findStrings>
99
+      <find>/admin/api/patient/analysis</find>
100
+      <find>PatientAnalysis</find>
101
+      <find>AdminAPIControllersRegisterRouters</find>
102
+      <find>admin_api_controllers</find>
103
+      <find>/admin/api/home/statistics</find>
104
+      <find>HomeStatistics</find>
105
+      <find>SchedualPatient</find>
106
+      <find>patient_count_list</find>
107
+      <find>aaa</find>
108
+      <find>newPatientStatistics</find>
109
+      <find>GetMonthReceiveinfo</find>
110
+      <find>/api/dialysis/start_record</find>
111
+    </findStrings>
112
+    <dirStrings>
113
+      <dir>D:\goyard\src\XT_Admin_Api\controllers\admin_api_controllers</dir>
114
+    </dirStrings>
115
+  </component>
116
+  <component name="GOROOT" path="C:\Go" />
117
+  <component name="Git.Settings">
118
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
119
+  </component>
120
+  <component name="IdeDocumentHistory">
121
+    <option name="CHANGED_PATHS">
122
+      <list>
123
+        <option value="$PROJECT_DIR$/controllers/admin_api_controllers/admin_api_router_register.go" />
124
+        <option value="$PROJECT_DIR$/routers/router.go" />
125
+        <option value="$PROJECT_DIR$/controllers/admin_api_controllers/admin_api_base_controller.go" />
126
+        <option value="$PROJECT_DIR$/service/admin_service.go" />
127
+        <option value="$PROJECT_DIR$/controllers/admin_api_controllers/analysis_api_controller.go" />
128
+        <option value="$PROJECT_DIR$/controllers/function_api_controllers/function_api_router_register.go" />
129
+        <option value="$PROJECT_DIR$/service/function_service.go" />
130
+        <option value="$PROJECT_DIR$/models/function_models/fuction_query_models.go" />
131
+        <option value="$PROJECT_DIR$/controllers/function_api_controllers/function_api_base_controller.go" />
132
+      </list>
133
+    </option>
134
+  </component>
135
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
136
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
137
+  <component name="JsGulpfileManager">
138
+    <detection-done>true</detection-done>
139
+    <sorting>DEFINITION_ORDER</sorting>
140
+  </component>
141
+  <component name="ProjectFrameBounds" extendedState="6">
142
+    <option name="x" value="525" />
143
+    <option name="width" value="1230" />
144
+    <option name="height" value="1040" />
145
+  </component>
146
+  <component name="ProjectView">
147
+    <navigator proportions="" version="1">
148
+      <foldersAlwaysOnTop value="true" />
149
+    </navigator>
150
+    <panes>
151
+      <pane id="Scope" />
152
+      <pane id="ProjectPane">
153
+        <subPane>
154
+          <expand>
155
+            <path>
156
+              <item name="XT_Admin_Api" type="b2602c69:ProjectViewProjectNode" />
157
+              <item name="XT_Admin_Api" type="462c0819:PsiDirectoryNode" />
158
+            </path>
159
+            <path>
160
+              <item name="XT_Admin_Api" type="b2602c69:ProjectViewProjectNode" />
161
+              <item name="XT_Admin_Api" type="462c0819:PsiDirectoryNode" />
162
+              <item name="conf" type="462c0819:PsiDirectoryNode" />
163
+            </path>
164
+            <path>
165
+              <item name="XT_Admin_Api" type="b2602c69:ProjectViewProjectNode" />
166
+              <item name="XT_Admin_Api" type="462c0819:PsiDirectoryNode" />
167
+              <item name="controllers" type="462c0819:PsiDirectoryNode" />
168
+            </path>
169
+            <path>
170
+              <item name="XT_Admin_Api" type="b2602c69:ProjectViewProjectNode" />
171
+              <item name="XT_Admin_Api" type="462c0819:PsiDirectoryNode" />
172
+              <item name="models" type="462c0819:PsiDirectoryNode" />
173
+            </path>
174
+          </expand>
175
+          <select />
176
+        </subPane>
177
+      </pane>
178
+    </panes>
179
+  </component>
180
+  <component name="PropertiesComponent">
181
+    <property name="DefaultGoTemplateProperty" value="Go Application" />
182
+    <property name="go.gopath.indexing.explicitly.defined" value="true" />
183
+    <property name="go.sdk.automatically.set" value="true" />
184
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/../XT" />
185
+  </component>
186
+  <component name="RunDashboard">
187
+    <option name="ruleStates">
188
+      <list>
189
+        <RuleState>
190
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
191
+        </RuleState>
192
+        <RuleState>
193
+          <option name="name" value="StatusDashboardGroupingRule" />
194
+        </RuleState>
195
+      </list>
196
+    </option>
197
+  </component>
198
+  <component name="ToolWindowManager">
199
+    <frame x="-7" y="-7" width="1550" height="838" extended-state="6" />
200
+    <layout>
201
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.18096514" />
202
+      <window_info anchor="bottom" id="TODO" order="6" />
203
+      <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.09852547" side_tool="true" weight="0.48644793" />
204
+      <window_info anchor="right" id="Database" order="3" />
205
+      <window_info anchor="bottom" id="Find" order="1" />
206
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
207
+      <window_info anchor="bottom" id="Version Control" order="9" />
208
+      <window_info anchor="bottom" id="Run" order="2" />
209
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
210
+      <window_info active="true" anchor="bottom" id="Terminal" order="10" sideWeight="0.90147454" visible="true" weight="0.4293866" />
211
+      <window_info id="Favorites" order="2" side_tool="true" />
212
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
213
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
214
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
215
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
216
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
217
+      <window_info anchor="bottom" id="Message" order="0" />
218
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
219
+    </layout>
220
+  </component>
221
+  <component name="TypeScriptGeneratedFilesManager">
222
+    <option name="version" value="1" />
223
+  </component>
224
+  <component name="VcsContentAnnotationSettings">
225
+    <option name="myLimit" value="2678400000" />
226
+  </component>
227
+  <component name="editorHistoryManager">
228
+    <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_base_controller.go">
229
+      <provider selected="true" editor-type-id="text-editor">
230
+        <state relative-caret-position="4158">
231
+          <caret line="189" column="48" selection-start-line="189" selection-start-column="36" selection-end-line="189" selection-end-column="48" />
232
+        </state>
233
+      </provider>
234
+    </entry>
235
+    <entry file="file://$PROJECT_DIR$/controllers/admin_api_controllers/analysis_api_controller.go">
236
+      <provider selected="true" editor-type-id="text-editor">
237
+        <state relative-caret-position="11264">
238
+          <caret line="512" column="28" selection-start-line="512" selection-start-column="8" selection-end-line="512" selection-end-column="28" />
239
+        </state>
240
+      </provider>
241
+    </entry>
242
+    <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_router_register.go">
243
+      <provider selected="true" editor-type-id="text-editor">
244
+        <state relative-caret-position="88">
245
+          <caret line="4" column="9" selection-start-line="4" selection-start-column="9" selection-end-line="4" selection-end-column="9" />
246
+          <folding>
247
+            <element signature="e#34#79#0" expanded="true" />
248
+          </folding>
249
+        </state>
250
+      </provider>
251
+    </entry>
252
+    <entry file="file://$PROJECT_DIR$/service/function_service.go">
253
+      <provider selected="true" editor-type-id="text-editor">
254
+        <state relative-caret-position="330">
255
+          <caret line="17" selection-start-line="17" selection-end-line="17" />
256
+        </state>
257
+      </provider>
258
+    </entry>
259
+    <entry file="file://$PROJECT_DIR$/models/function_models/fuction_query_models.go">
260
+      <provider selected="true" editor-type-id="text-editor">
261
+        <state relative-caret-position="1650">
262
+          <caret line="75" column="23" selection-start-line="75" selection-start-column="12" selection-end-line="75" selection-end-column="23" />
263
+        </state>
264
+      </provider>
265
+    </entry>
266
+    <entry file="file://$PROJECT_DIR$/service/admin_service.go">
267
+      <provider selected="true" editor-type-id="text-editor">
268
+        <state relative-caret-position="10274">
269
+          <caret line="473" column="124" selection-start-line="473" selection-start-column="67" selection-end-line="473" selection-end-column="124" />
270
+          <folding>
271
+            <element signature="e#35#139#0" expanded="true" />
272
+          </folding>
273
+        </state>
274
+      </provider>
275
+    </entry>
276
+    <entry file="file://$PROJECT_DIR$/conf/app.conf">
277
+      <provider selected="true" editor-type-id="text-editor">
278
+        <state>
279
+          <caret column="12" selection-start-column="12" selection-end-column="12" />
280
+        </state>
281
+      </provider>
282
+    </entry>
283
+    <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_base_controller.go">
284
+      <provider selected="true" editor-type-id="text-editor">
285
+        <state relative-caret-position="286">
286
+          <caret line="13" column="38" selection-start-line="13" selection-start-column="38" selection-end-line="13" selection-end-column="38" />
287
+        </state>
288
+      </provider>
289
+    </entry>
290
+    <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_router_register.go">
291
+      <provider selected="true" editor-type-id="text-editor">
292
+        <state relative-caret-position="132">
293
+          <caret line="9" column="72" selection-start-line="9" selection-start-column="47" selection-end-line="9" selection-end-column="72" />
294
+        </state>
295
+      </provider>
296
+    </entry>
297
+    <entry file="file://$PROJECT_DIR$/models/function_models/fuction_query_models.go">
298
+      <provider selected="true" editor-type-id="text-editor">
299
+        <state>
300
+          <caret column="23" selection-start-column="8" selection-end-column="23" />
301
+        </state>
302
+      </provider>
303
+    </entry>
304
+    <entry file="file://$PROJECT_DIR$/service/function_service.go">
305
+      <provider selected="true" editor-type-id="text-editor">
306
+        <state relative-caret-position="242">
307
+          <caret line="11" column="8" selection-start-line="11" selection-start-column="8" selection-end-line="11" selection-end-column="8" />
308
+        </state>
309
+      </provider>
310
+    </entry>
311
+    <entry file="file://$PROJECT_DIR$/conf/app.conf">
312
+      <provider selected="true" editor-type-id="text-editor">
313
+        <state>
314
+          <caret column="12" selection-start-column="12" selection-end-column="12" />
315
+        </state>
316
+      </provider>
317
+    </entry>
318
+    <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_base_controller.go">
319
+      <provider selected="true" editor-type-id="text-editor">
320
+        <state relative-caret-position="418">
321
+          <caret line="24" column="17" selection-start-line="24" selection-start-column="9" selection-end-line="24" selection-end-column="17" />
322
+        </state>
323
+      </provider>
324
+    </entry>
325
+    <entry file="file://$PROJECT_DIR$/service/admin_service.go">
326
+      <provider selected="true" editor-type-id="text-editor">
327
+        <state relative-caret-position="10868">
328
+          <caret line="500" column="16" selection-start-line="500" selection-start-column="10" selection-end-line="500" selection-end-column="16" />
329
+        </state>
330
+      </provider>
331
+    </entry>
332
+    <entry file="file://$PROJECT_DIR$/service/function_service.go">
333
+      <provider selected="true" editor-type-id="text-editor">
334
+        <state relative-caret-position="154">
335
+          <caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
336
+        </state>
337
+      </provider>
338
+    </entry>
339
+    <entry file="file://$PROJECT_DIR$/conf/app.conf">
340
+      <provider selected="true" editor-type-id="text-editor">
341
+        <state relative-caret-position="154">
342
+          <caret line="7" selection-start-line="7" selection-end-line="7" />
343
+        </state>
344
+      </provider>
345
+    </entry>
346
+    <entry file="file://$PROJECT_DIR$/../SCRM/models/site_models.go">
347
+      <provider selected="true" editor-type-id="text-editor">
348
+        <state relative-caret-position="418">
349
+          <caret line="19" column="5" selection-start-line="19" selection-start-column="5" selection-end-line="19" selection-end-column="5" />
350
+        </state>
351
+      </provider>
352
+    </entry>
353
+    <entry file="file://$PROJECT_DIR$/../XT/service/admin_service.go">
354
+      <provider selected="true" editor-type-id="text-editor">
355
+        <state relative-caret-position="427">
356
+          <caret line="192" column="5" selection-start-line="192" selection-start-column="5" selection-end-line="192" selection-end-column="5" />
357
+        </state>
358
+      </provider>
359
+    </entry>
360
+    <entry file="file://$PROJECT_DIR$/../XT/controllers/admin_api_controllers/analysis_api_controller.go">
361
+      <provider selected="true" editor-type-id="text-editor">
362
+        <state relative-caret-position="233">
363
+          <caret line="383" column="80" selection-start-line="383" selection-start-column="50" selection-end-line="383" selection-end-column="80" />
364
+        </state>
365
+      </provider>
366
+    </entry>
367
+    <entry file="file://$PROJECT_DIR$/../XT/controllers/admin_api_controllers/admin_api_router_register.go">
368
+      <provider selected="true" editor-type-id="text-editor">
369
+        <state relative-caret-position="261">
370
+          <caret line="14" column="70" selection-start-line="14" selection-start-column="49" selection-end-line="14" selection-end-column="70" />
371
+        </state>
372
+      </provider>
373
+    </entry>
374
+    <entry file="file://$PROJECT_DIR$/controllers/admin_api_controllers/admin_api_router_register.go">
375
+      <provider selected="true" editor-type-id="text-editor">
376
+        <state relative-caret-position="308">
377
+          <caret line="19" lean-forward="true" selection-start-line="19" selection-end-line="19" />
378
+        </state>
379
+      </provider>
380
+    </entry>
381
+    <entry file="file://$PROJECT_DIR$/controllers/admin_api_controllers/login_api_controller.go">
382
+      <provider selected="true" editor-type-id="text-editor">
383
+        <state relative-caret-position="110">
384
+          <caret line="9" column="26" selection-start-line="9" selection-start-column="4" selection-end-line="9" selection-end-column="26" />
385
+        </state>
386
+      </provider>
387
+    </entry>
388
+    <entry file="file://$PROJECT_DIR$/service/verify_login_token_service.go">
389
+      <provider selected="true" editor-type-id="text-editor">
390
+        <state relative-caret-position="132">
391
+          <caret line="18" column="4" selection-start-line="18" selection-start-column="4" selection-end-line="18" selection-end-column="4" />
392
+        </state>
393
+      </provider>
394
+    </entry>
395
+    <entry file="file://$PROJECT_DIR$/controllers/base_controller.go">
396
+      <provider selected="true" editor-type-id="text-editor">
397
+        <state relative-caret-position="162">
398
+          <caret line="13" column="28" selection-start-line="13" selection-start-column="28" selection-end-line="13" selection-end-column="28" />
399
+        </state>
400
+      </provider>
401
+    </entry>
402
+    <entry file="file://$PROJECT_DIR$/../SCRM/models/site_models.go">
403
+      <provider selected="true" editor-type-id="text-editor">
404
+        <state relative-caret-position="-506">
405
+          <caret line="19" column="5" selection-start-line="19" selection-start-column="5" selection-end-line="19" selection-end-column="5" />
406
+        </state>
407
+      </provider>
408
+    </entry>
409
+    <entry file="file://$PROJECT_DIR$/routers/router.go">
410
+      <provider selected="true" editor-type-id="text-editor">
411
+        <state relative-caret-position="506">
412
+          <caret line="23" column="54" selection-start-line="23" selection-start-column="17" selection-end-line="23" selection-end-column="54" />
413
+          <folding>
414
+            <element signature="e#17#222#0" expanded="true" />
415
+          </folding>
416
+        </state>
417
+      </provider>
418
+    </entry>
419
+    <entry file="file://$PROJECT_DIR$/models/dialysis.go">
420
+      <provider selected="true" editor-type-id="text-editor">
421
+        <state relative-caret-position="220">
422
+          <caret line="73" column="6" selection-start-line="73" selection-start-column="6" selection-end-line="73" selection-end-column="6" />
423
+        </state>
424
+      </provider>
425
+    </entry>
426
+    <entry file="file://$PROJECT_DIR$/controllers/base_api_controller.go">
427
+      <provider selected="true" editor-type-id="text-editor">
428
+        <state relative-caret-position="198">
429
+          <caret line="20" column="2" lean-forward="true" selection-start-line="20" selection-start-column="2" selection-end-line="20" selection-end-column="2" />
430
+        </state>
431
+      </provider>
432
+    </entry>
433
+    <entry file="file://$PROJECT_DIR$/conf/app.conf">
434
+      <provider selected="true" editor-type-id="text-editor">
435
+        <state>
436
+          <caret column="12" selection-start-column="12" selection-end-column="12" />
437
+        </state>
438
+      </provider>
439
+    </entry>
440
+    <entry file="file://$PROJECT_DIR$/models/admin_models/admin_models.go">
441
+      <provider selected="true" editor-type-id="text-editor">
442
+        <state relative-caret-position="330">
443
+          <caret line="15" column="21" selection-start-line="15" selection-start-column="12" selection-end-line="15" selection-end-column="21" />
444
+        </state>
445
+      </provider>
446
+    </entry>
447
+    <entry file="file://$PROJECT_DIR$/controllers/admin_api_controllers/admin_api_base_controller.go">
448
+      <provider selected="true" editor-type-id="text-editor">
449
+        <state relative-caret-position="968">
450
+          <caret line="50" column="41" selection-start-line="50" selection-start-column="41" selection-end-line="50" selection-end-column="41" />
451
+        </state>
452
+      </provider>
453
+    </entry>
454
+    <entry file="file://$PROJECT_DIR$/service/admin_service.go">
455
+      <provider selected="true" editor-type-id="text-editor">
456
+        <state relative-caret-position="-902">
457
+          <caret line="473" column="124" selection-start-line="473" selection-start-column="67" selection-end-line="473" selection-end-column="124" />
458
+          <folding>
459
+            <element signature="e#35#139#0" expanded="true" />
460
+          </folding>
461
+        </state>
462
+      </provider>
463
+    </entry>
464
+    <entry file="file://$PROJECT_DIR$/service/function_service.go">
465
+      <provider selected="true" editor-type-id="text-editor">
466
+        <state relative-caret-position="267">
467
+          <caret line="53" column="29" selection-start-line="53" selection-start-column="29" selection-end-line="53" selection-end-column="29" />
468
+        </state>
469
+      </provider>
470
+    </entry>
471
+    <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_router_register.go">
472
+      <provider selected="true" editor-type-id="text-editor">
473
+        <state relative-caret-position="311">
474
+          <caret line="54" selection-start-line="54" selection-end-line="54" />
475
+          <folding>
476
+            <element signature="e#34#79#0" expanded="true" />
477
+          </folding>
478
+        </state>
479
+      </provider>
480
+    </entry>
481
+    <entry file="file://$PROJECT_DIR$/models/function_models/fuction_query_models.go">
482
+      <provider selected="true" editor-type-id="text-editor">
483
+        <state relative-caret-position="1472">
484
+          <caret line="398" column="25" selection-start-line="398" selection-start-column="25" selection-end-line="398" selection-end-column="25" />
485
+        </state>
486
+      </provider>
487
+    </entry>
488
+    <entry file="file://$PROJECT_DIR$/controllers/admin_api_controllers/analysis_api_controller.go">
489
+      <provider selected="true" editor-type-id="text-editor">
490
+        <state relative-caret-position="-965">
491
+          <caret line="512" column="28" selection-start-line="512" selection-start-column="8" selection-end-line="512" selection-end-column="28" />
492
+        </state>
493
+      </provider>
494
+    </entry>
495
+    <entry file="file://$PROJECT_DIR$/controllers/function_api_controllers/function_api_base_controller.go">
496
+      <provider selected="true" editor-type-id="text-editor">
497
+        <state relative-caret-position="238">
498
+          <caret line="1830" column="73" selection-start-line="1803" selection-start-column="6" selection-end-line="1830" selection-end-column="73" />
499
+        </state>
500
+      </provider>
501
+    </entry>
502
+  </component>
503
+</project>

BIN
XT_Admin_Api.exe Bestand weergeven


+ 0 - 2
controllers/admin_api_controllers/admin_api_base_controller.go Bestand weergeven

@@ -4,7 +4,6 @@ import (
4 4
 	"XT_Admin_Api/controllers"
5 5
 	"XT_Admin_Api/enums"
6 6
 	"XT_Admin_Api/models/admin_models"
7
-	"fmt"
8 7
 )
9 8
 
10 9
 type AdminBaseAPIController struct {
@@ -50,7 +49,6 @@ type AdminBaseAPIAuthController struct {
50 49
 
51 50
 func (this *AdminBaseAPIAuthController) Prepare() {
52 51
 	this.AdminBaseAPIController.Prepare()
53
-    fmt.Println("aaa")
54 52
 	adminInfo := this.GetAdminInfo()
55 53
 	if adminInfo == nil {
56 54
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNotLogin)

+ 5 - 1
controllers/admin_api_controllers/analysis_api_controller.go Bestand weergeven

@@ -6,6 +6,7 @@ import (
6 6
 	"XT_Admin_Api/service"
7 7
 	"XT_Admin_Api/utils"
8 8
 	"time"
9
+	"fmt"
9 10
 )
10 11
 
11 12
 type AnalysisAPIController struct {
@@ -468,8 +469,9 @@ func (this *AnalysisAPIController) PatientAnalysis() {
468 469
 
469 470
 func (this *AnalysisAPIController) HomeStatistics() {
470 471
 	range_data := this.GetString("range_data")
472
+	fmt.Println("range_data是什么",range_data)
471 473
 	range_type, _ := this.GetInt64("range_type")
472
-
474
+    fmt.Println("range_type是设么",range_type)
473 475
 	var rangeDate *time.Time
474 476
 	var parseDateErr error
475 477
 	var rangeTimeStamp int64
@@ -487,6 +489,7 @@ func (this *AnalysisAPIController) HomeStatistics() {
487 489
 	now := time.Now().Unix()
488 490
 
489 491
 	newOrgCount, _ := service.GetRegistedOrgCount(rangeTimeStamp, now)
492
+
490 493
 	totalOrg, _ := service.GetTotalOrgCount()
491 494
 
492 495
 	activeOrgCount, _ := service.GetActiveOrgCount(rangeTimeStamp, now)
@@ -496,6 +499,7 @@ func (this *AnalysisAPIController) HomeStatistics() {
496 499
 	adminTotalCount, _ := service.GetAdminUserTotalCount()
497 500
 
498 501
 	patientCount, _ :=service.GetNewPatientCount(rangeTimeStamp, now)
502
+	fmt.Println("patientCout",patientCount)
499 503
 	patientTotalCount, _ := service.GetPatientTotalCount()
500 504
 
501 505
 	var orgRegisterStatistics []*admin_models.Statistics

Diff onderdrukt omdat het te groot bestand
+ 1832 - 0
controllers/function_api_controllers/function_api_base_controller.go


+ 54 - 0
controllers/function_api_controllers/function_api_router_register.go Bestand weergeven

@@ -0,0 +1,54 @@
1
+package function_api_controllers
2
+
3
+import (
4
+	"github.com/astaxie/beego"
5
+	"fmt"
6
+)
7
+
8
+func FunctionAPIControllersRegisterRouters() {
9
+	fmt.Println("开始吧")
10
+	beego.Router("/api/function/gettodayinfo",&FunctionBaseAPIController{},"Get:GetTodayInfo")
11
+	beego.Router("/api/function/getyestodayinfo",&FunctionBaseAPIController{},"Get:GetYestodayInfo")
12
+	beego.Router("/api/function/getweekinfo",&FunctionBaseAPIController{},"Get:GetWeekInfo")
13
+	beego.Router("/api/function/getmonthinfo",&FunctionBaseAPIController{},"Get:GetMonthInfo")
14
+	beego.Router("/api/function/getthreemonthinfo",&FunctionBaseAPIController{},"Get:GetThreeMonthInfo")
15
+	beego.Router("/admin/function/gethalfyearinfo",&FunctionBaseAPIController{},"Get:GetHalfYearInfo")
16
+	beego.Router("/admin/function/getyearinfo",&FunctionBaseAPIController{},"Get:GetYearInfo")
17
+	beego.Router("/admin/function/gettodaydialysisinfo",&FunctionBaseAPIController{},"Get:GetTodayDialysisInfo")
18
+	beego.Router("/api/function/getYesterdayDialysisinfo",&FunctionBaseAPIController{},"Get:GetYesterTodayDialysisInfo")
19
+	beego.Router("/api/function/getweekdialysisinfo",&FunctionBaseAPIController{},"Get:GetWeekDialysisinfo")
20
+	beego.Router("/api/function/getmonthdailysisinfo",&FunctionBaseAPIController{},"Get:GetMonthDailysisInfo")
21
+	beego.Router("/api/function/getthreedialysisinfo",&FunctionBaseAPIController{},"Get:GetThreeMonthDailysisInfo")
22
+	beego.Router("/api/function/gethalfyeardialysisinfo",&FunctionBaseAPIController{},"Get:GetHalfYearDailysisInfo")
23
+	beego.Router("/api/function/getyeardialysisinfo",&FunctionBaseAPIController{},"Get:GetYearDailysisInfo")
24
+	beego.Router("/api/function/gettodayreceiveinfo",&FunctionBaseAPIController{},"Get:GetReceiveinfo")
25
+	beego.Router("/api/function/getyesterdayinfo",&FunctionBaseAPIController{},"Get:GetYesTodayReceiveinfo")
26
+	beego.Router("/api/function/getweekreceiveinfo",&FunctionBaseAPIController{},"Get:GetWeekReceiveinfo")
27
+	beego.Router("/api/function/getMonthreceiveinfo",&FunctionBaseAPIController{},"Get:GetMonthReceiveinfo")
28
+	beego.Router("/api/function/getMonthreereceiveinfo",&FunctionBaseAPIController{},"Get:GetThreeMonthReceiveinfo")
29
+	beego.Router("/api/function/getMonhalfyearreceiveinfo",&FunctionBaseAPIController{},"Get:GetHalfYearReceiveinfo")
30
+	beego.Router("/api/function/getMonyearreceiveinfo",&FunctionBaseAPIController{},"Get:GetYearReceiveinfo")
31
+	beego.Router("/api/function/getBeforDislysis",&FunctionBaseAPIController{},"Get:GetTodayBeforDislysisInfo")
32
+	beego.Router("/api/function/getyesterdayBeforDislysis",&FunctionBaseAPIController{},"Get:GetYesterTodayBeforDislysisInfo")
33
+	beego.Router("/api/function/getmonthBeforDislysis",&FunctionBaseAPIController{},"Get:GetMonthBeforDislysisInfo")
34
+	beego.Router("/api/function/getweekBeforDislysis",&FunctionBaseAPIController{},"Get:GetWeekBeforDislysisInfo")
35
+	beego.Router("/api/function/getThreeMonthBeforDislysis",&FunctionBaseAPIController{},"Get:GetThreeMonthBeforDislysisInfo")
36
+	beego.Router("/api/function/getHalfYearBeforDislysis",&FunctionBaseAPIController{},"Get:GetHalfYearBeforDislysisInfo")
37
+	beego.Router("/api/function/getYearbefordialysisinfo",&FunctionBaseAPIController{},"Get:GetYearBeforDislysisInfo")
38
+	beego.Router("/api/function/gettodayDoctorsOrderInfo",&FunctionBaseAPIController{},"Get:GetTodayDoctorsOrderInfo")
39
+	beego.Router("/api/function/getyearstodayDoctorOrder",&FunctionBaseAPIController{},"Get:GetYesterDayDoctorsOrderInfo")
40
+	beego.Router("/api/function/getWeekDoctorOrder",&FunctionBaseAPIController{},"Get:GetWeekDoctorOrder")
41
+	beego.Router("/api/function/getMonthDoctorOrder",&FunctionBaseAPIController{},"Get:GetMonthDoctorOrder")
42
+	beego.Router("/api/function/getThreeMonthDoctorOrder",&FunctionBaseAPIController{},"Get:GetThreeMonthDoctorOrder")
43
+	beego.Router("/api/function/getHalfYearDoctorOrder",&FunctionBaseAPIController{},"Get:GetHalfYearDoctorOrder")
44
+	beego.Router("/api/function/getYearDoctorOrder",&FunctionBaseAPIController{},"Get:GetYearDoctorOrder")
45
+	beego.Router("/api/function/getTodayDoubleCheckInfo",&FunctionBaseAPIController{},"Get:GetTodayDoubleCheckInfo")
46
+	beego.Router("/api/function/getYesTodayDoubleCheckInfo",&FunctionBaseAPIController{},"Get:GetYesTodayDoubleCheckInfo")
47
+	beego.Router("/api/function/getweekDoubleCheckInfo",&FunctionBaseAPIController{},"Get:GetWeekDoubleCheckInfo")
48
+	beego.Router("/api/function/getMonthDoubleCheckInfo",&FunctionBaseAPIController{},"Get:GetMonthDoubleCheckInfo")
49
+	beego.Router("/api/function/getThreeMonthDoubleCheckInfo",&FunctionBaseAPIController{},"Get:GetThreeMonthDoubleCheckInfo")
50
+	beego.Router("/api/function/getHalfYearDoubleCheckInfo",&FunctionBaseAPIController{},"Get:GetHalfYearDoubleCheckInfo")
51
+	beego.Router("/api/function/getyeardoublecheck",&FunctionBaseAPIController{},"Get:GetYearDoubleCheckInfo")
52
+	beego.Router("/api/function/getDialysisMachinek",&FunctionBaseAPIController{},"Get:GetTodayDialysisMachinek")
53
+
54
+}

+ 400 - 0
models/function_models/fuction_query_models.go Bestand weergeven

@@ -0,0 +1,400 @@
1
+package function_models
2
+
3
+type XtPatients struct {
4
+	ID int64 `gorm:"column:id" json:"id" form:"id"`
5
+	UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
6
+	UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
7
+	Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
8
+	PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
9
+	DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
10
+	AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
11
+	Source int64 `gorm:"column:source" json:"source" form:"source"`
12
+	Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
13
+	PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
14
+	BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
15
+	Name string `gorm:"column:name" json:"name" form:"name"`
16
+	Alias string `gorm:"column:alias" json:"alias" form:"alias"`
17
+	Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
18
+	MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
19
+	IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
20
+	Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
21
+	ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
22
+	HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
23
+	HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
24
+	HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
25
+	Height int64 `gorm:"column:height" json:"height" form:"height"`
26
+	BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
27
+	Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
28
+	HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
29
+	EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
30
+	Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
31
+	Phone string `gorm:"column:phone" json:"phone" form:"phone"`
32
+	HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
33
+	RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
34
+	RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
35
+	HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
36
+	WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
37
+	UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
38
+	Children int64 `gorm:"column:children" json:"children" form:"children"`
39
+	ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
40
+	IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
41
+	FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
42
+	FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
43
+	PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
44
+	PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
45
+	PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
46
+	HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
47
+	InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
48
+	InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
49
+	TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
50
+	AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
51
+	HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
52
+	Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
53
+	Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
54
+	Remark string `gorm:"column:remark" json:"remark" form:"remark"`
55
+	RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
56
+	Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
57
+	QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
58
+	BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
59
+	PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
60
+	PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
61
+	PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
62
+	Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
63
+	Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
64
+	Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
65
+	Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
66
+	Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
67
+	Status int64 `gorm:"column:status" json:"status" form:"status"`
68
+	CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
69
+	UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
70
+	Nation string `gorm:"column:nation" json:"nation" form:"nation"`
71
+	NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
72
+	Age int64 `gorm:"column:age" json:"age" form:"age"`
73
+}
74
+
75
+func (XtPatients) TableName() string {
76
+	return "xt_patients"
77
+}
78
+
79
+
80
+type XtDialysisPrescription struct {
81
+	ID int64 `gorm:"column:id" json:"id" form:"id"`
82
+	UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
83
+	PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
84
+	Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
85
+	MachineType string `gorm:"column:machine_type" json:"machine_type" form:"machine_type"`
86
+	DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount" form:"dewater_amount"`
87
+	DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
88
+	PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering" form:"prescription_dewatering"`
89
+	Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
90
+	AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
91
+	AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
92
+	AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
93
+	AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
94
+	AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
95
+	ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
96
+	DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
97
+	DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
98
+	DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
99
+	ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total" form:"replacement_total"`
100
+	ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
101
+	HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
102
+	BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
103
+	PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
104
+	DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
105
+	VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode" form:"vascular_access_mode"`
106
+	VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access" form:"vascular_access"`
107
+	BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
108
+	DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
109
+	DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
110
+	Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
111
+	Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
112
+	Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
113
+	Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
114
+	Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
115
+	DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
116
+	Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
117
+	PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor" form:"prescription_doctor"`
118
+	Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
119
+	Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
120
+	Remark string `gorm:"column:remark" json:"remark" form:"remark"`
121
+	Status int64 `gorm:"column:status" json:"status" form:"status"`
122
+	CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
123
+	UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
124
+	RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
125
+	RecordId int64 `gorm:"column:record_id" json:"record_id" form:"record_id"`
126
+	TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
127
+	DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
128
+	BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid" form:"body_fluid"`
129
+	SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine" form:"special_medicine"`
130
+	SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other" form:"special_medicine_other"`
131
+	DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
132
+	BloodAccess int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
133
+	DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
134
+	Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration" form:"ultrafiltration"`
135
+	BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other" form:"body_fluid_other"`
136
+	Niprocart int64 `gorm:"column:niprocart" json:"niprocart" form:"niprocart"`
137
+	Jms int64 `gorm:"column:jms" json:"jms" form:"jms"`
138
+	FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set" form:"fistula_needle_set"`
139
+	FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16" form:"fistula_needle_set_16"`
140
+	Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion" form:"hemoperfusion"`
141
+	DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised" form:"dialyser_sterilised"`
142
+	Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer" form:"filtryzer"`
143
+	TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv" form:"target_ktv"`
144
+	Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers" form:"dialyzers"`
145
+	Injector int64 `gorm:"column:injector" json:"injector" form:"injector"`
146
+	Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines" form:"bloodlines"`
147
+	TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis" form:"tubing_hemodialysis"`
148
+	Package int64 `gorm:"column:package" json:"package" form:"package"`
149
+	ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid" form:"a_liquid"`
150
+}
151
+
152
+func (XtDialysisPrescription) TableName() string {
153
+	return "xt_dialysis_prescription"
154
+}
155
+
156
+type XtReceiveTreatmentAsses struct {
157
+	ID int64 `gorm:"column:id" json:"id" form:"id"`
158
+	Way int64 `gorm:"column:way" json:"way" form:"way"`
159
+	Consciousness int64 `gorm:"column:consciousness" json:"consciousness" form:"consciousness"`
160
+	Appetite int64 `gorm:"column:appetite" json:"appetite" form:"appetite"`
161
+	Condition int64 `gorm:"column:condition" json:"condition" form:"condition"`
162
+	Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
163
+	Posture int64 `gorm:"column:posture" json:"posture" form:"posture"`
164
+	CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
165
+	UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
166
+	RecordId int64 `gorm:"column:record_id" json:"record_id" form:"record_id"`
167
+	RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
168
+	Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
169
+	Status int64 `gorm:"column:status" json:"status" form:"status"`
170
+	UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
171
+	PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
172
+	SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition" form:"sick_condition"`
173
+	SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other" form:"sick_condition_other"`
174
+	DangerLevel int64 `gorm:"column:danger_level" json:"danger_level" form:"danger_level"`
175
+	Intake int64 `gorm:"column:intake" json:"intake" form:"intake"`
176
+	Nutrition int64 `gorm:"column:nutrition" json:"nutrition" form:"nutrition"`
177
+	PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment" form:"psychological_assessment"`
178
+	PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other" form:"psychological_assessment_other"`
179
+	IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution" form:"is_precaution"`
180
+	Score string `gorm:"column:score" json:"score" form:"score"`
181
+	Precaution int64 `gorm:"column:precaution" json:"precaution" form:"precaution"`
182
+	PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other" form:"precaution_other"`
183
+	PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other" form:"psychological_other"`
184
+}
185
+
186
+func (XtReceiveTreatmentAsses) TableName() string {
187
+	return "xt_receive_treatement_asses"
188
+}
189
+
190
+
191
+type XtAssessmentBeforeDislysis struct {
192
+	ID int64 `gorm:"column:id" json:"id" form:"id"`
193
+	UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
194
+	PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
195
+	AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
196
+	DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
197
+	Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
198
+	PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency" form:"pulse_frequency"`
199
+	BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate" form:"breathing_rate"`
200
+	SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
201
+	DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
202
+	BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type" form:"blood_pressure_type"`
203
+	DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
204
+	WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency" form:"weight_after_last_transparency"`
205
+	WeighingWay string `gorm:"column:weighing_way" json:"weighing_way" form:"weighing_way"`
206
+	WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before" form:"weighing_before"`
207
+	AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight" form:"additional_weight"`
208
+	WeightBefore float64 `gorm:"column:weight_before" json:"weight_before" form:"weight_before"`
209
+	WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain" form:"weight_gain"`
210
+	PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering" form:"preloaded_dewatering"`
211
+	UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount" form:"ultrafiltration_amount"`
212
+	DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase" form:"dialysis_interphase"`
213
+	LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis" form:"last_post_dialysis"`
214
+	SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis" form:"symptom_before_dialysis"`
215
+	InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula" form:"internal_fistula"`
216
+	InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin" form:"internal_fistula_skin"`
217
+	CatheterBend int64 `gorm:"column:catheter_bend" json:"catheter_bend" form:"catheter_bend"`
218
+	Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
219
+	Complication string `gorm:"column:complication" json:"complication" form:"complication"`
220
+	Evaluator int64 `gorm:"column:evaluator" json:"evaluator" form:"evaluator"`
221
+	Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
222
+	Remark string `gorm:"column:remark" json:"remark" form:"remark"`
223
+	Status int64 `gorm:"column:status" json:"status" form:"status"`
224
+	CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
225
+	UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
226
+	Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
227
+	BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
228
+	BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
229
+	IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage" form:"is_hemorrhage"`
230
+	Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage" form:"hemorrhage"`
231
+	HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other" form:"hemorrhage_other"`
232
+	PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method" form:"puncture_method"`
233
+	BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula" form:"blood_access_internal_fistula"`
234
+	InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other" form:"internal_fistula_other"`
235
+	BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise" form:"blood_access_noise"`
236
+	PunctureWay int64 `gorm:"column:puncture_way" json:"puncture_way" form:"puncture_way"`
237
+	VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization" form:"venous_catheterization"`
238
+	VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part" form:"venous_catheterization_part"`
239
+	VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other" form:"venous_catheterization_part_other"`
240
+	DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii" form:"ductus_arantii"`
241
+	EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment" form:"emergency_treatment"`
242
+	EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other" form:"emergency_treatment_other"`
243
+	DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count" form:"dialysis_count"`
244
+	AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor" form:"assessment_doctor"`
245
+	AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time" form:"assessment_time"`
246
+	MachineType string `gorm:"column:machine_type" json:"machine_type" form:"machine_type"`
247
+	IsInfect int64 `gorm:"column:is_infect" json:"is_infect" form:"is_infect"`
248
+	Exposed float64 `gorm:"column:exposed" json:"exposed" form:"exposed"`
249
+	Skin int64 `gorm:"column:skin" json:"skin" form:"skin"`
250
+	SkinOther string `gorm:"column:skin_other" json:"skin_other" form:"skin_other"`
251
+	InfectOther string `gorm:"column:infect_other" json:"infect_other" form:"infect_other"`
252
+	DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other" form:"ductus_arantii_other"`
253
+}
254
+
255
+func (XtAssessmentBeforeDislysis) TableName() string {
256
+	return "xt_assessment_before_dislysis"
257
+}
258
+
259
+
260
+type DoctorAdvice struct {
261
+	ID                    int64   `gorm:"column:id" json:"id" form:"id"`
262
+	GroupNo               int64   `gorm:"column:groupno" json:"groupno" form:"groupno"`
263
+	UserOrgId             int64   `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
264
+	PatientId             int64   `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
265
+	AdviceType            int64   `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
266
+	AdviceDate            int64   `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
267
+	StartTime             int64   `gorm:"column:start_time" json:"start_time" form:"start_time"`
268
+	AdviceName            string  `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
269
+	AdviceDesc            string  `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
270
+	ReminderDate          int64   `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
271
+	SingleDose            float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
272
+	SingleDoseUnit        string  `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
273
+	DrugSpec              float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
274
+	DrugSpecUnit          string  `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
275
+	PrescribingNumber     float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
276
+	PrescribingNumberUnit string  `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
277
+	DeliveryWay           string  `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
278
+	ExecutionFrequency    string  `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
279
+	AdviceDoctor          int64   `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
280
+	Status                int64   `gorm:"column:status" json:"status" form:"status"`
281
+	CreatedTime           int64   `gorm:"column:created_time" json:"created_time" form:"created_time"`
282
+	UpdatedTime           int64   `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
283
+	AdviceAffirm          string  `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
284
+	Remark                string  `gorm:"column:remark" json:"remark" form:"remark"`
285
+	StopTime              int64   `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
286
+	StopReason            string  `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
287
+	StopDoctor            int64   `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
288
+	StopState             int64   `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
289
+	ParentId              int64   `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
290
+	ExecutionTime         int64   `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
291
+	ExecutionStaff        int64   `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
292
+	ExecutionState        int64   `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
293
+	Checker               int64   `gorm:"column:checker" json:"checker" form:"checker"`
294
+	RecordDate            int64   `gorm:"column:record_date" json:"record_date"`
295
+	DialysisOrderId       int64   `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
296
+	CheckTime             int64   `gorm:"column:check_time" json:"check_time" form:"check_time"`
297
+	CheckState            int64   `gorm:"column:check_state" json:"check_state" form:"check_state"`
298
+	AdviceId              int64   `gorm:"-"`
299
+}
300
+
301
+func (DoctorAdvice) TableName() string {
302
+	return "xt_doctor_advice"
303
+}
304
+
305
+type DoubleCheck struct {
306
+	ID                         int64  `gorm:"column:id" json:"id"`
307
+	UserOrgId                  int64  `gorm:"column:user_org_id" json:"user_org_id"`
308
+	PatientId                  int64  `gorm:"column:patient_id" json:"patient_id"`
309
+	DialysisOrderId            int64  `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
310
+	CheckDate                  int64  `gorm:"column:check_date" json:"check_date"`
311
+	DialysisItemCheck          int64  `gorm:"column:dialysis_item_check" json:"dialysis_item_check"`
312
+	DialysisItemDesc           string `gorm:"column:dialysis_item_desc" json:"dialysis_item_desc"`
313
+	DialysisParameterCheck     int64  `gorm:"column:dialysis_parameter_check" json:"dialysis_parameter_check"`
314
+	DialysisParameterDesc      string `gorm:"column:dialysis_parameter_desc" json:"dialysis_parameter_desc"`
315
+	VascularAccessVerification int64  `gorm:"column:vascular_access_verification" json:"vascular_access_verification"`
316
+	VascularAccessDesc         string `gorm:"column:vascular_access_desc" json:"vascular_access_desc"`
317
+	PipelineConnectionCheck    int64  `gorm:"column:pipeline_connection_check" json:"pipeline_connection_check"`
318
+	PipelineConnectionDesc     string `gorm:"column:pipeline_connection_desc" json:"pipeline_connection_desc"`
319
+	Collator                   int64  `gorm:"column:collator" json:"collator"`
320
+	Status                     int64  `gorm:"column:status" json:"status"`
321
+	CreatedTime                int64  `gorm:"column:created_time" json:"created_time"`
322
+	UpdatedTime                int64  `gorm:"column:updated_time" json:"updated_time"`
323
+	Creater                    int64  `gorm:"column:creater" json:"creater"`
324
+	Modifier                   int64  `gorm:"column:modifier" json:"modifier"`
325
+	CheckTime                  int64  `gorm:"column:check_time" json:"check_time"`
326
+	FirstCheckTime             int64  `gorm:"column:first_check_time" json:"first_check_time"`
327
+}
328
+
329
+func (DoubleCheck) TableName() string {
330
+	return "xt_double_check"
331
+}
332
+
333
+type DialysisOrder struct {
334
+	ID             int64        `gorm:"column:id" json:"id"`
335
+	DialysisDate   int64        `gorm:"column:dialysis_date" json:"dialysis_date"`
336
+	UserOrgId      int64        `gorm:"column:user_org_id" json:"user_org_id"`
337
+	PatientId      int64        `gorm:"column:patient_id" json:"patient_id"`
338
+	PrescriptionId int64        `gorm:"column:prescription_id" json:"prescription_id"`
339
+	Stage          int64        `gorm:"column:stage" json:"stage"`
340
+	Remark         string       `gorm:"column:remark" json:"remark"`
341
+	BedID          int64        `gorm:"column:bed_id" json:"bed_id"`
342
+	StartNurse     int64        `gorm:"column:start_nurse" json:"start_nurse"`
343
+	FinishNurse    int64        `gorm:"column:finish_nurse" json:"finish_nurse"`
344
+	Status         int64        `gorm:"column:status" json:"status"`
345
+	CreatedTime    int64        `gorm:"column:created_time" json:"created_time"`
346
+	UpdatedTime    int64        `gorm:"column:updated_time" json:"updated_time"`
347
+	StartTime      int64        `gorm:"column:start_time" json:"start_time"`
348
+	EndTime        int64        `gorm:"column:end_time" json:"end_time"`
349
+	PunctureNurse  int64        `gorm:"column:puncture_nurse" json:"puncture_nurse"`
350
+	Creator        int64        `gorm:"column:creator" json:"creator"`
351
+	Modifier       int64        `gorm:"column:modifier" json:"modifier"`
352
+	FinishCreator  int64        `gorm:"column:finish_creator" json:"finish_creator"`
353
+	FinishModifier int64        `gorm:"column:finish_modifier" json:"finish_modifier"`
354
+}
355
+
356
+func (DialysisOrder) TableName() string {
357
+	return "xt_dialysis_order"
358
+}
359
+
360
+type SgjUserOrg struct {
361
+	ID int64 `gorm:"column:id" json:"id" form:"id"`
362
+	Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
363
+	OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
364
+	OrgShortName string `gorm:"column:org_short_name" json:"org_short_name" form:"org_short_name"`
365
+	OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
366
+	OrgIntroduction string `gorm:"column:org_introduction" json:"org_introduction" form:"org_introduction"`
367
+	Illness string `gorm:"column:illness" json:"illness" form:"illness"`
368
+	Province int64 `gorm:"column:province" json:"province" form:"province"`
369
+	City int64 `gorm:"column:city" json:"city" form:"city"`
370
+	District int64 `gorm:"column:district" json:"district" form:"district"`
371
+	Address string `gorm:"column:address" json:"address" form:"address"`
372
+	Longitude string `gorm:"column:longitude" json:"longitude" form:"longitude"`
373
+	Latitude string `gorm:"column:latitude" json:"latitude" form:"latitude"`
374
+	OrgType int64 `gorm:"column:org_type" json:"org_type" form:"org_type"`
375
+	Comments int64 `gorm:"column:comments" json:"comments" form:"comments"`
376
+	Evaluate float64 `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
377
+	Gallery string `gorm:"column:gallery" json:"gallery" form:"gallery"`
378
+	BusinessWeek string `gorm:"column:business_week" json:"business_week" form:"business_week"`
379
+	BusinessTime string `gorm:"column:business_time" json:"business_time" form:"business_time"`
380
+	ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
381
+	Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
382
+	Claim int64 `gorm:"column:claim" json:"claim" form:"claim"`
383
+	OperatingState int64 `gorm:"column:operating_state" json:"operating_state" form:"operating_state"`
384
+	Status int64 `gorm:"column:status" json:"status" form:"status"`
385
+	Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
386
+	Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
387
+	Source int64 `gorm:"column:source" json:"source" form:"source"`
388
+	Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
389
+	Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
390
+	Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
391
+	Reason string `gorm:"column:reason" json:"reason" form:"reason"`
392
+	Level int64 `gorm:"column:level" json:"level" form:"level"`
393
+	Website string `gorm:"column:website" json:"website" form:"website"`
394
+	Import int64 `gorm:"column:import" json:"import" form:"import"`
395
+	Sortno int64 `gorm:"column:sortno" json:"sortno" form:"sortno"`
396
+}
397
+
398
+func (SgjUserOrg) TableName() string {
399
+	return "sgj_user_org"
400
+}

+ 2 - 1
routers/router.go Bestand weergeven

@@ -2,7 +2,7 @@ package routers
2 2
 
3 3
 import (
4 4
 	admin_api "XT_Admin_Api/controllers/admin_api_controllers"
5
-
5
+	function_api "XT_Admin_Api/controllers/function_api_controllers"
6 6
 	"github.com/astaxie/beego"
7 7
 	"github.com/astaxie/beego/plugins/cors"
8 8
 )
@@ -21,4 +21,5 @@ func init() {
21 21
 
22 22
 
23 23
 	admin_api.AdminAPIControllersRegisterRouters()
24
+    function_api.FunctionAPIControllersRegisterRouters()
24 25
 }

+ 1 - 0
service/admin_service.go Bestand weergeven

@@ -408,6 +408,7 @@ func GetAdminUserTotalCount() (int64, error) {
408 408
 
409 409
 // 获取一段时间内注册的机构数量
410 410
 func GetRegistedOrgCount(from int64, to int64) (int64, error) {
411
+
411 412
 	var count int64
412 413
 	err := readUserDb.Model(&models.Org{}).Where("status <> 0 AND ctime >= ? AND ctime <= ?", from, to).Count(&count).Error
413 414
 	if err != nil {

+ 55 - 0
service/function_service.go Bestand weergeven

@@ -0,0 +1,55 @@
1
+package service
2
+
3
+import (
4
+	"XT_Admin_Api/models/function_models"
5
+)
6
+
7
+func GetTodayInfo(to int64,ctime int64,page int64,limit int64)(patients []function_models.XtPatients,total int64,err error) {
8
+	db := readDb.Table("xt_patients as p").Where("p.status = 1")
9
+	offset := (page - 1) * limit
10
+	err = db.Where("status <> 0 AND created_time >= ? AND created_time <= ?", to, ctime).
11
+		Count(&total).Order("p.created_time desc").Offset(offset).Limit(limit).
12
+		Select("p.id, p.user_org_id, p.user_id, p.patient_type, p.dialysis_no, p.admission_number, p.source, p.lapseto, p.partition_id, p.bed_id, p.name, p.alias, p.gender, p.marital_status, p.id_card_no, p.birthday, p.reimbursement_way_id, p.health_care_type, p.health_care_no, p.health_care_due_date, p.height, p.blood_type, p.rh, p.health_care_due_alert_date, p.education_level, p.profession, p.phone, p.home_telephone, p.relative_phone, p.relative_relations, p.home_address, p.work_unit, p.unit_address, p.children, p.receiving_date, p.is_hospital_first_dialysis, p.first_dialysis_date, p.first_dialysis_hospital, p.induction_period, p.initial_dialysis, p.total_dialysis, p.attending_doctor_id, p.head_nurse_id, p.evaluate, p.diagnose, p.remark, p.registrars_id, p.registrars, p.qr_code, p.binding_state, p.status, p.created_time, p.updated_time").
13
+	Find(&patients).Error
14
+    return patients,total,err
15
+}
16
+
17
+func GetTodayDialysisPatientsInfo(to int64,ctime int64,page int64,limit int64)(patients []function_models.XtPatients,total int64,err error)  {
18
+	db := readDb.Table("xt_patients as p").Where("p.status = 1")
19
+	offset := (page - 1) * limit
20
+	err = db.Select("p.id, p.user_org_id, p.user_id, p.patient_type, p.dialysis_no, p.admission_number, p.source, p.lapseto, p.partition_id, p.bed_id, p.name, p.alias, p.gender, p.marital_status, p.id_card_no, p.birthday, p.reimbursement_way_id, p.health_care_type, p.health_care_no, p.health_care_due_date, p.height, p.blood_type, p.rh, p.health_care_due_alert_date, p.education_level, p.profession, p.phone, p.home_telephone, p.relative_phone, p.relative_relations, p.home_address, p.work_unit, p.unit_address, p.children, p.receiving_date, p.is_hospital_first_dialysis, p.first_dialysis_date, p.first_dialysis_hospital, p.induction_period, p.initial_dialysis, p.total_dialysis, p.attending_doctor_id, p.head_nurse_id, p.evaluate, p.diagnose, p.remark, p.registrars_id, p.registrars, p.qr_code, p.binding_state, p.status, p.created_time, p.updated_time").
21
+		Joins("join xt_dialysis_prescription as x On x.patient_id = p.id").Where("x.created_time >= ? AND x.created_time <= ?", to, ctime).Count(&total).Order("p.created_time desc").Offset(offset).Limit(limit).Find(&patients).Error
22
+   return patients,total,err
23
+}
24
+
25
+func GetTodayReceivePatientsInfo(to int64,ctime int64,page int64,limit int64)(patients []function_models.XtPatients,total int64,err error)  {
26
+	db := readDb.Table("xt_patients as p").Where("p.status = 1")
27
+	offset := (page - 1) * limit
28
+	err = db.Select("p.id, p.user_org_id, p.user_id, p.patient_type, p.dialysis_no, p.admission_number, p.source, p.lapseto, p.partition_id, p.bed_id, p.name, p.alias, p.gender, p.marital_status, p.id_card_no, p.birthday, p.reimbursement_way_id, p.health_care_type, p.health_care_no, p.health_care_due_date, p.height, p.blood_type, p.rh, p.health_care_due_alert_date, p.education_level, p.profession, p.phone, p.home_telephone, p.relative_phone, p.relative_relations, p.home_address, p.work_unit, p.unit_address, p.children, p.receiving_date, p.is_hospital_first_dialysis, p.first_dialysis_date, p.first_dialysis_hospital, p.induction_period, p.initial_dialysis, p.total_dialysis, p.attending_doctor_id, p.head_nurse_id, p.evaluate, p.diagnose, p.remark, p.registrars_id, p.registrars, p.qr_code, p.binding_state, p.status, p.created_time, p.updated_time").
29
+		Joins("join xt_receive_treatment_asses as x On x.patient_id = p.id").Where("x.created_time >= ? AND x.created_time <= ?", to, ctime).Count(&total).Order("p.created_time desc").Offset(offset).Limit(limit).Find(&patients).Error
30
+	return patients,total,err
31
+}
32
+
33
+func GetTodayDoctorsOrderInfo(to int64,ctime int64,page int64,limit int64)(patients []function_models.XtPatients,total int64,err error)  {
34
+	db := readDb.Table("xt_patients as p").Where("p.status = 1")
35
+	offset := (page - 1) * limit
36
+	err = db.Select("p.id, p.user_org_id, p.user_id, p.patient_type, p.dialysis_no, p.admission_number, p.source, p.lapseto, p.partition_id, p.bed_id, p.name, p.alias, p.gender, p.marital_status, p.id_card_no, p.birthday, p.reimbursement_way_id, p.health_care_type, p.health_care_no, p.health_care_due_date, p.height, p.blood_type, p.rh, p.health_care_due_alert_date, p.education_level, p.profession, p.phone, p.home_telephone, p.relative_phone, p.relative_relations, p.home_address, p.work_unit, p.unit_address, p.children, p.receiving_date, p.is_hospital_first_dialysis, p.first_dialysis_date, p.first_dialysis_hospital, p.induction_period, p.initial_dialysis, p.total_dialysis, p.attending_doctor_id, p.head_nurse_id, p.evaluate, p.diagnose, p.remark, p.registrars_id, p.registrars, p.qr_code, p.binding_state, p.status, p.created_time, p.updated_time").
37
+		Joins("join xt_doctor_advice as x On x.patient_id = p.id").Where("x.created_time >= ? AND x.created_time <= ?", to, ctime).Count(&total).Order("p.created_time desc").Offset(offset).Limit(limit).Find(&patients).Error
38
+	return patients,total,err
39
+}
40
+
41
+func GetTodayDoubleCheckInfo(to int64,ctime int64,page int64,limit int64)(patients []function_models.XtPatients,total int64,err error)  {
42
+	db := readDb.Table("xt_patients as p").Where("p.status = 1")
43
+	offset := (page - 1) * limit
44
+	err = db.Select("p.id, p.user_org_id, p.user_id, p.patient_type, p.dialysis_no, p.admission_number, p.source, p.lapseto, p.partition_id, p.bed_id, p.name, p.alias, p.gender, p.marital_status, p.id_card_no, p.birthday, p.reimbursement_way_id, p.health_care_type, p.health_care_no, p.health_care_due_date, p.height, p.blood_type, p.rh, p.health_care_due_alert_date, p.education_level, p.profession, p.phone, p.home_telephone, p.relative_phone, p.relative_relations, p.home_address, p.work_unit, p.unit_address, p.children, p.receiving_date, p.is_hospital_first_dialysis, p.first_dialysis_date, p.first_dialysis_hospital, p.induction_period, p.initial_dialysis, p.total_dialysis, p.attending_doctor_id, p.head_nurse_id, p.evaluate, p.diagnose, p.remark, p.registrars_id, p.registrars, p.qr_code, p.binding_state, p.status, p.created_time, p.updated_time").
45
+		Joins("join xt_double_check as x On x.patient_id = p.id").Where("x.created_time >= ? AND x.created_time <= ?", to, ctime).Count(&total).Order("p.created_time desc").Offset(offset).Limit(limit).Find(&patients).Error
46
+	return patients,total,err
47
+}
48
+
49
+func GetTodayDialysisMachinek(to int64,ctime int64,page int64,limit int64)(patients []function_models.XtPatients,total int64,err error)  {
50
+	db := readDb.Table("xt_patients as p").Where("p.status = 1")
51
+	offset := (page - 1) * limit
52
+	err = db.Select("p.id, p.user_org_id, p.user_id, p.patient_type, p.dialysis_no, p.admission_number, p.source, p.lapseto, p.partition_id, p.bed_id, p.name, p.alias, p.gender, p.marital_status, p.id_card_no, p.birthday, p.reimbursement_way_id, p.health_care_type, p.health_care_no, p.health_care_due_date, p.height, p.blood_type, p.rh, p.health_care_due_alert_date, p.education_level, p.profession, p.phone, p.home_telephone, p.relative_phone, p.relative_relations, p.home_address, p.work_unit, p.unit_address, p.children, p.receiving_date, p.is_hospital_first_dialysis, p.first_dialysis_date, p.first_dialysis_hospital, p.induction_period, p.initial_dialysis, p.total_dialysis, p.attending_doctor_id, p.head_nurse_id, p.evaluate, p.diagnose, p.remark, p.registrars_id, p.registrars, p.qr_code, p.binding_state, p.status, p.created_time, p.updated_time").
53
+		Joins("join xt_double_check as x On x.patient_id = p.id").Where("x.created_time >= ? AND x.created_time <= ?", to, ctime).Count(&total).Order("p.created_time desc").Offset(offset).Limit(limit).Find(&patients).Error
54
+	return patients,total,err
55
+}