Browse Source

[Init]初始化

shenyang.ou 3 weeks ago
commit
10b226b94b
100 changed files with 9312 additions and 0 deletions
  1. 415 0
      .gitignore
  2. 36 0
      README.en.md
  3. 83 0
      README.md
  4. 49 0
      codegen/pom.xml
  5. 60 0
      codegen/src/main/java/com/jwipc/Codegen.java
  6. 15 0
      contract/contract-client-base/pom.xml
  7. 131 0
      contract/contract-client-base/src/main/java/com/jwipc/contract/base/ContractDetailClientDTO.java
  8. 39 0
      contract/contract-client-base/src/main/java/com/jwipc/contract/base/ContractSendSignClientDTO.java
  9. 25 0
      contract/contract-client-base/src/main/java/com/jwipc/contract/base/ContractSendSignResultClientDTO.java
  10. 51 0
      contract/contract-client-base/src/main/java/com/jwipc/contract/base/DigitalSealConfigClientDTO.java
  11. 47 0
      contract/contract-client-impl/pom.xml
  12. 29 0
      contract/contract-client-impl/src/main/java/com/jwipc/contract/convert/ContractClientConvert.java
  13. 29 0
      contract/contract-client-impl/src/main/java/com/jwipc/contract/impl/ContractDetailClientImpl.java
  14. 29 0
      contract/contract-client-impl/src/main/java/com/jwipc/contract/impl/ContractPaymentApplyClientImpl.java
  15. 64 0
      contract/contract-client-impl/src/main/java/com/jwipc/contract/impl/ContractSignClientImpl.java
  16. 43 0
      contract/contract-client/pom.xml
  17. 14 0
      contract/contract-client/src/main/java/com/jwipc/contract/client/ContractDetailClient.java
  18. 17 0
      contract/contract-client/src/main/java/com/jwipc/contract/client/ContractPaymentApplyClient.java
  19. 38 0
      contract/contract-client/src/main/java/com/jwipc/contract/client/ContractSignClient.java
  20. 26 0
      contract/contract-infra/pom.xml
  21. 265 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/Contract.java
  22. 79 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractCategory.java
  23. 102 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractDelivery.java
  24. 203 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractDeliveryDetail.java
  25. 240 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractDetail.java
  26. 74 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractDetailMro.java
  27. 254 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPay.java
  28. 42 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPayDetail.java
  29. 66 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPayOrder.java
  30. 100 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPayStage.java
  31. 93 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPayType.java
  32. 680 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPaymentApply.java
  33. 324 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPaymentApplyDetail.java
  34. 179 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPaymentInvoicedReceipt.java
  35. 129 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractReturnOrder.java
  36. 192 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractReturnOrderDetail.java
  37. 41 0
      contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractSubSeq.java
  38. 16 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractCategoryMapper.java
  39. 29 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractDeliveryDetailMapper.java
  40. 22 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractDeliveryMapper.java
  41. 33 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractDetailMapper.java
  42. 16 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractDetailMroMapper.java
  43. 33 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractMapper.java
  44. 29 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayDetailMapper.java
  45. 22 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayMapper.java
  46. 16 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayOrderMapper.java
  47. 28 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayStageMapper.java
  48. 20 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayTypeMapper.java
  49. 127 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPaymentApplyDetailMapper.java
  50. 53 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPaymentApplyMapper.java
  51. 32 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPaymentInvoicedReceiptMapper.java
  52. 23 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractReturnOrderDetailMapper.java
  53. 22 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractReturnOrderMapper.java
  54. 21 0
      contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractSubSeqMapper.java
  55. 20 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/AmountSumVO.java
  56. 76 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/AttachmentManualCheckPO.java
  57. 163 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractDeliveryDetailPO.java
  58. 191 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractDetailPO.java
  59. 361 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractOA.java
  60. 215 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPO.java
  61. 26 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPayDetailsVo.java
  62. 321 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPayOA.java
  63. 93 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPayStagePO.java
  64. 640 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPaymentApplyPO.java
  65. 187 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPaymentInvoicedReceiptPO.java
  66. 102 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPaymentRecordPO.java
  67. 244 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractReportPO.java
  68. 187 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractReturnOrderDetailPO.java
  69. 329 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/CreateContractPayDetailPO.java
  70. 49 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/po/DigitalSealConfigDTO.java
  71. 88 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ChoseSupplierListQuery.java
  72. 23 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractDeliveryDetailQuery.java
  73. 21 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractDeliveryQuery.java
  74. 39 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractMangeQuery.java
  75. 23 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPayDetailsQuery.java
  76. 25 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPayStageQuery.java
  77. 128 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPaymentApplyDetailQuery.java
  78. 187 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPaymentApplyHeadQuery.java
  79. 75 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPaymentInvoicedDetailQuery.java
  80. 26 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractReturnOrderDetailsListQuery.java
  81. 21 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractReturnOrderQuery.java
  82. 25 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/CostCenterQuery.java
  83. 51 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/OaProcessListQuery.java
  84. 46 0
      contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ProcessListQuery.java
  85. 16 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractCategoryService.java
  86. 32 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractDeliveryDetailService.java
  87. 21 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractDeliveryService.java
  88. 16 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractDetailMroService.java
  89. 25 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractDetailService.java
  90. 30 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayDetailService.java
  91. 16 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayOrderService.java
  92. 22 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayService.java
  93. 25 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayStageService.java
  94. 19 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayTypeService.java
  95. 122 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPaymentApplyDetailService.java
  96. 50 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPaymentApplyService.java
  97. 47 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPaymentInvoicedReceiptService.java
  98. 23 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractReturnOrderDetailService.java
  99. 21 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractReturnOrderService.java
  100. 0 0
      contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractService.java

+ 415 - 0
.gitignore

@@ -0,0 +1,415 @@
1
+.idea
2
+.idea/
3
+.iml
4
+.DS_Store
5
+node_modules/
6
+.project
7
+dist
8
+logs
9
+media/
10
+!t-oa-bpm/src/main/resources/static/vendor/plugins/datatables/media/
11
+!jr-portal/src/main/resources/static/resource/excel/
12
+logs/*
13
+target/
14
+target/*
15
+dist/*
16
+src/config/*.tmp
17
+src/config/env.js
18
+npm-debug.log
19
+# Created by https://www.gitignore.io/api/xcode,git,gradle,intellij,jetbrains,osx,maven,windows,java,node,intellij+iml,macos
20
+
21
+### Git ###
22
+*.orig
23
+
24
+### Intellij ###
25
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
26
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
27
+
28
+# User-specific stuff:
29
+.idea/**/workspace.xml
30
+.idea/workspace.xml
31
+.idea/**/tasks.xml
32
+.idea/dictionaries
33
+
34
+# Sensitive or high-churn files:
35
+.idea/**/dataSources/
36
+.idea/**/dataSources.ids
37
+.idea/**/dataSources.xml
38
+.idea/**/dataSources.local.xml
39
+.idea/**/sqlDataSources.xml
40
+.idea/**/dynamic.xml
41
+.idea/**/uiDesigner.xml
42
+
43
+# Gradle:
44
+.idea/**/gradle.xml
45
+.idea/**/libraries
46
+
47
+# CMake
48
+cmake-build-debug/
49
+
50
+# Mongo Explorer plugin:
51
+.idea/**/mongoSettings.xml
52
+
53
+## File-based project format:
54
+*.iws
55
+
56
+## Plugin-specific files:
57
+
58
+# IntelliJ
59
+/out/
60
+
61
+# mpeltonen/sbt-idea plugin
62
+.idea_modules/
63
+
64
+# JIRA plugin
65
+atlassian-ide-plugin.xml
66
+
67
+# Cursive Clojure plugin
68
+.idea/replstate.xml
69
+
70
+# Crashlytics plugin (for Android Studio and IntelliJ)
71
+com_crashlytics_export_strings.xml
72
+crashlytics.properties
73
+crashlytics-build.properties
74
+fabric.properties
75
+
76
+### Intellij Patch ###
77
+# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
78
+
79
+# *.iml
80
+# modules.xml
81
+# .idea/misc.xml
82
+# *.ipr
83
+
84
+# Sonarlint plugin
85
+.idea/sonarlint
86
+
87
+### Intellij+iml ###
88
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
89
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
90
+
91
+# User-specific stuff:
92
+
93
+# Sensitive or high-churn files:
94
+
95
+# Gradle:
96
+
97
+# CMake
98
+
99
+# Mongo Explorer plugin:
100
+
101
+## File-based project format:
102
+
103
+## Plugin-specific files:
104
+
105
+# IntelliJ
106
+
107
+# mpeltonen/sbt-idea plugin
108
+
109
+# JIRA plugin
110
+
111
+# Cursive Clojure plugin
112
+
113
+# Crashlytics plugin (for Android Studio and IntelliJ)
114
+
115
+### Intellij+iml Patch ###
116
+# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
117
+
118
+*.iml
119
+modules.xml
120
+.idea/misc.xml
121
+*.ipr
122
+.idea
123
+.idea/
124
+
125
+### Java ###
126
+# Compiled class file
127
+*.class
128
+
129
+# Log file
130
+*.log
131
+
132
+# BlueJ files
133
+*.ctxt
134
+
135
+# Mobile Tools for Java (J2ME)
136
+.mtj.tmp/
137
+
138
+# Package Files #
139
+*.jar
140
+*.war
141
+*.ear
142
+*.zip
143
+*.tar.gz
144
+*.rar
145
+*.trc
146
+
147
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
148
+hs_err_pid*
149
+
150
+### JetBrains ###
151
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
152
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
153
+
154
+# User-specific stuff:
155
+
156
+# Sensitive or high-churn files:
157
+
158
+# Gradle:
159
+
160
+# CMake
161
+
162
+# Mongo Explorer plugin:
163
+
164
+## File-based project format:
165
+
166
+## Plugin-specific files:
167
+
168
+# IntelliJ
169
+
170
+# mpeltonen/sbt-idea plugin
171
+
172
+# JIRA plugin
173
+
174
+# Cursive Clojure plugin
175
+
176
+# Crashlytics plugin (for Android Studio and IntelliJ)
177
+
178
+### JetBrains Patch ###
179
+# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
180
+
181
+# *.iml
182
+# modules.xml
183
+# .idea/misc.xml
184
+# *.ipr
185
+
186
+# Sonarlint plugin
187
+
188
+### macOS ###
189
+*.DS_Store
190
+.AppleDouble
191
+.LSOverride
192
+
193
+# Icon must end with two \r
194
+Icon
195
+
196
+# Thumbnails
197
+._*
198
+
199
+# Files that might appear in the root of a volume
200
+.DocumentRevisions-V100
201
+.fseventsd
202
+.Spotlight-V100
203
+.TemporaryItems
204
+.Trashes
205
+.VolumeIcon.icns
206
+.com.apple.timemachine.donotpresent
207
+
208
+# Directories potentially created on remote AFP share
209
+.AppleDB
210
+.AppleDesktop
211
+Network Trash Folder
212
+Temporary Items
213
+.apdisk
214
+
215
+### Maven ###
216
+target/
217
+pom.xml.tag
218
+pom.xml.releaseBackup
219
+pom.xml.versionsBackup
220
+pom.xml.next
221
+release.properties
222
+dependency-reduced-pom.xml
223
+buildNumber.properties
224
+.mvn/timing.properties
225
+
226
+# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
227
+!/.mvn/wrapper/maven-wrapper.jar
228
+
229
+### Node ###
230
+# Logs
231
+logs
232
+npm-debug.log*
233
+yarn-debug.log*
234
+yarn-error.log*
235
+
236
+# Runtime data
237
+pids
238
+*.pid
239
+*.seed
240
+*.pid.lock
241
+
242
+# Directory for instrumented libs generated by jscoverage/JSCover
243
+lib-cov
244
+
245
+# Coverage directory used by tools like istanbul
246
+coverage
247
+
248
+# nyc test coverage
249
+.nyc_output
250
+
251
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
252
+.grunt
253
+
254
+# Bower dependency directory (https://bower.io/)
255
+bower_components
256
+
257
+# node-waf configuration
258
+.lock-wscript
259
+
260
+# Compiled binary addons (http://nodejs.org/api/addons.html)
261
+build/Release
262
+
263
+# Dependency directories
264
+node_modules/
265
+jspm_packages/
266
+
267
+# Typescript v1 declaration files
268
+typings/
269
+
270
+# Optional npm cache directory
271
+.npm
272
+
273
+# Optional eslint cache
274
+.eslintcache
275
+
276
+# Optional REPL history
277
+.node_repl_history
278
+
279
+# Output of 'npm pack'
280
+*.tgz
281
+
282
+# Yarn Integrity file
283
+.yarn-integrity
284
+
285
+# dotenv environment variables file
286
+.env
287
+
288
+
289
+### OSX ###
290
+
291
+# Icon must end with two \r
292
+
293
+# Thumbnails
294
+
295
+# Files that might appear in the root of a volume
296
+
297
+# Directories potentially created on remote AFP share
298
+
299
+### Windows ###
300
+# Windows thumbnail cache files
301
+Thumbs.db
302
+ehthumbs.db
303
+ehthumbs_vista.db
304
+
305
+# Folder config file
306
+Desktop.ini
307
+
308
+# Recycle Bin used on file shares
309
+$RECYCLE.BIN/
310
+
311
+# Windows Installer files
312
+*.cab
313
+*.msi
314
+*.msm
315
+*.msp
316
+
317
+# Windows shortcuts
318
+*.lnk
319
+
320
+### Xcode ###
321
+# Xcode
322
+#
323
+# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
324
+
325
+## Build generated
326
+build/
327
+DerivedData/
328
+
329
+## Various settings
330
+*.pbxuser
331
+!default.pbxuser
332
+*.mode1v3
333
+!default.mode1v3
334
+*.mode2v3
335
+!default.mode2v3
336
+*.perspectivev3
337
+!default.perspectivev3
338
+xcuserdata/
339
+
340
+## Other
341
+*.moved-aside
342
+*.xccheckout
343
+*.xcscmblueprint
344
+
345
+### Xcode Patch ###
346
+*.xcodeproj/*
347
+!*.xcodeproj/project.pbxproj
348
+!*.xcodeproj/xcshareddata/
349
+!*.xcworkspace/contents.xcworkspacedata
350
+/*.gcno
351
+
352
+### Gradle ###
353
+.gradle
354
+/build/
355
+
356
+# Ignore Gradle GUI config
357
+gradle-app.setting
358
+
359
+# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
360
+!gradle-wrapper.jar
361
+
362
+# Cache of project
363
+.gradletasknamecache
364
+
365
+# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
366
+# gradle/wrapper/gradle-wrapper.properties
367
+
368
+# End of https://www.gitignore.io/api/xcode,git,gradle,intellij,jetbrains,osx,maven,windows,java,node,intellij+iml,macos
369
+target/
370
+!.mvn/wrapper/maven-wrapper.jar
371
+
372
+### STS ###
373
+.apt_generated
374
+.classpath
375
+.factorypath
376
+.project
377
+.settings
378
+.springBeans
379
+
380
+### IntelliJ IDEA ###
381
+.idea
382
+*.iws
383
+*.iml
384
+*.ipr
385
+
386
+### NetBeans ###
387
+nbproject/private/
388
+build/
389
+nbbuild/
390
+dist/
391
+nbdist/
392
+.nb-gradle/
393
+
394
+node_modules/
395
+.project
396
+dist
397
+dist/*
398
+src/config/*.tmp
399
+src/config/env.js
400
+npm-debug.log
401
+
402
+_book/**
403
+*.pdb
404
+/t-oa-project/t-oa-portal/target/
405
+/t-oa-project/t-oa-logic/target/
406
+/t-oa-project/t-oa-admin/target/
407
+/t-oa-project/.idea/
408
+/t-oa-project/.idea/*
409
+.m2
410
+jr-middleware/src/main/java/com/jr/mw/cxf/chitwing/webservice/CreateRequest.java
411
+jr-middleware/src/main/java/com/jr/mw/cxf/chitwing/webservice/CreateRequestResponse.java
412
+jr-middleware/src/main/java/com/jr/mw/cxf/chitwing/webservice/ObjectFactory.java
413
+jr-middleware/src/main/java/com/jr/mw/cxf/chitwing/webservice/package-info.java
414
+jr-middleware/src/main/java/com/jr/mw/cxf/chitwing/webservice/WorkflowServiceXmlNew.java
415
+jr-middleware/src/main/java/com/jr/mw/cxf/chitwing/webservice/WorkflowServiceXmlNewPortType.java

+ 36 - 0
README.en.md

@@ -0,0 +1,36 @@
1
+# srm
2
+
3
+#### Description
4
+SRM项目源码
5
+
6
+#### Software Architecture
7
+Software architecture description
8
+
9
+#### Installation
10
+
11
+1.  xxxx
12
+2.  xxxx
13
+3.  xxxx
14
+
15
+#### Instructions
16
+
17
+1.  xxxx
18
+2.  xxxx
19
+3.  xxxx
20
+
21
+#### Contribution
22
+
23
+1.  Fork the repository
24
+2.  Create Feat_xxx branch
25
+3.  Commit your code
26
+4.  Create Pull Request
27
+
28
+
29
+#### Gitee Feature
30
+
31
+1.  You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
32
+2.  Gitee blog [blog.gitee.com](https://blog.gitee.com)
33
+3.  Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
34
+4.  The most valuable open source project [GVP](https://gitee.com/gvp)
35
+5.  The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
36
+6.  The most popular members  [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 83 - 0
README.md

@@ -0,0 +1,83 @@
1
+<<<<<<< HEAD
2
+# 项目说明书
3
+
4
+1. 项目技术栈
5
+
6
+* 后端: Jdk17 + SpringBoot + Mybatis-plus + Mysql + Redis + sa-token + easyexcel + forest + shardingsphere-jdbc
7
+* 前端: jQuery + easy-ui + freemarker + layer
8
+
9
+
10
+2. 项目结构说明
11
+    ```
12
+        ├── codegen             # 代码生成工具
13
+        ├── dependency          # 依赖管理
14
+        ├── framework           # 核心框架
15
+        │   ├── exception       # 全局异常处理相关代码
16
+        │   ├── log             # 基于切面的日志插件
17
+        │   ├── infra           # 基础设施
18
+        │   ├── security        # 安全相关代码
19
+        │   ├── util            # 工具
20
+        │   └── web             # web通用配置
21
+        ├── portal              # web入口+静态资源
22
+        ├── job                 # 定时任务服务
23
+        ├── module-name         # 功能模块名称
24
+        │   ├── client          # 暴露给其他模块的能力
25
+        │   ├── client-base     # 暴露给其他模块的能力的通用代码
26
+        │   │   ├── cmd         # 传入参数,以CMD后缀
27
+        │   │   ├── dto         # 返回数据对象,以DTO后缀
28
+        │   ├── infra           # 模块的基础设施
29
+        │   │   ├── entity      # 数据库模型
30
+        │   │   ├── mapper      # Mybatis-plus的mapper接口
31
+        │   │   ├── model       # 业务操作的数据模型
32
+        │   │   │   ├── po      # 多表查询数据模型,以PO后缀
33
+        │   │   │   ├── query   # 查询操作的数据模型,查询参数如果3个就用对象,以Query后缀
34
+        │   │   ├── service     # Mybatis-plus的服务
35
+        │   ├── logic           # 业务核心代码
36
+        │   │   ├── constant    # 常量
37
+        │   │   ├── controller  # 控制器,@Controller注解的controller,以PageController后缀,@RestController注解的controller,以RestController后缀
38
+        │   │   ├── convert     # MapStruct转换工具,根据实际业务命名,示例:UserConvert
39
+        │   │   ├── dto         # 数据传输对象,以DTO后缀
40
+        │   │   ├── logic       # 业务逻辑
41
+    ```
42
+2. 注意事项
43
+3. 模块说明
44
+4. 代码注释
45
+=======
46
+# srm
47
+
48
+#### 介绍
49
+SRM项目源码
50
+
51
+#### 软件架构
52
+软件架构说明
53
+
54
+
55
+#### 安装教程
56
+
57
+1.  xxxx
58
+2.  xxxx
59
+3.  xxxx
60
+
61
+#### 使用说明
62
+
63
+1.  xxxx
64
+2.  xxxx
65
+3.  xxxx
66
+
67
+#### 参与贡献
68
+
69
+1.  Fork 本仓库
70
+2.  新建 Feat_xxx 分支
71
+3.  提交代码
72
+4.  新建 Pull Request
73
+
74
+
75
+#### 特技
76
+
77
+1.  使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
78
+2.  Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
79
+3.  你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
80
+4.  [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
81
+5.  Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
82
+6.  Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
83
+>>>>>>> d6805392de8a525eb0a1fbc7167c49ee61fd9217

+ 49 - 0
codegen/pom.xml

@@ -0,0 +1,49 @@
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>com.jwipc</groupId>
8
+        <artifactId>jwipc-dependency</artifactId>
9
+        <version>0.0.1-SNAPSHOT</version>
10
+        <relativePath>../jwipc-dependency/pom.xml</relativePath>
11
+    </parent>
12
+    <artifactId>codegen</artifactId>
13
+    <name>${project.artifactId}</name>
14
+    <dependencies>
15
+        <dependency>
16
+            <groupId>com.baomidou</groupId>
17
+            <artifactId>mybatis-plus-boot-starter</artifactId>
18
+        </dependency>
19
+        <dependency>
20
+            <groupId>com.baomidou</groupId>
21
+            <artifactId>mybatis-plus-generator</artifactId>
22
+        </dependency>
23
+        <dependency>
24
+            <groupId>com.zaxxer</groupId>
25
+            <artifactId>HikariCP</artifactId>
26
+        </dependency>
27
+
28
+        <dependency>
29
+            <groupId>com.mysql</groupId>
30
+            <artifactId>mysql-connector-j</artifactId>
31
+        </dependency>
32
+        <dependency>
33
+            <groupId>ch.qos.logback</groupId>
34
+            <artifactId>logback-classic</artifactId>
35
+        </dependency>
36
+        <dependency>
37
+            <groupId>org.freemarker</groupId>
38
+            <artifactId>freemarker</artifactId>
39
+        </dependency>
40
+        <dependency>
41
+            <groupId>com.microsoft.sqlserver</groupId>
42
+            <artifactId>mssql-jdbc</artifactId>
43
+        </dependency>
44
+        <dependency>
45
+            <groupId>com.oracle.database.jdbc</groupId>
46
+            <artifactId>ojdbc8</artifactId>
47
+        </dependency>
48
+    </dependencies>
49
+</project>

+ 60 - 0
codegen/src/main/java/com/jwipc/Codegen.java

@@ -0,0 +1,60 @@
1
+package com.jwipc;
2
+
3
+import com.baomidou.mybatisplus.generator.FastAutoGenerator;
4
+import com.baomidou.mybatisplus.generator.config.OutputFile;
5
+import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
6
+
7
+import java.util.Collections;
8
+
9
+/**
10
+ * <p> </p>
11
+ *
12
+ * @author ZhangJie
13
+ * @version 1.0
14
+ * @since JDK 1.8
15
+ */
16
+public class Codegen {
17
+
18
+    public static void main(String[] args) {
19
+        //测试
20
+//        final String url = "jdbc:oracle:thin:@//10.100.103.95:1521/agile9";
21
+//        final String username = "srm";
22
+//        final String password = "srm123";
23
+
24
+//        final String url = "jdbc:sqlserver://10.100.101.51:1433;databaseName=SapSyncDB;encrypt=false;";
25
+//        final String username = "singledb";
26
+//        final String password = "H3&kjG8m4#Go";
27
+
28
+        final String url = "jdbc:mysql://10.100.103.74:3306/jwipc_srm_test?characterEncoding=utf-8";
29
+        final String username = "root";
30
+        final String password = "JWIPC@2024!jwipc";
31
+
32
+        final String author = "qzc";
33
+//        final String author = "zhangjie";
34
+        final String outputDir = "E:\\代码生成\\aa";
35
+//        final String outputDir = "/Users/jiez/workspace/base";
36
+        final String[] includeTables = {"t_contract_return_order_detail","t_contract_return_order"};
37
+        final String[] strings = {"dev_", "t_", "c_", "sp_", "basis", "sys_", "t_tender_", "fin_"};
38
+        final String packageName = "com.jwipc.contract";
39
+        FastAutoGenerator.create(url, username, password)
40
+                .globalConfig(builder -> {
41
+                    builder.author(author) // 设置作者
42
+                            .fileOverride() // 覆盖已生成文件
43
+                            .outputDir(outputDir); // 指定输出目录
44
+                })
45
+                .packageConfig(builder -> {
46
+
47
+                    builder.parent(packageName) // 设置父包名
48
+                            .pathInfo(Collections.singletonMap(OutputFile.xml, outputDir)); // 设置mapperXml生成路径
49
+                })
50
+                .strategyConfig(builder -> {
51
+                    builder.entityBuilder().enableLombok().enableFileOverride();
52
+                    builder.mapperBuilder().enableFileOverride();
53
+                    builder.serviceBuilder().enableFileOverride();
54
+                    builder.addInclude(includeTables) // 设置需要生成的表名
55
+                            .addTablePrefix(strings); // 设置过滤表前缀
56
+                })
57
+                .templateEngine(new FreemarkerTemplateEngine()) // 使用Freemarker引擎模板,默认的是Velocity引擎模板
58
+                .execute();
59
+    }
60
+}

+ 15 - 0
contract/contract-client-base/pom.xml

@@ -0,0 +1,15 @@
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
+    <parent>
6
+        <artifactId>contract</artifactId>
7
+        <groupId>com.jwipc</groupId>
8
+        <version>0.0.1-SNAPSHOT</version>
9
+    </parent>
10
+    <modelVersion>4.0.0</modelVersion>
11
+
12
+    <artifactId>contract-client-base</artifactId>
13
+    <name>${project.artifactId}</name>
14
+
15
+</project>

+ 131 - 0
contract/contract-client-base/src/main/java/com/jwipc/contract/base/ContractDetailClientDTO.java

@@ -0,0 +1,131 @@
1
+package com.jwipc.contract.base;
2
+
3
+import lombok.Data;
4
+
5
+import java.math.BigDecimal;
6
+
7
+/**
8
+ * @author shenyang.ou
9
+ * @date 2024/7/23 16:28
10
+ * @desc
11
+ */
12
+@Data
13
+public class ContractDetailClientDTO {
14
+    private Long id;
15
+
16
+    private Long contractId;
17
+
18
+    private String contractCode;
19
+
20
+    /**
21
+     * 物料编码
22
+     */
23
+    private String materialCode;
24
+
25
+    /**
26
+     * 物料编码
27
+     */
28
+    private String materialName;
29
+
30
+    /**
31
+     * 物料组
32
+     */
33
+    private String materialGroupName;
34
+
35
+    /**
36
+     * 物料组
37
+     */
38
+    private String materialGroupCode;
39
+
40
+    /**
41
+     * 品类
42
+     */
43
+    private String materialCategory;
44
+
45
+    /**
46
+     * 规格
47
+     */
48
+    private String materialSpec;
49
+
50
+    /**
51
+     * 型号
52
+     */
53
+    private String materialModel;
54
+
55
+    /**
56
+     * 品牌
57
+     */
58
+    private String materialBrand;
59
+
60
+    /**
61
+     * 单位
62
+     */
63
+    private String basisUnit;
64
+
65
+    /**
66
+     * 单价
67
+     */
68
+    private BigDecimal price;
69
+
70
+    /**
71
+     * 数量
72
+     */
73
+    private BigDecimal num;
74
+
75
+    /**
76
+     * 税率
77
+     */
78
+    private String taxRateName;
79
+
80
+    /**
81
+     * 税率
82
+     */
83
+    private String taxRateCode;
84
+
85
+    /**
86
+     * 固定资产卡号
87
+     */
88
+    private String cardNumber;
89
+
90
+    /**
91
+     * 备注
92
+     */
93
+    private String bz;
94
+
95
+    /**
96
+     * 质保期
97
+     */
98
+    private Integer warrantyPeriod;
99
+
100
+    /**
101
+     * 删除标记;0-未删除;1-已删除
102
+     */
103
+    private Integer deleteFlag;
104
+
105
+    private String purchaseCode;
106
+
107
+    private String itemCode;
108
+
109
+    private String factoryCode;
110
+
111
+    private String factoryName;
112
+
113
+    private String subjectCode;
114
+
115
+    private String currencyCode;
116
+
117
+    private String purchaseName;
118
+
119
+
120
+    private String totle;
121
+    private String bidFlag;
122
+    private String customerCode;
123
+    private String customerName;
124
+    private String driverAsset;
125
+    private String teamName;
126
+    private String requireName;
127
+    private String costCenterCode;
128
+    private String costCenterName;
129
+
130
+    private BigDecimal enablePurchaseNum;
131
+}

+ 39 - 0
contract/contract-client-base/src/main/java/com/jwipc/contract/base/ContractSendSignClientDTO.java

@@ -0,0 +1,39 @@
1
+package com.jwipc.contract.base;
2
+
3
+import lombok.Builder;
4
+import lombok.Data;
5
+
6
+/**
7
+ * @author shenyang.ou
8
+ * @date 2024/4/29 16:35
9
+ * @desc
10
+ */
11
+@Data
12
+@Builder
13
+public class ContractSendSignClientDTO {
14
+
15
+    /**
16
+     * 标题
17
+     */
18
+    private String title;
19
+
20
+    /**
21
+     * 公司编码(甲方)
22
+     */
23
+    private String companyCode;
24
+
25
+    /**
26
+     * 供应商编码(乙方)
27
+     */
28
+    private String supplierCode;
29
+
30
+    /**
31
+     * 附件key
32
+     */
33
+    private String fileKey;
34
+
35
+    /**
36
+     * 签章顺序 1 对方先签  2我方先签  3单方签
37
+     */
38
+    private String contractSignOrder;
39
+}

+ 25 - 0
contract/contract-client-base/src/main/java/com/jwipc/contract/base/ContractSendSignResultClientDTO.java

@@ -0,0 +1,25 @@
1
+package com.jwipc.contract.base;
2
+
3
+import lombok.Builder;
4
+import lombok.Data;
5
+
6
+/**
7
+ * @author shenyang.ou
8
+ * @date 2024/4/29 16:35
9
+ * @desc
10
+ */
11
+@Data
12
+@Builder
13
+public class ContractSendSignResultClientDTO {
14
+
15
+    /**
16
+     * 签署流程id
17
+     */
18
+    private String signFlowId;
19
+
20
+    /**
21
+     * 流程状态:0-草稿,1-签署中,2-已完成,3-已过期,4-已拒签,5-已作废,6-作废中
22
+     */
23
+    private String signFlowStatus;
24
+
25
+}

+ 51 - 0
contract/contract-client-base/src/main/java/com/jwipc/contract/base/DigitalSealConfigClientDTO.java

@@ -0,0 +1,51 @@
1
+package com.jwipc.contract.base;
2
+
3
+import lombok.Data;
4
+
5
+/**
6
+ * 功能描述:
7
+ *
8
+ * @Author: zx
9
+ * @Date: 2024/4/18 0018 9:21
10
+ */
11
+@Data
12
+public class DigitalSealConfigClientDTO {
13
+
14
+    /**
15
+     * 公司编码
16
+     */
17
+    private String companyCode ;
18
+
19
+    /**
20
+     * 签章平台组织编码
21
+     */
22
+    private String orgCode ;
23
+
24
+    /**
25
+     * 印章类型 1:合同章;2 公章;3: 财务章
26
+     */
27
+    private Integer sealType ;
28
+
29
+    /**
30
+     * 印章唯一标识
31
+     */
32
+    private String sealCode ;
33
+
34
+    /**
35
+     * 签署人编码
36
+     */
37
+    private String signerCode ;
38
+
39
+    /**
40
+     * 签署人账号
41
+     */
42
+    private String signerAccount ;
43
+
44
+    /**
45
+     * 签署人所在组织编码
46
+     */
47
+    private String signerOrgCode ;
48
+    private String phone ;
49
+    private String name ;
50
+
51
+}

+ 47 - 0
contract/contract-client-impl/pom.xml

@@ -0,0 +1,47 @@
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
+    <parent>
8
+        <groupId>com.jwipc</groupId>
9
+        <artifactId>contract</artifactId>
10
+        <version>0.0.1-SNAPSHOT</version>
11
+    </parent>
12
+
13
+
14
+    <artifactId>contract-client-impl</artifactId>
15
+    <name>${project.artifactId}</name>
16
+
17
+    <dependencies>
18
+        <dependency>
19
+            <groupId>${parent.groupId}</groupId>
20
+            <artifactId>contract-client</artifactId>
21
+        </dependency>
22
+        <dependency>
23
+            <groupId>${parent.groupId}</groupId>
24
+            <artifactId>contract-logic</artifactId>
25
+        </dependency>
26
+        <dependency>
27
+            <groupId>${parent.groupId}</groupId>
28
+            <artifactId>jwipc-util</artifactId>
29
+        </dependency>
30
+        <dependency>
31
+            <groupId>org.springframework</groupId>
32
+            <artifactId>spring-context</artifactId>
33
+            <scope>provided</scope>
34
+        </dependency>
35
+        <dependency>
36
+            <groupId>${parent.groupId}</groupId>
37
+            <artifactId>jwipc-web</artifactId>
38
+            <scope>provided</scope>
39
+        </dependency>
40
+        <dependency>
41
+            <groupId>org.mapstruct</groupId>
42
+            <artifactId>mapstruct</artifactId>
43
+            <scope>provided</scope>
44
+        </dependency>
45
+    </dependencies>
46
+    
47
+</project>

+ 29 - 0
contract/contract-client-impl/src/main/java/com/jwipc/contract/convert/ContractClientConvert.java

@@ -0,0 +1,29 @@
1
+package com.jwipc.contract.convert;
2
+
3
+import com.jwipc.contract.base.ContractDetailClientDTO;
4
+import com.jwipc.contract.base.ContractSendSignClientDTO;
5
+import com.jwipc.contract.base.ContractSendSignResultClientDTO;
6
+import com.jwipc.contract.base.DigitalSealConfigClientDTO;
7
+import com.jwipc.contract.dto.ContractDetailDTO;
8
+import com.jwipc.contract.dto.ContractSendSignDTO;
9
+import com.jwipc.contract.dto.ContractSendSignResultDTO;
10
+import com.jwipc.contract.model.po.DigitalSealConfigDTO;
11
+import org.mapstruct.Mapper;
12
+
13
+import java.util.List;
14
+
15
+/**
16
+ * @author shenyang.ou
17
+ * @date 2024/4/29 17:10
18
+ * @desc
19
+ */
20
+@Mapper(componentModel = "spring")
21
+public interface ContractClientConvert {
22
+    ContractSendSignDTO clientDTO2DTO(ContractSendSignClientDTO contractSendSignClientDTO);
23
+
24
+    ContractSendSignResultClientDTO resultClientDTO2DTO(ContractSendSignResultDTO contractSendSignResultDTO);
25
+
26
+    DigitalSealConfigClientDTO digitalSealConfigDTO2CDTO(DigitalSealConfigDTO digitalSealConfigDTO);
27
+
28
+    List<ContractDetailClientDTO> detailListToClient(List<ContractDetailDTO> contractDetailClientDTOS);
29
+}

+ 29 - 0
contract/contract-client-impl/src/main/java/com/jwipc/contract/impl/ContractDetailClientImpl.java

@@ -0,0 +1,29 @@
1
+package com.jwipc.contract.impl;
2
+
3
+import com.jwipc.contract.base.ContractDetailClientDTO;
4
+import com.jwipc.contract.client.ContractDetailClient;
5
+import com.jwipc.contract.convert.ContractClientConvert;
6
+import com.jwipc.contract.dto.ContractDetailDTO;
7
+import com.jwipc.contract.logic.ContractLogic;
8
+import lombok.RequiredArgsConstructor;
9
+import org.springframework.stereotype.Service;
10
+
11
+import java.util.List;
12
+
13
+/**
14
+ * @author shenyang.ou
15
+ * @date 2024/7/23 16:29
16
+ * @desc
17
+ */
18
+
19
+@Service
20
+@RequiredArgsConstructor
21
+public class ContractDetailClientImpl implements ContractDetailClient {
22
+    private final ContractLogic contractLogic;
23
+    private final ContractClientConvert contractClientConvert;
24
+    @Override
25
+    public List<ContractDetailClientDTO> getDetailListByPurchaseCodeAndeItem(String billCode, String itemCode) {
26
+        List<ContractDetailDTO> contractDetailClientDTOS = contractLogic.getDetailListByPurchaseCodeAndeItem(billCode,itemCode);
27
+        return contractClientConvert.detailListToClient(contractDetailClientDTOS);
28
+    }
29
+}

+ 29 - 0
contract/contract-client-impl/src/main/java/com/jwipc/contract/impl/ContractPaymentApplyClientImpl.java

@@ -0,0 +1,29 @@
1
+package com.jwipc.contract.impl;
2
+
3
+import com.jwipc.contract.client.ContractPaymentApplyClient;
4
+import com.jwipc.contract.logic.ContractPaymentApplyLogic;
5
+import lombok.RequiredArgsConstructor;
6
+import org.springframework.stereotype.Service;
7
+
8
+import java.util.Map;
9
+
10
+/**
11
+ * @author shenyang.ou
12
+ * @date 2024/7/23 16:29
13
+ * @desc
14
+ */
15
+
16
+@Service
17
+@RequiredArgsConstructor
18
+public class ContractPaymentApplyClientImpl implements ContractPaymentApplyClient {
19
+    private final ContractPaymentApplyLogic contractPaymentApplyLogic;
20
+    @Override
21
+    public void updateContractPaymentStatus(Long id, String itemCode) {
22
+        contractPaymentApplyLogic.updateContractPaymentStatus(id, itemCode);
23
+    }
24
+
25
+    @Override
26
+    public void updateContractPaymentApply(Map updateMap) {
27
+        contractPaymentApplyLogic.updateContractPaymentApply(updateMap);
28
+    }
29
+}

+ 64 - 0
contract/contract-client-impl/src/main/java/com/jwipc/contract/impl/ContractSignClientImpl.java

@@ -0,0 +1,64 @@
1
+package com.jwipc.contract.impl;
2
+
3
+import cn.hutool.core.lang.Pair;
4
+import com.jwipc.constant.SignProcessType;
5
+import com.jwipc.contract.base.ContractSendSignClientDTO;
6
+import com.jwipc.contract.base.ContractSendSignResultClientDTO;
7
+import com.jwipc.contract.base.DigitalSealConfigClientDTO;
8
+import com.jwipc.contract.client.ContractSignClient;
9
+import com.jwipc.contract.convert.ContractClientConvert;
10
+import com.jwipc.contract.dto.ContractSendSignDTO;
11
+import com.jwipc.contract.logic.ContractLogic;
12
+import com.jwipc.api.esign.SignUtils;
13
+import com.jwipc.contract.model.po.DigitalSealConfigDTO;
14
+import lombok.RequiredArgsConstructor;
15
+import org.springframework.stereotype.Service;
16
+import org.springframework.web.multipart.MultipartFile;
17
+
18
+/**
19
+ * @author shenyang.ou
20
+ * @date 2024/4/29 16:19
21
+ * @desc
22
+ */
23
+@Service
24
+@RequiredArgsConstructor
25
+public class ContractSignClientImpl implements ContractSignClient {
26
+    private final ContractLogic contractLogic;
27
+    private final ContractClientConvert contractClientConvert;
28
+
29
+    /**
30
+     * 上传盖章附件
31
+     * @param file 附件
32
+     * @param fileId 附件id
33
+     * @return 返回fileKey
34
+     */
35
+    @Override
36
+    public String uploadSignFile(MultipartFile file, String fileId) {
37
+        return contractLogic.uploadSignFile(file,fileId);
38
+    }
39
+
40
+    /**
41
+     * 一键发起签署
42
+     *
43
+     * @param contractSendSignClientDTO 签署信息
44
+     * @param signProcessType          签署流程业务枚举
45
+     * @return 返回fileKey
46
+     */
47
+    @Override
48
+    public ContractSendSignResultClientDTO sendSignClient(ContractSendSignClientDTO contractSendSignClientDTO, SignProcessType signProcessType) {
49
+        ContractSendSignDTO contractSendSignDTO = contractClientConvert.clientDTO2DTO(contractSendSignClientDTO);
50
+        return contractClientConvert.resultClientDTO2DTO(contractLogic.sendSignClient(contractSendSignDTO,signProcessType));
51
+    }
52
+
53
+    @Override
54
+    public DigitalSealConfigClientDTO selectESignDetailClient(String companyCode, String sealType) {
55
+        DigitalSealConfigDTO digitalSealConfigDTO = contractLogic.selectESignDetailClient(companyCode,sealType);
56
+        return contractClientConvert.digitalSealConfigDTO2CDTO(digitalSealConfigDTO);
57
+    }
58
+
59
+    @Override
60
+    public String getFile(String fileKey, Pair<String, String> pair, String ServerIP, String api, String ProjectSecret1, String ProjectID1) {
61
+        return SignUtils.getFile(fileKey, pair, ServerIP, "/file/v1/getDownloadUrl",
62
+                ProjectSecret1, ProjectID1);
63
+    }
64
+}

+ 43 - 0
contract/contract-client/pom.xml

@@ -0,0 +1,43 @@
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
+    <parent>
6
+        <artifactId>contract</artifactId>
7
+        <groupId>com.jwipc</groupId>
8
+        <version>0.0.1-SNAPSHOT</version>
9
+    </parent>
10
+    <modelVersion>4.0.0</modelVersion>
11
+
12
+    <artifactId>contract-client</artifactId>
13
+    <name>${project.artifactId}</name>
14
+
15
+
16
+    <dependencies>
17
+        <dependency>
18
+            <groupId>${parent.groupId}</groupId>
19
+            <artifactId>jwipc-web</artifactId>
20
+            <scope>provided</scope>
21
+        </dependency>
22
+        <dependency>
23
+            <groupId>${parent.groupId}</groupId>
24
+            <artifactId>contract-client-base</artifactId>
25
+        </dependency>
26
+        <dependency>
27
+            <groupId>${parent.groupId}</groupId>
28
+            <artifactId>jwipc-util</artifactId>
29
+        </dependency>
30
+        <dependency>
31
+            <groupId>org.springframework</groupId>
32
+            <artifactId>spring-context</artifactId>
33
+            <scope>provided</scope>
34
+        </dependency>
35
+        <dependency>
36
+            <groupId>org.mapstruct</groupId>
37
+            <artifactId>mapstruct</artifactId>
38
+            <scope>provided</scope>
39
+        </dependency>
40
+    </dependencies>
41
+
42
+
43
+</project>

+ 14 - 0
contract/contract-client/src/main/java/com/jwipc/contract/client/ContractDetailClient.java

@@ -0,0 +1,14 @@
1
+package com.jwipc.contract.client;
2
+
3
+import com.jwipc.contract.base.ContractDetailClientDTO;
4
+
5
+import java.util.List;
6
+
7
+/**
8
+ * @author shenyang.ou
9
+ * @date 2024/4/29 16:17
10
+ * @desc
11
+ */
12
+public interface ContractDetailClient {
13
+    List<ContractDetailClientDTO> getDetailListByPurchaseCodeAndeItem(String billCode,String itemCode);
14
+}

+ 17 - 0
contract/contract-client/src/main/java/com/jwipc/contract/client/ContractPaymentApplyClient.java

@@ -0,0 +1,17 @@
1
+package com.jwipc.contract.client;
2
+
3
+import com.jwipc.contract.base.ContractDetailClientDTO;
4
+
5
+import java.util.List;
6
+import java.util.Map;
7
+
8
+/**
9
+ * @author shenyang.ou
10
+ * @date 2024/4/29 16:17
11
+ * @desc
12
+ */
13
+public interface ContractPaymentApplyClient {
14
+    void updateContractPaymentStatus(Long id,String status);
15
+
16
+    void updateContractPaymentApply(Map updateMap);
17
+}

+ 38 - 0
contract/contract-client/src/main/java/com/jwipc/contract/client/ContractSignClient.java

@@ -0,0 +1,38 @@
1
+package com.jwipc.contract.client;
2
+
3
+import cn.hutool.core.lang.Pair;
4
+import com.jwipc.api.constant.ContractSendSign;
5
+import com.jwipc.constant.SignProcessType;
6
+import com.jwipc.contract.base.ContractSendSignClientDTO;
7
+import com.jwipc.contract.base.ContractSendSignResultClientDTO;
8
+import com.jwipc.contract.base.DigitalSealConfigClientDTO;
9
+import org.springframework.web.multipart.MultipartFile;
10
+
11
+/**
12
+ * @author shenyang.ou
13
+ * @date 2024/4/29 16:17
14
+ * @desc
15
+ */
16
+public interface ContractSignClient {
17
+
18
+    /**
19
+     * 上传盖章附件
20
+     * @param file 附件
21
+     * @param fileId 附件id
22
+     * @return 返回fileKey
23
+     */
24
+    String uploadSignFile(MultipartFile file , String fileId);
25
+
26
+    /**
27
+     * 一键发起签署
28
+     * @param contractSendSignClientDTO 签署信息
29
+     * @param contractSendSign 签署流程业务枚举
30
+     * @return 返回fileKey
31
+     */
32
+    ContractSendSignResultClientDTO sendSignClient(ContractSendSignClientDTO contractSendSignClientDTO, SignProcessType signProcessType);
33
+
34
+    DigitalSealConfigClientDTO selectESignDetailClient(String companyCode, String sealType);
35
+
36
+     String getFile(String fileKey, Pair<String, String> pair, String ServerIP, String api,
37
+                                 String ProjectSecret1, String ProjectID1);
38
+}

+ 26 - 0
contract/contract-infra/pom.xml

@@ -0,0 +1,26 @@
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
+    <parent>
6
+        <artifactId>contract</artifactId>
7
+        <groupId>com.jwipc</groupId>
8
+        <version>0.0.1-SNAPSHOT</version>
9
+    </parent>
10
+    <modelVersion>4.0.0</modelVersion>
11
+
12
+    <artifactId>contract-infra</artifactId>
13
+    <name>${project.artifactId}</name>
14
+
15
+    <dependencies>
16
+        <dependency>
17
+            <groupId>com.alibaba.fastjson2</groupId>
18
+            <artifactId>fastjson2</artifactId>
19
+        </dependency>
20
+        <dependency>
21
+            <groupId>${parent.groupId}</groupId>
22
+            <artifactId>jwipc-infra</artifactId>
23
+        </dependency>
24
+    </dependencies>
25
+
26
+</project>

+ 265 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/Contract.java

@@ -0,0 +1,265 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+import lombok.Getter;
8
+import lombok.Setter;
9
+import org.springframework.format.annotation.DateTimeFormat;
10
+
11
+import java.io.Serializable;
12
+import java.math.BigDecimal;
13
+import java.time.LocalDate;
14
+import java.time.LocalDateTime;
15
+
16
+/**
17
+ * <p>
18
+ * 
19
+ * </p>
20
+ *
21
+ * @author zx
22
+ * @since 2024-03-07
23
+ */
24
+@Getter
25
+@Setter
26
+@TableName("t_contract")
27
+public class Contract implements Serializable {
28
+
29
+    private static final long serialVersionUID = 1L;
30
+
31
+    @TableId(value = "id", type = IdType.AUTO)
32
+    private Long id;
33
+
34
+    /**
35
+     * 标题
36
+     */
37
+    private String contractTitle;
38
+
39
+    /**
40
+     * 合同编码
41
+     */
42
+    private String contractCode;
43
+
44
+    /**
45
+     * 合同状态
46
+     */
47
+    private Integer contractState;
48
+
49
+    /**
50
+     * 合同分类
51
+     */
52
+    private String contractType;
53
+
54
+    /**
55
+     * 公司编码
56
+     */
57
+    private String contractCompanyCode;
58
+
59
+    /**
60
+     * 公司名称
61
+     */
62
+    private String contractCompanyName;
63
+
64
+    /**
65
+     * 工厂编码
66
+     */
67
+    private String contractFactoryCode;
68
+
69
+    /**
70
+     * 工厂名称
71
+     */
72
+    private String contractFactoryName;
73
+
74
+    /**
75
+     * 工厂地址
76
+     */
77
+    private String contractFactoryAddres;
78
+
79
+    /**
80
+     * 供应商编码
81
+     */
82
+    private String contractSupplierCode;
83
+
84
+    /**
85
+     * 供应商名称
86
+     */
87
+    private String contractSupplierName;
88
+
89
+    /**
90
+     * 合同金额小写
91
+     */
92
+    private BigDecimal contractAmount;
93
+
94
+    /**
95
+     * 合同金额大写
96
+     */
97
+    private String contractAmountCapital;
98
+
99
+    /**
100
+     * 货币编码
101
+     */
102
+    private String contractCurrency;
103
+
104
+    /**
105
+     * 付款方式
106
+     */
107
+    private String contractPaymentWay;
108
+
109
+    /**
110
+     * 承兑比例
111
+     */
112
+    private BigDecimal contractAcceptance;
113
+
114
+    /**
115
+     * 发票类型
116
+     */
117
+    private Integer contractInvoiceCode;
118
+
119
+    /**
120
+     * 订单类型
121
+     */
122
+    private String contractOrderType;
123
+
124
+    /**
125
+     * 申请人
126
+     */
127
+    private String contractDemandUser;
128
+
129
+    /**
130
+     * 申请人部门
131
+     */
132
+    private String contractDemandUserDept;
133
+
134
+    /**
135
+     * 签署顺序
136
+     */
137
+    private String contractSignOrder;
138
+
139
+    /**
140
+     * 签章类别
141
+     */
142
+    private String contractSealType;
143
+
144
+    /**
145
+     * 采购组编码
146
+     */
147
+    private String contractPurchaseGroup;
148
+
149
+    /**
150
+     * 采购组织编码
151
+     */
152
+    private String contractPurchaseGroupCode;
153
+
154
+    /**
155
+     * 合同附件集合
156
+     */
157
+    private String contractFiles;
158
+
159
+    /**
160
+     * 盖章文件集合
161
+     */
162
+    private String contractSignFiels;
163
+
164
+
165
+    private String contractSignFileStatue;
166
+
167
+    /**
168
+     * 备注
169
+     */
170
+    private String contractApplyContent;
171
+
172
+    /**
173
+     * 创建日期
174
+     */
175
+    private LocalDateTime createTime;
176
+
177
+    /**
178
+     * 更新人
179
+     */
180
+    private Long updateUser;
181
+
182
+    /**
183
+     * 更新时间
184
+     */
185
+    private LocalDateTime updateTime;
186
+
187
+    /**
188
+     * 创建人
189
+     */
190
+    private Long createUser;
191
+
192
+    /**
193
+     * 删除标记;0-未删除;1-已删除
194
+     */
195
+    private Integer deleteFlag ;
196
+
197
+    private String associationContract;
198
+
199
+    private String oaProcessId;
200
+
201
+    private String oaCode;
202
+
203
+    private String oaMsg;
204
+
205
+    private String userAccount;
206
+
207
+    private String isSeal;
208
+
209
+    private Integer dataSources ;
210
+
211
+    private Long dataSourcesId;
212
+
213
+    private String dataSourcesNo;
214
+
215
+    private Integer isMro ;
216
+
217
+    private Integer isSap ;
218
+
219
+    private String contractCover;
220
+
221
+    private String fileKey;
222
+
223
+    private String signFlowId;
224
+
225
+    private String signFlowStatus;
226
+
227
+    private String signFile;
228
+
229
+    private String orderCode;
230
+
231
+    private String contractDraft;
232
+
233
+    private Integer isRaise;
234
+
235
+    private String checkState;
236
+
237
+    private String checkNo;
238
+
239
+    private LocalDateTime checkDate;
240
+
241
+    private String qualityDate;
242
+
243
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
244
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
245
+    private LocalDate signDate;
246
+
247
+
248
+    /**
249
+     * 变更类型(01-采购明细变更;02-付款条件变更;03-责权变更)
250
+     */
251
+    private String changeType;
252
+
253
+    /**
254
+     * 共享终止合同评审单ID
255
+     */
256
+    private String gxTerminateContractId;
257
+
258
+    /**
259
+     * 共享终止合同评审单编码
260
+     */
261
+    private String gxTerminateContractCode;
262
+
263
+
264
+    private Integer isInitial;
265
+}

+ 79 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractCategory.java

@@ -0,0 +1,79 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Getter;
7
+import lombok.Setter;
8
+
9
+import java.io.Serializable;
10
+import java.time.LocalDateTime;
11
+
12
+/**
13
+ * <p>
14
+ * 合同类型表
15
+ * </p>
16
+ *
17
+ * @author zx
18
+ * @since 2024-03-27
19
+ */
20
+@Getter
21
+@Setter
22
+@TableName("t_contract_category")
23
+public class ContractCategory implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    /**
28
+     * 流水号
29
+     */
30
+    @TableId(value = "id", type = IdType.AUTO)
31
+    private Long id;
32
+
33
+    /**
34
+     * 父类别编码
35
+     */
36
+    private String code;
37
+
38
+    /**
39
+     * 父类别描述
40
+     */
41
+    private String name;
42
+
43
+    /**
44
+     * 子类别编码
45
+     */
46
+    private String subCode;
47
+
48
+    /**
49
+     * 子类别描述
50
+     */
51
+    private String subName;
52
+
53
+    /**
54
+     * 删除标记 0:未删除  1:删除
55
+     */
56
+    private Byte deleteFlag;
57
+
58
+    /**
59
+     * 创建用户id
60
+     */
61
+    private Long createId;
62
+
63
+    /**
64
+     * 创建时间
65
+     */
66
+    private LocalDateTime createTime;
67
+
68
+    /**
69
+     * 更新用户id
70
+     */
71
+    private Long updateId;
72
+
73
+    /**
74
+     * 更新时间
75
+     */
76
+    private LocalDateTime updateTime;
77
+
78
+    private Integer mroFlag;
79
+}

+ 102 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractDelivery.java

@@ -0,0 +1,102 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import java.io.Serializable;
7
+import java.time.LocalDate;
8
+import java.time.LocalDateTime;
9
+import lombok.Getter;
10
+import lombok.Setter;
11
+
12
+/**
13
+ * <p>
14
+ * 合同收货单表
15
+ * </p>
16
+ *
17
+ * @author qzc
18
+ * @since 2025-12-09
19
+ */
20
+@Getter
21
+@Setter
22
+@TableName("t_contract_delivery")
23
+public class ContractDelivery implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    /**
28
+     * 自增ID
29
+     */
30
+    @TableId(value = "id", type = IdType.AUTO)
31
+    private Long id;
32
+
33
+    /**
34
+     * 收货单号
35
+     */
36
+    private String deliveryNo;
37
+
38
+    /**
39
+     * 收货人工号
40
+     */
41
+    private String receiver;
42
+
43
+    /**
44
+     * 收货日期
45
+     */
46
+    private LocalDate deliveryDate;
47
+
48
+    /**
49
+     * 单据类型(01 送货、02 退货)
50
+     */
51
+    private String documentType;
52
+
53
+    /**
54
+     * 购货方
55
+     */
56
+    private String purchaser;
57
+
58
+    /**
59
+     * 供应商
60
+     */
61
+    private String supplier;
62
+
63
+    /**
64
+     * 采购组
65
+     */
66
+    private String purchaseGroup;
67
+
68
+    /**
69
+     * 创建时间
70
+     */
71
+    private LocalDateTime createTime;
72
+
73
+    /**
74
+     * 更新时间
75
+     */
76
+    private LocalDateTime updateTime;
77
+
78
+    /**
79
+     * 采购方代码
80
+     */
81
+    private String purchaserCode;
82
+    /**
83
+     * 送货方代码
84
+     */
85
+    private String supplierCode;
86
+
87
+    /**
88
+     * 收货状态
89
+     */
90
+    private Integer deliveryStatus;
91
+
92
+    /**
93
+     * 删除状态(0正常1删除)
94
+     */
95
+    private Integer deleteFlag;
96
+    private Integer syncState;
97
+    private String syncMsg;
98
+    private String syncGxNo;
99
+    private Long createId;
100
+    private Long updateId;
101
+    private String syncGxId;
102
+}

+ 203 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractDeliveryDetail.java

@@ -0,0 +1,203 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableField;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import java.io.Serializable;
8
+import java.math.BigDecimal;
9
+import java.time.LocalDateTime;
10
+
11
+import lombok.Getter;
12
+import lombok.Setter;
13
+
14
+/**
15
+ * <p>
16
+ * 合同交货明细表
17
+ * </p>
18
+ *
19
+ * @author qzc
20
+ * @since 2025-12-09
21
+ */
22
+@Getter
23
+@Setter
24
+@TableName("t_contract_delivery_detail")
25
+public class ContractDeliveryDetail implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    /**
30
+     * 主键ID(自增30位长度)
31
+     */
32
+    @TableId(value = "id", type = IdType.AUTO)
33
+    private Long id;
34
+
35
+    /**
36
+     * 收货单行号
37
+     */
38
+    private String receiptLineNo;
39
+
40
+    /**
41
+     * 合同编号
42
+     */
43
+    private String contractNo;
44
+
45
+    /**
46
+     * 合同序号
47
+     */
48
+    private String contractSeq;
49
+
50
+    /**
51
+     * 资产类别
52
+     */
53
+    private String assetCategory;
54
+
55
+    /**
56
+     * 物品名称
57
+     */
58
+    private String itemName;
59
+
60
+    /**
61
+     * 型号规格/参数
62
+     */
63
+    private String modelSpec;
64
+
65
+    /**
66
+     * 品牌
67
+     */
68
+    private String brand;
69
+
70
+    /**
71
+     * 请购单编号
72
+     */
73
+    private String requisitionNo;
74
+
75
+    /**
76
+     * 单位
77
+     */
78
+    private String unit;
79
+
80
+    /**
81
+     * 订单数量
82
+     */
83
+    private BigDecimal orderQuantity;
84
+
85
+    /**
86
+     * 收货数量
87
+     */
88
+    private BigDecimal receivedQuantity;
89
+
90
+    /**
91
+     * 设备序列号
92
+     */
93
+    private String deviceSerialNo;
94
+
95
+    /**
96
+     * 验收状态
97
+     */
98
+    private String acceptanceStatus;
99
+
100
+    /**
101
+     * 验收单号
102
+     */
103
+
104
+    private String acceptanceNo;
105
+
106
+    /**
107
+     * 请购部门
108
+     */
109
+    private String requisitionDept;
110
+
111
+    /**
112
+     * 保管人
113
+     */
114
+    private String custodian;
115
+
116
+    /**
117
+     * 成本中心
118
+     */
119
+    private String costCenter;
120
+
121
+    /**
122
+     * 存放地点
123
+     */
124
+    private String storageLocation;
125
+
126
+    /**
127
+     * 资产用途
128
+     */
129
+    private String assetPurpose;
130
+
131
+    /**
132
+     * 资产情况
133
+     */
134
+    private String assetCondition;
135
+    /**
136
+     * 收货单编号
137
+     */
138
+    private String deliveryNo;
139
+
140
+    private String requisitionItem;
141
+    private Integer deleteFlag;
142
+    private Long createId;
143
+    private LocalDateTime createTime;
144
+    private Long updateId;
145
+    private LocalDateTime updateTime;
146
+    private Long deliveryId; //收货单id
147
+
148
+    /**
149
+     * 主表字段
150
+     */
151
+    @TableField(exist = false)
152
+    private String supplier;
153
+    @TableField(exist = false)
154
+    private String supplierCode;
155
+    @TableField(exist = false)
156
+    private String purchaser;
157
+    @TableField(exist = false)
158
+    private String purchaserCode;
159
+    @TableField(exist = false)
160
+    private BigDecimal  returnQuantity;
161
+    @TableField(exist = false)
162
+    private String purchaseGroup;
163
+    //统计字段
164
+    //在途数量
165
+    @TableField(exist = false)
166
+    private BigDecimal onlineNum;
167
+    //接收数量
168
+    @TableField(exist = false)
169
+    private BigDecimal receiveNum;
170
+    @TableField(exist = false)
171
+    private Integer deliveryStatus;
172
+    //退货数量
173
+    @TableField(exist = false)
174
+    private BigDecimal returnedQuantity;
175
+    //可退数量
176
+    @TableField(exist = false)
177
+    private BigDecimal returnableQuantity;
178
+
179
+    /**
180
+     * 请购部门名称
181
+     */
182
+    private String useDeptName;
183
+
184
+    /**
185
+     * 保管人code
186
+     */
187
+    private String userCode;
188
+    /**
189
+     * 未税单价
190
+     */
191
+    private BigDecimal noTaxPrice;
192
+
193
+    /**
194
+     * 含税单价
195
+     */
196
+    private BigDecimal price;
197
+
198
+    private String itemCode;
199
+
200
+    @TableField(exist = false)
201
+    private String contractType; //主表合同分类
202
+
203
+}

+ 240 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractDetail.java

@@ -0,0 +1,240 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableField;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import lombok.Getter;
8
+import lombok.Setter;
9
+
10
+import java.io.Serializable;
11
+import java.math.BigDecimal;
12
+import java.time.LocalDateTime;
13
+
14
+/**
15
+ * <p>
16
+ * 
17
+ * </p>
18
+ *
19
+ * @author zx
20
+ * @since 2024-03-13
21
+ */
22
+@Getter
23
+@Setter
24
+@TableName("t_contract_detail")
25
+public class ContractDetail implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @TableId(value = "id", type = IdType.AUTO)
30
+    private Long id;
31
+
32
+    private Long contractId;
33
+
34
+    private String contractCode;
35
+
36
+    /**
37
+     * 物料编码
38
+     */
39
+    private String materialCode;
40
+
41
+    /**
42
+     * 物料编码
43
+     */
44
+    private String materialName;
45
+
46
+    /**
47
+     * 物料组
48
+     */
49
+    private String materialGroupName;
50
+
51
+    /**
52
+     * 物料组
53
+     */
54
+    private String materialGroupCode;
55
+
56
+    /**
57
+     * 品类
58
+     */
59
+    private String materialCategory;
60
+
61
+    /**
62
+     * 规格
63
+     */
64
+    private String materialSpec;
65
+
66
+    /**
67
+     * 型号
68
+     */
69
+    private String materialModel;
70
+
71
+    /**
72
+     * 品牌
73
+     */
74
+    private String materialBrand;
75
+
76
+    /**
77
+     * 单位
78
+     */
79
+    private String basisUnit;
80
+
81
+    /**
82
+     * 单价
83
+     */
84
+    private BigDecimal price;
85
+
86
+    /**
87
+     * 数量
88
+     */
89
+    private BigDecimal num;
90
+
91
+    /**
92
+     * 税率
93
+     */
94
+    private String taxRateName;
95
+
96
+    /**
97
+     * 税率
98
+     */
99
+    private String taxRateCode;
100
+
101
+    /**
102
+     * 固定资产卡号
103
+     */
104
+    private String cardNumber;
105
+
106
+    /**
107
+     * 备注
108
+     */
109
+    private String bz;
110
+
111
+    /**
112
+     * 删除标记;0-未删除;1-已删除
113
+     */
114
+    private Integer deleteFlag;
115
+
116
+    private String purchaseCode;
117
+
118
+    private String itemCode;
119
+
120
+    private String factoryCode;
121
+
122
+    private String factoryName;
123
+
124
+    private String subjectCode;
125
+
126
+    private String currencyCode;
127
+
128
+    private String purchaseName;
129
+
130
+    private String customerCode;
131
+
132
+    private String customerName;
133
+
134
+    private String driverAsset;
135
+
136
+    private String teamName;
137
+
138
+    private Integer warrantyPeriod;
139
+
140
+    private String requireName;
141
+    @TableField(exist = false)
142
+    private BigDecimal amount;
143
+    @TableField(exist = false)
144
+    private String serviceUser;
145
+    @TableField(exist = false)
146
+    private String driveBz;
147
+
148
+    private String costCenterCode;
149
+    private String costCenterName;
150
+    private LocalDateTime deliveryDate;
151
+
152
+    private LocalDateTime invoiceTime;
153
+
154
+    private String stockPoint;
155
+
156
+    @TableField(exist = false)
157
+    private String  stockPointName;
158
+
159
+    private String mainUses;
160
+//    private String checkState;
161
+//    private String checkNo;
162
+    @TableField(exist = false)
163
+    private String contractType; //主表合同分类
164
+    @TableField(exist = false)
165
+    private String contractCompanyCode;//主表合同甲方公司代码
166
+    @TableField(exist = false)
167
+    private String contractCompanyName;//主表合同甲方公司名称
168
+    @TableField(exist = false)
169
+    private String contractSupplierCode;//主表合同乙方公司代码
170
+    @TableField(exist = false)
171
+    private String contractSupplierName;//主表合同乙方公司名称
172
+    @TableField(exist = false)
173
+    private String contractPurchaseGroup;//主表合同采购组代码
174
+
175
+    /**
176
+     * 未税单价
177
+     */
178
+    private BigDecimal noTaxPrice;
179
+    /**
180
+     * 合同明细行号
181
+     */
182
+    private int lineNo;
183
+    //在途数量
184
+    @TableField(exist = false)
185
+    private BigDecimal onlineNum;
186
+    //接收数量
187
+    @TableField(exist = false)
188
+    private BigDecimal receiveNum;
189
+    //已退数量
190
+    @TableField(exist = false)
191
+    private BigDecimal returnNum;
192
+    //未清数量
193
+    @TableField(exist = false)
194
+    private BigDecimal unclearNum;
195
+    //可送数量
196
+    @TableField(exist = false)
197
+    private BigDecimal  deliverableNum;
198
+    //收货数量
199
+    @TableField(exist = false)
200
+    private BigDecimal shipmentNum;
201
+
202
+
203
+
204
+    /**
205
+     * 申请样品制作项目类型 传编码
206
+     */
207
+    private String applyProjectType;
208
+
209
+    /**
210
+     * 模具申请 传编码
211
+     */
212
+    private String modelApply;
213
+
214
+    /**
215
+     * 项目所处阶段
216
+     */
217
+    private String projectProcess;
218
+
219
+
220
+    private String modelType;
221
+
222
+    /**
223
+     * 模具编号
224
+     */
225
+    private String modelNumber;
226
+
227
+    //使用人
228
+    private String userCode;
229
+    private String userName;
230
+
231
+    //使用部门
232
+    private String useDeptCode;
233
+    private String useDeptName;
234
+
235
+    /**
236
+     * 可申请数量
237
+     */
238
+    private BigDecimal enablePurchaseNum;
239
+
240
+}

+ 74 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractDetailMro.java

@@ -0,0 +1,74 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Getter;
7
+import lombok.Setter;
8
+
9
+import java.io.Serializable;
10
+import java.math.BigDecimal;
11
+import java.time.LocalDate;
12
+
13
+/**
14
+ * <p>
15
+ * 合同 - mro 数据
16
+ * </p>
17
+ *
18
+ * @author zx
19
+ * @since 2024-04-09
20
+ */
21
+@Getter
22
+@Setter
23
+@TableName("t_contract_detail_mro")
24
+public class ContractDetailMro implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @TableId(value = "id", type = IdType.AUTO)
29
+    private Long id;
30
+
31
+    private Long contractId;
32
+
33
+    private String contractCode;
34
+
35
+    /**
36
+     * 文件名称
37
+     */
38
+    private String name;
39
+
40
+    /**
41
+     * 份数
42
+     */
43
+    private String num;
44
+
45
+    /**
46
+     * 签约日期
47
+     */
48
+    private LocalDate signTime;
49
+
50
+    /**
51
+     * 我方负责人
52
+     */
53
+    private String ourPeople;
54
+
55
+    /**
56
+     * 对方负责人
57
+     */
58
+    private String otherPeople;
59
+
60
+    /**
61
+     * 合同金额
62
+     */
63
+    private BigDecimal amount;
64
+
65
+    /**
66
+     * 附件
67
+     */
68
+    private Long fileId;
69
+
70
+    /**
71
+     * 删除标记;0-未删除;1-已删除
72
+     */
73
+    private Integer deleteFlag;
74
+}

+ 254 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPay.java

@@ -0,0 +1,254 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Getter;
7
+import lombok.Setter;
8
+
9
+import java.io.Serializable;
10
+import java.math.BigDecimal;
11
+import java.time.LocalDate;
12
+import java.time.LocalDateTime;
13
+
14
+/**
15
+ * <p>
16
+ * 
17
+ * </p>
18
+ *
19
+ * @author zx
20
+ * @since 2024-03-09
21
+ */
22
+@Getter
23
+@Setter
24
+@TableName("t_contract_pay")
25
+public class ContractPay implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    @TableId(value = "id", type = IdType.AUTO)
30
+    private Long id;
31
+
32
+    /**
33
+     * 标题
34
+     */
35
+    private String payTitle;
36
+
37
+    /**
38
+     * 编码
39
+     */
40
+    private String payCode;
41
+
42
+    /**
43
+     * 付款单位编码
44
+     */
45
+    private String payOrgCode;
46
+
47
+    /**
48
+     * 付款单位名称
49
+     */
50
+    private String payOrgName;
51
+
52
+    /**
53
+     * 预付款时间
54
+     */
55
+    private LocalDate payTime;
56
+
57
+    /**
58
+     * 收款单位名称
59
+     */
60
+    private String payeeName;
61
+
62
+    /**
63
+     * 收款单位编码
64
+     */
65
+    private String payeeCode;
66
+
67
+    /**
68
+     * 付款金额
69
+     */
70
+    private BigDecimal payeeAmount;
71
+
72
+    /**
73
+     * 开户银行名称
74
+     */
75
+    private String bankName;
76
+
77
+    /**
78
+     * 联行号
79
+     */
80
+    private String bankCode;
81
+
82
+    /**
83
+     * 银行账号
84
+     */
85
+    private String bankAccount;
86
+
87
+    /**
88
+     * 货币编码
89
+     */
90
+    private String payCurrency;
91
+
92
+    /**
93
+     * 相关文件
94
+     */
95
+    private String payFiles;
96
+
97
+    /**
98
+     * 结算方式
99
+     */
100
+    private String settlementMethod;
101
+
102
+    /**
103
+     * 付款类型
104
+     */
105
+    private Integer payType;
106
+
107
+    /**
108
+     * 付款进度
109
+     */
110
+    private BigDecimal paymentProgress;
111
+
112
+    /**
113
+     * 合同ID
114
+     */
115
+    private String contractCode;
116
+
117
+    private String contractName;
118
+
119
+    private String contractAmount;
120
+
121
+    /**
122
+     * 合同阶段ID
123
+     */
124
+    private String payStageId;
125
+
126
+    private String bz;
127
+
128
+    /**
129
+     * 创建日期
130
+     */
131
+    private LocalDate createTime;
132
+
133
+    /**
134
+     * OA流程结束时间
135
+     */
136
+    private LocalDate oaFinishTime;
137
+
138
+    /**
139
+     * 更新人
140
+     */
141
+    private Long updateUser;
142
+
143
+    /**
144
+     * 更新时间
145
+     */
146
+    private LocalDateTime updateTime;
147
+
148
+    /**
149
+     * 创建人
150
+     */
151
+    private Long createUser;
152
+
153
+    /**
154
+     * 删除标记;0-未删除;1-已删除
155
+     */
156
+    private Integer deleteFlag;
157
+
158
+    /**
159
+     * 创建人部门
160
+     */
161
+    private String createDept;
162
+
163
+    private String createUserName;
164
+
165
+    /**
166
+     * 状态 0 待提交  1审批中 2 通过 3 驳回
167
+     */
168
+    private Integer payState;
169
+
170
+    private String oaProcessId;
171
+
172
+    private String oaCode;
173
+
174
+    private String oaMsg;
175
+
176
+    private String createUserCode;
177
+
178
+    /**
179
+     * 国际代码
180
+     */
181
+    private String bankSwiftCode;
182
+
183
+    /**
184
+     * 归属部门
185
+     */
186
+    private String belongDeptCode;
187
+
188
+    private String belongDeptName;
189
+
190
+    /**
191
+     * 合计金额
192
+     */
193
+    private BigDecimal totalAmount;
194
+
195
+    /**
196
+     * 不含税合计金额
197
+     */
198
+    private BigDecimal totalAmountNo;
199
+
200
+    /**
201
+     * 税额
202
+     */
203
+    private BigDecimal taxAmount;
204
+
205
+    /**
206
+     * 相关流程
207
+     */
208
+    private String process;
209
+
210
+    /**
211
+     * 是否尾款(是、否)
212
+     */
213
+    private String isBalanceDue;
214
+
215
+    /**
216
+     * 验收流程
217
+     */
218
+    private String accepProcess;
219
+    private String accepProcessData;
220
+
221
+    /**
222
+     * 模具流程
223
+     */
224
+    private String muJuProcess;
225
+    private String muJuProcessData;
226
+
227
+    /**
228
+     * 请购流程
229
+     */
230
+    private String purchaseProcess;
231
+    private String purchaseProcessData;
232
+
233
+
234
+
235
+    /**
236
+     * 本次应支付(大写)
237
+     */
238
+    private String amountCapital;
239
+
240
+    /**
241
+     * 申请类型
242
+     */
243
+    private String applicationType;
244
+
245
+    /**
246
+     * SAP订单付款 (是、否)
247
+     */
248
+    private String sapPayType;
249
+
250
+
251
+    private String orderCode;
252
+
253
+    private BigDecimal unpaidAmount;
254
+}

+ 42 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPayDetail.java

@@ -0,0 +1,42 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Getter;
7
+import lombok.Setter;
8
+
9
+import java.io.Serializable;
10
+import java.math.BigDecimal;
11
+
12
+/**
13
+ * <p>
14
+ * 
15
+ * </p>
16
+ *
17
+ * @author zx
18
+ * @since 2024-03-12
19
+ */
20
+@Getter
21
+@Setter
22
+@TableName("t_contract_pay_detail")
23
+public class ContractPayDetail implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    @TableId(value = "id", type = IdType.AUTO)
28
+    private Long id;
29
+
30
+    private Long payId;
31
+
32
+    private Long contractId;
33
+
34
+    private Long payStageId;
35
+
36
+    private BigDecimal amount;
37
+
38
+    /**
39
+     * 删除标记;0-未删除;1-已删除
40
+     */
41
+    private Integer deleteFlag;
42
+}

+ 66 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPayOrder.java

@@ -0,0 +1,66 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Getter;
7
+import lombok.Setter;
8
+
9
+import java.io.Serializable;
10
+import java.math.BigDecimal;
11
+
12
+/**
13
+ * <p>
14
+ * 付款申请 - 订单明细
15
+ * </p>
16
+ *
17
+ * @author zx
18
+ * @since 2024-04-01
19
+ */
20
+@Getter
21
+@Setter
22
+@TableName("t_contract_pay_order")
23
+public class ContractPayOrder implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    @TableId(value = "id", type = IdType.AUTO)
28
+    private Long id;
29
+
30
+    private String orderCode;
31
+
32
+    private String bz;
33
+
34
+    /**
35
+     * 应付金额
36
+     */
37
+    private BigDecimal enAmount;
38
+
39
+    /**
40
+     * 未付金额
41
+     */
42
+    private BigDecimal unAmount;
43
+
44
+    /**
45
+     * 本次金额
46
+     */
47
+    private BigDecimal amount;
48
+
49
+    /**
50
+     * 使用人
51
+     */
52
+    private String user;
53
+
54
+    /**
55
+     * 成本中心
56
+     */
57
+    private String costCenterCode;
58
+    private String costCenterName;
59
+
60
+    private Long payId;
61
+
62
+    /**
63
+     * 删除标记;0-未删除;1-已删除
64
+     */
65
+    private Integer deleteFlag;
66
+}

+ 100 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPayStage.java

@@ -0,0 +1,100 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.*;
4
+import lombok.Getter;
5
+import lombok.Setter;
6
+
7
+import java.io.Serializable;
8
+import java.math.BigDecimal;
9
+import java.time.LocalDate;
10
+
11
+/**
12
+ * <p>
13
+ * 
14
+ * </p>
15
+ *
16
+ * @author zx
17
+ * @since 2024-03-08
18
+ */
19
+@Getter
20
+@Setter
21
+@TableName("t_contract_pay_stage")
22
+public class ContractPayStage implements Serializable {
23
+
24
+    private static final long serialVersionUID = 1L;
25
+
26
+    @TableId(value = "id", type = IdType.AUTO)
27
+    private Long id;
28
+
29
+    /**
30
+     * 合同ID
31
+     */
32
+    private Long contractId;
33
+
34
+    /**
35
+     * 合同编码
36
+     */
37
+    private String contractCode;
38
+
39
+    /**
40
+     * 付款描述
41
+     */
42
+    private String paymentStage;
43
+
44
+    /**
45
+     * 付款阶段
46
+     */
47
+    private String paymentPeriod;
48
+
49
+    /**
50
+     * 付款前提条件
51
+     */
52
+    private String paymentRequirement;
53
+
54
+    /**
55
+     * 付款方式
56
+     */
57
+    private String paymentWay;
58
+
59
+    /**
60
+     * 付款时间
61
+     */
62
+    private LocalDate paymentTime;
63
+
64
+    /**
65
+     * 付款比例
66
+     */
67
+    @TableField(updateStrategy = FieldStrategy.IGNORED)
68
+    private BigDecimal paymentRatio;
69
+
70
+    /**
71
+     * 付款金额
72
+     */
73
+    private BigDecimal paymentAmount;
74
+
75
+    /**
76
+     * 已付款金额
77
+     */
78
+    private BigDecimal paymentAlreadyAmount;
79
+
80
+    /**
81
+     * 剩余未付金额
82
+     */
83
+    @TableField(exist = false)
84
+    private BigDecimal paymentPlusAmount;
85
+
86
+    /**
87
+     * 删除标记;0-未删除;1-已删除
88
+     */
89
+    private Integer deleteFlag ;
90
+    /**
91
+     * 付款备注
92
+     */
93
+    private String remark;
94
+
95
+
96
+    /**
97
+     * 合同明细行号
98
+     */
99
+    private int lineNo;
100
+}

+ 93 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPayType.java

@@ -0,0 +1,93 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableField;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import lombok.Getter;
8
+import lombok.Setter;
9
+
10
+import java.io.Serializable;
11
+import java.math.BigDecimal;
12
+
13
+/**
14
+ * <p>
15
+ * 
16
+ * </p>
17
+ *
18
+ * @author zx
19
+ * @since 2024-04-01
20
+ */
21
+@Getter
22
+@Setter
23
+@TableName("t_contract_pay_type")
24
+public class ContractPayType implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    @TableId(value = "id", type = IdType.AUTO)
29
+    private Long id;
30
+
31
+    /**
32
+     * 报销类别
33
+     */
34
+    private Integer type;
35
+
36
+    /**
37
+     * 业务描述
38
+     */
39
+    private String bz;
40
+
41
+    /**
42
+     * 金额
43
+     */
44
+    private BigDecimal amount;
45
+
46
+    /**
47
+     * 使用人
48
+     */
49
+    private String user;
50
+
51
+    /**
52
+     * 项目编码
53
+     */
54
+    private String code;
55
+
56
+    /**
57
+     * 服务客户编码
58
+     */
59
+    private String serviceUserCode;
60
+
61
+    /**
62
+     * 服务客户
63
+     */
64
+    private String serviceUser;
65
+
66
+    /**
67
+     * 驱动因素
68
+     */
69
+    private String driveBz;
70
+
71
+    /**
72
+     * 固定资产编码
73
+     */
74
+    private String assetCode;
75
+
76
+    private Long payId;
77
+
78
+    /**
79
+     * 删除标记;0-未删除;1-已删除
80
+     */
81
+    private Integer deleteFlag;
82
+
83
+    @TableField(exist = false)
84
+    private BigDecimal num;
85
+    @TableField(exist = false)
86
+    private BigDecimal price;
87
+    @TableField(exist = false)
88
+    private String materialSpec;
89
+
90
+    private String costCenterName;
91
+
92
+    private String costCenterCode;
93
+}

+ 680 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPaymentApply.java

@@ -0,0 +1,680 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.*;
4
+import lombok.Getter;
5
+import lombok.Setter;
6
+
7
+import java.io.Serializable;
8
+import java.math.BigDecimal;
9
+import java.time.LocalDateTime;
10
+
11
+/**
12
+ * <p>
13
+ * MRO付款申请主表
14
+ * </p>
15
+ *
16
+ * @author 邓京术
17
+ * @since 2025-12-10
18
+ */
19
+@Getter
20
+@Setter
21
+@TableName("fin_contract_payment_apply")
22
+public class ContractPaymentApply implements Serializable {
23
+
24
+    private static final long serialVersionUID = 1L;
25
+
26
+    /**
27
+     * 物理主键
28
+     */
29
+    @TableId(value = "id", type = IdType.AUTO)
30
+    private Long id;
31
+
32
+    /**
33
+     * 对账付款申请单号
34
+     */
35
+    private String apApplyNo;
36
+    private String feePayer;
37
+
38
+    /**
39
+     * 数据状态 1:暂存 2:待推送 3:审批中 4:审批不通过 5:已支付 6:废弃 7:待付款 8:部分付款 9:付款失败
40
+     */
41
+    private Integer status;
42
+
43
+    /**
44
+     * 冻结状态 0-暂存(未冻结);1-冻结 2-解冻
45
+     */
46
+    private Integer freezeStatus;
47
+
48
+    /**
49
+     * 变更单审批状态;0-审批中  1-审批通过  2-审批驳回
50
+     */
51
+    private Integer changeStatus;
52
+
53
+    private Integer urgentFlag;
54
+
55
+    /**
56
+     * 付款公司代码
57
+     */
58
+    private String companyCode;
59
+    /**
60
+     * 付款委托书附件
61
+     */
62
+    private String paymentFiles;
63
+
64
+    /**
65
+     * 付款公司名称
66
+     */
67
+    private String companyName;
68
+
69
+    /**
70
+     * 工厂代码
71
+     */
72
+    private String factoryCode;
73
+
74
+    /**
75
+     * 工厂名称
76
+     */
77
+    private String factoryName;
78
+
79
+    /**
80
+     * 供应商编码
81
+     */
82
+    private String supplierCode;
83
+
84
+    /**
85
+     * 供应商名称
86
+     */
87
+    private String supplierName;
88
+    /**
89
+     * 供应商编码
90
+     */
91
+    private String paymentSupplierCode;
92
+    /**
93
+     * 供应商名称
94
+     */
95
+    private String paymentSupplierName;
96
+    private Integer collectionFlag;
97
+
98
+    /**
99
+     * 供应商银行代码/供应商开户行代码/供应商联行号
100
+     */
101
+    private String supBankCode;
102
+
103
+    /**
104
+     * 供应商银行名称/供应商开户行名称
105
+     */
106
+    private String supBankName;
107
+
108
+    /**
109
+     * 供应商银行账号
110
+     */
111
+    private String supBankAccount;
112
+
113
+    /**
114
+     * 供应商银行代码
115
+     */
116
+    private String bankCode;
117
+    /**
118
+     * 供应商银行国际代码
119
+     */
120
+    private String bankInterCode;
121
+
122
+    /**
123
+     * 币种
124
+     */
125
+    private String currencyCode;
126
+
127
+    /**
128
+     * 付款方式编码
129
+     */
130
+    private String paymentWayCode;
131
+
132
+    /**
133
+     * 付款方式描述
134
+     */
135
+    private String paymentWayDesc;
136
+
137
+    /**
138
+     * 申请备注
139
+     */
140
+    private String applyRemark;
141
+
142
+    /**
143
+     * OA审批流程ID
144
+     */
145
+    private String oaProcessId;
146
+
147
+    /**
148
+     * OA审批流程号
149
+     */
150
+    private String oaProcessCode;
151
+
152
+    /**
153
+     * oa审核意见
154
+     */
155
+    private String oaProcessMessage;
156
+
157
+    /**
158
+     * 创建人id
159
+     */
160
+    private Long createUserId;
161
+
162
+    /**
163
+     * 创建用户工号
164
+     */
165
+    private String createUserCode;
166
+
167
+    /**
168
+     * 创建用户姓名
169
+     */
170
+    private String createUserName;
171
+
172
+    /**
173
+     * 创建时间
174
+     */
175
+    private LocalDateTime createTime;
176
+
177
+    /**
178
+     * 最后更新用户ID
179
+     */
180
+    private Long updateUserId;
181
+
182
+    /**
183
+     * 最后更新用户工号
184
+     */
185
+    private String updateUserCode;
186
+
187
+    /**
188
+     * 最后更新用户姓名
189
+     */
190
+    private String updateUserName;
191
+
192
+    /**
193
+     * 最后更新时间
194
+     */
195
+    private LocalDateTime updateTime;
196
+
197
+    /**
198
+     * 删除标识 0:未删除 1:已删除
199
+     */
200
+    private Integer deleteFlag;
201
+
202
+    /**
203
+     * oa科目主键
204
+     */
205
+    private String oaSubKey;
206
+
207
+    /**
208
+     * oa部门主键
209
+     */
210
+    private String oaDepKey;
211
+
212
+    /**
213
+     * oa部门名称
214
+     */
215
+    private String oaDepName;
216
+
217
+    /**
218
+     * oa年份
219
+     */
220
+    private String oaYear;
221
+
222
+    /**
223
+     * oa季度
224
+     */
225
+    private String oaQuarter;
226
+
227
+    /**
228
+     * oa服务类型
229
+     */
230
+    private String oaType;
231
+
232
+    /**
233
+     * oa厂区地点
234
+     */
235
+    private String oaPlantArea;
236
+
237
+    /**
238
+     * oa需求部门
239
+     */
240
+    private String oaDemandDep;
241
+
242
+    /**
243
+     * oa代码
244
+     */
245
+    private String oaCode;
246
+
247
+    /**
248
+     * oa预算科目(代码描述)
249
+     */
250
+    private String oaSubName;
251
+
252
+    /**
253
+     * oa合同信息(合同号+合同名称)
254
+     */
255
+    private String oaContract;
256
+
257
+    /**
258
+     * oa合同金额
259
+     */
260
+    private BigDecimal oaContractMoney;
261
+
262
+    /**
263
+     * oa已付款金额
264
+     */
265
+    private BigDecimal oaAleradyPayMoney;
266
+
267
+    /**
268
+     * oa本季度预算(预算总额)
269
+     */
270
+    private BigDecimal oaQuaeterBud;
271
+
272
+    /**
273
+     * oa设备名称
274
+     */
275
+    private String oaDeviceName;
276
+
277
+    /**
278
+     * oa付款单位
279
+     */
280
+    private String oaPayCompany;
281
+
282
+    /**
283
+     * oa本次付款描述
284
+     */
285
+    private String oaPayRemark;
286
+
287
+    /**
288
+     * oa规格
289
+     */
290
+    private String oaSpecs;
291
+
292
+    /**
293
+     * oa单位
294
+     */
295
+    private String oaUnit;
296
+
297
+    /**
298
+     * oa数量
299
+     */
300
+    private String oaNum;
301
+
302
+    /**
303
+     * oa设备验收人
304
+     */
305
+    private String oaDevicePerson;
306
+
307
+    /**
308
+     * 付款类型
309
+     */
310
+    private String paymentType;
311
+
312
+    /**
313
+     * 设备验收人code
314
+     */
315
+    private String oaDevicePersonCode;
316
+
317
+    /**
318
+     * oa固定资产编号
319
+     */
320
+    private String oaFixedAssetsCode;
321
+
322
+    /**
323
+     * oa预算内付款金额
324
+     */
325
+    private BigDecimal oaBudInnerMoney;
326
+
327
+    /**
328
+     * oa预算外付款金额
329
+     */
330
+    private BigDecimal oaBudOutMoney;
331
+
332
+    /**
333
+     * 预算内申请金额
334
+     */
335
+    private BigDecimal budInnerMoney;
336
+
337
+    /**
338
+     * 预算外申请金额
339
+     */
340
+    private BigDecimal budOutMoney;
341
+
342
+    /**
343
+     * 预算内余额
344
+     */
345
+    private BigDecimal oaBalance;
346
+
347
+    /**
348
+     * 紧急程度
349
+     */
350
+    private String oaUrgencyDegree;
351
+
352
+    /**
353
+     * oa转账金额
354
+     */
355
+    private BigDecimal oaTransferMoney;
356
+
357
+    /**
358
+     * oa承兑金额
359
+     */
360
+    private BigDecimal oaAcceptanceMoney;
361
+
362
+    /**
363
+     * 维修内容
364
+     */
365
+    private String oaRepairContent;
366
+
367
+    /**
368
+     * oa主管会计
369
+     */
370
+    private String oaAccountantCharge;
371
+
372
+    /**
373
+     * 主管会计code
374
+     */
375
+    private String oaAccountantChargeCode;
376
+
377
+    /**
378
+     * 经办人
379
+     */
380
+    private String oaHandler;
381
+
382
+    /**
383
+     * 经办人工号
384
+     */
385
+    private String oaHandlerCode;
386
+
387
+    /**
388
+     * 费用归属
389
+     */
390
+    private String oaCostAttribution;
391
+
392
+    /**
393
+     * 现金
394
+     */
395
+    private BigDecimal oaCash;
396
+
397
+    /**
398
+     * 合同号
399
+     */
400
+    private String contractNo;
401
+
402
+    /**
403
+     * 流程id
404
+     */
405
+    private Integer processId;
406
+
407
+    /**
408
+     * 研发项目
409
+     */
410
+    private String rdProject;
411
+
412
+    /**
413
+     * 用途
414
+     */
415
+    private String purpose;
416
+
417
+    /**
418
+     * 借款金额
419
+     */
420
+    private BigDecimal oaBorrowMoney;
421
+
422
+    /**
423
+     * 是否安全生产费 0是1否
424
+     */
425
+    private Byte isSafeProductionCost;
426
+
427
+    /**
428
+     * 是否oa补录 0:否 1:是
429
+     */
430
+    private Integer isOa;
431
+
432
+    /**
433
+     * 项目名称
434
+     */
435
+    private String oaProjectName;
436
+
437
+    /**
438
+     * 子项目名称
439
+     */
440
+    private String oaChildProjectName;
441
+
442
+    /**
443
+     * 租聘费类别
444
+     */
445
+    private String oaHireType;
446
+
447
+    /**
448
+     * 预算外超额
449
+     */
450
+    private BigDecimal oaOutExcess;
451
+
452
+    /**
453
+     * 预算外超出比
454
+     */
455
+    private BigDecimal oaExcessScale;
456
+
457
+    /**
458
+     * oa年度预算代码 (仅日常借款使用)
459
+     */
460
+    private String oaYearBudget;
461
+
462
+    /**
463
+     * oa申请人工号
464
+     */
465
+    private String oaApplyUserCode;
466
+
467
+    /**
468
+     * oa申请人姓名
469
+     */
470
+    private String oaApplyUserName;
471
+
472
+    /**
473
+     * 项目经理
474
+     */
475
+    private String oaProjectManager;
476
+
477
+    /**
478
+     * 项目经理编码
479
+     */
480
+    private String oaProjectManagerCode;
481
+
482
+    /**
483
+     * 费用部门编码
484
+     */
485
+    private String costDeptCode;
486
+
487
+    /**
488
+     * 费用部门名称
489
+     */
490
+    private String costDeptName;
491
+
492
+    /**
493
+     * 使用人编码
494
+     */
495
+    private String useCode;
496
+
497
+    /**
498
+     * 使用人名称
499
+     */
500
+    private String useName;
501
+
502
+    /**
503
+     * 主管BP经理编码
504
+     */
505
+    private String bpCode;
506
+
507
+    /**
508
+     * 主管BP经理名称
509
+     */
510
+    private String bpName;
511
+
512
+    /**
513
+     * 费用科目
514
+     */
515
+    private String expenseAccount;
516
+
517
+    /**
518
+     * 费用科目名称
519
+     */
520
+    private String expenseAccountName;
521
+
522
+    /**
523
+     * 会计年度
524
+     */
525
+    private String accountingYear;
526
+
527
+    /**
528
+     * 会计凭证
529
+     */
530
+    private String accountingDocument;
531
+
532
+    /**
533
+     * 1 未同步 2 新建同步成功 3 变更同步成功 4 新建同步失败 5、变更同步失败
534
+     */
535
+    private Integer syncState;
536
+
537
+    /**
538
+     * 同步返回信息
539
+     */
540
+    private String syncMsg;
541
+
542
+    /**
543
+     * 审批通过时间
544
+     */
545
+    private LocalDateTime approvalTime;
546
+
547
+    /**
548
+     * OA项目
549
+     */
550
+    private String oaXm;
551
+
552
+    /**
553
+     * OA业务科目
554
+     */
555
+    private String oaYwkm;
556
+
557
+    /**
558
+     * oa科目主键(查询时使用)
559
+     */
560
+    private String llkzj;
561
+
562
+    /**
563
+     * 附件ids
564
+     */
565
+    private String files;
566
+
567
+    /**
568
+     * 是否提前付款;0-否;1-是
569
+     */
570
+    private Integer advancePaymentFlag;
571
+
572
+    /**
573
+     * 承兑期限
574
+     */
575
+    private String acceptanceMethod;
576
+
577
+    /**
578
+     * 报关公司编码
579
+     */
580
+    private String faSupplier;
581
+
582
+    /**
583
+     * 报关公司名称
584
+     */
585
+    private String faSupplierName;
586
+
587
+    /**
588
+     * 实际应付金额
589
+     */
590
+    private BigDecimal actualityPayMoney;
591
+
592
+    /**
593
+     * 付款计划金额
594
+     */
595
+    private BigDecimal payPlanMoney;
596
+
597
+    /**
598
+     * 付款用途
599
+     */
600
+    private String paymentPurpose;
601
+
602
+    /**
603
+     * 付款用途描述
604
+     */
605
+    private String paymentPurposeDesc;
606
+
607
+    /**
608
+     * 供应商退款(1:是,0:否)
609
+     */
610
+//    private String supplierReturn;
611
+
612
+    /**
613
+     * 影像编码
614
+     */
615
+//    @TableField(updateStrategy = FieldStrategy.IGNORED)
616
+    private String imgCode;
617
+
618
+    /**
619
+     * 影像创建时间
620
+     */
621
+//    @TableField(updateStrategy = FieldStrategy.IGNORED)
622
+    private LocalDateTime imgTime;
623
+
624
+    /**
625
+     * 影像创建人
626
+     */
627
+//    @TableField(updateStrategy = FieldStrategy.IGNORED)
628
+    private Long imgUserId;
629
+
630
+    private String poImgCode;
631
+
632
+    /**
633
+     * 影像编码
634
+     */
635
+    private LocalDateTime poImgTime;
636
+    private Long poImgUserId;
637
+
638
+    /**
639
+     * 付款类型
640
+     */
641
+    private String businessType;
642
+
643
+    /**
644
+     * 付款公司
645
+     */
646
+    private String paymentCompanyCode;
647
+
648
+    /**
649
+     * 收款单位
650
+     */
651
+    private String paymentCompanyName;
652
+
653
+    /**
654
+     * 收款地址
655
+     */
656
+    private String bankAddress;
657
+
658
+    /**
659
+     * 逾期款项
660
+     */
661
+    private BigDecimal overdueAmount;
662
+    /**
663
+     * 到期款项
664
+     */
665
+    private BigDecimal dueAmount;
666
+    /**
667
+     * 应付账款余额
668
+     */
669
+    private BigDecimal accountsPayableBalance;
670
+    /**
671
+     * 暂估余额
672
+     */
673
+    private BigDecimal provisionalBalance;
674
+
675
+    /**
676
+     * 邮件发送标识
677
+     */
678
+    private Integer sendEmailCollectionFlag;
679
+
680
+}

+ 324 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPaymentApplyDetail.java

@@ -0,0 +1,324 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Getter;
7
+import lombok.Setter;
8
+import org.springframework.format.annotation.DateTimeFormat;
9
+
10
+import java.io.Serializable;
11
+import java.math.BigDecimal;
12
+import java.time.LocalDateTime;
13
+
14
+/**
15
+ * <p>
16
+ * MRo合同付款申请明细表
17
+ * </p>
18
+ *
19
+ * @author 邓京术
20
+ * @since 2025-12-10
21
+ */
22
+@Getter
23
+@Setter
24
+@TableName("fin_contract_payment_apply_detail")
25
+public class ContractPaymentApplyDetail implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    /**
30
+     * 物理主键
31
+     */
32
+    @TableId(value = "id", type = IdType.AUTO)
33
+    private Long id;
34
+
35
+    /**
36
+     * 行号
37
+     */
38
+    private String itemNo;
39
+
40
+    /**
41
+     * 款项类型
42
+     */
43
+    private String amountType;
44
+
45
+    /**
46
+     * 发票正负向标识 1:正向 2:负向
47
+     */
48
+    private Integer posNegFlag;
49
+
50
+    /**
51
+     * 到货付款申请ID
52
+     */
53
+    private Long cppId;
54
+
55
+    /**
56
+     * 到货付款申请单号
57
+     */
58
+    private String cppNo;
59
+
60
+    /**
61
+     * 采购订单号
62
+     */
63
+    private String poCode;
64
+
65
+    /**
66
+     * 订单行号
67
+     */
68
+    private String poItemNo;
69
+
70
+    /**
71
+     * 订单数量
72
+     */
73
+    private BigDecimal poNum;
74
+
75
+    /**
76
+     * 物料编码
77
+     */
78
+    private String materialCode;
79
+
80
+    /**
81
+     * 物料描述
82
+     */
83
+    private String materialDesc;
84
+
85
+    /**
86
+     * 单位
87
+     */
88
+    private String materialUnit;
89
+
90
+    /**
91
+     * 税率代码
92
+     */
93
+    private String taxCode;
94
+
95
+    /**
96
+     * 税率描述
97
+     */
98
+    private String taxDesc;
99
+
100
+    /**
101
+     * 税率值(0.13)
102
+     */
103
+    private BigDecimal taxValue;
104
+
105
+    /**
106
+     * 未税单价
107
+     */
108
+    private BigDecimal ntPrice;
109
+
110
+    /**
111
+     * 含税单价
112
+     */
113
+    private BigDecimal itPrice;
114
+
115
+    /**
116
+     * 未税金额
117
+     */
118
+    private BigDecimal ntAmount;
119
+
120
+    /**
121
+     * 含税金额
122
+     */
123
+    private BigDecimal itAmount;
124
+
125
+    /**
126
+     * 税额
127
+     */
128
+    private BigDecimal dtAmount;
129
+
130
+    /**
131
+     * 预算内金额
132
+     */
133
+    private BigDecimal budInnerMoney;
134
+
135
+    /**
136
+     * 预算外金额
137
+     */
138
+    private BigDecimal budOutMoney;
139
+
140
+    /**
141
+     * 行备注
142
+     */
143
+    private String itemRemark;
144
+
145
+//    /**
146
+//     * 询源采购组编码
147
+//     */
148
+//    private String seekPgCode;
149
+//
150
+//    /**
151
+//     * 询源采购组名称
152
+//     */
153
+//    private String seekPgName;
154
+
155
+    /**
156
+     * 订单付款方式编码
157
+     */
158
+    private String ppwCode;
159
+
160
+    /**
161
+     * 订单付款方式描述
162
+     */
163
+    private String ppwDesc;
164
+
165
+    /**
166
+     * 订单付款条件编码
167
+     */
168
+    private String ppcCode;
169
+
170
+    /**
171
+     * 订单付款条件描述
172
+     */
173
+    private String ppcDesc;
174
+
175
+    /**
176
+     * 物料凭证
177
+     */
178
+    private String mvCode;
179
+
180
+    /**
181
+     * 物料凭证行号
182
+     */
183
+    private String mvItemNo;
184
+
185
+    /**
186
+     * 物料凭证过账日期
187
+     */
188
+    private LocalDateTime mvPostDate;
189
+
190
+    /**
191
+     * 物料凭证入库数量
192
+     */
193
+    private BigDecimal mvNum;
194
+
195
+    /**
196
+     * SAP发票号
197
+     */
198
+    private String invoiceNo;
199
+
200
+    /**
201
+     * SAP发票行项目号
202
+     */
203
+    private String invoiceItemNo;
204
+
205
+    /**
206
+     * SAP发票年度
207
+     */
208
+    private String invoiceYear;
209
+
210
+    /**
211
+     * SAP发票过账日期
212
+     */
213
+    private LocalDateTime invoicePostDate;
214
+
215
+    /**
216
+     * SAP发票文本
217
+     */
218
+    private String invoiceText;
219
+
220
+    /**
221
+     * 发票付款方式编码
222
+     */
223
+    private String ipwCode;
224
+
225
+    /**
226
+     * 发票付款方式描述
227
+     */
228
+    private String ipwDesc;
229
+
230
+    /**
231
+     * 发票付款条件编码
232
+     */
233
+    private String ipcCode;
234
+
235
+    /**
236
+     * 发票付款条件描述
237
+     */
238
+    private String ipcDesc;
239
+
240
+    /**
241
+     * (集采)采购凭证编号
242
+     */
243
+    private String jcPoCode;
244
+
245
+    /**
246
+     * (集采)采购凭证行号
247
+     */
248
+    private String jcPoItemNo;
249
+
250
+    /**
251
+     * 集采工厂
252
+     */
253
+    private String jcFactoryCode;
254
+
255
+    /**
256
+     * 删除标识 0:未删除 1:已删除
257
+     */
258
+    private Integer deleteFlag;
259
+
260
+    /**
261
+     * 数据主键 款项类型_正负向标识_采购订单号_订单行号_发票年度_发票号_发票行号
262
+     */
263
+//    private String dataKey;
264
+
265
+    /**
266
+     * 寻源单据id
267
+     */
268
+    private Long sourceId;
269
+
270
+    /**
271
+     * 合同号
272
+     */
273
+    private String contractNo;
274
+
275
+    /**
276
+     * 合同名称
277
+     */
278
+    private String contractName;
279
+    private String contractType;
280
+
281
+    /**
282
+     * 付款阶段
283
+     */
284
+    private String paymentAround;
285
+    /**
286
+     * 付款笔数
287
+     */
288
+    private String paymentStage;
289
+    /**
290
+     * 付款方式
291
+     */
292
+    private String paymentWay;
293
+    /**
294
+     * 阶段付款金额
295
+     */
296
+    private BigDecimal aroundAmount;
297
+
298
+
299
+
300
+
301
+    /**
302
+     * 科目类别 【po_item_subject】 A-资产,C-销售订单,E-有KD-CO的客户,K-成本中心
303
+     */
304
+    private String subjectTypeCode;
305
+//    private String accountStatementNo;
306
+    private BigDecimal strikePriceAmount;
307
+
308
+    /**
309
+     * 实际未付金额
310
+     */
311
+    private BigDecimal actualUnpaidAmount;
312
+
313
+    /**
314
+     * 更新时间
315
+     */
316
+    private LocalDateTime updateTime;
317
+
318
+    /**
319
+     * 折扣金额
320
+     */
321
+    private BigDecimal discountMoney;
322
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
323
+    private LocalDateTime expectationPaymentDate;
324
+}

+ 179 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractPaymentInvoicedReceipt.java

@@ -0,0 +1,179 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Getter;
7
+import lombok.Setter;
8
+
9
+import java.io.Serializable;
10
+import java.math.BigDecimal;
11
+import java.time.LocalDateTime;
12
+import java.util.Date;
13
+
14
+/**
15
+ * <p>
16
+ * 合同付款申请模块-关联发票明细
17
+ * </p>
18
+ *
19
+ * @author 邓京术
20
+ * @since 2024-03-05
21
+ */
22
+@Getter
23
+@Setter
24
+@TableName("fin_contract_payment_invoiced_receipt")
25
+public class ContractPaymentInvoicedReceipt implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    /**
30
+     * 数据主键
31
+     */
32
+    @TableId(value = "id", type = IdType.AUTO)
33
+    private Long id;
34
+
35
+    /**
36
+     * 合同付款申请单ID
37
+     */
38
+    private Long iaId;
39
+
40
+    /**
41
+     * 可抵扣编号:1-可抵扣;2-不可抵扣
42
+     */
43
+    private Integer deductionCodeType;
44
+
45
+    /**
46
+     * 发票代码
47
+     */
48
+    private String invoiceCode;
49
+
50
+    /**
51
+     * 发票号码
52
+     */
53
+    private String invoiceNumber;
54
+
55
+    /**
56
+     * 数电发票号码
57
+     */
58
+    private String electronInvoiceNumber;
59
+
60
+    /**
61
+     * 税号
62
+     */
63
+    private String dutyParagraph;
64
+
65
+    /**
66
+     * 发票日期
67
+     */
68
+    private Date invoiceDate;
69
+
70
+    /**
71
+     * 税率
72
+     */
73
+    private String taxRate;
74
+
75
+    /**
76
+     * 币种
77
+     */
78
+    private String currencyCode;
79
+
80
+    /**
81
+     * 不含税金额
82
+     */
83
+    private BigDecimal noTaxAmount;
84
+
85
+    /**
86
+     * 含税金额
87
+     */
88
+    private BigDecimal taxAmount;
89
+
90
+    /**
91
+     * 税金
92
+     */
93
+    private BigDecimal diffTaxMoney;
94
+
95
+//    /**
96
+//     * 供应商名称(弃用)
97
+//     */
98
+//    private String supplierName;
99
+//
100
+//    /**
101
+//     * 供应商代码(弃用)
102
+//     */
103
+//    private String supplierCode;
104
+
105
+    /**
106
+     * 发票附件id
107
+     */
108
+    private Long fileId;
109
+
110
+    /**
111
+     * 发票附件名称
112
+     */
113
+    private String fileName;
114
+
115
+    /**
116
+     * 创建用户ID
117
+     */
118
+    private Long createUserId;
119
+
120
+    /**
121
+     * 创建时间
122
+     */
123
+    private LocalDateTime createTime;
124
+
125
+    /**
126
+     * 最后更新用户ID
127
+     */
128
+    private Long updateUserId;
129
+
130
+    /**
131
+     * 最后更新时间
132
+     */
133
+    private LocalDateTime updateTime;
134
+
135
+    /**
136
+     * 扣款状态
137
+     */
138
+    private String deductionStatus;
139
+
140
+    /**
141
+     * 备注
142
+     */
143
+    private String note;
144
+
145
+    /**
146
+     * 删除标记 0:未删除 1:已删除
147
+     */
148
+    private Integer deleteFlag;
149
+
150
+    /**
151
+     * 发票类型;0-蓝字发票;1-红字发票
152
+     */
153
+    private Integer type;
154
+
155
+    /**
156
+     * 发票流水号(发票云返回)
157
+     */
158
+    private String serialNo;
159
+
160
+    /**
161
+     * 发票云返回备注
162
+     */
163
+    private String erpRemark;
164
+
165
+    /**
166
+     * 被红冲的蓝字发票号
167
+     */
168
+    private String blueInvoiceNo;
169
+
170
+    /**
171
+     * 不可删除标记;0-默认;1-不可删除
172
+     */
173
+    private Integer notDeleteFlag;
174
+
175
+    /**
176
+     * 发票云返回的json
177
+     */
178
+    private String erpJson;
179
+}

+ 129 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractReturnOrder.java

@@ -0,0 +1,129 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import java.io.Serializable;
7
+import java.time.LocalDate;
8
+import java.time.LocalDateTime;
9
+import lombok.Getter;
10
+import lombok.Setter;
11
+
12
+/**
13
+ * <p>
14
+ * 合同退货单表
15
+ * </p>
16
+ *
17
+ * @author qzc
18
+ * @since 2025-12-16
19
+ */
20
+@Getter
21
+@Setter
22
+@TableName("t_contract_return_order")
23
+public class ContractReturnOrder implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    /**
28
+     * 自增ID
29
+     */
30
+    @TableId(value = "id", type = IdType.AUTO)
31
+    private Long id;
32
+
33
+    /**
34
+     * 退货单号
35
+     */
36
+    private String returnOrderNo;
37
+
38
+    /**
39
+     * 收货单号
40
+     */
41
+    private String deliveryNo;
42
+
43
+    /**
44
+     * 退货人
45
+     */
46
+    private String receiver;
47
+
48
+    /**
49
+     * 退货日期
50
+     */
51
+    private LocalDate returnOrderDate;
52
+
53
+    /**
54
+     * 单据类型(01 送货、02 退货)
55
+     */
56
+    private String documentType;
57
+
58
+    /**
59
+     * 购货方
60
+     */
61
+    private String purchaser;
62
+
63
+    /**
64
+     * 甲方代码(购货方)
65
+     */
66
+    private String purchaserCode;
67
+
68
+    /**
69
+     * 供应商
70
+     */
71
+    private String supplier;
72
+
73
+    /**
74
+     * 采购组
75
+     */
76
+    private String purchaseGroup;
77
+
78
+    /**
79
+     * 供应商代码
80
+     */
81
+    private String supplierCode;
82
+
83
+    /**
84
+     * 退货单状态(1 已发货,2 已收货,3 已记账)
85
+     */
86
+    private Integer deliveryStatus;
87
+
88
+    /**
89
+     * 删除状态(0正常1删除)
90
+     */
91
+    private Integer deleteFlag;
92
+
93
+    /**
94
+     * 同步状态
95
+     */
96
+    private Integer syncState;
97
+
98
+    /**
99
+     * 同步返回信息
100
+     */
101
+    private String syncMsg;
102
+
103
+    /**
104
+     * 共享返回单据号
105
+     */
106
+    private String syncGxNo;
107
+
108
+    /**
109
+     * 创建人
110
+     */
111
+    private Long createId;
112
+
113
+    /**
114
+     * 创建时间
115
+     */
116
+    private LocalDateTime createTime;
117
+
118
+    /**
119
+     * 修改人
120
+     */
121
+    private Long updateId;
122
+
123
+    /**
124
+     * 修改时间
125
+     */
126
+    private LocalDateTime updateTime;
127
+
128
+    private String syncGxId;
129
+}

+ 192 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractReturnOrderDetail.java

@@ -0,0 +1,192 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import java.io.Serializable;
7
+import java.math.BigDecimal;
8
+import java.time.LocalDateTime;
9
+import lombok.Getter;
10
+import lombok.Setter;
11
+
12
+/**
13
+ * <p>
14
+ * 合同退货明细表
15
+ * </p>
16
+ *
17
+ * @author qzc
18
+ * @since 2025-12-16
19
+ */
20
+@Getter
21
+@Setter
22
+@TableName("t_contract_return_order_detail")
23
+public class ContractReturnOrderDetail implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    /**
28
+     * 主键ID(自增30位长度)
29
+     */
30
+    @TableId(value = "id", type = IdType.AUTO)
31
+    private Long id;
32
+
33
+    /**
34
+     * 收货单号
35
+     */
36
+    private String deliveryNo;
37
+
38
+    /**
39
+     * 收货单行号
40
+     */
41
+    private String receiptLineNo;
42
+
43
+    /**
44
+     * 送货单id
45
+     */
46
+    private Long returnOrderId;
47
+
48
+    /**
49
+     * 退货单号
50
+     */
51
+    private String returnOrderNo;
52
+
53
+    /**
54
+     * 合同编号
55
+     */
56
+    private String contractNo;
57
+
58
+    /**
59
+     * 合同序号
60
+     */
61
+    private String contractSeq;
62
+
63
+    /**
64
+     * 资产类别
65
+     */
66
+    private String assetCategory;
67
+
68
+    /**
69
+     * 物品名称
70
+     */
71
+    private String itemName;
72
+
73
+    /**
74
+     * 型号规格/参数
75
+     */
76
+    private String modelSpec;
77
+
78
+    /**
79
+     * 品牌
80
+     */
81
+    private String brand;
82
+
83
+    /**
84
+     * 请购单编号
85
+     */
86
+    private String requisitionNo;
87
+
88
+    /**
89
+     * 单位
90
+     */
91
+    private String unit;
92
+
93
+    /**
94
+     * 订单数量
95
+     */
96
+    private BigDecimal orderQuantity;
97
+
98
+    /**
99
+     * 退货数量
100
+     */
101
+    private BigDecimal  returnQuantity;
102
+
103
+    /**
104
+     * 收货数量
105
+     */
106
+    private BigDecimal receivedQuantity;
107
+
108
+    /**
109
+     * 设备序列号
110
+     */
111
+    private String deviceSerialNo;
112
+
113
+    /**
114
+     * 验收状态
115
+     */
116
+    private String acceptanceStatus;
117
+
118
+    /**
119
+     * 请购部门code
120
+     */
121
+    private String requisitionDept;
122
+
123
+    /**
124
+     * 请购部门名称
125
+     */
126
+    private String useDeptName;
127
+
128
+
129
+    /**
130
+     * 保管人名称
131
+     */
132
+    private String custodian;
133
+    /**
134
+     * 保管人code
135
+     */
136
+    private String userCode;
137
+
138
+    /**
139
+     * 成本中心
140
+     */
141
+    private String costCenter;
142
+
143
+    /**
144
+     * 存放地点
145
+     */
146
+    private String storageLocation;
147
+
148
+    /**
149
+     * 删除状态
150
+     */
151
+    private Integer deleteFlag;
152
+
153
+    /**
154
+     * 创建人
155
+     */
156
+    private Long createId;
157
+
158
+    /**
159
+     * 创建时间
160
+     */
161
+    private LocalDateTime createTime;
162
+
163
+    /**
164
+     * 修改人
165
+     */
166
+    private Long updateId;
167
+
168
+    /**
169
+     * 修改时间
170
+     */
171
+    private LocalDateTime updateTime;
172
+
173
+    private String returnOrderLine;
174
+
175
+    /**
176
+     * 验收单号
177
+     */
178
+
179
+    private String acceptanceNo;
180
+
181
+    /**
182
+     * 未税单价
183
+     */
184
+    private BigDecimal noTaxPrice;
185
+
186
+    /**
187
+     * 含税单价
188
+     */
189
+    private BigDecimal price;
190
+
191
+
192
+}

+ 41 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/entity/ContractSubSeq.java

@@ -0,0 +1,41 @@
1
+package com.jwipc.contract.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Data;
7
+
8
+import java.io.Serial;
9
+import java.util.Date;
10
+import java.io.Serializable;
11
+
12
+/**
13
+ * 合同子合同序号计数器表实体类
14
+ *
15
+ * @author Chen Tianshi
16
+ * @since 2026-01-15 10:39:38
17
+ */
18
+@Data
19
+@TableName("t_contract_Sub_seq")
20
+public class ContractSubSeq implements Serializable {
21
+    @Serial
22
+    private static final long serialVersionUID = 655407966265075943L;
23
+    /**
24
+     * 主键ID(自增30位长度)
25
+     */
26
+    @TableId(value = "id", type = IdType.AUTO)
27
+    private Long id;
28
+    /**
29
+     * 父合同编码
30
+     */
31
+    private String parentContractCode;
32
+    /**
33
+     * 最后使用的子合同序号
34
+     */
35
+    private Integer lastSeq;
36
+    /**
37
+     * 最后更新时间
38
+     */
39
+    private Date updateTime;
40
+}
41
+

+ 16 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractCategoryMapper.java

@@ -0,0 +1,16 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.jwipc.contract.entity.ContractCategory;
5
+
6
+/**
7
+ * <p>
8
+ * 合同类型表 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author zx
12
+ * @since 2024-03-27
13
+ */
14
+public interface ContractCategoryMapper extends BaseMapper<ContractCategory> {
15
+
16
+}

+ 29 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractDeliveryDetailMapper.java

@@ -0,0 +1,29 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.ContractDeliveryDetail;
5
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6
+import com.jwipc.contract.model.po.ContractDeliveryDetailPO;
7
+import com.jwipc.contract.model.query.ContractDeliveryDetailQuery;
8
+import org.apache.ibatis.annotations.Param;
9
+
10
+import java.util.List;
11
+
12
+/**
13
+ * <p>
14
+ * 合同交货明细表 Mapper 接口
15
+ * </p>
16
+ *
17
+ * @author qzc
18
+ * @since 2025-12-09
19
+ */
20
+public interface ContractDeliveryDetailMapper extends BaseMapper<ContractDeliveryDetail> {
21
+
22
+    List<ContractDeliveryDetailPO> findList(@Param("query")ContractDeliveryDetailQuery query);
23
+
24
+    List<ContractDeliveryDetail> selectReceiptContractDetailListPage(Page<ContractDeliveryDetail> page, @Param("query")ContractDeliveryDetailQuery query);
25
+
26
+    List<ContractDeliveryDetail> selectreturnOrdertDetailListPage(Page<ContractDeliveryDetail> page, @Param("query")ContractDeliveryDetailQuery query);
27
+
28
+    List<ContractDeliveryDetail> selectSumReivedQuantity(@Param("dataKeys")List<String> dataKeys);
29
+}

+ 22 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractDeliveryMapper.java

@@ -0,0 +1,22 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.ContractDelivery;
5
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6
+import com.jwipc.contract.model.query.ContractDeliveryQuery;
7
+import org.apache.ibatis.annotations.Param;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * <p>
13
+ * 合同收货单表 Mapper 接口
14
+ * </p>
15
+ *
16
+ * @author qzc
17
+ * @since 2025-12-09
18
+ */
19
+public interface ContractDeliveryMapper extends BaseMapper<ContractDelivery> {
20
+
21
+    List<ContractDelivery> findList(Page<ContractDelivery> page,@Param("q")ContractDeliveryQuery query);
22
+}

+ 33 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractDetailMapper.java

@@ -0,0 +1,33 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5
+import com.jwipc.contract.entity.ContractDetail;
6
+import com.jwipc.contract.entity.ContractPay;
7
+import com.jwipc.contract.model.query.ChoseSupplierListQuery;
8
+import com.jwipc.contract.model.query.ContractMangeQuery;
9
+import org.apache.ibatis.annotations.Param;
10
+
11
+import java.util.List;
12
+import com.jwipc.contract.model.po.ContractDetailPO;
13
+import com.jwipc.contract.model.query.ChoseSupplierListQuery;
14
+import org.apache.ibatis.annotations.Param;
15
+
16
+import java.util.List;
17
+
18
+/**
19
+ * <p>
20
+ *  Mapper 接口
21
+ * </p>
22
+ *
23
+ * @author zx
24
+ * @since 2024-03-13
25
+ */
26
+public interface ContractDetailMapper extends BaseMapper<ContractDetail> {
27
+    List<ContractDetail> selectReceiptContractDetailListPage(Page<ContractDetail> page,@Param("query") ChoseSupplierListQuery query);
28
+    List<ContractDetailPO> selectListByPage(@Param("query") ChoseSupplierListQuery query);
29
+
30
+    List<ContractDetailPO> selectListByPage(Page<ContractDetailPO> dbPage, @Param("query") ChoseSupplierListQuery query);
31
+
32
+    List<ContractDetail> selectReceiptContractDetailList(@Param("query")ChoseSupplierListQuery query);
33
+}

+ 16 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractDetailMroMapper.java

@@ -0,0 +1,16 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.jwipc.contract.entity.ContractDetailMro;
5
+
6
+/**
7
+ * <p>
8
+ * 合同 - mro 数据 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author zx
12
+ * @since 2024-04-09
13
+ */
14
+public interface ContractDetailMroMapper extends BaseMapper<ContractDetailMro> {
15
+
16
+}

+ 33 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractMapper.java

@@ -0,0 +1,33 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.Contract;
5
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6
+import com.jwipc.contract.model.po.ContractPO;
7
+import com.jwipc.contract.model.po.ContractReportPO;
8
+import com.jwipc.contract.model.po.DigitalSealConfigDTO;
9
+import com.jwipc.contract.model.query.ContractMangeQuery;
10
+import org.apache.ibatis.annotations.Param;
11
+
12
+import java.util.List;
13
+
14
+/**
15
+ * <p>
16
+ *  Mapper 接口
17
+ * </p>
18
+ *
19
+ * @author zx
20
+ * @since 2024-03-07
21
+ */
22
+public interface ContractMapper extends BaseMapper<Contract> {
23
+
24
+    void removeByRoleIdAndMenuType(String conId);
25
+
26
+    ContractPO getDataById(String conId);
27
+
28
+    DigitalSealConfigDTO selectESignDetail(@Param("companyCode") String companyCode, @Param("sealType") String sealType);
29
+
30
+    List<ContractReportPO> reportPage(@Param("query") ContractMangeQuery query);
31
+
32
+    List<ContractReportPO> reportPage(Page<Contract> dbPage, @Param("query") ContractMangeQuery query);
33
+}

+ 29 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayDetailMapper.java

@@ -0,0 +1,29 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5
+import com.jwipc.contract.entity.ContractPayDetail;
6
+import com.jwipc.contract.model.po.AmountSumVO;
7
+import com.jwipc.contract.model.po.ContractPayDetailsVo;
8
+import com.jwipc.contract.model.query.ContractPayDetailsQuery;
9
+import org.apache.ibatis.annotations.Param;
10
+
11
+import java.util.List;
12
+
13
+/**
14
+ * <p>
15
+ *  Mapper 接口
16
+ * </p>
17
+ *
18
+ * @author zx
19
+ * @since 2024-03-12
20
+ */
21
+public interface ContractPayDetailMapper extends BaseMapper<ContractPayDetail> {
22
+
23
+    List<ContractPayDetailsVo> detailLists(@Param("page") Page<ContractPayDetailsVo> page, @Param("payDetailsQuery") ContractPayDetailsQuery payDetailsQuery);
24
+
25
+    List<AmountSumVO> amountSum(@Param("payStageIds") String payStageIds,@Param("contractIds")String contractIds, @Param("payId") String payId) ;
26
+
27
+
28
+     String getAmountPaid(@Param("contractId") Long contractId, @Param("payStageId") Long payStageId);
29
+}

+ 22 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayMapper.java

@@ -0,0 +1,22 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5
+import com.jwipc.contract.entity.ContractPay;
6
+import com.jwipc.contract.model.query.ContractMangeQuery;
7
+import org.apache.ibatis.annotations.Param;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * <p>
13
+ *  Mapper 接口
14
+ * </p>
15
+ *
16
+ * @author zx
17
+ * @since 2024-03-09
18
+ */
19
+public interface ContractPayMapper extends BaseMapper<ContractPay> {
20
+
21
+    List<ContractPay> findListPage(Page<ContractPay> page, @Param("q")ContractMangeQuery query);
22
+}

+ 16 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayOrderMapper.java

@@ -0,0 +1,16 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.jwipc.contract.entity.ContractPayOrder;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+
6
+/**
7
+ * <p>
8
+ * 付款申请 - 订单明细 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author zx
12
+ * @since 2024-04-01
13
+ */
14
+public interface ContractPayOrderMapper extends BaseMapper<ContractPayOrder> {
15
+
16
+}

+ 28 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayStageMapper.java

@@ -0,0 +1,28 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.ContractPayStage;
5
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6
+import com.jwipc.contract.model.po.ContractPayStagePO;
7
+import com.jwipc.contract.model.query.ContractPayStageQuery;
8
+import org.apache.ibatis.annotations.Param;
9
+
10
+import java.util.List;
11
+
12
+/**
13
+ * <p>
14
+ *  Mapper 接口
15
+ * </p>
16
+ *
17
+ * @author zx
18
+ * @since 2024-03-08
19
+ */
20
+public interface ContractPayStageMapper extends BaseMapper<ContractPayStage> {
21
+
22
+    List<ContractPayStage> getContractPayStageList(@Param("contractId") Long contractId);
23
+
24
+    List<ContractPayStagePO> findPageByQuery(@Param("query") ContractPayStageQuery query);
25
+
26
+    List<ContractPayStagePO> findPageByQuery(Page<ContractPayStage> dbPage, @Param("query") ContractPayStageQuery query);
27
+    List<ContractPayStagePO> findContractPayStageList();
28
+}

+ 20 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPayTypeMapper.java

@@ -0,0 +1,20 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.jwipc.contract.entity.ContractPayType;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Param;
6
+
7
+import java.util.List;
8
+
9
+/**
10
+ * <p>
11
+ *  Mapper 接口
12
+ * </p>
13
+ *
14
+ * @author zx
15
+ * @since 2024-04-01
16
+ */
17
+public interface ContractPayTypeMapper extends BaseMapper<ContractPayType> {
18
+
19
+    List<ContractPayType> detailTypeListByContractId(@Param("contractId") Long contractId);
20
+}

+ 127 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPaymentApplyDetailMapper.java

@@ -0,0 +1,127 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.jwipc.contract.entity.ContractPaymentApplyDetail;
5
+import com.jwipc.contract.model.po.AttachmentManualCheckPO;
6
+import com.jwipc.contract.model.po.ContractPaymentRecordPO;
7
+import com.jwipc.contract.model.po.CreateContractPayDetailPO;
8
+import com.jwipc.contract.model.query.ContractPaymentApplyDetailQuery;
9
+//import com.jwipc.finance.entity.PaymentCodApplyDetail;
10
+//import com.jwipc.finance.model.query.PaymentApplyItemQuery;
11
+import org.apache.ibatis.annotations.Param;
12
+
13
+import java.util.List;
14
+
15
+/**
16
+ * <p>
17
+ * 合同付款申请明细表 Mapper 接口
18
+ * </p>
19
+ *
20
+ * @author 邓京术
21
+ * @since 2025-12-10
22
+ */
23
+public interface ContractPaymentApplyDetailMapper extends BaseMapper<ContractPaymentApplyDetail> {
24
+
25
+    List<CreateContractPayDetailPO> queryInvoiceByContractDetailId(Long id);
26
+    List<CreateContractPayDetailPO> queryCodApplyInvoiceById(Long id);
27
+    void saveManualCheckList(@Param("attachmentManualCheckPO") AttachmentManualCheckPO attachmentManualCheckPO);
28
+
29
+    List<CreateContractPayDetailPO> findByAccountCodeAndItem1(@Param("paymentData") List<CreateContractPayDetailPO> list, @Param("id") Long id, @Param("contractNo") String contractNo);
30
+    List<CreateContractPayDetailPO> findByAccountByStageId( @Param("id") Long id);
31
+
32
+    /**
33
+     * 查询货到付款明细数据
34
+     * @param applyId
35
+     * @return
36
+     */
37
+//    List<CreateContractPayDetailPO> findItemDateById(@Param("applyId") Long applyId);
38
+
39
+    /**
40
+     *
41
+     * @param list
42
+     * @param applyId
43
+     * @return
44
+     */
45
+//    List<CreateContractPayDetailPO> findByApplyCodeAndItem(@Param("paymentData") List<CreatePcaDetailPO> list, @Param("cppId") Long applyId);
46
+
47
+
48
+//    List<CreatePcaDetailPO> findByCostAccountCodeAndItem(@Param("paymentData") List<CostAccountStatementPO> list);
49
+//    List<CreatePcaDetailPO> findByCompanyAccountCodeAndItem(@Param("paymentData") List<CompanyAccountStatementPO> list);
50
+
51
+//    List<CreatePcaDetailPO> findByAccountCodeAndItem1(@Param("paymentData") List<CreatePcaDetailPO> list, @Param("id") Long id);
52
+
53
+    /**
54
+     * 查询数据
55
+     * @param poCodeList
56
+     * @return
57
+     */
58
+//    List<CreatePcaDetailPO> findPaymentDetailByPoCodeList(@Param("poCodeList") List<String> poCodeList);
59
+
60
+    /**
61
+     * 查询数据
62
+     * @param poCode
63
+     * @return
64
+     */
65
+    List<ContractPaymentRecordPO> findDetailByPoCode(@Param("poCode") String poCode);
66
+
67
+    /**
68
+     *
69
+     * @param query
70
+     * @return
71
+     */
72
+    List<CreateContractPayDetailPO> readAdvancePaymentPoData(@Param("query") ContractPaymentApplyDetailQuery query);
73
+
74
+    /**
75
+     * 新增时获取采购订单在SRM预付款申请情况
76
+     *
77
+     * @param poKeyList 采购订单号+行号
78
+     * @return 结果
79
+     */
80
+//    List<PaymentAdvanceApplyDetailPO> createGetPoSituationByPoKey(@Param("poKeyList") List<String> poKeyList);
81
+
82
+    /**
83
+     * 新增时获取采购订单在SRM预付款申请情况
84
+     *
85
+     * @param poKeyList 采购订单号+行号
86
+     * @return 结果
87
+     */
88
+//    List<PaymentAdvanceApplyDetailPO> findCodApplyByPoKey(@Param("poKeyList") List<String> poKeyList);
89
+    /**
90
+     * 编辑时获取采购订单在SRM预付款申请情况
91
+     *
92
+     * @param existedItemIdList 编辑仍然存在的申请明细ID集合(需要排除这些)
93
+     * @param poKeyList 采购订单号+行号
94
+     * @return 结果
95
+     */
96
+//    List<PaymentAdvanceApplyDetailPO> editGetPoSituationByApplyId(@Param("existedItemIdList") List<Long> existedItemIdList, @Param("poKeyList") List<String> poKeyList);
97
+
98
+    /**
99
+     * 查找货到中预付的数据
100
+     * @param applyData
101
+     * @return
102
+     */
103
+//    List<CreatePcaDetailPO> findByAlreadyData(@Param("applyData") List<CreatePcaDetailPO> applyData);
104
+
105
+
106
+    /**
107
+     * 根据对账付款申请单ID或单号获取明细数据 注:参数二选一即可
108
+     *
109
+     * @param cppId 对账付款申请单ID
110
+     * @param cppNo 对账付款申请单号
111
+     * @return 结果
112
+     */
113
+    List<ContractPaymentApplyDetail> findByCppIdOrCppNo(@Param("cppId") Long cppId, @Param("cppNo") String cppNo);
114
+
115
+//    List<PaymentCodApplyDetail> findByPaymentDetail(@Param("appIdList") List<Long> appIdList);
116
+
117
+    /**
118
+     * 根据对账付款申请ID删除货到付款明细
119
+     *
120
+     * @param applyIdList 对账付款申请ID集合
121
+     */
122
+    void delDetailByApplyId(@Param("applyIdList") List<Long> applyIdList);
123
+
124
+    List<String> getCostCenterCodeByContractNo(@Param("contractNo") String contractNo);
125
+
126
+//    List<CreatePcaDetailPO> findAdvanceApplyDataByDataKey(@Param("dataKeys")List<String> dataKeys);
127
+}

+ 53 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPaymentApplyMapper.java

@@ -0,0 +1,53 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5
+import com.jwipc.contract.entity.ContractPaymentApply;
6
+import com.jwipc.contract.entity.ContractPaymentApplyDetail;
7
+import com.jwipc.contract.model.po.AttachmentManualCheckPO;
8
+import com.jwipc.contract.model.po.ContractPaymentApplyPO;
9
+import com.jwipc.contract.model.query.ContractPaymentApplyHeadQuery;
10
+import org.apache.ibatis.annotations.Param;
11
+
12
+import java.math.BigDecimal;
13
+import java.util.List;
14
+
15
+/**
16
+ * <p>
17
+ * 合同MRO付款申请主表 Mapper 接口
18
+ * </p>
19
+ *
20
+ * @author
21
+ * @since 2025-12-10
22
+ */
23
+public interface ContractPaymentApplyMapper extends BaseMapper<ContractPaymentApply> {
24
+
25
+    List<ContractPaymentApplyPO> selectListByPage(@Param("query") ContractPaymentApplyHeadQuery query);
26
+
27
+    List<ContractPaymentApplyPO> selectListByPage(Page<ContractPaymentApply> dbPage, @Param("query") ContractPaymentApplyHeadQuery query);
28
+
29
+    /**
30
+     * 根据对账付款申请单ID获取当前申请单状态
31
+     *
32
+     * @param applyIdList 到付款申请单ID集合
33
+     * @return 结果
34
+     */
35
+    List<ContractPaymentApply> findDataStatusByIdList(@Param("applyIdList") List<Long> applyIdList);
36
+
37
+    List<ContractPaymentApply> findDataStatusByContractList(@Param("contractNo") String contractNo,@Param("paymentType") String paymentType);
38
+
39
+
40
+    List<AttachmentManualCheckPO> getByBusinessIdAndTypeList(@Param("id") Long id);
41
+    /**
42
+     * 根据对账单号查询对账单付款情况
43
+     * @param accountStatementNo
44
+     * @return
45
+     */
46
+    List<ContractPaymentApply> findAppDetailByAccountStatementNo(@Param("accountStatementNo") String accountStatementNo);
47
+
48
+    List<ContractPaymentApply> findDataBySupplierAndAmount(@Param("supplierCode") String supplierCode, @Param("oaBorrowMoney") BigDecimal oaBorrowMoney, @Param("monthNum") Integer monthNum);
49
+
50
+    List<ContractPaymentApplyDetail> findDataBySupplierAndAccountAndAmount(@Param("supplierCode") String supplierCode, @Param("contractNo") String contractNo, @Param("budOutMoney") BigDecimal budOutMoney, @Param("id") Long id);
51
+
52
+    List<ContractPaymentApply> findUnderPaymentByContractCode(@Param("contractCode") String contractCode);
53
+}

+ 32 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractPaymentInvoicedReceiptMapper.java

@@ -0,0 +1,32 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5
+import com.jwipc.contract.entity.ContractPaymentApply;
6
+import com.jwipc.contract.entity.ContractPaymentInvoicedReceipt;
7
+import com.jwipc.contract.model.po.ContractPaymentInvoicedReceiptPO;
8
+import com.jwipc.contract.model.query.ContractPaymentInvoicedDetailQuery;
9
+import org.apache.ibatis.annotations.Param;
10
+
11
+import java.util.List;
12
+
13
+/**
14
+ * <p>
15
+ * 对账模块-关联发票明细 Mapper 接口
16
+ * </p>
17
+ *
18
+ * @author shenyang.ou
19
+ * @since 2024-03-05
20
+ */
21
+public interface ContractPaymentInvoicedReceiptMapper extends BaseMapper<ContractPaymentInvoicedReceipt> {
22
+
23
+    List<ContractPaymentInvoicedReceiptPO> getInvoiceReceiptListByIaId(@Param("iaId") Long iaId);
24
+
25
+    ContractPaymentInvoicedReceipt getExitDataByIaIdAndInvoiceNumber(@Param("iaId") Long iaId, @Param("invoiceNumber") String invoiceNumber);
26
+
27
+    List<ContractPaymentInvoicedReceiptPO> findPageByQuery(@Param("query") ContractPaymentInvoicedDetailQuery query);
28
+
29
+    List<ContractPaymentInvoicedReceiptPO> findPageByQuery(Page<ContractPaymentApply> dbPage, @Param("query") ContractPaymentInvoicedDetailQuery query);
30
+
31
+    ContractPaymentInvoicedReceipt getExitDataByIaIdAndElectronInvoiceNumber(@Param("iaId") Long iaId, @Param("electronInvoiceNumber") String electronInvoiceNumber);
32
+}

+ 23 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractReturnOrderDetailMapper.java

@@ -0,0 +1,23 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.jwipc.contract.entity.ContractReturnOrderDetail;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import com.jwipc.contract.model.po.ContractReturnOrderDetailPO;
6
+import com.jwipc.contract.model.query.ContractReturnOrderDetailsListQuery;
7
+import org.apache.ibatis.annotations.Param;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * <p>
13
+ * 合同退货明细表 Mapper 接口
14
+ * </p>
15
+ *
16
+ * @author qzc
17
+ * @since 2025-12-16
18
+ */
19
+public interface ContractReturnOrderDetailMapper extends BaseMapper<ContractReturnOrderDetail> {
20
+    List<ContractReturnOrderDetailPO> findList(@Param("query")ContractReturnOrderDetailsListQuery query);
21
+
22
+    List<ContractReturnOrderDetail> selectSumReturnQuantity(@Param("dataKeys")List<String> dataKeys);
23
+}

+ 22 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractReturnOrderMapper.java

@@ -0,0 +1,22 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.ContractReturnOrder;
5
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6
+import com.jwipc.contract.model.query.ContractReturnOrderQuery;
7
+import org.apache.ibatis.annotations.Param;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * <p>
13
+ * 合同退货单表 Mapper 接口
14
+ * </p>
15
+ *
16
+ * @author qzc
17
+ * @since 2025-12-16
18
+ */
19
+public interface ContractReturnOrderMapper extends BaseMapper<ContractReturnOrder> {
20
+
21
+    List<ContractReturnOrder> findList(Page<ContractReturnOrder> page,@Param("q") ContractReturnOrderQuery query);
22
+}

+ 21 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/mapper/ContractSubSeqMapper.java

@@ -0,0 +1,21 @@
1
+package com.jwipc.contract.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.jwipc.contract.entity.ContractSubSeq;
5
+import org.apache.ibatis.annotations.Param;
6
+
7
+/**
8
+ * <p>
9
+ *
10
+ * </p>
11
+ *
12
+ * @author Chen Tianshi
13
+ * @since 2026/1/15 10:44
14
+ */
15
+public interface ContractSubSeqMapper extends BaseMapper<ContractSubSeq> {
16
+    Integer selectByParentCodeForUpdate(@Param("parentCode") String parentCode);
17
+
18
+    Integer selectMaxSubSeq(@Param("parentCode") String parentCode);
19
+
20
+    int incrSeq(@Param("parentCode") String parentCode);
21
+}

+ 20 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/AmountSumVO.java

@@ -0,0 +1,20 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Data;
4
+
5
+import java.math.BigDecimal;
6
+
7
+/**
8
+ * 功能描述:
9
+ *
10
+ * @Author: zx
11
+ * @Date: 2024/3/29 0029 9:42
12
+ */
13
+@Data
14
+public class AmountSumVO {
15
+
16
+    private Long payStageId;
17
+
18
+    private BigDecimal amount;
19
+
20
+}

+ 76 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/AttachmentManualCheckPO.java

@@ -0,0 +1,76 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Data;
4
+
5
+import java.io.Serializable;
6
+import java.time.LocalDateTime;
7
+
8
+/**
9
+ * <p>
10
+ * 附件人工检查表
11
+ * </p>
12
+ *
13
+ * @author 邓京术
14
+ * @since 2025-12-23
15
+ */
16
+@Data
17
+public class AttachmentManualCheckPO implements Serializable {
18
+
19
+    private static final long serialVersionUID = 1L;
20
+    private Long id;
21
+
22
+    /**
23
+     * 业务id
24
+     */
25
+    private Long businessId;
26
+    private String businessCode;
27
+    /**
28
+     * 业务类型;0-对账单;1-开票申请
29
+     */
30
+    private Integer businessType;
31
+
32
+    /**
33
+     * 附件类型
34
+     */
35
+    private String type;
36
+
37
+    /**
38
+     * 系统检查;0-缺失;1-齐全
39
+     */
40
+    private Integer sysCheck;
41
+
42
+    /**
43
+     * 人工检查;0-缺失;1-齐全
44
+     */
45
+    private Integer manualCheck;
46
+
47
+    /**
48
+     * 备注
49
+     */
50
+    private String remark;
51
+
52
+    /**
53
+     * 创建用户ID
54
+     */
55
+    private Long createUser;
56
+
57
+    /**
58
+     * 创建时间
59
+     */
60
+    private LocalDateTime createTime;
61
+
62
+    /**
63
+     * 最后更新用户ID
64
+     */
65
+    private Long updateUser;
66
+
67
+    /**
68
+     * 最后更新时间
69
+     */
70
+    private LocalDateTime updateTime;
71
+
72
+    /**
73
+     * 删除标记(1:删除,0:未删除))
74
+     */
75
+    private Integer deleteFlag;
76
+}

+ 163 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractDeliveryDetailPO.java

@@ -0,0 +1,163 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Getter;
4
+import lombok.Setter;
5
+
6
+import java.io.Serializable;
7
+import java.math.BigDecimal;
8
+import java.time.LocalDateTime;
9
+
10
+/**
11
+ * <p>
12
+ * 合同交货明细表
13
+ * </p>
14
+ *
15
+ * @author qzc
16
+ * @since 2025-12-09
17
+ */
18
+@Getter
19
+@Setter
20
+public class ContractDeliveryDetailPO implements Serializable {
21
+
22
+    private static final long serialVersionUID = 1L;
23
+
24
+    /**
25
+     * 主键ID(自增30位长度)
26
+     */
27
+    private Long id;
28
+
29
+    /**
30
+     * 收货单行号
31
+     */
32
+    private String receiptLineNo;
33
+
34
+    /**
35
+     * 合同编号
36
+     */
37
+    private String contractNo;
38
+
39
+    /**
40
+     * 合同序号
41
+     */
42
+    private String contractSeq;
43
+
44
+    /**
45
+     * 资产类别
46
+     */
47
+    private String assetCategory;
48
+
49
+    /**
50
+     * 物品名称
51
+     */
52
+    private String itemName;
53
+
54
+    /**
55
+     * 型号规格/参数
56
+     */
57
+    private String modelSpec;
58
+
59
+    /**
60
+     * 品牌
61
+     */
62
+    private String brand;
63
+
64
+    /**
65
+     * 请购单编号
66
+     */
67
+    private String requisitionNo;
68
+
69
+    /**
70
+     * 单位
71
+     */
72
+    private String unit;
73
+
74
+    /**
75
+     * 订单数量
76
+     */
77
+    private BigDecimal orderQuantity;
78
+
79
+    /**
80
+     * 收货数量
81
+     */
82
+    private BigDecimal receivedQuantity;
83
+
84
+    /**
85
+     * 设备序列号
86
+     */
87
+    private String deviceSerialNo;
88
+
89
+    /**
90
+     * 验收状态
91
+     */
92
+    private String acceptanceStatus;
93
+
94
+    /**
95
+     * 请购部门
96
+     */
97
+    private String requisitionDept;
98
+
99
+    /**
100
+     * 保管人
101
+     */
102
+    private String custodian;
103
+
104
+    /**
105
+     * 成本中心
106
+     */
107
+    private String costCenter;
108
+
109
+    /**
110
+     * 存放地点
111
+     */
112
+    private String storageLocation;
113
+
114
+    /**
115
+     * 资产用途
116
+     */
117
+    private String assetPurpose;
118
+
119
+    /**
120
+     * 资产情况
121
+     */
122
+    private String assetCondition;
123
+    /**
124
+     * 收货单编号
125
+     */
126
+    private String deliveryNo;
127
+
128
+    private String requisitionItem;
129
+    private Integer deleteFlag;
130
+    private Long createId;
131
+    private LocalDateTime createTime;
132
+    private Long updateId;
133
+    private LocalDateTime updateTime;
134
+    private Long deliveryId; //收货单id
135
+    private String returnOrderLine;
136
+    /**
137
+     * 验收单号
138
+     */
139
+
140
+    private String acceptanceNo;
141
+    /**
142
+     * 请购部门名称
143
+     */
144
+    private String useDeptName;
145
+
146
+    /**
147
+     * 保管人code
148
+     */
149
+    private String userCode;
150
+
151
+    /**
152
+     * 未税单价
153
+     */
154
+    private BigDecimal noTaxPrice;
155
+
156
+    /**
157
+     * 含税单价
158
+     */
159
+    private BigDecimal price;
160
+
161
+    private String itemCode;
162
+
163
+}

+ 191 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractDetailPO.java

@@ -0,0 +1,191 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Data;
4
+
5
+import java.io.Serializable;
6
+import java.math.BigDecimal;
7
+import java.time.LocalDate;
8
+
9
+/**
10
+ * 功能描述:
11
+ *
12
+ * @Author: zx
13
+ * @Date: 2024/3/7 0007 17:21
14
+ */
15
+@Data
16
+public class ContractDetailPO implements Serializable {
17
+
18
+    private Long id;
19
+
20
+    private Long contractId;
21
+
22
+    private String contractCode;
23
+    private String contractType;
24
+    private String contractTitle;
25
+    private Integer lineNo;
26
+
27
+    /**
28
+     * 物料编码
29
+     */
30
+    private String materialCode;
31
+
32
+    /**
33
+     * 物料编码
34
+     */
35
+    private String materialName;
36
+
37
+    /**
38
+     * 物料组
39
+     */
40
+    private String materialGroupName;
41
+
42
+    /**
43
+     * 物料组
44
+     */
45
+    private String materialGroupCode;
46
+
47
+    /**
48
+     * 品类
49
+     */
50
+    private String materialCategory;
51
+
52
+    /**
53
+     * 规格
54
+     */
55
+    private String materialSpec;
56
+
57
+    /**
58
+     * 型号
59
+     */
60
+    private String materialModel;
61
+
62
+    /**
63
+     * 品牌
64
+     */
65
+    private String materialBrand;
66
+
67
+    /**
68
+     * 单位
69
+     */
70
+    private String basisUnit;
71
+
72
+    /**
73
+     * 单价
74
+     */
75
+    private BigDecimal price;
76
+
77
+    /**
78
+     * 数量
79
+     */
80
+    private BigDecimal num;
81
+
82
+    /**
83
+     * 税率
84
+     */
85
+    private String taxRateName;
86
+
87
+    /**
88
+     * 税率
89
+     */
90
+    private String taxRateCode;
91
+
92
+    /**
93
+     * 固定资产卡号
94
+     */
95
+    private String cardNumber;
96
+
97
+    /**
98
+     * 备注
99
+     */
100
+    private String bz;
101
+
102
+    /**
103
+     * 质保期
104
+     */
105
+    private Integer warrantyPeriod;
106
+
107
+    /**
108
+     * 删除标记;0-未删除;1-已删除
109
+     */
110
+    private Integer deleteFlag;
111
+
112
+    private String purchaseCode;
113
+
114
+    private String itemCode;
115
+
116
+    private String factoryCode;
117
+
118
+    private String factoryName;
119
+
120
+    private String subjectCode;
121
+
122
+    private String currencyCode;
123
+
124
+    private String purchaseName;
125
+
126
+
127
+    private String totle;
128
+    private String bidFlag;
129
+    private String customerCode;
130
+    private String customerName;
131
+    private String driverAsset;
132
+    private String teamName;
133
+    private String requireName;
134
+    private String costCenterCode;
135
+    private String costCenterName;
136
+
137
+    private String paymentAround;
138
+    private BigDecimal aroundAmount;
139
+
140
+
141
+    /**
142
+     * 合同金额小写(含税金额)
143
+     */
144
+    private BigDecimal contractAmount;
145
+
146
+    /**
147
+     * 已付款金额
148
+     */
149
+    private BigDecimal paymentAlreadyAmount;
150
+
151
+    /**
152
+     * 已申请金额
153
+     */
154
+    private BigDecimal applyAlreadyAmount;
155
+
156
+    /**
157
+     * 应付总金额
158
+     */
159
+    private BigDecimal applyAmount;
160
+    /**
161
+     * 付款笔数
162
+     */
163
+    private String paymentStage;
164
+
165
+    /**
166
+     * 付款时间
167
+     */
168
+    private LocalDate paymentTime;
169
+
170
+    /**
171
+     * 付款比例
172
+     */
173
+    private BigDecimal paymentRatio;
174
+
175
+
176
+    private String paymentWay;
177
+
178
+    /**
179
+     * 付款前提条件
180
+     */
181
+    private String paymentRequirement;
182
+
183
+
184
+
185
+    /**
186
+     * 付款描述
187
+     */
188
+    private String remark;
189
+
190
+
191
+}

+ 361 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractOA.java

@@ -0,0 +1,361 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFilter;
4
+import lombok.Data;
5
+
6
+import java.math.BigDecimal;
7
+import java.util.Map;
8
+
9
+/**
10
+ * 功能描述:
11
+ *
12
+ * @Author: zx
13
+ * @Date: 2024/3/29 0029 13:39
14
+ */
15
+@Data
16
+public class ContractOA {
17
+
18
+    Head head ;
19
+
20
+    Map item;
21
+
22
+    public static class Head{
23
+        /**
24
+         * SRM单据唯一编号
25
+         */
26
+        public Long RecordId;
27
+
28
+
29
+        /**
30
+         * OA流程编号
31
+         */
32
+        public String ProcessId;
33
+
34
+        /**
35
+         * SRM业务类型
36
+         */
37
+        public String SRMToS;
38
+
39
+        /**
40
+         * 申请人
41
+         */
42
+        public String Applicant;
43
+
44
+        /**
45
+         * 申请日期
46
+         */
47
+        public String ApplyDate;
48
+
49
+        /**
50
+         * 采购组织
51
+         */
52
+        public String PurchaseOrgCode;
53
+
54
+        /**
55
+         * 采购组织(显示值)
56
+         */
57
+        public String PurchaseOrgName;
58
+
59
+        /**
60
+         * 组织代码
61
+         */
62
+        public String OrgCode;
63
+
64
+        /**
65
+         * 采购组
66
+         */
67
+        public String PurchaseGroupCode;
68
+
69
+        /**
70
+         * 采购组(显示值)
71
+         */
72
+        public String PurchaseGroupName;
73
+
74
+        /**
75
+         * 订单类型(采购)
76
+         */
77
+        public String OrderType;
78
+
79
+        /**
80
+         * 公司(显示值)
81
+         */
82
+        public String CompanyName;
83
+
84
+        /**
85
+         * 公司代码
86
+         */
87
+        public String CompanyCode;
88
+
89
+
90
+        /**
91
+         * 公司(显示值)
92
+         */
93
+        public String UnitName;
94
+
95
+        /**
96
+         * 公司代码
97
+         */
98
+        public String UnitCode;
99
+
100
+
101
+        /**
102
+         * 合同类别1
103
+         */
104
+        public String ContractYypeCode;
105
+
106
+        /**
107
+         * 合同类别1(显示值)
108
+         */
109
+        public String ContractTypeName;
110
+
111
+        /**
112
+         * 合同类别2
113
+         */
114
+        public String ContractTypeCode2;
115
+
116
+        /**
117
+         * 合同类别2(显示值)
118
+         */
119
+        public String ContractTypeName2;
120
+
121
+        /**
122
+         * 合同内容涉及
123
+         */
124
+        public String ContractCover;
125
+
126
+        /**
127
+         * 合同类别显示值
128
+         */
129
+        public String ContractTypeCode;
130
+
131
+
132
+        /**
133
+         * 类别备注
134
+         */
135
+        public String TypeRemarks;
136
+
137
+
138
+        /**
139
+         * 供应商全称(显示值)
140
+         */
141
+        public String SupplierFullName;
142
+
143
+        /**
144
+         * 供应商代码
145
+         */
146
+        public String SupplierCode;
147
+
148
+        /**
149
+         * 币别
150
+         */
151
+        public String Currency;
152
+
153
+        /**
154
+         * 合同编号
155
+         */
156
+        public String ContractNumber;
157
+
158
+        /**
159
+         * 合同签订日期
160
+         */
161
+        public String SigningDate;
162
+
163
+        /**
164
+         * 是否需要用印
165
+         */
166
+        public String ElectronicSeal;
167
+
168
+        public Integer TransferSap;
169
+
170
+        /**
171
+         * 用印类别
172
+         */
173
+        public String SealType;
174
+
175
+        /**
176
+         * 合同金额
177
+         */
178
+        public BigDecimal ContractAmount;
179
+
180
+        /**
181
+         * 大写金额
182
+         */
183
+        public String AmountWoeds;
184
+
185
+        /**
186
+         * 关联文档
187
+         */
188
+        public String RelevanceFile;
189
+        public String Attachments;
190
+
191
+        public String StampFile;
192
+
193
+        public String StampedAttachment;
194
+
195
+        /**
196
+         * 合同说明
197
+         */
198
+        public String contractApplyContent;
199
+    }
200
+
201
+
202
+    public static class Item{
203
+
204
+        /**
205
+         * 科目(区分是费用类别)
206
+         */
207
+        public String Course;
208
+
209
+        /**
210
+         * 物料号
211
+         */
212
+        public String MaterialNumber;
213
+        /**
214
+         * 短文本(品牌,型号)
215
+         */
216
+        public String ShortText;
217
+
218
+        /**
219
+         * 采购订单数量
220
+         */
221
+        public BigDecimal OrderQuantity;
222
+
223
+        /**
224
+         * 货币
225
+         */
226
+        public String Currency;
227
+
228
+        /**
229
+         * 订单单位
230
+         */
231
+        public String OrderUnit;
232
+
233
+        /**
234
+         * 单价(含税)
235
+         */
236
+        public BigDecimal UnitPrice;
237
+
238
+        /**
239
+         * 税码
240
+         */
241
+        public String TaxCode;
242
+
243
+        /**
244
+         * 税码(显示值)
245
+         */
246
+        public String TaxName;
247
+
248
+        /**
249
+         * 总价格
250
+         */
251
+        public BigDecimal TotalPrice;
252
+
253
+        /**
254
+         * 工厂
255
+         */
256
+        public String FactoryCode;
257
+
258
+        /**
259
+         * 工厂(显示值)
260
+         */
261
+        public String FactoryName;
262
+
263
+        /**
264
+         * SRM序号
265
+         */
266
+        public Long AssetSerialNumber;
267
+
268
+        /**
269
+         * 模具编号
270
+         */
271
+        public String MoldNumber = "";
272
+
273
+        /**
274
+         * 资产编号(审批结束返回行号+资产单号)
275
+         */
276
+        public String AssetNumber;
277
+
278
+        /**
279
+         *  请购单编号
280
+         */
281
+        public String PurchaseNumber;
282
+
283
+        /**
284
+         * 申购部门名称
285
+         */
286
+        @JsonFilter("Req_DeptNDame")
287
+        public String Req_DeptNDame;
288
+
289
+        /**
290
+         * 标题(待定要不要回传)
291
+         */
292
+        public String Title;
293
+
294
+        /**
295
+         * 请购人名称
296
+         */
297
+        public String DemanderName;
298
+
299
+        public String CostCenter;
300
+
301
+        public String CustomerCode;
302
+
303
+        public String DrivingFactors;
304
+
305
+    }
306
+
307
+
308
+    public static class MroItem{
309
+
310
+        /**
311
+         * 文件名称
312
+          */
313
+        public String FileName;
314
+
315
+        /**
316
+         * 份数
317
+         */
318
+        public String Share;
319
+
320
+        /**
321
+         * 签约日期
322
+         */
323
+        public String SigningDate;
324
+
325
+        /**
326
+         * 我方负责人
327
+         */
328
+        public String MyHead;
329
+
330
+        /**
331
+         * 对方单位名称
332
+         */
333
+        public String TargetUnitName;
334
+
335
+        /**
336
+         * 对方负责人
337
+         */
338
+        public String TargetHead;
339
+
340
+        /**
341
+         * 附件
342
+         */
343
+        public String Attachments;
344
+
345
+        /**
346
+         * 合同金额
347
+         */
348
+        public BigDecimal ContractAmount;
349
+
350
+        /**
351
+         * 备注
352
+         */
353
+        public String Remark;
354
+
355
+
356
+
357
+    }
358
+
359
+    
360
+
361
+}

+ 215 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPO.java

@@ -0,0 +1,215 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Getter;
7
+import lombok.Setter;
8
+
9
+import java.io.Serializable;
10
+import java.math.BigDecimal;
11
+import java.time.LocalDateTime;
12
+
13
+/**
14
+ * <p>
15
+ * 
16
+ * </p>
17
+ *
18
+ * @author zx
19
+ * @since 2024-03-07
20
+ */
21
+@Getter
22
+@Setter
23
+public class ContractPO implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    private Long id;
28
+
29
+    /**
30
+     * 标题
31
+     */
32
+    private String contractTitle;
33
+
34
+    /**
35
+     * 合同编码
36
+     */
37
+    private String contractCode;
38
+
39
+    /**
40
+     * 合同状态
41
+     */
42
+    private Integer contractState;
43
+
44
+    /**
45
+     * 合同分类
46
+     */
47
+    private String contractType;
48
+
49
+    /**
50
+     * 公司编码
51
+     */
52
+    private String contractCompanyCode;
53
+
54
+    /**
55
+     * 公司名称
56
+     */
57
+    private String contractCompanyName;
58
+
59
+    /**
60
+     * 工厂编码
61
+     */
62
+    private String contractFactoryCode;
63
+
64
+    /**
65
+     * 工厂名称
66
+     */
67
+    private String contractFactoryName;
68
+
69
+    /**
70
+     * 工厂地址
71
+     */
72
+    private String contractFactoryAddres;
73
+
74
+    /**
75
+     * 供应商编码
76
+     */
77
+    private String contractSupplierCode;
78
+
79
+    /**
80
+     * 供应商名称
81
+     */
82
+    private String contractSupplierName;
83
+
84
+    /**
85
+     * 合同金额小写
86
+     */
87
+    private BigDecimal contractAmount;
88
+
89
+    /**
90
+     * 合同金额大写
91
+     */
92
+    private String contractAmountCapital;
93
+
94
+    /**
95
+     * 货币编码
96
+     */
97
+    private String contractCurrency;
98
+
99
+    /**
100
+     * 付款方式
101
+     */
102
+    private String contractPaymentWay;
103
+
104
+    /**
105
+     * 承兑比例
106
+     */
107
+    private BigDecimal contractAcceptance;
108
+
109
+    /**
110
+     * 发票类型
111
+     */
112
+    private Integer contractInvoiceCode;
113
+
114
+    /**
115
+     * 订单类型
116
+     */
117
+    private String contractOrderType;
118
+
119
+    /**
120
+     * 申请人
121
+     */
122
+    private String contractDemandUser;
123
+
124
+    /**
125
+     * 申请人部门
126
+     */
127
+    private String contractDemandUserDept;
128
+
129
+    /**
130
+     * 签署顺序
131
+     */
132
+    private String contractSignOrder;
133
+
134
+    /**
135
+     * 签章类别
136
+     */
137
+    private String contractSealType;
138
+
139
+    /**
140
+     * 采购组编码
141
+     */
142
+    private String contractPurchaseGroup;
143
+
144
+    /**
145
+     * 采购组织编码
146
+     */
147
+    private String contractPurchaseGroupCode;
148
+
149
+    /**
150
+     * 合同附件集合
151
+     */
152
+    private String contractFiles;
153
+
154
+    /**
155
+     * 盖章文件集合
156
+     */
157
+    private String contractSignFiels;
158
+
159
+
160
+    private String contractSignFileStatue;
161
+
162
+    /**
163
+     * 备注
164
+     */
165
+    private String contractApplyContent;
166
+
167
+    /**
168
+     * 创建日期
169
+     */
170
+    private LocalDateTime createTime;
171
+
172
+    /**
173
+     * 更新人
174
+     */
175
+    private Long updateUser;
176
+
177
+    /**
178
+     * 更新时间
179
+     */
180
+    private LocalDateTime updateTime;
181
+
182
+    /**
183
+     * 创建人
184
+     */
185
+    private Long createUser;
186
+
187
+    /**
188
+     * 删除标记;0-未删除;1-已删除
189
+     */
190
+    private Integer deleteFlag ;
191
+
192
+    private String associationContract;
193
+
194
+    private String oaProcessId;
195
+
196
+    private String oaCode;
197
+
198
+    private String oaMsg;
199
+
200
+    private String userAccount;
201
+
202
+    private String isSeal;
203
+
204
+    private Integer dataSources ;
205
+
206
+    private Long dataSourcesId;
207
+
208
+    private Integer isMro ;
209
+
210
+    private Integer isSap ;
211
+
212
+    private String contractCover;
213
+    private String purchaseOrgDesc;
214
+    private String purchaseGroupName;
215
+}

+ 26 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPayDetailsVo.java

@@ -0,0 +1,26 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import com.jwipc.contract.entity.ContractPayDetail;
4
+import lombok.Data;
5
+
6
+import java.math.BigDecimal;
7
+
8
+/**
9
+ * 功能描述:
10
+ *
11
+ * @Author: zx
12
+ * @Date: 2024/3/12 0012 12:16
13
+ */
14
+@Data
15
+public class ContractPayDetailsVo extends ContractPayDetail {
16
+
17
+    private String paymentStage ;
18
+
19
+    private String paymentTime ;
20
+
21
+    private String paymentRatio ;
22
+
23
+    private BigDecimal paymentAmount ;
24
+
25
+    private BigDecimal amountPaid;
26
+}

+ 321 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPayOA.java

@@ -0,0 +1,321 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import com.alibaba.fastjson2.annotation.JSONField;
4
+import com.fasterxml.jackson.annotation.JsonFilter;
5
+import lombok.Data;
6
+
7
+import java.math.BigDecimal;
8
+import java.util.List;
9
+
10
+/**
11
+ * 功能描述:
12
+ *
13
+ * @Author: zx
14
+ * @Date: 2024/3/29 0029 13:39
15
+ */
16
+@Data
17
+public class ContractPayOA {
18
+
19
+    Head head ;
20
+
21
+    Item item;
22
+
23
+//    @Data
24
+    public static class Head{
25
+
26
+        @JSONField(name="ProcessId")
27
+        public String ProcessId;
28
+
29
+        /**
30
+         * SRM业务类型
31
+         */
32
+        @JSONField(name="SRMToS")
33
+        public String SRMToS;
34
+
35
+        /**
36
+         * 申请人
37
+         */
38
+        @JSONField(name="Applicant")
39
+        public String Applicant;
40
+
41
+        /**
42
+         * 申请日期
43
+         */
44
+        @JSONField(name="ApplyDate")
45
+        public String ApplyDate;
46
+
47
+        /**
48
+         * 公司代码
49
+         */
50
+        @JSONField(name="CompanyCode")
51
+        public String CompanyCode;
52
+
53
+        /**
54
+         * 公司(显示值)
55
+         */
56
+        @JSONField(name="CompanyName")
57
+        public String CompanyName;
58
+
59
+        /**
60
+         * 支付方式
61
+         */
62
+        @JSONField(name="PayMethod")
63
+        public String PayMethod;
64
+
65
+        /**
66
+         * 收款人/单位名称(显示值)
67
+          */
68
+        @JSONField(name="PayeeName")
69
+        public String PayeeName;
70
+
71
+        /**
72
+         * 供应商代码
73
+         */
74
+        @JSONField(name="SupplierCode")
75
+        public String SupplierCode;
76
+
77
+        /**
78
+         * 银行行号(表单增加字段)
79
+         */
80
+        @JSONField(name="BankNo")
81
+        public String BankNo;
82
+
83
+        /**
84
+         * 银行国际代码
85
+         */
86
+        @JSONField(name="SwiftCode")
87
+        public String SwiftCode;
88
+
89
+        /**
90
+         * 币别
91
+         */
92
+        @JSONField(name="Currency")
93
+        public String Currency;
94
+
95
+        /**
96
+         * 银行名称
97
+         */
98
+        @JSONField(name="BankName")
99
+        public String BankName;
100
+
101
+        /**
102
+         * 收款人账号
103
+         */
104
+        @JSONField(name="PayeeAccount")
105
+        public String PayeeAccount;
106
+        /**
107
+         * SAP订单付款
108
+         */
109
+        @JSONField(name="SapOrderPayment")
110
+        public String SapOrderPayment;
111
+
112
+        /**
113
+         * 预付款款情况
114
+         */
115
+        @JSONField(name="AdvancePayment")
116
+        public String AdvancePayment;
117
+
118
+        /**
119
+         * 合同金额
120
+         */
121
+        @JSONField(name="ContractAmount")
122
+        public String ContractAmount;
123
+
124
+
125
+        /**
126
+         * 合同金额预付
127
+         */
128
+        @JSONField(name="ContractAmountPrepaid")
129
+        public BigDecimal ContractAmountPrepaid;
130
+
131
+
132
+        /**
133
+         * 费用归属部门(财务确认)
134
+         */
135
+        @JSONField(name="CostAscriptionDept")
136
+        public String CostAscriptionDept;
137
+
138
+        /**
139
+         * 关联流程
140
+         */
141
+        @JSONField(name="RelatedProcess")
142
+        public String RelatedProcess;
143
+
144
+        /**
145
+         * 验收流程
146
+         */
147
+        @JSONField(name="RelatedYanShou")
148
+        public String RelatedYanShou;
149
+
150
+        /**
151
+         * 模具流程
152
+         */
153
+        @JSONField(name="RelatedMuJu")
154
+        public String RelatedMuJu;
155
+
156
+        /**
157
+         * 模具流程
158
+         */
159
+        @JSONField(name="RelatedPurchase")
160
+        public String RelatedPurchase;
161
+
162
+        /**
163
+         * 合计金额
164
+         */
165
+        @JSONField(name="TotalAmount")
166
+        public BigDecimal TotalAmount;
167
+
168
+        /**
169
+         * 不含税金额合计
170
+         */
171
+        @JSONField(name="ExcludingTaxAmount")
172
+        public BigDecimal ExcludingTaxAmount;
173
+
174
+        /**
175
+         * 税额合计
176
+         */
177
+        @JSONField(name="TotalTaxAmount")
178
+        public BigDecimal TotalTaxAmount;
179
+
180
+        /**
181
+         * 冲销预借/预付金额
182
+         */
183
+        @JSONField(name="PrepaidAmount")
184
+        public String PrepaidAmount;
185
+
186
+        /**
187
+         * 本次应支付金额
188
+         */
189
+        @JSONField(name="PayableAmount")
190
+        public String PayableAmount;
191
+
192
+        /**
193
+         * 附件
194
+         */
195
+        @JSONField(name="Attachment")
196
+        public String Attachment;
197
+
198
+        /**
199
+         * 本次应支付(大写)
200
+         */
201
+        @JSONField(name="PaymentAmountWords")
202
+        public String PaymentAmountWords;
203
+
204
+    }
205
+
206
+    @Data
207
+    public static class Item{
208
+
209
+        @JsonFilter("purchase_order_item")
210
+        private List<PurchaseOrderItem> purchaseOrderItem;
211
+
212
+        @JsonFilter("payment_item")
213
+        private List<PaymentItem> paymentItem;
214
+
215
+    }
216
+
217
+    @Data
218
+    public static class PurchaseOrderItem{
219
+
220
+        /**
221
+         * 采购订单号(预付新增)
222
+         */
223
+        private String PurchaseOrder;
224
+
225
+
226
+        /**
227
+         * 采购摘要
228
+         */
229
+        private String ProcurementSummary;
230
+
231
+        /**
232
+         * 应付金额
233
+         */
234
+        private BigDecimal PayableAmount;
235
+
236
+        /**
237
+         * 未付金额
238
+         */
239
+        private BigDecimal UnpaidAmount;
240
+
241
+        /**
242
+         * 本次付款金额
243
+         */
244
+        private BigDecimal PaymentAmount;
245
+
246
+        /**
247
+         * 使用人
248
+         */
249
+        private String User;
250
+
251
+        /**
252
+         * 成本中心
253
+         */
254
+        private String CostCenterCode;
255
+
256
+        /**
257
+         *  成本中心(显示值)
258
+         */
259
+        private String CostCenterName;
260
+
261
+
262
+    }
263
+
264
+
265
+    public static class PaymentItem{
266
+
267
+        /**
268
+         * 报销类别
269
+         */
270
+        public String ReimburseType;
271
+        /**
272
+         * 业务描述
273
+         */
274
+        public String BusinessDesc;
275
+        /**
276
+         * 金额(元)
277
+         */
278
+        public BigDecimal Amount;
279
+        /**
280
+         * 使用人
281
+         */
282
+        public String User;
283
+        /**
284
+         * 内部订单号
285
+         */
286
+        public String InternalOrder;
287
+        /**
288
+         * 项目编号
289
+         */
290
+        public String ProjectNo;
291
+        /**
292
+         * 服务客户
293
+         */
294
+        public String Customer;
295
+        /**
296
+         * 服务客户实际值
297
+         */
298
+        public String CustomerCode;
299
+        /**
300
+         * 驱动因素
301
+         */
302
+        public String DrivingFactors;
303
+        /**
304
+         * 固定资产编码
305
+         */
306
+        public String FixedAssetCode;
307
+        /**
308
+         * 成本中心(显示值)
309
+         */
310
+        public String CostCenter;
311
+        /**
312
+         * 成本中心实际值
313
+         */
314
+        public String CostCenterCode;
315
+
316
+    }
317
+
318
+
319
+
320
+
321
+}

+ 93 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPayStagePO.java

@@ -0,0 +1,93 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableField;
5
+import com.baomidou.mybatisplus.annotation.TableId;
6
+import com.baomidou.mybatisplus.annotation.TableName;
7
+import lombok.Data;
8
+import lombok.Getter;
9
+import lombok.Setter;
10
+
11
+import java.io.Serializable;
12
+import java.math.BigDecimal;
13
+import java.time.LocalDate;
14
+
15
+/**
16
+ * <p>
17
+ * 
18
+ * </p>
19
+ *
20
+ * @author zx
21
+ * @since 2024-03-08
22
+ */
23
+@Data
24
+public class ContractPayStagePO implements Serializable {
25
+
26
+    private static final long serialVersionUID = 1L;
27
+
28
+    private Long id;
29
+
30
+    /**
31
+     * 合同ID
32
+     */
33
+    private Long contractId;
34
+
35
+    /**
36
+     * 合同编码
37
+     */
38
+    private String contractCode;
39
+
40
+    /**
41
+     * 付款阶段
42
+     */
43
+    private String paymentStage;
44
+
45
+    /**
46
+     * 付款时间
47
+     */
48
+    private LocalDate paymentTime;
49
+
50
+    /**
51
+     * 付款比例
52
+     */
53
+    private BigDecimal paymentRatio;
54
+
55
+    /**
56
+     * 付款金额
57
+     */
58
+    private BigDecimal paymentAmount;
59
+
60
+    /**
61
+     * 已付款金额
62
+     */
63
+    private BigDecimal paymentAlreadyAmount;
64
+
65
+    /**
66
+     * 在途付款金额
67
+     */
68
+    private BigDecimal paymentIngAmount;
69
+
70
+    /**
71
+     * 未付款金额
72
+     */
73
+    private BigDecimal paymentUnAmount;
74
+
75
+
76
+    private BigDecimal paymentPlusAmount;
77
+
78
+    /**
79
+     * 删除标记;0-未删除;1-已删除
80
+     */
81
+    private Integer deleteFlag ;
82
+    /**
83
+     * 付款描述
84
+     */
85
+    private String remark;
86
+    private String contractCompanyCode;
87
+    private String contractPurchaseGroup;
88
+    private String contractSupplierName;
89
+    private String contractTitle;
90
+    private BigDecimal contractAmount;
91
+    private String orderCode;
92
+    private String contractCurrency;
93
+}

+ 640 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPaymentApplyPO.java

@@ -0,0 +1,640 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Data;
4
+
5
+import java.io.Serializable;
6
+import java.math.BigDecimal;
7
+import java.time.LocalDateTime;
8
+
9
+/**
10
+ * <p>
11
+ * 对账付款申请主表
12
+ * </p>
13
+ *
14
+ * @author WT
15
+ * @since 2024-03-08
16
+ */
17
+@Data
18
+public class ContractPaymentApplyPO implements Serializable {
19
+
20
+    private Long id;
21
+
22
+    /**
23
+     * 对账付款申请单号
24
+     */
25
+    private String apApplyNo;
26
+    private String feePayer;
27
+    /**
28
+     * 数据状态 1:暂存 2:待推送 3:审批中 4:审批不通过 5:已支付
29
+     */
30
+    private Integer status;
31
+
32
+    private Integer changeStatus;
33
+
34
+    private Integer freezeStatus;
35
+
36
+    private Integer urgentFlag;
37
+
38
+    /**
39
+     * 付款公司代码
40
+     */
41
+    private String companyCode;
42
+    private String paymentType;
43
+
44
+    /**
45
+     * 付款公司名称
46
+     */
47
+    private String companyName;
48
+
49
+    /**
50
+     * 工厂代码
51
+     */
52
+    private String factoryCode;
53
+
54
+    /**
55
+     * 付款委托书附件
56
+     */
57
+    private String paymentFiles;
58
+
59
+    /**
60
+     * 工厂名称
61
+     */
62
+    private String factoryName;
63
+
64
+    /**
65
+     * 供应商编码
66
+     */
67
+    private String supplierCode;
68
+
69
+    /**
70
+     * 供应商名称
71
+     */
72
+    private String supplierName;
73
+    /**
74
+     * 供应商编码
75
+     */
76
+    private String paymentSupplierCode;
77
+    /**
78
+     * 供应商名称
79
+     */
80
+    private String paymentSupplierName;
81
+    private Integer collectionFlag;
82
+
83
+    /**
84
+     * 供应商银行代码/供应商开户行代码/供应商联行号
85
+     */
86
+    private String supBankCode;
87
+
88
+    /**
89
+     * 供应商银行名称/供应商开户行名称
90
+     */
91
+    private String supBankName;
92
+
93
+    /**
94
+     * 供应商银行账号
95
+     */
96
+    private String supBankAccount;
97
+
98
+    /**
99
+     * 币种
100
+     */
101
+    private String currencyCode;
102
+
103
+    /**
104
+     * 付款方式编码
105
+     */
106
+    private String paymentWayCode;
107
+
108
+    /**
109
+     * 付款方式描述
110
+     */
111
+    private String paymentWayDesc;
112
+
113
+    /**
114
+     * 申请备注
115
+     */
116
+    private String applyRemark;
117
+
118
+    /**
119
+     * OA审批流程ID
120
+     */
121
+    private String oaProcessId;
122
+
123
+    /**
124
+     * OA审批流程号
125
+     */
126
+    private String oaProcessCode;
127
+
128
+    /**
129
+     * oa审核意见
130
+     */
131
+    private String oaProcessMessage;
132
+
133
+    /**
134
+     * 创建人id
135
+     */
136
+    private Long createUserId;
137
+
138
+    /**
139
+     * 创建用户工号
140
+     */
141
+    private String createUserCode;
142
+
143
+    /**
144
+     * 创建用户姓名
145
+     */
146
+    private String createUserName;
147
+
148
+    /**
149
+     * 创建时间
150
+     */
151
+    private LocalDateTime createTime;
152
+
153
+    /**
154
+     * 最后更新用户ID
155
+     */
156
+    private Long updateUserId;
157
+
158
+    /**
159
+     * 最后更新用户工号
160
+     */
161
+    private String updateUserCode;
162
+
163
+    /**
164
+     * 最后更新用户姓名
165
+     */
166
+    private String updateUserName;
167
+
168
+    /**
169
+     * 最后更新时间
170
+     */
171
+    private LocalDateTime updateTime;
172
+
173
+    /**
174
+     * 删除标识 0:未删除 1:已删除
175
+     */
176
+    private Integer deleteFlag;
177
+
178
+    /**
179
+     * oa科目主键
180
+     */
181
+    private String oaSubKey;
182
+
183
+    /**
184
+     * oa部门主键
185
+     */
186
+    private String oaDepKey;
187
+
188
+    /**
189
+     * oa部门名称
190
+     */
191
+    private String oaDepName;
192
+
193
+    /**
194
+     * oa年份
195
+     */
196
+    private String oaYear;
197
+
198
+    /**
199
+     * oa季度
200
+     */
201
+    private String oaQuarter;
202
+
203
+    /**
204
+     * oa服务类型
205
+     */
206
+    private String oaType;
207
+
208
+    /**
209
+     * oa厂区地点
210
+     */
211
+    private String oaPlantArea;
212
+
213
+    /**
214
+     * oa需求部门
215
+     */
216
+    private String oaDemandDep;
217
+
218
+    /**
219
+     * oa代码
220
+     */
221
+    private String oaCode;
222
+
223
+    /**
224
+     * oa预算科目(代码描述)
225
+     */
226
+    private String oaSubName;
227
+
228
+    /**
229
+     * oa合同信息(合同号+合同名称)
230
+     */
231
+    private String oaContract;
232
+
233
+    /**
234
+     * oa合同金额
235
+     */
236
+    private BigDecimal oaContractMoney;
237
+
238
+    /**
239
+     * oa已付款金额
240
+     */
241
+    private BigDecimal oaAleradyPayMoney;
242
+
243
+    /**
244
+     * oa本季度预算(预算总额)
245
+     */
246
+    private BigDecimal oaQuaeterBud;
247
+
248
+    /**
249
+     * oa设备名称
250
+     */
251
+    private String oaDeviceName;
252
+
253
+    /**
254
+     * oa付款单位
255
+     */
256
+    private String oaPayCompany;
257
+
258
+    /**
259
+     * oa本次付款描述
260
+     */
261
+    private String oaPayRemark;
262
+
263
+    /**
264
+     * oa规格
265
+     */
266
+    private String oaSpecs;
267
+
268
+    /**
269
+     * oa单位
270
+     */
271
+    private String oaUnit;
272
+
273
+    /**
274
+     * oa数量
275
+     */
276
+    private String oaNum;
277
+
278
+    /**
279
+     * oa设备验收人
280
+     */
281
+    private String oaDevicePerson;
282
+
283
+    /**
284
+     * 设备验收人code
285
+     */
286
+    private String oaDevicePersonCode;
287
+
288
+    /**
289
+     * oa固定资产编号
290
+     */
291
+    private String oaFixedAssetsCode;
292
+
293
+    /**
294
+     * oa预算内付款金额
295
+     */
296
+    private BigDecimal oaBudInnerMoney;
297
+
298
+    /**
299
+     * oa预算外付款金额
300
+     */
301
+    private BigDecimal oaBudOutMoney;
302
+
303
+    /**
304
+     * 预算内申请金额
305
+     */
306
+    private BigDecimal budInnerMoney;
307
+
308
+    /**
309
+     * 预算外申请金额
310
+     */
311
+    private BigDecimal budOutMoney;
312
+
313
+    /**
314
+     * 预算内余额
315
+     */
316
+    private BigDecimal oaBalance;
317
+
318
+    /**
319
+     * 紧急程度
320
+     */
321
+    private String oaUrgencyDegree;
322
+
323
+    /**
324
+     * oa转账金额
325
+     */
326
+    private BigDecimal oaTransferMoney;
327
+
328
+    /**
329
+     * oa承兑金额
330
+     */
331
+    private BigDecimal oaAcceptanceMoney;
332
+
333
+    /**
334
+     * 维修内容
335
+     */
336
+    private String oaRepairContent;
337
+
338
+    /**
339
+     * oa主管会计
340
+     */
341
+    private String oaAccountantCharge;
342
+
343
+    /**
344
+     * 主管会计code
345
+     */
346
+    private String oaAccountantChargeCode;
347
+
348
+    /**
349
+     * 经办人
350
+     */
351
+    private String oaHandler;
352
+
353
+    /**
354
+     * 经办人工号
355
+     */
356
+    private String oaHandlerCode;
357
+
358
+    /**
359
+     * 费用归属
360
+     */
361
+    private String oaCostAttribution;
362
+
363
+    /**
364
+     * 现金
365
+     */
366
+    private BigDecimal oaCash;
367
+
368
+    /**
369
+     * 合同号
370
+     */
371
+    private String contractNo;
372
+
373
+    /**
374
+     * 流程id
375
+     */
376
+    private Integer processId;
377
+
378
+    /**
379
+     * 研发项目
380
+     */
381
+    private String rdProject;
382
+
383
+    /**
384
+     * 用途
385
+     */
386
+    private String purpose;
387
+
388
+    /**
389
+     * 借款金额
390
+     */
391
+    private BigDecimal oaBorrowMoney;
392
+
393
+    /**
394
+     * 是否安全生产费 0是1否
395
+     */
396
+    private Byte isSafeProductionCost;
397
+
398
+    /**
399
+     * 是否oa补录 0:否 1:是
400
+     */
401
+    private Integer isOa;
402
+
403
+    /**
404
+     * 项目名称
405
+     */
406
+    private String oaProjectName;
407
+
408
+    /**
409
+     * 子项目名称
410
+     */
411
+    private String oaChildProjectName;
412
+
413
+    /**
414
+     * 租聘费类别
415
+     */
416
+    private String oaHireType;
417
+
418
+    /**
419
+     * 预算外超额
420
+     */
421
+    private BigDecimal oaOutExcess;
422
+
423
+    /**
424
+     * 预算外超出比
425
+     */
426
+    private BigDecimal oaExcessScale;
427
+
428
+    /**
429
+     * oa年度预算代码 (仅日常借款使用)
430
+     */
431
+    private String oaYearBudget;
432
+
433
+    /**
434
+     * oa申请人工号
435
+     */
436
+    private String oaApplyUserCode;
437
+
438
+    /**
439
+     * oa申请人姓名
440
+     */
441
+    private String oaApplyUserName;
442
+
443
+    /**
444
+     * 项目经理
445
+     */
446
+    private String oaProjectManager;
447
+
448
+    /**
449
+     * 项目经理编码
450
+     */
451
+    private String oaProjectManagerCode;
452
+
453
+    /**
454
+     * 费用部门编码
455
+     */
456
+    private String costDeptCode;
457
+
458
+    /**
459
+     * 费用部门名称
460
+     */
461
+    private String costDeptName;
462
+
463
+    /**
464
+     * 使用人编码
465
+     */
466
+    private String useCode;
467
+
468
+    /**
469
+     * 使用人名称
470
+     */
471
+    private String useName;
472
+
473
+    /**
474
+     * 主管BP经理编码
475
+     */
476
+    private String bpCode;
477
+
478
+    /**
479
+     * 主管BP经理名称
480
+     */
481
+    private String bpName;
482
+
483
+    /**
484
+     * 费用科目
485
+     */
486
+    private String expenseAccount;
487
+
488
+    /**
489
+     * 费用科目名称
490
+     */
491
+    private String expenseAccountName;
492
+
493
+    /**
494
+     * 会计年度
495
+     */
496
+    private String accountingYear;
497
+
498
+    /**
499
+     * 会计凭证
500
+     */
501
+    private String accountingDocument;
502
+
503
+    /**
504
+     * 1 未同步 2 新建同步成功 3 变更同步成功 4 新建同步失败 5、变更同步失败
505
+     */
506
+    private Integer syncState;
507
+
508
+    /**
509
+     * 同步返回信息
510
+     */
511
+    private String syncMsg;
512
+
513
+    /**
514
+     * 审批通过时间
515
+     */
516
+    private LocalDateTime approvalTime;
517
+
518
+    /**
519
+     * OA项目
520
+     */
521
+    private String oaXm;
522
+
523
+    /**
524
+     * OA业务科目
525
+     */
526
+    private String oaYwkm;
527
+
528
+    /**
529
+     * oa科目主键(查询时使用)
530
+     */
531
+    private String llkzj;
532
+
533
+    /**
534
+     * 附件ids
535
+     */
536
+    private String files;
537
+
538
+    /**
539
+     * 是否提前付款;0-否;1-是
540
+     */
541
+    private Integer advancePaymentFlag;
542
+
543
+    /**
544
+     * 承兑期限
545
+     */
546
+    private String acceptanceMethod;
547
+
548
+    /**
549
+     * 报关公司编码
550
+     */
551
+    private String faSupplier;
552
+
553
+    /**
554
+     * 报关公司名称
555
+     */
556
+    private String faSupplierName;
557
+
558
+    /**
559
+     * 实际应付金额
560
+     */
561
+    private BigDecimal actualityPayMoney;
562
+
563
+    /**
564
+     * 付款用途
565
+     */
566
+    private String paymentPurpose;
567
+
568
+    /**
569
+     * 付款用途描述
570
+     */
571
+    private String paymentPurposeDesc;
572
+
573
+    /**
574
+     * 供应商退款(1:是,0:否)
575
+     */
576
+    private String supplierReturn;
577
+
578
+
579
+    /**
580
+     * 影像编码
581
+     */
582
+    private String imgCode;
583
+
584
+    /**
585
+     * 影像编码
586
+     */
587
+    private String poImgCode;
588
+
589
+    /**
590
+     * 影像创建时间
591
+     */
592
+    private LocalDateTime imgTime;
593
+
594
+    /**
595
+     * 影像创建人
596
+     */
597
+    private Long imgUserId;
598
+
599
+    /**
600
+     * 付款类型
601
+     */
602
+    private String businessType;
603
+
604
+    /**
605
+     * 付款公司
606
+     */
607
+    private String paymentCompanyCode;
608
+
609
+    /**
610
+     * 收款单位
611
+     */
612
+    private String paymentCompanyName;
613
+
614
+    /**
615
+     * 收款地址
616
+     */
617
+    private String bankAddress;
618
+    /**
619
+     * 逾期款项
620
+     */
621
+    private BigDecimal overdueAmount;
622
+    /**
623
+     * 到期款项
624
+     */
625
+    private BigDecimal dueAmount;
626
+    /**
627
+     * 应付账款余额
628
+     */
629
+    private BigDecimal accountsPayableBalance;
630
+    /**
631
+     * 暂估余额
632
+     */
633
+    private BigDecimal provisionalBalance;
634
+
635
+
636
+    /**
637
+     * 邮件发送标识
638
+     */
639
+    private Integer sendEmailCollectionFlag;
640
+}

+ 187 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPaymentInvoicedReceiptPO.java

@@ -0,0 +1,187 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+
4
+import lombok.Data;
5
+
6
+import java.math.BigDecimal;
7
+import java.util.Date;
8
+
9
+/**
10
+ * <p>
11
+ * 对账模块-关联发票明细
12
+ * </p>
13
+ *
14
+ * @author JIEZ
15
+ * @since 2023-07-11
16
+ */
17
+@Data
18
+public class ContractPaymentInvoicedReceiptPO {
19
+    /**
20
+     * 数据主键
21
+     */
22
+	private Long id;
23
+
24
+	private Long receiptId;
25
+
26
+    private Long invoiceId;
27
+    /**
28
+     * 开票申请单ID
29
+     */
30
+	private Long iaId;
31
+    /**
32
+     * 可抵扣编号:1-可抵扣;2-不可抵扣
33
+     */
34
+	private Integer deductionCodeType;
35
+    /**
36
+     * 发票代码
37
+     */
38
+	private String invoiceCode;
39
+    /**
40
+     * 发票号码
41
+     */
42
+	private String invoiceNumber;
43
+    /**
44
+     * 数电发票号码
45
+     */
46
+    private String electronInvoiceNumber;
47
+    /**
48
+     * 税号
49
+     */
50
+	private String dutyParagraph;
51
+    /**
52
+     * 发票日期
53
+     */
54
+	private Date invoiceDate;
55
+    /**
56
+     * 税率
57
+     */
58
+	private String taxRate;
59
+    /**
60
+     * 币种
61
+     */
62
+	private String currencyCode;
63
+    /**
64
+     * 不含税金额
65
+     */
66
+	private BigDecimal noTaxAmount;
67
+    /**
68
+     * 含税金额
69
+     */
70
+	private BigDecimal taxAmount;
71
+    /**
72
+     * 税金
73
+     */
74
+	private BigDecimal diffTaxMoney;
75
+    /**
76
+     * 供应商名称
77
+     */
78
+	private String supplierName;
79
+    /**
80
+     * 供应商代码
81
+     */
82
+	private String supplierCode;
83
+    /**
84
+     * 发票附件id
85
+     */
86
+    private Long fileId;
87
+    /**
88
+     * 发票附件名称
89
+     */
90
+    private String fileName;
91
+    /**
92
+     * 创建用户ID
93
+     */
94
+	private Long createUserId;
95
+    /**
96
+     * 创建时间
97
+     */
98
+	private Date createTime;
99
+    /**
100
+     * 最后更新用户ID
101
+     */
102
+	private Long updateUserId;
103
+    /**
104
+     * 最后更新时间
105
+     */
106
+	private Date updateTime;
107
+
108
+	private Date invoicePostDate;
109
+    /**
110
+     * 删除标记 0:未删除 1:已删除
111
+     */
112
+	private Integer deleteFlag;
113
+    /**
114
+     * 创建时间(起)
115
+     */
116
+    private Date createTimeStart;
117
+    /**
118
+     * 创建时间(至)
119
+     */
120
+    private Date createTimeEnd;
121
+    /**
122
+     * 供应商编码或名称
123
+     */
124
+    private String supCodeOrName;
125
+    /**
126
+     * 开票申请单号
127
+     */
128
+    private String invoiceApplyNo;
129
+    /**
130
+     * 预制发票号
131
+     */
132
+    private String invoiceVoucher;
133
+    /**
134
+     * 发票年度
135
+     */
136
+    private String voucherYear;
137
+    private Date mvPostDate;
138
+
139
+    /**
140
+     * 会计凭证
141
+     */
142
+    private String accountantVoucher;
143
+
144
+    /**
145
+     * 发票状态
146
+     */
147
+    private String deductionStatus;
148
+
149
+    /**
150
+     * 备注
151
+     */
152
+    private String note;
153
+    private String companyCode;
154
+    private String financeConfirmUserName;
155
+    private String accountStatementNo;
156
+    private Integer status;
157
+
158
+    /**
159
+     * 发票类型;0-蓝字发票;1-红字发票
160
+     */
161
+    private Integer type;
162
+
163
+    /**
164
+     * 发票流水号(发票云返回)
165
+     */
166
+    private String serialNo;
167
+
168
+    /**
169
+     * 发票云返回备注
170
+     */
171
+    private String erpRemark;
172
+
173
+    /**
174
+     * 被红冲的蓝字发票号
175
+     */
176
+    private String blueInvoiceNo;
177
+
178
+    /**
179
+     * 不可删除标记;0-默认;1-不可删除
180
+     */
181
+    private Integer notDeleteFlag;
182
+
183
+    /**
184
+     * 发票云返回的json
185
+     */
186
+    private String erpJson;
187
+}

+ 102 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractPaymentRecordPO.java

@@ -0,0 +1,102 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Data;
4
+
5
+import java.io.Serializable;
6
+import java.math.BigDecimal;
7
+
8
+/**
9
+ * <p>
10
+ *
11
+ * </p>
12
+ *
13
+ * @author wt
14
+ * @version 1.0
15
+ * @since 2024/3/9
16
+ */
17
+@Data
18
+public class ContractPaymentRecordPO implements Serializable {
19
+    /**
20
+     * 采购员
21
+     */
22
+    private String buyer;
23
+
24
+    /**
25
+     * 订单编号
26
+     */
27
+    private String poCode;
28
+    /**
29
+     * 订单行号
30
+     */
31
+    private String itemNo;
32
+    /**
33
+     * 已申请预付款
34
+     */
35
+    private BigDecimal prepaid;
36
+    /**
37
+     * 实际预付款
38
+     */
39
+    private BigDecimal actualPrepaid;
40
+    /**
41
+     * 已抵扣预付款
42
+     */
43
+    private BigDecimal deductionPrepaid;
44
+    /**
45
+     * 票到付款申请金额
46
+     */
47
+    private BigDecimal ticketPrepaid;
48
+    /**
49
+     * 实际票到付款金额
50
+     */
51
+    private BigDecimal actualTicketPrepaid;
52
+    /**
53
+     * 累计已付款金额
54
+     */
55
+    private BigDecimal totalPayment;
56
+    private BigDecimal reversalMoney;
57
+
58
+    /**
59
+     * 剩余付款金额
60
+     */
61
+    private BigDecimal remaining;
62
+
63
+    /**
64
+     * 付款状态 数据状态 1:暂存 2:待推送 3:审批中 4:审批不通过 5:已支付
65
+     */
66
+    private Integer status;
67
+
68
+    /**
69
+     * 付款类型 款项类型 Z001:预付款 Z003:票到付款
70
+     */
71
+    private String amountType;
72
+
73
+    /**
74
+     * 付款单号
75
+     */
76
+    private String paymentNo;
77
+
78
+    /**
79
+     * 合同号
80
+     */
81
+    private String contractNo;
82
+
83
+    /**
84
+     * 发票号
85
+     */
86
+    private String invoiceNo;
87
+
88
+    /**
89
+     * 发票行号
90
+     */
91
+    private String invoiceItemNo;
92
+
93
+    /**
94
+     * 预算内金额
95
+     */
96
+    private BigDecimal budInnerMoney;
97
+
98
+    /**
99
+     * 预算外金额
100
+     */
101
+    private BigDecimal budOutMoney;
102
+}

+ 244 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractReportPO.java

@@ -0,0 +1,244 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Data;
7
+import lombok.Getter;
8
+import lombok.Setter;
9
+
10
+import java.io.Serializable;
11
+import java.math.BigDecimal;
12
+import java.time.LocalDateTime;
13
+
14
+/**
15
+ * <p>
16
+ * 
17
+ * </p>
18
+ *
19
+ * @author zx
20
+ * @since 2024-03-07
21
+ */
22
+@Data
23
+public class ContractReportPO implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    private Long id;
28
+
29
+    /**
30
+     * 标题
31
+     */
32
+    private String contractTitle;
33
+
34
+    /**
35
+     * 合同编码
36
+     */
37
+    private String contractCode;
38
+
39
+    /**
40
+     * 合同状态
41
+     */
42
+    private Integer contractState;
43
+
44
+    /**
45
+     * 合同分类
46
+     */
47
+    private String contractType;
48
+
49
+    /**
50
+     * 公司编码
51
+     */
52
+    private String contractCompanyCode;
53
+
54
+    /**
55
+     * 公司名称
56
+     */
57
+    private String contractCompanyName;
58
+
59
+    /**
60
+     * 工厂编码
61
+     */
62
+    private String contractFactoryCode;
63
+
64
+    /**
65
+     * 工厂名称
66
+     */
67
+    private String contractFactoryName;
68
+
69
+    /**
70
+     * 工厂地址
71
+     */
72
+    private String contractFactoryAddres;
73
+
74
+    /**
75
+     * 供应商编码
76
+     */
77
+    private String contractSupplierCode;
78
+
79
+    /**
80
+     * 供应商名称
81
+     */
82
+    private String contractSupplierName;
83
+
84
+    /**
85
+     * 合同金额小写
86
+     */
87
+    private BigDecimal contractAmount;
88
+
89
+    /**
90
+     * 合同金额大写
91
+     */
92
+    private String contractAmountCapital;
93
+
94
+    /**
95
+     * 货币编码
96
+     */
97
+    private String contractCurrency;
98
+
99
+    /**
100
+     * 付款方式
101
+     */
102
+    private String contractPaymentWay;
103
+
104
+    /**
105
+     * 承兑比例
106
+     */
107
+    private BigDecimal contractAcceptance;
108
+
109
+    /**
110
+     * 发票类型
111
+     */
112
+    private Integer contractInvoiceCode;
113
+
114
+    /**
115
+     * 订单类型
116
+     */
117
+    private String contractOrderType;
118
+
119
+    /**
120
+     * 申请人
121
+     */
122
+    private String contractDemandUser;
123
+
124
+    /**
125
+     * 申请人部门
126
+     */
127
+    private String contractDemandUserDept;
128
+
129
+    /**
130
+     * 签署顺序
131
+     */
132
+    private String contractSignOrder;
133
+
134
+    /**
135
+     * 签章类别
136
+     */
137
+    private String contractSealType;
138
+
139
+    /**
140
+     * 采购组编码
141
+     */
142
+    private String contractPurchaseGroup;
143
+
144
+    /**
145
+     * 采购组织编码
146
+     */
147
+    private String contractPurchaseGroupCode;
148
+
149
+    /**
150
+     * 合同附件集合
151
+     */
152
+    private String contractFiles;
153
+
154
+    /**
155
+     * 盖章文件集合
156
+     */
157
+    private String contractSignFiels;
158
+
159
+
160
+    private String contractSignFileStatue;
161
+
162
+    /**
163
+     * 备注
164
+     */
165
+    private String contractApplyContent;
166
+
167
+    /**
168
+     * 创建日期
169
+     */
170
+    private LocalDateTime createTime;
171
+
172
+    /**
173
+     * 更新人
174
+     */
175
+    private Long updateUser;
176
+
177
+    /**
178
+     * 更新时间
179
+     */
180
+    private LocalDateTime updateTime;
181
+
182
+    /**
183
+     * 创建人
184
+     */
185
+    private Long createUser;
186
+
187
+    /**
188
+     * 删除标记;0-未删除;1-已删除
189
+     */
190
+    private Integer deleteFlag ;
191
+
192
+    private String associationContract;
193
+
194
+    private String oaProcessId;
195
+
196
+    private String oaCode;
197
+
198
+    private String oaMsg;
199
+
200
+    private String userAccount;
201
+
202
+    private String isSeal;
203
+
204
+    private Integer dataSources ;
205
+
206
+    private Long dataSourcesId;
207
+
208
+    private String dataSourcesNo;
209
+
210
+    private Integer isMro ;
211
+
212
+    private Integer isSap ;
213
+
214
+    private String contractCover;
215
+
216
+    private String fileKey;
217
+
218
+    private String signFlowId;
219
+
220
+    private String signFlowStatus;
221
+
222
+    private String signFile;
223
+
224
+    private String orderCode;
225
+
226
+
227
+
228
+    private String requireName;
229
+    private String contractTypeName;
230
+    private String subjectCode;
231
+    private String materialModel;
232
+    private Integer warrantyPeriod;
233
+    private String materialBrand;
234
+    private String basisUnit;
235
+    private BigDecimal price;
236
+    private BigDecimal num;
237
+    private String taxRateName;
238
+    private String createUserName;
239
+    private String purchaseCode;
240
+    private String cardNumber;
241
+    private LocalDateTime deliveryDate;
242
+    private LocalDateTime invoiceTime;
243
+    private BigDecimal totalAmount;
244
+}

+ 187 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/ContractReturnOrderDetailPO.java

@@ -0,0 +1,187 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Getter;
4
+import lombok.Setter;
5
+
6
+import java.io.Serializable;
7
+import java.math.BigDecimal;
8
+import java.time.LocalDateTime;
9
+
10
+/**
11
+ * @author qizhicai
12
+ * @version JDK 1.8
13
+ * @date 2025/12/17
14
+ * @description TODO
15
+ */
16
+@Getter
17
+@Setter
18
+public class ContractReturnOrderDetailPO implements Serializable {
19
+
20
+    private static final long serialVersionUID = 1L;
21
+
22
+    private Long id;
23
+
24
+    /**
25
+     * 收货单号
26
+     */
27
+    private String deliveryNo;
28
+
29
+    /**
30
+     * 收货单行号
31
+     */
32
+    private String receiptLineNo;
33
+
34
+    /**
35
+     * 送货单id
36
+     */
37
+    private Long returnOrderId;
38
+
39
+    /**
40
+     * 退货单号
41
+     */
42
+    private String returnOrderNo;
43
+
44
+    /**
45
+     * 合同编号
46
+     */
47
+    private String contractNo;
48
+
49
+    /**
50
+     * 合同序号
51
+     */
52
+    private String contractSeq;
53
+
54
+    /**
55
+     * 资产类别
56
+     */
57
+    private String assetCategory;
58
+
59
+    /**
60
+     * 物品名称
61
+     */
62
+    private String itemName;
63
+
64
+    /**
65
+     * 型号规格/参数
66
+     */
67
+    private String modelSpec;
68
+
69
+    /**
70
+     * 品牌
71
+     */
72
+    private String brand;
73
+
74
+    /**
75
+     * 请购单编号
76
+     */
77
+    private String requisitionNo;
78
+
79
+    /**
80
+     * 单位
81
+     */
82
+    private String unit;
83
+
84
+    /**
85
+     * 订单数量
86
+     */
87
+    private BigDecimal orderQuantity;
88
+
89
+    /**
90
+     * 退货数量
91
+     */
92
+    private BigDecimal  returnQuantity;
93
+
94
+    /**
95
+     * 收货数量
96
+     */
97
+    private BigDecimal receivedQuantity;
98
+
99
+    /**
100
+     * 设备序列号
101
+     */
102
+    private String deviceSerialNo;
103
+
104
+    /**
105
+     * 验收状态
106
+     */
107
+    private String acceptanceStatus;
108
+
109
+    /**
110
+     * 请购部门
111
+     */
112
+    private String requisitionDept;
113
+
114
+    /**
115
+     * 保管人
116
+     */
117
+    private String custodian;
118
+
119
+    /**
120
+     * 成本中心
121
+     */
122
+    private String costCenter;
123
+
124
+    /**
125
+     * 存放地点
126
+     */
127
+    private String storageLocation;
128
+
129
+    /**
130
+     * 删除状态
131
+     */
132
+    private Integer deleteFlag;
133
+
134
+    /**
135
+     * 创建人
136
+     */
137
+    private Long createId;
138
+
139
+    /**
140
+     * 创建时间
141
+     */
142
+    private LocalDateTime createTime;
143
+
144
+    /**
145
+     * 修改人
146
+     */
147
+    private Long updateId;
148
+
149
+    /**
150
+     * 修改时间
151
+     */
152
+    private LocalDateTime updateTime;
153
+
154
+    private String receiver;
155
+    private LocalDateTime returnOrderDate;
156
+    private String documentType;
157
+    private String purchaser;
158
+    private String supplier;
159
+    private String purchaseGroup;
160
+    private String purchaserCode;
161
+    private String supplierCode;
162
+    /**
163
+     * 验收单号
164
+     */
165
+
166
+    private String acceptanceNo;
167
+    /**
168
+     * 请购部门名称
169
+     */
170
+    private String useDeptName;
171
+
172
+    /**
173
+     * 保管人code
174
+     */
175
+    private String userCode;
176
+
177
+    /**
178
+     * 未税单价
179
+     */
180
+    private BigDecimal noTaxPrice;
181
+
182
+    /**
183
+     * 含税单价
184
+     */
185
+    private BigDecimal price;
186
+
187
+}

+ 329 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/CreateContractPayDetailPO.java

@@ -0,0 +1,329 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Data;
4
+
5
+import java.io.Serializable;
6
+import java.math.BigDecimal;
7
+import java.time.LocalDate;
8
+import java.time.LocalDateTime;
9
+import java.util.List;
10
+
11
+/**
12
+ * <p>
13
+ *
14
+ * </p>
15
+ *
16
+ * @author wt
17
+ * @version 1.0
18
+ * @since 2024/3/8
19
+ */
20
+@Data
21
+public class CreateContractPayDetailPO implements Serializable {
22
+
23
+    /**
24
+     * 明细ID
25
+     */
26
+    private Long id;
27
+    /**
28
+     * 相关关联表明细id
29
+     */
30
+    private Long detailId;
31
+
32
+    /**
33
+     * 申请行号
34
+     */
35
+    private String itemNo;
36
+    /**
37
+     * 付款阶段行号
38
+     */
39
+    private String lineNo;
40
+    private String contractTitle;
41
+    /**
42
+     * 申请单号
43
+     */
44
+    private String appNo;
45
+
46
+    /**
47
+     * 合同类型
48
+     */
49
+    private String contractType;
50
+
51
+    /**
52
+     * 款项类型 Z001:预付款 Z003:票到付款
53
+     */
54
+    private String amountType;
55
+    /**
56
+     * 发票正负向标识 1:正向 2:负向
57
+     */
58
+    private Integer posNegFlag;
59
+    /**
60
+     * 款项类型描述
61
+     */
62
+    private String amountTypeDesc;
63
+    /**
64
+     * 采购订单号
65
+     */
66
+    private String poCode;
67
+    /**
68
+     * 订单行号
69
+     */
70
+    private String poItemNo;
71
+    /**
72
+     * 订单数量
73
+     */
74
+    private BigDecimal poNum;
75
+    /**
76
+     * 物料编码
77
+     */
78
+    private String materialCode;
79
+    /**
80
+     * 物料描述
81
+     */
82
+    private String materialDesc;
83
+    /**
84
+     * 单位
85
+     */
86
+    private String materialUnit;
87
+    /**
88
+     * 询源采购组编码
89
+     */
90
+    private String seekPgCode;
91
+    /**
92
+     * 询源采购组名称
93
+     */
94
+    private String seekPgName;
95
+    /**
96
+     * 税率值(0.13)
97
+     */
98
+    private BigDecimal taxValue;
99
+    /**
100
+     * 税率编码
101
+     */
102
+    private String taxCode;
103
+    /**
104
+     * 税率描述
105
+     */
106
+    private String taxDesc;
107
+    /**
108
+     * 税率编码及描述 如:(J5)13% 进项税专用发票
109
+     */
110
+    private String taxCodeDesc;
111
+    /**
112
+     * 未税单价
113
+     */
114
+    private BigDecimal ntPrice;
115
+    /**
116
+     * 未税金额
117
+     */
118
+    private BigDecimal ntAmount;
119
+    /**
120
+     * 税额
121
+     */
122
+    private BigDecimal dtAmount;
123
+    /**
124
+     * 含税单价
125
+     */
126
+    private BigDecimal itPrice;
127
+    /**
128
+     * 含税金额
129
+     */
130
+    private BigDecimal itAmount;
131
+    /**
132
+     * 可申请付款金额
133
+     */
134
+    private BigDecimal applyAmount;
135
+    /**
136
+     * 本次申请预算内金额
137
+     */
138
+    private BigDecimal budInnerMoney = BigDecimal.ZERO;
139
+    /**
140
+     * 本次申请预算外金额
141
+     */
142
+    private BigDecimal budOutMoney = BigDecimal.ZERO;
143
+    /**
144
+     * 已预付金额/已付款金额
145
+     */
146
+    private BigDecimal alreadyPaymentAmount;
147
+    /**
148
+     * 已申请金额
149
+     */
150
+    private BigDecimal alreadyApplyAmount;
151
+    /**
152
+     * 物料凭证号
153
+     */
154
+    private String mvCode;
155
+    /**
156
+     * 物料凭证行号
157
+     */
158
+    private String mvItemNo;
159
+    /**
160
+     * 物料凭证过账日期
161
+     */
162
+    private String mvPostDate;
163
+    /**
164
+     * 入库数量
165
+     */
166
+    private BigDecimal mvNum;
167
+    /**
168
+     * 发票年度
169
+     */
170
+    private String invoiceYear;
171
+    /**
172
+     * 发票申请单号
173
+     */
174
+    private String invoiceNo;
175
+    /**
176
+     * 发票申请行号
177
+     */
178
+    private String invoiceItemNo;
179
+    /**
180
+     * 发票凭证过账日期
181
+     */
182
+    private String invoicePostDate;
183
+    /**
184
+     * 发票文本
185
+     */
186
+    private String invoiceText;
187
+    /**
188
+     * PO付款方式代码
189
+     */
190
+    private String ppwCode;
191
+    /**
192
+     * PO付款方式描述
193
+     */
194
+    private String ppwDesc;
195
+    /**
196
+     * PO付款方式代码及描述
197
+     */
198
+    private String ppwCodeDesc;
199
+    /**
200
+     * PO付款条件代码
201
+     */
202
+    private String ppcCode;
203
+    /**
204
+     * PO付款条件描述
205
+     */
206
+    private String ppcDesc;
207
+    /**
208
+     * PO付款条件代码及描述
209
+     */
210
+    private String ppcCodeDesc;
211
+    /**
212
+     * 发票付款方式代码
213
+     */
214
+    private String ipwCode;
215
+    /**
216
+     * 发票付款方式描述
217
+     */
218
+    private String ipwDesc;
219
+    /**
220
+     * 发票付款方式代码及描述
221
+     */
222
+    private String ipwCodeDesc;
223
+    /**
224
+     * 发票付款条件代码
225
+     */
226
+    private String ipcCode;
227
+    /**
228
+     * 发票付款条件描述
229
+     */
230
+    private String ipcDesc;
231
+    /**
232
+     * 发票付款条件代码及描述
233
+     */
234
+    private String ipcCodeDesc;
235
+    /**
236
+     * (集采)采购凭证编号
237
+     */
238
+    private String jcPoCode;
239
+    /**
240
+     * (集采)采购凭证行号
241
+     */
242
+    private String jcPoItemNo;
243
+    /**
244
+     * 集采工厂
245
+     */
246
+    private String jcFactoryCode;
247
+
248
+
249
+    /**
250
+     * 数据主键(确定唯一性记录) 款项类型_采购订单号_订单行号_发票年度_发票号_发票行号
251
+     */
252
+    private String dataKey;
253
+    /**
254
+     * 行项目备注
255
+     */
256
+    private String itemRemark;
257
+
258
+    private Integer status;
259
+    /**
260
+     * 发票年度和发票号
261
+     */
262
+    private String voucherAndYear;
263
+    /**
264
+     * 科目类别
265
+     */
266
+    private String subjectTypeName;
267
+    /**
268
+     * 付款条件
269
+     */
270
+    private String paymentWayDesc;
271
+
272
+    private String contractNo;
273
+
274
+    private String contractName;
275
+    /**
276
+     * 合同主表ID
277
+     */
278
+    private Long contractId;
279
+    /**
280
+     * 合同主表中合同系统UUID
281
+     */
282
+    private String htUuid;
283
+    /**
284
+     * 科目分配
285
+     */
286
+    private String subjectTypeCode;
287
+    private LocalDateTime expectationPaymentDate;
288
+    /**
289
+     * 采购员
290
+     */
291
+    private String buyer;
292
+    private String accountStatementNo;
293
+    private String purchaseGroup;
294
+    private String cppNo;
295
+    private BigDecimal strikePriceAmount;
296
+    private BigDecimal actualUnpaidAmount;
297
+    private BigDecimal discountMoney;
298
+    private String supplierCode2;
299
+    private String supplierName2;
300
+    //对账月份 2024-08-13 邓京术
301
+    private String accountStatementMonth;
302
+    private String accountImageCode;
303
+    private String invoicedImageCode;
304
+
305
+
306
+    /**
307
+     * 付款笔数
308
+     */
309
+    private String paymentStage;
310
+    /**
311
+     * 付款比例
312
+     */
313
+    private BigDecimal paymentRatio;
314
+    private String paymentAround;
315
+    private BigDecimal aroundAmount;
316
+    private String paymentWay;
317
+
318
+    private List<CreateContractPayDetailPO> CreateContractPayDetailDtos;
319
+
320
+//    public String getAmountTypeDesc(){
321
+//        if ("Z001".equals(this.amountType)){
322
+//            return "预付款";
323
+//        }
324
+//        if ("Z003".equals(this.amountType)){
325
+//            return "票到付款";
326
+//        }
327
+//        return "";
328
+//    }
329
+}

+ 49 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/po/DigitalSealConfigDTO.java

@@ -0,0 +1,49 @@
1
+package com.jwipc.contract.model.po;
2
+
3
+import lombok.Data;
4
+
5
+/**
6
+ * 功能描述:
7
+ *
8
+ * @Author: zx
9
+ * @Date: 2024/4/18 0018 9:21
10
+ */
11
+@Data
12
+public class DigitalSealConfigDTO {
13
+
14
+    /**
15
+     * 公司编码
16
+     */
17
+    private String companyCode ;
18
+
19
+    /**
20
+     * 签章平台组织编码
21
+     */
22
+    private String orgCode ;
23
+
24
+    /**
25
+     * 印章类型 1:合同章;2 公章;3: 财务章
26
+     */
27
+    private Integer sealType ;
28
+
29
+    /**
30
+     * 印章唯一标识
31
+     */
32
+    private String sealCode ;
33
+
34
+    /**
35
+     * 签署人编码
36
+     */
37
+    private String signerCode ;
38
+
39
+    /**
40
+     * 签署人账号
41
+     */
42
+    private String signerAccount ;
43
+
44
+    /**
45
+     * 签署人所在组织编码
46
+     */
47
+    private String signerOrgCode ;
48
+
49
+}

+ 88 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ChoseSupplierListQuery.java

@@ -0,0 +1,88 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import com.jwipc.query.BasePageQuery;
4
+import com.jwipc.query.BaseSortQuery;
5
+import lombok.Data;
6
+
7
+import java.util.List;
8
+
9
+/**
10
+ * 功能描述:
11
+ *
12
+ * @Author: zx
13
+ * @Date: 2024/3/7 0007 15:02
14
+ */
15
+@Data
16
+public class ChoseSupplierListQuery extends BaseSortQuery {
17
+
18
+    private String type;
19
+
20
+    private String nameCOde;
21
+
22
+    private String supplierName;
23
+
24
+    private String conId;
25
+    private String appId;
26
+
27
+    /**
28
+     * 采购组编码
29
+     */
30
+    private String purchaseGroup;
31
+
32
+    /**
33
+     * 币种
34
+     */
35
+    private String currencyCode;
36
+
37
+
38
+
39
+    private String materialName;
40
+
41
+
42
+    /**
43
+     * 合同状态主表
44
+     */
45
+    private int contractState;
46
+    /**
47
+    * 合同类型-合同主表
48
+    */
49
+    private String contractType;
50
+
51
+    /**
52
+     * 采购组--合同创建人
53
+     */
54
+    private String contractPurchaseGroup;
55
+    /**
56
+     * 甲方主表
57
+     */
58
+    private String contractCompanyCode;
59
+
60
+    /**
61
+     * 乙方主表
62
+     */
63
+    private String contractSupplierCode;
64
+    /**
65
+     * 资产类别
66
+     */
67
+    private String subjectCode;
68
+    /**
69
+     * 合同编号主表
70
+     */
71
+    private String contractCode;
72
+    /**
73
+     * 合同行号
74
+     */
75
+    private Integer lineNo;
76
+    /**
77
+     * 采购单号
78
+     */
79
+    private String purchaseCode;
80
+    /**
81
+     * 采购行号
82
+     */
83
+    private String itemCode;
84
+    //合同编号+合同序号
85
+    private List<String> contractCodeAndlineNos;
86
+    //采购单编号+采购单行号
87
+    private List<String> purchaseCodeItemCodes;
88
+}

+ 23 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractDeliveryDetailQuery.java

@@ -0,0 +1,23 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import com.jwipc.query.BaseSortQuery;
4
+import lombok.Data;
5
+
6
+/**
7
+ *合同交货单明细查询
8
+ */
9
+@Data
10
+public class ContractDeliveryDetailQuery extends BaseSortQuery {
11
+    private Long deliveryId;
12
+    private String contractNo;
13
+    private String contractSeq;
14
+    private String itemName;
15
+    private String custodian;
16
+    private String deliveryNo;
17
+    private String receiptLineNo;
18
+    private Integer deliveryStatus;
19
+    private String supplier;
20
+    private String purchaser;
21
+    private String modelSpec;
22
+    private String assetCategory;
23
+}

+ 21 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractDeliveryQuery.java

@@ -0,0 +1,21 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import com.jwipc.db.DbUtil;
4
+import com.jwipc.query.BaseSortQuery;
5
+import lombok.Data;
6
+
7
+import java.util.Set;
8
+
9
+/**
10
+ *合同交货单查询
11
+ */
12
+@Data
13
+public class ContractDeliveryQuery extends BaseSortQuery {
14
+    private String materialCodeOrName;
15
+    private String supplierQuery;
16
+    private String  purchaserCode;
17
+    private String  deliveryNo;
18
+    private String  documentType;
19
+    private Integer deliveryStatus;
20
+    private String contractNo;
21
+}

+ 39 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractMangeQuery.java

@@ -0,0 +1,39 @@
1
+package com.jwipc.contract.model.query ;
2
+
3
+import com.jwipc.query.BasePageQuery;
4
+import lombok.Data;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * 功能描述:
10
+ *
11
+ * @Author: zx
12
+ * @Date: 2024/3/7 0007 15:02
13
+ */
14
+@Data
15
+public class ContractMangeQuery  extends BasePageQuery {
16
+    private String sort;
17
+    private String order;
18
+
19
+    private String title;
20
+
21
+    private String code;
22
+
23
+    private Integer state;
24
+    private String payeeName;
25
+    private String supplierCode;
26
+    private String contractSupplierName;
27
+    private String contractDemandUser;
28
+    private String createUserName;
29
+    private Boolean supplierFlag;
30
+    //采购组id
31
+    private List<String> list;
32
+    private String contractCompanyName;
33
+
34
+    private Integer isMro;
35
+    private String type;
36
+    private String contractDraft;
37
+    private String contractPurchaseGroup;
38
+
39
+}

+ 23 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPayDetailsQuery.java

@@ -0,0 +1,23 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import com.jwipc.query.BasePageQuery;
4
+import lombok.Data;
5
+
6
+/**
7
+ * 功能描述:
8
+ *
9
+ * @Author: zx
10
+ * @Date: 2024/3/7 0007 15:02
11
+ */
12
+@Data
13
+public class ContractPayDetailsQuery extends BasePageQuery {
14
+
15
+    private String id;
16
+
17
+    private String payId;
18
+
19
+    private String contractId;
20
+
21
+    private String payStageId;
22
+
23
+}

+ 25 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPayStageQuery.java

@@ -0,0 +1,25 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import com.jwipc.query.BasePageQuery;
4
+import lombok.Data;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * @author shenyang.ou
10
+ * @date 2024/6/13 10:49
11
+ * @desc
12
+ */
13
+@Data
14
+public class ContractPayStageQuery extends BasePageQuery {
15
+
16
+    private String contractTitle;
17
+    private String contractCode;
18
+    private String contractSupplierName;
19
+    private String contractCompanyCode;
20
+    private String paidAmountFlag;
21
+    private String intransItpaidAmountFlag;
22
+    private String unpaidAmountFlag;
23
+    //采购组id
24
+    private List<String> list;
25
+}

+ 128 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPaymentApplyDetailQuery.java

@@ -0,0 +1,128 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import com.google.common.collect.Lists;
4
+import lombok.Data;
5
+import org.apache.commons.lang3.StringUtils;
6
+
7
+import java.util.List;
8
+
9
+/**
10
+ * <p>
11
+ *     对账模块-付款申请明细数据查询实体类
12
+ * </p>
13
+ *
14
+ * @author li.kui
15
+ * @version 1.0
16
+ * @since 2020/10/15
17
+ */
18
+@Data
19
+public class ContractPaymentApplyDetailQuery {
20
+    /**
21
+     * 公司编码
22
+     */
23
+    private String companyCode;
24
+    /**
25
+     * 工厂编码
26
+     */
27
+    private String factoryCode;
28
+    /**
29
+     * 供应商编码
30
+     */
31
+    private String supplierCode;
32
+    /**
33
+     * 币种
34
+     */
35
+    private String currencyCode;
36
+    /**
37
+     * 发票凭证号
38
+     */
39
+    private String invoiceNo;
40
+    /**
41
+     * 凭证日期(起)
42
+     */
43
+    private String voucherDateStart;
44
+    /**
45
+     * 凭证日期(至)
46
+     */
47
+    private String voucherDateEnd;
48
+    /**
49
+     * 入库凭证号
50
+     */
51
+    private String mvCode;
52
+    /**
53
+     * 入库凭证过账日期(起)
54
+     */
55
+    private String mvPostDateStart;
56
+    /**
57
+     * 入库凭证过账日期(至)
58
+     */
59
+    private String mvPostDateEnd;
60
+    /**
61
+     * 采购组编码
62
+     */
63
+    private String seekPgCode;
64
+    /**
65
+     * 多个采购订单查询
66
+     */
67
+    private String morePoQuery;
68
+    /**
69
+     * 编辑仍然存在的申请明细ID
70
+     */
71
+    private String existedItemIds;
72
+    /**
73
+     * 编辑仍然存在的申请明细ID集合
74
+     */
75
+    private List<Long> existedItemIdList;
76
+    /**
77
+     * 申请单ID
78
+     */
79
+    private Long applyId;
80
+
81
+    private List<String> poCodes;
82
+
83
+    private String poCodeItemNoList;
84
+
85
+    private List<String> poKeys;
86
+
87
+    private List<String> dataKeys;
88
+    /**
89
+     * 采购订单号
90
+     */
91
+    private String poCode;
92
+
93
+    private String buyer;
94
+
95
+    private String contractCode;
96
+
97
+    private String invoiceApplyNo;
98
+
99
+    private List<String> userPurCodeList;
100
+    /**
101
+     * 多个采购订单
102
+     */
103
+    @Data
104
+    public static class PoData {
105
+        /**
106
+         * 采购订单号
107
+         */
108
+        private String poCode;
109
+        /**
110
+         * 采购订单行号
111
+         */
112
+        private String poItemNo;
113
+    }
114
+
115
+
116
+    public List<Long> getExistedItemIdList(){
117
+        List<Long> result = Lists.newArrayList();
118
+        if(StringUtils.isNotEmpty(this.existedItemIds)){
119
+            final String[] array = StringUtils.split(this.existedItemIds, ",");
120
+            for(String aadId: array){
121
+                result.add(Long.parseLong(aadId));
122
+            }
123
+            return result;
124
+        }
125
+
126
+        return result;
127
+    }
128
+}

+ 187 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPaymentApplyHeadQuery.java

@@ -0,0 +1,187 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import cn.hutool.core.util.StrUtil;
4
+import com.baomidou.mybatisplus.core.toolkit.StringPool;
5
+import com.google.common.collect.Lists;
6
+import com.jwipc.query.BasePageQuery;
7
+import lombok.Data;
8
+import org.apache.commons.lang3.StringUtils;
9
+
10
+import java.io.Serializable;
11
+import java.math.BigDecimal;
12
+import java.util.List;
13
+
14
+/**
15
+ * <p>
16
+ *     合同付款申请主表列表查询实体类
17
+ * </p>
18
+ *
19
+ * @author 邓京术
20
+ * @version 1.0
21
+ * @since 2025/12/10
22
+ */
23
+@Data
24
+public class ContractPaymentApplyHeadQuery extends BasePageQuery implements Serializable {
25
+    private String sort;
26
+    private String order;
27
+
28
+    /**
29
+     * 申请单号
30
+     */
31
+    private String applyNo;
32
+    /**
33
+     * 数据状态 1:暂存 2:待推送OA 3:OA审批中 4:OA审批不通过 5:已支付
34
+     */
35
+    private Integer status;
36
+    /**
37
+     * 更多状态查询 系统待办查询使用
38
+     */
39
+    private String moreStatus;
40
+    /**
41
+     * 公司代码
42
+     */
43
+    private String companyCode;
44
+    private List<String> companyCodes;
45
+    /**
46
+     * 工厂代码
47
+     */
48
+    private String factoryCode;
49
+    /**
50
+     * 供应商编码或名称
51
+     */
52
+    private String supCodeOrName;
53
+    /**
54
+     * 币种代码
55
+     */
56
+    private String currencyCode;
57
+    /**
58
+     * OA审批流程号
59
+     */
60
+    private String oaProcessCode;
61
+    /**
62
+     * 推送OA员工姓名
63
+     */
64
+    private String pushOaUserName;
65
+    /**
66
+     * 采购订单号(预付申请单查询专用)
67
+     */
68
+    private String poCode;
69
+
70
+    /**
71
+     * 采购订单行
72
+     */
73
+    private String poItemNo;
74
+    /**
75
+     * 创建时间(起)
76
+     */
77
+    private String createTimeStart;
78
+    /**
79
+     * 创建时间(至)
80
+     */
81
+    private String createTimeEnd;
82
+    /**
83
+     * 创建人ID
84
+     */
85
+    private Long createUserId;
86
+    /**
87
+     * 数据权限 当前登录人ID
88
+     */
89
+    private Long userId;
90
+    /**
91
+     * 数据权限 供应商编码
92
+     */
93
+    private String supplierCode;
94
+
95
+    private String createUserName;
96
+    /**
97
+     * 付款金额起
98
+     */
99
+    private BigDecimal oaBorrowMoneyBegin;
100
+    /**
101
+     * 付款金额止
102
+     */
103
+    private BigDecimal oaBorrowMoneyEnd;
104
+
105
+    /**
106
+     * 本次申请金额
107
+     */
108
+    private BigDecimal taxAmount;
109
+
110
+    private String oaType;
111
+
112
+    private String contractCode;
113
+
114
+    private String isOa;
115
+
116
+    private String oaSubName;
117
+
118
+    private String companyType;
119
+
120
+    private String syncState;
121
+
122
+    private String accountingDocument;
123
+
124
+    private String oaProcessId;
125
+
126
+    /**
127
+     * 开票申请号
128
+     */
129
+    private String invoiceNo;
130
+
131
+    private String dataType;
132
+
133
+    private String orderCode;
134
+
135
+
136
+    public String getApplyNoLike(){
137
+        return StringUtils.isEmpty(this.applyNo) ? null : StringPool.PERCENT + this.applyNo + StringPool.PERCENT;
138
+    }
139
+
140
+
141
+    public String getSupCodeOrNameLike(){
142
+        return StringUtils.isEmpty(this.supCodeOrName) ? null : StringPool.PERCENT + this.supCodeOrName + StringPool.PERCENT;
143
+    }
144
+
145
+    public String getOaProcessCodeLike(){
146
+        return StringUtils.isEmpty(this.oaProcessCode) ? null : StringPool.PERCENT + this.oaProcessCode + StringPool.PERCENT;
147
+    }
148
+
149
+    public String getPushOaUserNameLike(){
150
+        return StringUtils.isEmpty(this.pushOaUserName) ? null : StringPool.PERCENT + this.pushOaUserName + StringPool.PERCENT;
151
+    }
152
+
153
+    public List<Integer> getMoreStatusList(){
154
+        if(StringUtils.isNotEmpty(this.moreStatus)) {
155
+            final String[] msArray = StringUtils.split(this.moreStatus, ",");
156
+            List<Integer> list = Lists.newArrayList();
157
+            for (String ms: msArray) {
158
+                list.add(Integer.parseInt(ms));
159
+            }
160
+
161
+            return list;
162
+        }
163
+        return Lists.newArrayList();
164
+    }
165
+
166
+
167
+    public String getCreateTimeStart(){
168
+        if(StringUtils.isNotEmpty(this.createTimeStart)){
169
+            return this.createTimeStart + " 00:00:00";
170
+        }
171
+        return "";
172
+    }
173
+
174
+    public String getCreateTimeEnd(){
175
+        if(StringUtils.isNotEmpty(this.createTimeEnd)){
176
+            return this.createTimeEnd + " 23:59:59";
177
+        }
178
+        return "";
179
+    }
180
+
181
+    public String getSort(){
182
+        if(StringUtils.isNotEmpty(this.sort)){
183
+            return StrUtil.toUnderlineCase(this.sort);
184
+        }
185
+        return "";
186
+    }
187
+}

+ 75 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractPaymentInvoicedDetailQuery.java

@@ -0,0 +1,75 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import cn.hutool.core.util.StrUtil;
4
+import com.jwipc.query.BasePageQuery;
5
+import lombok.Data;
6
+import org.apache.commons.lang3.StringUtils;
7
+
8
+/**
9
+ * @author Al
10
+ * @create 2023-07-18 15:36
11
+ */
12
+@Data
13
+public class ContractPaymentInvoicedDetailQuery extends BasePageQuery {
14
+    private String sort;
15
+    private String order;
16
+    /**
17
+     * 创建时间(起)
18
+     */
19
+    private String createTimeStart;
20
+    /**
21
+     * 创建时间(至)
22
+     */
23
+    private String createTimeEnd;
24
+
25
+    private String invoiceDateStart;
26
+
27
+    private String invoiceDateEnd;
28
+
29
+    /**
30
+     * 供应商编码或名称
31
+     */
32
+    private String supCodeOrName;
33
+    /**
34
+     * 开票申请单号
35
+     */
36
+    private String invoiceApplyNo;
37
+    /**
38
+     * 供应商编码
39
+     */
40
+    private String supplierCode;
41
+    /**
42
+     * 发票
43
+     */
44
+    private String invoiceVoucher;
45
+    private String invoiceNumber;
46
+    /**
47
+     * 入库凭证过账日期(起)
48
+     */
49
+    private String mvPostDateStart;
50
+    /**
51
+     * 入库凭证过账日期(至)
52
+     */
53
+    private String mvPostDateEnd;
54
+    /**
55
+     * 用户ID
56
+     */
57
+    private Long userId;
58
+    /**
59
+     * 扣款状态
60
+     */
61
+    private String deductionStatus;
62
+    private String companyCode;
63
+    private String financeConfirmUserName;
64
+
65
+    /**
66
+     * 备注
67
+     */
68
+    private String note;
69
+    public String getSort(){
70
+        if(StringUtils.isNotEmpty(this.sort)){
71
+            return StrUtil.toUnderlineCase(this.sort);
72
+        }
73
+        return "";
74
+    }
75
+}

+ 26 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractReturnOrderDetailsListQuery.java

@@ -0,0 +1,26 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+/**
4
+ * @author qizhicai
5
+ * @version JDK 1.8
6
+ * @date 2025/12/17
7
+ * @description TODO
8
+ */
9
+
10
+import com.jwipc.query.BaseSortQuery;
11
+import lombok.Data;
12
+
13
+/**
14
+ *合同退货单明细
15
+ */
16
+@Data
17
+public class ContractReturnOrderDetailsListQuery extends BaseSortQuery {
18
+
19
+    private String deliveryNo;
20
+    private String itemName;
21
+    private String supplierQuery;
22
+    private String  purchaserCode;
23
+    private Integer deliveryStatus;
24
+    private Long returnOrderId;
25
+
26
+}

+ 21 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ContractReturnOrderQuery.java

@@ -0,0 +1,21 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import com.jwipc.query.BaseSortQuery;
4
+import lombok.Data;
5
+
6
+/**
7
+ * @author qizhicai
8
+ * @version JDK 1.8
9
+ * @date 2025/12/17
10
+ * @description TODO
11
+ */
12
+@Data
13
+public class ContractReturnOrderQuery extends BaseSortQuery {
14
+
15
+    private String itemName;
16
+    private String supplierQuery;
17
+    private String purchaserCode;
18
+    private String returnOrderNo;
19
+    private String documentType;
20
+    private Integer deliveryStatus;
21
+}

+ 25 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/CostCenterQuery.java

@@ -0,0 +1,25 @@
1
+package com.jwipc.contract.model.query;/**
2
+ * <p> </p>
3
+ *
4
+ * @author ZhangJie
5
+ * @version 1.0
6
+ * @since JDK 1.8
7
+ */
8
+
9
+import com.jwipc.db.DbUtil;
10
+import com.jwipc.query.BasePageQuery;
11
+import lombok.Data;
12
+
13
+@Data
14
+public class CostCenterQuery extends BasePageQuery {
15
+    private String code;
16
+    private String name;
17
+
18
+    public String getCodeLike() {
19
+        return DbUtil.toLike(this.code);
20
+    }
21
+
22
+    public String getNameLike() {
23
+        return DbUtil.toLike(this.name);
24
+    }
25
+}

+ 51 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/OaProcessListQuery.java

@@ -0,0 +1,51 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import lombok.Data;
4
+
5
+/**
6
+ * 功能描述:
7
+ *
8
+ * @Author: zx
9
+ * @Date: 2024/3/7 0007 17:21
10
+ */
11
+@Data
12
+public class OaProcessListQuery {
13
+
14
+
15
+    Head  head ;
16
+
17
+    Integer page;
18
+
19
+    Integer rows;
20
+
21
+    @Data
22
+    public static class Head{
23
+
24
+        /**
25
+         * OA流程类别
26
+          */
27
+        private String ProcessType;
28
+        /**
29
+         * 流程流程编号
30
+         */
31
+        private String ProcessNumber;
32
+        /**
33
+         * 查询人工号
34
+         */
35
+        private String PersonnelId;
36
+
37
+        private Integer pageNo ;
38
+
39
+        private Integer pageSize ;
40
+
41
+        private String PersonnelName;
42
+
43
+        /**
44
+         * 流程名称
45
+         */
46
+        private String ProcessName;
47
+
48
+
49
+    }
50
+
51
+}

+ 46 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/model/query/ProcessListQuery.java

@@ -0,0 +1,46 @@
1
+package com.jwipc.contract.model.query;
2
+
3
+import com.jwipc.query.BasePageQuery;
4
+import lombok.Data;
5
+
6
+/**
7
+ * 功能描述:
8
+ *
9
+ * @Author: zx
10
+ * @Date: 2024/3/7 0007 17:21
11
+ */
12
+@Data
13
+public class ProcessListQuery extends BasePageQuery {
14
+
15
+        /**
16
+         * OA流程类别
17
+          */
18
+        private String name;
19
+        /**
20
+         * 流程流程编号
21
+         */
22
+        private String code;
23
+        /**
24
+         * 合同名称
25
+         */
26
+        private String nameCOde;
27
+        /**
28
+         * OA流程类型
29
+         */
30
+        private String ProcessType;
31
+
32
+        private Integer page ;
33
+
34
+        private Integer rows ;
35
+
36
+        private Integer flag ;
37
+
38
+        private String PersonnelName;
39
+
40
+        /**
41
+         * 流程名称
42
+         */
43
+        private String ProcessName;
44
+
45
+
46
+}

+ 16 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractCategoryService.java

@@ -0,0 +1,16 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.jwipc.contract.entity.ContractCategory;
5
+
6
+/**
7
+ * <p>
8
+ * 合同类型表 服务类
9
+ * </p>
10
+ *
11
+ * @author zx
12
+ * @since 2024-03-27
13
+ */
14
+public interface IContractCategoryService extends IService<ContractCategory> {
15
+
16
+}

+ 32 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractDeliveryDetailService.java

@@ -0,0 +1,32 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.ContractDeliveryDetail;
5
+import com.baomidou.mybatisplus.extension.service.IService;
6
+import com.jwipc.contract.model.po.ContractDeliveryDetailPO;
7
+import com.jwipc.contract.model.query.ContractDeliveryDetailQuery;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * <p>
13
+ * 合同交货明细表 服务类
14
+ * </p>
15
+ *
16
+ * @author qzc
17
+ * @since 2025-12-09
18
+ */
19
+public interface IContractDeliveryDetailService extends IService<ContractDeliveryDetail> {
20
+
21
+    List<ContractDeliveryDetailPO> findList(ContractDeliveryDetailQuery query);
22
+
23
+    List<ContractDeliveryDetail> selectReceiptContractDetailListPage(Page<ContractDeliveryDetail> page, ContractDeliveryDetailQuery query);
24
+
25
+    List<ContractDeliveryDetail> selectreturnOrdertDetailListPage(Page<ContractDeliveryDetail> page, ContractDeliveryDetailQuery query);
26
+
27
+    List<ContractDeliveryDetail> selectSumReivedQuantity(List<String> dataKeys);
28
+
29
+
30
+
31
+
32
+}

+ 21 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractDeliveryService.java

@@ -0,0 +1,21 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.ContractDelivery;
5
+import com.baomidou.mybatisplus.extension.service.IService;
6
+import com.jwipc.contract.model.query.ContractDeliveryQuery;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * <p>
12
+ * 合同收货单表 服务类
13
+ * </p>
14
+ *
15
+ * @author qzc
16
+ * @since 2025-12-09
17
+ */
18
+public interface IContractDeliveryService extends IService<ContractDelivery> {
19
+
20
+    List<ContractDelivery> findList(Page<ContractDelivery> page, ContractDeliveryQuery query);
21
+}

+ 16 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractDetailMroService.java

@@ -0,0 +1,16 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.jwipc.contract.entity.ContractDetailMro;
5
+
6
+/**
7
+ * <p>
8
+ * 合同 - mro 数据 服务类
9
+ * </p>
10
+ *
11
+ * @author zx
12
+ * @since 2024-04-09
13
+ */
14
+public interface IContractDetailMroService extends IService<ContractDetailMro> {
15
+
16
+}

+ 25 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractDetailService.java

@@ -0,0 +1,25 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.jwipc.contract.entity.ContractDetail;
6
+import com.jwipc.contract.model.po.ContractDetailPO;
7
+import com.jwipc.contract.model.query.ChoseSupplierListQuery;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * <p>
13
+ *  服务类
14
+ * </p>
15
+ *
16
+ * @author zx
17
+ * @since 2024-03-13
18
+ */
19
+public interface IContractDetailService extends IService<ContractDetail> {
20
+    List<ContractDetail> selectReceiptContractDetailListPage(Page<ContractDetail> page, ChoseSupplierListQuery query);
21
+
22
+    List<ContractDetailPO> findListPage(Page<ContractDetailPO> page, ChoseSupplierListQuery query);
23
+
24
+    List<ContractDetail> selectReceiptContractDetailList(ChoseSupplierListQuery query);
25
+}

+ 30 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayDetailService.java

@@ -0,0 +1,30 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.jwipc.contract.entity.ContractPayDetail;
6
+import com.jwipc.contract.entity.ContractPayStage;
7
+import com.jwipc.contract.model.po.AmountSumVO;
8
+import com.jwipc.contract.model.po.ContractPayDetailsVo;
9
+import com.jwipc.contract.model.query.ContractPayDetailsQuery;
10
+
11
+import java.math.BigDecimal;
12
+import java.util.List;
13
+
14
+/**
15
+ * <p>
16
+ *  服务类
17
+ * </p>
18
+ *
19
+ * @author zx
20
+ * @since 2024-03-12
21
+ */
22
+public interface IContractPayDetailService extends IService<ContractPayDetail> {
23
+
24
+    List<ContractPayDetailsVo> detailLists(Page<ContractPayDetailsVo> page, ContractPayDetailsQuery payDetailsQuery);
25
+
26
+    List<AmountSumVO> amountSum(String payStageIds,String contractIds, String payId);
27
+
28
+    String getAmountPaid(Long contractId, Long payStageId);
29
+
30
+}

+ 16 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayOrderService.java

@@ -0,0 +1,16 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.jwipc.contract.entity.ContractPayOrder;
5
+
6
+/**
7
+ * <p>
8
+ * 付款申请 - 订单明细 服务类
9
+ * </p>
10
+ *
11
+ * @author zx
12
+ * @since 2024-04-01
13
+ */
14
+public interface IContractPayOrderService extends IService<ContractPayOrder> {
15
+
16
+}

+ 22 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayService.java

@@ -0,0 +1,22 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.jwipc.contract.entity.ContractPay;
6
+import com.jwipc.contract.model.query.ContractMangeQuery;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * <p>
12
+ *  服务类
13
+ * </p>
14
+ *
15
+ * @author zx
16
+ * @since 2024-03-09
17
+ */
18
+public interface IContractPayService extends IService<ContractPay> {
19
+
20
+    List<ContractPay> findListPage(Page<ContractPay> page, ContractMangeQuery query);
21
+
22
+}

+ 25 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayStageService.java

@@ -0,0 +1,25 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.ContractPayStage;
5
+import com.baomidou.mybatisplus.extension.service.IService;
6
+import com.jwipc.contract.model.po.ContractPayStagePO;
7
+import com.jwipc.contract.model.query.ContractPayStageQuery;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * <p>
13
+ *  服务类
14
+ * </p>
15
+ *
16
+ * @author zx
17
+ * @since 2024-03-08
18
+ */
19
+public interface IContractPayStageService extends IService<ContractPayStage> {
20
+
21
+    List<ContractPayStage> getContractPayStageList(Long contractId);
22
+
23
+    List<ContractPayStagePO> findByPage(Page<ContractPayStage> dbPage, ContractPayStageQuery query);
24
+    List<ContractPayStagePO> findContractPayStageList();
25
+}

+ 19 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPayTypeService.java

@@ -0,0 +1,19 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.jwipc.contract.entity.ContractPayType;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * <p>
10
+ *  服务类
11
+ * </p>
12
+ *
13
+ * @author zx
14
+ * @since 2024-04-01
15
+ */
16
+public interface IContractPayTypeService extends IService<ContractPayType> {
17
+
18
+    List<ContractPayType> detailTypeListByContractId(Long contractId);
19
+}

+ 122 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPaymentApplyDetailService.java

@@ -0,0 +1,122 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.jwipc.contract.entity.ContractPaymentApplyDetail;
5
+import com.jwipc.contract.model.po.AttachmentManualCheckPO;
6
+import com.jwipc.contract.model.po.CreateContractPayDetailPO;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * <p>
12
+ * 对账付款申请明细表 服务类
13
+ * </p>
14
+ *
15
+ * @author WT
16
+ * @since 2024-03-08
17
+ */
18
+public interface IContractPaymentApplyDetailService extends IService<ContractPaymentApplyDetail> {
19
+
20
+    List<CreateContractPayDetailPO> queryCodApplyInvoiceById(Long id);
21
+    void saveManualCheckList(List<AttachmentManualCheckPO> list);
22
+
23
+    List<CreateContractPayDetailPO> findByAccountCodeAndItem1(List<CreateContractPayDetailPO> list, Long id, String contractNo);
24
+
25
+    /**
26
+     * 查询合同付款阶段,已请款信息
27
+     * @param id
28
+     * @return
29
+     */
30
+    List<CreateContractPayDetailPO> findByAccountByStageId(Long id);
31
+
32
+    /**
33
+     * 查询数据
34
+     * @param applyId
35
+     * @return
36
+     */
37
+    List<CreateContractPayDetailPO> findItemDateById(Long applyId);
38
+
39
+    /**
40
+     * 根据开票申请查找货到付款数据
41
+     * @param list 开票申请信息
42
+     * @param applyId 货到付款id
43
+     * @return
44
+     */
45
+//    List<CreatePcaDetailPO> findByApplyCodeAndItem(List<CreatePcaDetailPO> list, Long applyId);
46
+//    List<CreatePcaDetailPO> findByAccountCodeAndItem(List<AccountStatementPO> list);
47
+//    List<CreatePcaDetailPO> findByCostAccountCodeAndItem(List<CostAccountStatementPO> list);
48
+//    List<CreatePcaDetailPO> findByCompanyAccountCodeAndItem(List<CompanyAccountStatementPO> list);
49
+//    List<CreatePcaDetailPO> findByAccountCodeAndItem1(List<CreatePcaDetailPO> list, Long id);
50
+
51
+    List<CreateContractPayDetailPO> queryInvoiceByContractDetailId(Long itemId);
52
+
53
+//
54
+//    /**
55
+//     * 查询数据
56
+//     * @param poCodeList
57
+//     * @return
58
+//     */
59
+//    List<CreatePcaDetailPO> findPaymentDetailByPoCodeList(List<String> poCodeList);
60
+//
61
+//    /**
62
+//     * 查询数据
63
+//     * @param poCode
64
+//     * @return
65
+//     */
66
+//    List<PaymentRecordPO> findDetailByPoCode(String poCode);
67
+//
68
+//    /**
69
+//     * 查找订单预付信息
70
+//     * @param query
71
+//     * @return
72
+//     */
73
+//    List<CreatePaaDetailPO> readAdvancePaymentPoData(PaymentApplyItemQuery query);
74
+//    /**
75
+//     * 获取采购订单在SRM预付款申请情况
76
+//     *
77
+//     * @param params 查询参数
78
+//     * @param existedItemIdList 编辑仍然存在的申请明细ID集合(需要排除这些)
79
+//     * @param applyId 预付款申请单ID(用于判断当前查询是是否在编辑阶段)
80
+//     */
81
+//    void findPoAdvanceApplySituation(List<CreatePaaDetailPO> params, List<Long> existedItemIdList, Long applyId);
82
+//
83
+//    /**
84
+//     *查询已经到票的金额
85
+//     * @param poKeyList
86
+//     * @return
87
+//     */
88
+//    List<PaymentAdvanceApplyDetailPO> findCodApplyByPoKey(@Param("poKeyList") List<String> poKeyList);
89
+//
90
+//    /**
91
+//     * 查下货到中已经预付的数据
92
+//     * @param applyData
93
+//     * @return
94
+//     */
95
+//    List<CreatePcaDetailPO> findByAlreadyData(List<CreatePcaDetailPO> applyData);
96
+
97
+    /**
98
+     * 更新明细行号问题
99
+     *
100
+     * @param applyId 申请ID
101
+     */
102
+    void updateDetailItemNo(Long applyId);
103
+//
104
+//    /**
105
+//     * 查找明细数据
106
+//     * @param appIdList 主表id
107
+//     * @return
108
+//     */
109
+//    List<PaymentCodApplyDetail> findByPaymentDetail(List<Long> appIdList);
110
+
111
+    /**
112
+     * 根据对账付款申请ID删除货到付款明细
113
+     *
114
+     * @param applyIdList 对账付款申请ID集合
115
+     */
116
+    void delDetailByApplyId(List<Long> applyIdList);
117
+
118
+    List<String> getCostCenterCodeByContractNo(String contractNo);
119
+
120
+//
121
+//    List<CreatePcaDetailPO> findAdvanceApplyDataByDataKey(List<String> dataKeys);
122
+}

+ 50 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPaymentApplyService.java

@@ -0,0 +1,50 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.jwipc.contract.entity.ContractPaymentApply;
6
+import com.jwipc.contract.entity.ContractPaymentApplyDetail;
7
+import com.jwipc.contract.model.po.AttachmentManualCheckPO;
8
+import com.jwipc.contract.model.po.ContractPaymentApplyPO;
9
+import com.jwipc.contract.model.query.ContractPaymentApplyHeadQuery;
10
+
11
+import java.math.BigDecimal;
12
+import java.util.List;
13
+
14
+/**
15
+ * <p>
16
+ * 资产合同付款申请主表 服务类
17
+ * </p>
18
+ *
19
+ * @author WT
20
+ * @since 2024-03-08
21
+ */
22
+public interface IContractPaymentApplyService extends IService<ContractPaymentApply> {
23
+
24
+    List<ContractPaymentApplyPO> selectListByPage(Page<ContractPaymentApply> dbPage, ContractPaymentApplyHeadQuery query);
25
+
26
+    List<ContractPaymentApply> findDataStatusByIdList(List<Long> appIdList);
27
+    List<ContractPaymentApply> findDataStatusByContractList(String contractNo,String paymentType);
28
+    List<AttachmentManualCheckPO> getByBusinessIdAndTypeList(Long id);
29
+
30
+//    List<PaymentCodApply> findAppDetailByAccountStatementNo(String accountStatementNo);
31
+//
32
+//    List<PaymentCodApply> findDataBySupplierAndAmount(String supplierCode, BigDecimal applyPaymentAmount, Integer monthNum);
33
+
34
+    /**
35
+     * 根据供应商、合同号、金额查询
36
+     *
37
+     * @param supplierCode
38
+     * @param contractNo
39
+     * @param budOutMoney
40
+     * @return
41
+     */
42
+    List<ContractPaymentApplyDetail> findDataBySupplierAndAccountAndAmount(String supplierCode, String contractNo, BigDecimal budOutMoney, Long id);
43
+
44
+    /**
45
+     * 根据合同编号查询在途合同请款信息
46
+     * @param contractCode 合同编号
47
+     * @return 在途合同请款信息
48
+     */
49
+    List<ContractPaymentApply> findUnderPaymentByContractCode(String contractCode);
50
+}

+ 47 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractPaymentInvoicedReceiptService.java

@@ -0,0 +1,47 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.jwipc.contract.entity.ContractPaymentApply;
6
+import com.jwipc.contract.entity.ContractPaymentInvoicedReceipt;
7
+import com.jwipc.contract.model.po.ContractPaymentInvoicedReceiptPO;
8
+import com.jwipc.contract.model.query.ContractPaymentInvoicedDetailQuery;
9
+
10
+import java.util.List;
11
+
12
+/**
13
+ * <p>
14
+ * 对账模块-关联发票明细 服务类
15
+ * </p>
16
+ *
17
+ * @author shenyang.ou
18
+ * @since 2024-03-05
19
+ */
20
+public interface IContractPaymentInvoicedReceiptService extends IService<ContractPaymentInvoicedReceipt> {
21
+
22
+    /**
23
+     * 根据开票申请单ID获取关联发票数据
24
+     *
25
+     * @param iaId 开票申请单ID
26
+     * @return 关联发票数据
27
+     */
28
+    List<ContractPaymentInvoicedReceiptPO> getInvoiceReceiptListByIaId(Long iaId);
29
+
30
+    /**
31
+     * 根据开票申请id和发票号码判断系统中是否已经存在
32
+     * @param iaId 开票申请id
33
+     * @param invoiceNumber 发票号码
34
+     * @return 结果
35
+     */
36
+    ContractPaymentInvoicedReceipt getExitDataByIaIdAndInvoiceNumber(Long iaId, String invoiceNumber);
37
+
38
+    /**
39
+     * 根据开票申请id和数电发票号码判断系统中是否已经存在
40
+     * @param iaId 开票申请id
41
+     * @param electronInvoiceNumber 数电发票号码
42
+     * @return 结果
43
+     */
44
+    ContractPaymentInvoicedReceipt getExitDataByIaIdAndElectronInvoiceNumber(Long iaId, String electronInvoiceNumber);
45
+
46
+    List<ContractPaymentInvoicedReceiptPO> findPageByQuery(Page<ContractPaymentApply> dbPage, ContractPaymentInvoicedDetailQuery query);
47
+}

+ 23 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractReturnOrderDetailService.java

@@ -0,0 +1,23 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.jwipc.contract.entity.ContractReturnOrderDetail;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.jwipc.contract.model.po.ContractReturnOrderDetailPO;
6
+import com.jwipc.contract.model.query.ContractReturnOrderDetailsListQuery;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * <p>
12
+ * 合同退货明细表 服务类
13
+ * </p>
14
+ *
15
+ * @author qzc
16
+ * @since 2025-12-16
17
+ */
18
+public interface IContractReturnOrderDetailService extends IService<ContractReturnOrderDetail> {
19
+
20
+    List<ContractReturnOrderDetailPO> findList(ContractReturnOrderDetailsListQuery query);
21
+
22
+    List<ContractReturnOrderDetail> selectSumReturnQuantity(List<String> dataKeys);
23
+}

+ 21 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractReturnOrderService.java

@@ -0,0 +1,21 @@
1
+package com.jwipc.contract.service;
2
+
3
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4
+import com.jwipc.contract.entity.ContractReturnOrder;
5
+import com.baomidou.mybatisplus.extension.service.IService;
6
+import com.jwipc.contract.model.query.ContractReturnOrderQuery;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * <p>
12
+ * 合同退货单表 服务类
13
+ * </p>
14
+ *
15
+ * @author qzc
16
+ * @since 2025-12-16
17
+ */
18
+public interface IContractReturnOrderService extends IService<ContractReturnOrder> {
19
+
20
+    List<ContractReturnOrder> findList(Page<ContractReturnOrder> page, ContractReturnOrderQuery query);
21
+}

+ 0 - 0
contract/contract-infra/src/main/java/com/jwipc/contract/service/IContractService.java


Some files were not shown because too many files changed in this diff