11816 пре 3 месеци
родитељ
комит
f337adc0a3

+ 647
- 14
src/main/java/com/example/backend/pAndSExe/model/SaleSettle3.java Прегледај датотеку

@@ -6,18 +6,25 @@ import com.baomidou.mybatisplus.annotation.TableId;
6 6
 import com.baomidou.mybatisplus.annotation.TableName;
7 7
 import lombok.Data;
8 8
 
9
+import java.math.BigDecimal;
10
+import java.util.Date;
11
+
9 12
 /**
10
- * 代理结算主表(SGGMIIP.saleSettle3)
11
- * 区分原有saleSettle/saleSettle2,命名为saleSettle3
13
+ * 销售结算开票主表(SGGMIIP.saleSettle)
12 14
  */
13 15
 @Data
14
-@TableName("SGGMIIP.saleSettle3")
16
+@TableName("SGGMIIP.saleSettle")
15 17
 public class SaleSettle3 {
16 18
     /** 雪花ID(19位数字,适配达梦BIGINT) */
17 19
     @TableId(type = IdType.ASSIGN_ID)
18 20
     private Long id;
19 21
 
20
-    /** 发票种类 */
22
+    // -------------------- 核心业务字段 --------------------
23
+    /** 销售合同号 */
24
+    @TableField("sono")
25
+    private String sono;
26
+
27
+    /** 标财-发票种类 */
21 28
     @TableField("invoiceSort")
22 29
     private String invoiceSort;
23 30
 
@@ -25,34 +32,660 @@ public class SaleSettle3 {
25 32
     @TableField("ctName")
26 33
     private String ctName;
27 34
 
28
-    /** 客户开票银行名称 */
35
+    /** 客户开票开户银行 */
29 36
     @TableField("ctInvoiceBankName")
30 37
     private String ctInvoiceBankName;
31 38
 
32
-    /** 客户开票银行账 */
39
+    /** 客户开票银行账 */
33 40
     @TableField("ctInvoiceBankAcct")
34 41
     private String ctInvoiceBankAcct;
35 42
 
36
-    /** 客户合同名称 */
43
+    /** 客户联系人名称 */
37 44
     @TableField("ctContNm")
38 45
     private String ctContNm;
39 46
 
47
+    /** 产品中文名称/物料描述 */
48
+    @TableField("sdesc")
49
+    private String sdesc;
50
+
51
+    /** 单据号码 */
52
+    @TableField("fno")
53
+    private String fno;
54
+
55
+    /** 单据日期 */
56
+    @TableField("fdate")
57
+    private Date fdate;
58
+
59
+    /** 我方代码 */
60
+    @TableField("fours")
61
+    private String fours;
62
+
63
+    /** 我方名称 */
64
+    @TableField("foursname")
65
+    private String foursname;
66
+
67
+    /** 客户代码 */
68
+    @TableField("ctNo")
69
+    private String ctNo;
70
+
71
+    /** 总金额 */
72
+    @TableField("totalAmt")
73
+    private BigDecimal totalAmt;
74
+
75
+    /** 总数量 */
76
+    @TableField("totalQty")
77
+    private BigDecimal totalQty;
78
+
79
+    /** 币别 */
80
+    @TableField("curcy")
81
+    private String curcy;
82
+
83
+    /** 汇率 */
84
+    @TableField("rate")
85
+    private BigDecimal rate;
86
+
87
+    /** 价格条款 */
88
+    @TableField("terms")
89
+    private String terms;
90
+
91
+    /** 签约地点 */
92
+    @TableField("signLoc")
93
+    private String signLoc;
94
+
95
+    /** 交货地点 */
96
+    @TableField("delivLoc")
97
+    private String delivLoc;
98
+
99
+    /** 装运港 */
100
+    @TableField("lport")
101
+    private String lport;
102
+
103
+    /** 贸易国别 */
104
+    @TableField("trdCtry")
105
+    private String trdCtry;
106
+
107
+    /** 付款方式 */
108
+    @TableField("payment")
109
+    private String payment;
110
+
111
+    /** 运输方式 */
112
+    @TableField("tranway")
113
+    private String tranway;
114
+
115
+    /** 贸易方式 */
116
+    @TableField("tradeway")
117
+    private String tradeway;
118
+
119
+    /** 销售订单号 */
120
+    @TableField("soOrderNo")
121
+    private String soOrderNo;
122
+
123
+    /** 数量溢装 */
124
+    @TableField("qtyOver")
125
+    private BigDecimal qtyOver;
126
+
127
+    /** 数量短装 */
128
+    @TableField("qtyShort")
129
+    private BigDecimal qtyShort;
130
+
131
+    /** 金额溢装 */
132
+    @TableField("amtOver")
133
+    private BigDecimal amtOver;
134
+
135
+    /** 金额短装 */
136
+    @TableField("amtShort")
137
+    private BigDecimal amtShort;
138
+
139
+    /** 中文船名 */
140
+    @TableField("chnShipName")
141
+    private String chnShipName;
142
+
143
+    /** 英文船名 */
144
+    @TableField("engShipName")
145
+    private String engShipName;
146
+
147
+    /** 航次信息 */
148
+    @TableField("voyInfo")
149
+    private String voyInfo;
150
+
151
+    /** 结算日期 */
152
+    @TableField("settleDt")
153
+    private Date settleDt;
154
+
155
+    /** 放货金额 */
156
+    @TableField("releaseAmt")
157
+    private BigDecimal releaseAmt;
158
+
159
+    /** 垫资利息 */
160
+    @TableField("advanceInt")
161
+    private BigDecimal advanceInt;
162
+
163
+    /** 收款金额 */
164
+    @TableField("recvAmt")
165
+    private BigDecimal recvAmt;
166
+
167
+    /** 实际应收金额 */
168
+    @TableField("actReceivAmt")
169
+    private BigDecimal actReceivAmt;
170
+
171
+    /** 产品英文名称 */
172
+    @TableField("edesc")
173
+    private String edesc;
174
+
175
+    /** 已收款金额 */
176
+    @TableField("recvdAmt")
177
+    private BigDecimal recvdAmt;
178
+
179
+    /** 已开票金额 */
180
+    @TableField("invIssuedAmt")
181
+    private BigDecimal invIssuedAmt;
182
+
183
+    /** 未开票金额 */
184
+    @TableField("invUnissuedAmt")
185
+    private BigDecimal invUnissuedAmt;
186
+
187
+    /** 已开票数量 */
188
+    @TableField("invIssuedQty")
189
+    private BigDecimal invIssuedQty;
190
+
191
+    /** 未开票数量 */
192
+    @TableField("invUnissuedQty")
193
+    private BigDecimal invUnissuedQty;
194
+
195
+    /** 合同完成率 */
196
+    @TableField("contCompRate")
197
+    private BigDecimal contCompRate;
198
+
199
+    /** 备注 */
200
+    @TableField("remark")
201
+    private String remark;
202
+
203
+    /** 美元汇率 */
204
+    @TableField("rateUsd")
205
+    private BigDecimal rateUsd;
206
+
207
+    /** 客户订单号 */
208
+    @TableField("ctOrderNo")
209
+    private String ctOrderNo;
210
+
211
+    /** 采购合同号 */
212
+    @TableField("pono")
213
+    private String pono;
214
+
215
+    /** 目的港 */
216
+    @TableField("dPort")
217
+    private String dPort;
218
+
219
+    /** 收款方式 */
220
+    @TableField("rcptMtd")
221
+    private String rcptMtd;
222
+
223
+    /** 签约日期 */
224
+    @TableField("signDate")
225
+    private Date signDate;
226
+
227
+    /** 产地 */
228
+    @TableField("origin")
229
+    private String origin;
230
+
231
+    /** 我方开户银行 */
232
+    @TableField("ourBankNm")
233
+    private String ourBankNm;
234
+
235
+    /** 我方银行账号 */
236
+    @TableField("ourBankAcct")
237
+    private String ourBankAcct;
238
+
239
+    /** 业务类型 */
240
+    @TableField("bizType")
241
+    private String bizType;
242
+
243
+    /** 业务账套 */
244
+    @TableField("acctSet")
245
+    private String acctSet;
246
+
247
+    /** 客户银行名称 */
248
+    @TableField("ctBankName")
249
+    private String ctBankName;
250
+
251
+    /** 美元总金额 */
252
+    @TableField("totalUsdAmt")
253
+    private BigDecimal totalUsdAmt;
254
+
255
+    /** 价格说明 */
256
+    @TableField("priceDesc")
257
+    private String priceDesc;
258
+
259
+    /** 人民币总金额 */
260
+    @TableField("totalCnyAmt")
261
+    private BigDecimal totalCnyAmt;
262
+
263
+    /** IMP同步PLMS接口状态 */
264
+    @TableField("impToPLMSStatus")
265
+    private String impToPLMSStatus;
266
+
267
+    /** IMP同步PLMS接口数据状态 */
268
+    @TableField("impToPLMSFlag")
269
+    private String impToPLMSFlag;
270
+
271
+    /** IMP同步PLMS接口来源系统代码 */
272
+    @TableField("SYSID")
273
+    private String sysId;
274
+
275
+    /** IMP同步PLMS接口账套代码 */
276
+    @TableField("bookId")
277
+    private String bookId;
278
+
279
+    /** IMP同步PLMS接口PLMS组织ID */
280
+    @TableField("orgId")
281
+    private String orgId;
282
+
283
+    /** 发票张数 */
284
+    @TableField("invoiceCount")
285
+    private Integer invoiceCount;
286
+
287
+    /** 贸易性质 */
288
+    @TableField("saleNature")
289
+    private String saleNature;
290
+
291
+    /** 销售类型 */
292
+    @TableField("saleType")
293
+    private String saleType;
294
+
295
+    /** 发票类型 */
296
+    @TableField("invoiceType")
297
+    private String invoiceType;
298
+
299
+    /** 合同执行人代码 */
300
+    @TableField("contrExecCd")
301
+    private String contrExecCd;
302
+
303
+    /** 合同执行人名称 */
304
+    @TableField("contrExecNm")
305
+    private String contrExecNm;
306
+
307
+    /** 客户银行账户 */
308
+    @TableField("ctBankAcct")
309
+    private String ctBankAcct;
310
+
311
+    /** 附件类型 */
312
+    @TableField("fileTypeCode")
313
+    private String fileTypeCode;
314
+
315
+    /** 结算类型 */
316
+    @TableField("settleBizType")
317
+    private String settleBizType;
318
+
319
+    /** 发票类别 */
320
+    @TableField("invoiceStyle")
321
+    private String invoiceStyle;
322
+
323
+    /** 业务类型(冗余) */
324
+    @TableField("serviceType")
325
+    private String serviceType;
326
+
327
+    /** 是否清底 */
328
+    @TableField("ifClearBottom")
329
+    private String ifClearBottom;
330
+
331
+    /** 装运港编号(无备注) */
332
+    @TableField("lpno")
333
+    private String lpno;
334
+
335
+    /** 目的港编号(无备注) */
336
+    @TableField("dpno")
337
+    private String dpno;
338
+
339
+    /** 合同产品类型 */
340
+    @TableField("bizProductType")
341
+    private String bizProductType;
342
+
343
+    /** 执行美元汇率 */
344
+    @TableField("rateUs")
345
+    private BigDecimal rateUs;
346
+
347
+    /** 提交审批日期 */
348
+    @TableField("submissionDate")
349
+    private Date submissionDate;
350
+
351
+    /** 审批生效日期 */
352
+    @TableField("appEffectiveDate")
353
+    private Date appEffectiveDate;
354
+
355
+    /** 托管 */
356
+    @TableField("RPTG")
357
+    private String rptg;
358
+
359
+    /** 费用大类 */
360
+    @TableField("feeCd")
361
+    private String feeCd;
362
+
363
+    /** 费用类型 */
364
+    @TableField("feeNm")
365
+    private String feeNm;
366
+
367
+    /** 税票类型 */
368
+    @TableField("taxType")
369
+    private String taxType;
370
+
371
+    /** 船期 */
372
+    @TableField("shipDt")
373
+    private Date shipDt;
374
+
375
+    /** 装港日期 */
376
+    @TableField("loadDt")
377
+    private Date loadDt;
378
+
379
+    /** 到港日期 */
380
+    @TableField("arrDt")
381
+    private Date arrDt;
382
+
383
+    /** 交货日期 */
384
+    @TableField("delivDt")
385
+    private Date delivDt;
386
+
387
+    /** 船公司名称 */
388
+    @TableField("shipCoNm")
389
+    private String shipCoNm;
390
+
391
+    /** 船公司代码 */
392
+    @TableField("shipCoCode")
393
+    private String shipCoCode;
394
+
395
+    /** 货代公司名称 */
396
+    @TableField("fwdNm")
397
+    private String fwdNm;
398
+
399
+    /** 货代公司代码 */
400
+    @TableField("fwdCode")
401
+    private String fwdCode;
402
+
403
+    /** 最终客户名称 */
404
+    @TableField("finalCustNm")
405
+    private String finalCustNm;
406
+
407
+    /** 最终客户代码 */
408
+    @TableField("finalCustCd")
409
+    private String finalCustCd;
410
+
411
+    /** 结算指标 */
412
+    @TableField("settlndex")
413
+    private String settlndex;
414
+
415
+    /** 收款方式(冗余) */
416
+    @TableField("payMthd")
417
+    private String payMthd;
418
+
419
+    /** 出口发票号 */
420
+    @TableField("invno")
421
+    private String invno;
422
+
423
+    /** 钢材产品判断字段 */
424
+    @TableField("ifgc")
425
+    private String ifgc;
426
+
427
+    /** 关闭状态 0-未关闭,1-已关闭 */
428
+    @TableField("fclosed")
429
+    private String fclosed;
430
+
431
+    /** 提单号 */
432
+    @TableField("blNo")
433
+    private String blNo;
434
+
435
+    /** 提单日期 */
436
+    @TableField("blDt")
437
+    private Date blDt;
438
+
439
+    /** PLMS操作标记2 */
440
+    @TableField("impToPLMSFlag2")
441
+    private String impToPLMSFlag2;
442
+
443
+    /** 接口状态2 */
444
+    @TableField("impToPLMSStatus2")
445
+    private String impToPLMSStatus2;
446
+
447
+    /** 发票代码 */
448
+    @TableField("invoiceBoxNo")
449
+    private String invoiceBoxNo;
450
+
451
+    /** 发票类型(冗余) */
452
+    @TableField("invType")
453
+    private String invType;
454
+
455
+    /** 是否过磅数量结算 */
456
+    @TableField("ifWeighedSalesQty")
457
+    private String ifWeighedSalesQty;
458
+
459
+    /** 关联采购合同ID */
460
+    @TableField("purchaseContractid")
461
+    private Long purchaseContractid;
462
+
463
+    /** 代理结算费用 */
464
+    @TableField("agentSettleAmt")
465
+    private BigDecimal agentSettleAmt;
466
+
467
+    /** 付款方式(冗余) */
468
+    @TableField("payMethod")
469
+    private String payMethod;
470
+
471
+    /** 航次信息(冗余) */
472
+    @TableField("voyageInfo")
473
+    private String voyageInfo;
474
+
475
+    /** 采购订单号 */
476
+    @TableField("poOrderNo")
477
+    private String poOrderNo;
478
+
479
+    /** 供应商代码 */
480
+    @TableField("supCode")
481
+    private String supCode;
482
+
483
+    /** 供应商名称 */
484
+    @TableField("supName")
485
+    private String supName;
486
+
487
+    /** 供应商开户银行 */
488
+    @TableField("supBank")
489
+    private String supBank;
490
+
491
+    /** 供应商银行账户 */
492
+    @TableField("supAcc")
493
+    private String supAcc;
494
+
495
+    /** plms业务类型 */
496
+    @TableField("bizType2")
497
+    private String bizType2;
498
+
499
+    /** IMP同步标财接口状态 */
500
+    @TableField("impStandardFinancialStatus")
501
+    private String impStandardFinancialStatus;
502
+
503
+    /** IMP同步标财接口数据状态 */
504
+    @TableField("impStandardFinancialFlag")
505
+    private String impStandardFinancialFlag;
506
+
507
+    /** PLMS接口状态3 */
508
+    @TableField("impToPLMSStatus3")
509
+    private String impToPLMSStatus3;
510
+
511
+    /** PLMS操作标记3 */
512
+    @TableField("impToPLMSFlag3")
513
+    private String impToPLMSFlag3;
514
+
515
+    /** PLMS接口状态4 */
516
+    @TableField("impToPLMSStatus4")
517
+    private String impToPLMSStatus4;
518
+
519
+    /** PLMS操作标记4 */
520
+    @TableField("impToPLMSFlag4")
521
+    private String impToPLMSFlag4;
522
+
523
+    /** 标财-协调标记 */
524
+    @TableField("collaborateFlag")
525
+    private String collaborateFlag;
526
+
527
+    /** 标财-邮寄标记 */
528
+    @TableField("shipFlag")
529
+    private String shipFlag;
530
+
531
+    /** 开票财务人员代码 */
532
+    @TableField("issueFinanceCd")
533
+    private String issueFinanceCd;
534
+
535
+    /** 开票财务人员名称 */
536
+    @TableField("issueFinanceNm")
537
+    private String issueFinanceNm;
538
+
539
+    /** 发票运费金额 */
540
+    @TableField("freightAmt")
541
+    private BigDecimal freightAmt;
542
+
543
+    /** 零税率标识 */
544
+    @TableField("zeroTaxrateFlag")
545
+    private String zeroTaxrateFlag;
546
+
547
+    /** 增值税率 */
548
+    @TableField("inTaxRate")
549
+    private BigDecimal inTaxRate;
550
+
551
+    /** 支付方式 */
552
+    @TableField("payStyle")
553
+    private String payStyle;
554
+
555
+    /** 保费金额 */
556
+    @TableField("insuAmt")
557
+    private BigDecimal insuAmt;
558
+
559
+    /** 佣金比例 */
560
+    @TableField("comrate")
561
+    private BigDecimal comrate;
562
+
563
+    /** 佣金金额 */
564
+    @TableField("ComAmt")
565
+    private BigDecimal comAmt;
566
+
567
+    /** IMP同步标财接口状态标记 */
568
+    @TableField("impStandardFinancialSuc")
569
+    private String impStandardFinancialSuc;
570
+
571
+    /** IMP-标财反写发票入账状态  E-入账;F-红冲 */
572
+    @TableField("impInvoiceStatus")
573
+    private String impInvoiceStatus;
574
+
575
+    /** IMP-标财反写发票号 */
576
+    @TableField("bcInvoiceNo")
577
+    private String bcInvoiceNo;
578
+
579
+    /** 其他合同号 */
580
+    @TableField("otasno")
581
+    private String otasno;
582
+
583
+    /** IMP-标财反馈状态 */
584
+    @TableField("impBcStatus")
585
+    private String impBcStatus;
586
+
587
+    /** IMP-标财反馈备注 */
588
+    @TableField("impBcStatusMemo")
589
+    private String impBcStatusMemo;
590
+
591
+    /** 是否开代理费发票 */
592
+    @TableField("ifAgencyInvoice")
593
+    private String ifAgencyInvoice;
594
+
595
+    /** 是否期初数据补录 */
596
+    @TableField("isinitDate")
597
+    private String isinitDate;
598
+
40 599
     // -------------------- 通用字段 --------------------
41 600
     /** 固定值1(参考mdkcctrl的qichu字段) */
42 601
     @TableField("qichu")
43 602
     private String qichu = "1"; // 默认赋值为"1"
44 603
 
45
-    /** 关联中间表INF_DAILIJIESUAN的ID */
604
+    /** 关联中间表INF_XIAOSHOUJIESUANKAIPIAO的ID */
46 605
     @TableField("soloid")
47 606
     private String soloId;
48 607
 
49
-    @TableField("createby")
608
+    /** 创建账号(保留原有大写下划线注解) */
609
+    @TableField("create_By")
50 610
     private String createBy;
51 611
 
52
-    /** 销售合同号 */
53
-    @TableField("sono")
54
-    private String sono;
55
-
612
+    /** 业务id(数据库为BIGINT,修正原有String类型) */
56 613
     @TableField("fmodalid")
57
-    private String fmodalId;
614
+    private Long fmodalid;
615
+
616
+    /** 流程实例id */
617
+    @TableField("process_instance_id")
618
+    private String processInstanceId;
619
+
620
+    /** 数据来源id */
621
+    @TableField("sourceid")
622
+    private Long sourceid;
623
+
624
+    /** 数据来源表 */
625
+    @TableField("sourcetable")
626
+    private String sourcetable;
627
+
628
+    /** 创建时间 */
629
+    @TableField("create_time")
630
+    private Date createTime;
631
+
632
+    /** 创建人 */
633
+    @TableField("create_by_name")
634
+    private String createByName;
635
+
636
+    /** 更新账号 */
637
+    @TableField("update_by")
638
+    private String updateBy;
639
+
640
+    /** 更新时间 */
641
+    @TableField("update_time")
642
+    private Date updateTime;
643
+
644
+    /** 更新人 */
645
+    @TableField("update_by_name")
646
+    private String updateByName;
647
+
648
+    /** 单据状态 */
649
+    @TableField("placed")
650
+    private String placed;
651
+
652
+    /** 图片 */
653
+    @TableField("img_ids")
654
+    private String imgIds;
655
+
656
+    /** 调取次数 */
657
+    @TableField("inc")
658
+    private Integer inc;
659
+
660
+    /** 关联id */
661
+    @TableField("rid")
662
+    private Long rid;
663
+
664
+    /** 归档状态 0-未归档,1-已归档(默认值'0') */
665
+    @TableField("fsaved")
666
+    private String fsaved = "0";
667
+
668
+    /** 模版名称 */
669
+    @TableField("sys_template_name")
670
+    private String sysTemplateName;
671
+
672
+    /** 是否删除(默认值0) */
673
+    @TableField("del_flag")
674
+    private Integer delFlag = 0;
675
+
676
+    /** 部门名称(无备注) */
677
+    @TableField("dept_name")
678
+    private String deptName;
679
+
680
+    /** 部门ID(无备注) */
681
+    @TableField("dept_id")
682
+    private String deptId;
683
+
684
+    /** 数据库原始SOLOID字段(无备注,与soloid重名) */
685
+    @TableField("SOLOID")
686
+    private String soloId2;
687
+
688
+    /** 数据库原始QICHU字段(无备注,与qichu重名) */
689
+    @TableField("QICHU")
690
+    private String qichu2;
58 691
 }

+ 574
- 8
src/main/java/com/example/backend/pAndSExe/model/SettleProdDtl.java Прегледај датотеку

@@ -6,26 +6,592 @@ import com.baomidou.mybatisplus.annotation.TableId;
6 6
 import com.baomidou.mybatisplus.annotation.TableName;
7 7
 import lombok.Data;
8 8
 import java.math.BigDecimal;
9
+import java.util.Date;
9 10
 
10 11
 /**
11
- * 费用结算登记从表(SGGMIIP.settleProdDtl)
12
+ * 结算产品子表(SGGMIIP.settleProdDtl)
12 13
  */
13 14
 @Data
14
-@TableName("SGGMIIP.settleProdDtl")
15
+@TableName("SGGMIIP.settleProdDtl") // 数据库表名
15 16
 public class SettleProdDtl {
16
-    /** 雪花ID(19位数字,适配达梦BIGINT) */
17
+    /** 主键ID(雪花ID,19位数字) */
17 18
     @TableId(type = IdType.ASSIGN_ID)
18 19
     private Long id;
19 20
 
20
-    /** 关联主表saleSettle2的ID */
21
-    @TableField("rid")
22
-    private Long rid;
21
+    // ========== 基础商品信息 ==========
22
+    /** 商品编号 */
23
+    @TableField("itemno")
24
+    private String itemno;
23 25
 
24
-    /** 描述 */
26
+    /** 中文品名 */
25 27
     @TableField("sdesc")
26 28
     private String sdesc;
27 29
 
28
-    /** 金额 */
30
+    /** 英文品名 */
31
+    @TableField("edesc")
32
+    private String edesc;
33
+
34
+    /** 规格 */
35
+    @TableField("spec")
36
+    private String spec;
37
+
38
+    /** 水分(精度18,6) */
39
+    @TableField("moisture")
40
+    private BigDecimal moisture;
41
+
42
+    /** 湿吨数量(精度18,6) */
43
+    @TableField("wetTonQty")
44
+    private BigDecimal wetTonQty;
45
+
46
+    /** 干吨数量(精度18,6) */
47
+    @TableField("dryTonQty")
48
+    private BigDecimal dryTonQty;
49
+
50
+    /** 数量(精度18,6) */
51
+    @TableField("qty")
52
+    private BigDecimal qty;
53
+
54
+    /** 单位 */
55
+    @TableField("ut")
56
+    private String ut;
57
+
58
+    /** 海关编码 */
59
+    @TableField("hsCode")
60
+    private String hsCode;
61
+
62
+    /** 海关中文名称 */
63
+    @TableField("hsNameCn")
64
+    private String hsNameCn;
65
+
66
+    /** 海关英文名称 */
67
+    @TableField("hsNameEn")
68
+    private String hsNameEn;
69
+
70
+    /** 关税 %(精度18,6) */
71
+    @TableField("dutyRate")
72
+    private BigDecimal dutyRate;
73
+
74
+    /** 进项税 %(精度18,6) */
75
+    @TableField("inTaxRate")
76
+    private BigDecimal inTaxRate;
77
+
78
+    /** 退税率 %(精度18,6) */
79
+    @TableField("reTaxRate")
80
+    private BigDecimal reTaxRate;
81
+
82
+    /** 销项税 %(精度18,6) */
83
+    @TableField("outTaxRate")
84
+    private BigDecimal outTaxRate;
85
+
86
+    /** 备注 */
87
+    @TableField("remark")
88
+    private String remark;
89
+
90
+    /** 行号(精度18,0) */
91
+    @TableField("line")
92
+    private BigDecimal line;
93
+
94
+    // ========== 基础流程/来源信息 ==========
95
+    /** 流程实例id */
96
+    @TableField("process_instance_id")
97
+    private String processInstanceId;
98
+
99
+    /** 业务id */
100
+    @TableField("fmodalid")
101
+    private Long fmodalid;
102
+
103
+    /** 数据来源id */
104
+    @TableField("sourceid")
105
+    private Long sourceid;
106
+
107
+    /** 数据来源表 */
108
+    @TableField("sourcetable")
109
+    private String sourcetable;
110
+
111
+    /** 关联id */
112
+    @TableField("rid")
113
+    private Long rid;
114
+
115
+    /** 单据号 */
116
+    @TableField("fno")
117
+    private String fno;
118
+
119
+    /** 销售合同批次号 */
120
+    @TableField("BATCHNO")
121
+    private String batchno;
122
+
123
+    /** 计价方式 */
124
+    @TableField("priceMtd")
125
+    private String priceMtd;
126
+
127
+    /** 销售合同号 */
128
+    @TableField("sono")
129
+    private String sono;
130
+
131
+    /** 销售币种 */
132
+    @TableField("curcySo")
133
+    private String curcySo;
134
+
135
+    /** 销售美元汇率 */
136
+    @TableField("rateUsdSo")
137
+    private String rateUsdSo;
138
+
139
+    /** 客户订单号 */
140
+    @TableField("ctOrderNo")
141
+    private String ctOrderNo;
142
+
143
+    /** 资源号 */
144
+    @TableField("resourceNo")
145
+    private String resourceNo;
146
+
147
+    /** 业务账套 */
148
+    @TableField("acctSet")
149
+    private String acctSet;
150
+
151
+    /** 采购币种 */
152
+    @TableField("curcypo")
153
+    private String curcypo;
154
+
155
+    /** 批次号 */
156
+    @TableField("fphno")
157
+    private String fphno;
158
+
159
+    /** 装运港 */
160
+    @TableField("lPort")
161
+    private String lPort;
162
+
163
+    /** 目的港 */
164
+    @TableField("dPort")
165
+    private String dPort;
166
+
167
+    /** 中文规格描述 */
168
+    @TableField("spec_cn")
169
+    private String specCn;
170
+
171
+    /** 牌号 */
172
+    @TableField("brand")
173
+    private String brand;
174
+
175
+    /** 我方代码 */
176
+    @TableField("fours")
177
+    private String fours;
178
+
179
+    /** 我方名称 */
180
+    @TableField("foursname")
181
+    private String foursname;
182
+
183
+    /** 客户代码 */
184
+    @TableField("ctNo")
185
+    private String ctNo;
186
+
187
+    /** 客户名称 */
188
+    @TableField("ctName")
189
+    private String ctName;
190
+
191
+    /** 供应商代码 */
192
+    @TableField("supcode")
193
+    private String supcode;
194
+
195
+    /** 供应商名称 */
196
+    @TableField("supname")
197
+    private String supname;
198
+
199
+    /** 开票品名 */
200
+    @TableField("kpSdesc")
201
+    private String kpSdesc;
202
+
203
+    /** 销售订单号 */
204
+    @TableField("soOrderNo")
205
+    private String soOrderNo;
206
+
207
+    /** 采购订单号 */
208
+    @TableField("poOrderNo")
209
+    private String poOrderNo;
210
+
211
+    /** 钢材资源号 */
212
+    @TableField("SMRNo")
213
+    private String smrNo;
214
+
215
+    /** 抛帐币别 */
216
+    @TableField("pzcurcy")
217
+    private String pzcurcy;
218
+
219
+    /** 开票合并标记 */
220
+    @TableField("ifHb")
221
+    private String ifHb;
222
+
223
+    /** 计价数量 */
224
+    @TableField("priceQty")
225
+    private String priceQty;
226
+
227
+    /** 采购计价方式 */
228
+    @TableField("priceMtdPo")
229
+    private String priceMtdPo;
230
+
231
+    // ========== 金额/单价/税率相关 ==========
232
+    /** 单价 */
233
+    @TableField("soprice")
234
+    private BigDecimal soprice;
235
+
236
+    /** 总价 */
29 237
     @TableField("soamt")
30 238
     private BigDecimal soamt;
239
+
240
+    /** 含铁量 */
241
+    @TableField("ironCont")
242
+    private BigDecimal ironCont;
243
+
244
+    /** 未税金额(销售) */
245
+    @TableField("ntSoAmt")
246
+    private BigDecimal ntSoAmt;
247
+
248
+    /** 美元销售含税金额 */
249
+    @TableField("usdsoamt")
250
+    private BigDecimal usdsoamt;
251
+
252
+    /** 人民币销售含税金额 */
253
+    @TableField("cnysoamt")
254
+    private BigDecimal cnysoamt;
255
+
256
+    /** 美元采购含税金额 */
257
+    @TableField("usdpoamt")
258
+    private BigDecimal usdpoamt;
259
+
260
+    /** 采购不含税金额 */
261
+    @TableField("ntPoAmt")
262
+    private BigDecimal ntPoAmt;
263
+
264
+    /** 采购未税单价(销售维度) */
265
+    @TableField("ntSoPrice")
266
+    private BigDecimal ntSoPrice;
267
+
268
+    /** 人民币含税金额(采购) */
269
+    @TableField("cnypoam")
270
+    private BigDecimal cnypoam;
271
+
272
+    /** 采购不含税单价 */
273
+    @TableField("ntPoPrice")
274
+    private BigDecimal ntPoPrice;
275
+
276
+    /** 采购单价 */
277
+    @TableField("poprice")
278
+    private BigDecimal poprice;
279
+
280
+    /** 采购金额 */
281
+    @TableField("poamt")
282
+    private BigDecimal poamt;
283
+
284
+    /** 销售汇率 */
285
+    @TableField("rateSo")
286
+    private BigDecimal rateSo;
287
+
288
+    /** 税额 */
289
+    @TableField("taxAmt")
290
+    private BigDecimal taxAmt;
291
+
292
+    /** 采购汇率 */
293
+    @TableField("ratepo")
294
+    private BigDecimal ratepo;
295
+
296
+    /** 采购美元汇率 */
297
+    @TableField("rateusd")
298
+    private BigDecimal rateusd;
299
+
300
+    /** 厚(精度18,6) */
301
+    @TableField("fnum1")
302
+    private BigDecimal fnum1;
303
+
304
+    /** 宽(精度18,6) */
305
+    @TableField("fnum2")
306
+    private BigDecimal fnum2;
307
+
308
+    /** 长(精度18,6) */
309
+    @TableField("fnum3")
310
+    private BigDecimal fnum3;
311
+
312
+    /** 件数(精度18,6) */
313
+    @TableField("qua")
314
+    private BigDecimal qua;
315
+
316
+    /** 单重(精度18,6) */
317
+    @TableField("snw")
318
+    private BigDecimal snw;
319
+
320
+    /** 米重(精度18,6) */
321
+    @TableField("fnum4")
322
+    private BigDecimal fnum4;
323
+
324
+    /** 直径(精度18,6) */
325
+    @TableField("fnum5")
326
+    private BigDecimal fnum5;
327
+
328
+    /** 捆单重(精度18,6) */
329
+    @TableField("fnum6")
330
+    private BigDecimal fnum6;
331
+
332
+    /** 捆支数(精度18,6) */
333
+    @TableField("fnum7")
334
+    private BigDecimal fnum7;
335
+
336
+    /** 数值预留字段1(精度18,6) */
337
+    @TableField("fnum8")
338
+    private BigDecimal fnum8;
339
+
340
+    /** 数值预留字段2(精度18,6) */
341
+    @TableField("fnum9")
342
+    private BigDecimal fnum9;
343
+
344
+    /** 煤焦标准水分(精度18,6) */
345
+    @TableField("coalMoisture")
346
+    private BigDecimal coalMoisture;
347
+
348
+    /** 毛重(精度18,6) */
349
+    @TableField("fgw")
350
+    private BigDecimal fgw;
351
+
352
+    /** 净重(精度18,6) */
353
+    @TableField("fnw")
354
+    private BigDecimal fnw;
355
+
356
+    /** 合同金额(精度18,6) */
357
+    @TableField("contamt")
358
+    private BigDecimal contamt;
359
+
360
+    /** 开票单价(精度18,6) */
361
+    @TableField("kpprice")
362
+    private BigDecimal kpprice;
363
+
364
+    /** 开票数量(精度18,6) */
365
+    @TableField("kpQty")
366
+    private BigDecimal kpQty;
367
+
368
+    /** 开票金额(精度18,6) */
369
+    @TableField("kpAmt")
370
+    private BigDecimal kpAmt;
371
+
372
+    /** 出口关税税率%(精度18,6) */
373
+    @TableField("eDutyRate")
374
+    private BigDecimal eDutyRate;
375
+
376
+    /** FOB金额(精度18,6) */
377
+    @TableField("fobAmt")
378
+    private BigDecimal fobAmt;
379
+
380
+    /** 保费金额(精度18,6) */
381
+    @TableField("insuAmt")
382
+    private BigDecimal insuAmt;
383
+
384
+    /** 运费额(精度18,6) */
385
+    @TableField("freightAmt")
386
+    private BigDecimal freightAmt;
387
+
388
+    /** 佣金金额(精度18,6) */
389
+    @TableField("ComAmt")
390
+    private BigDecimal comAmt;
391
+
392
+    /** 匹配成本金额(精度18,6) */
393
+    @TableField("costWriteAmt")
394
+    private BigDecimal costWriteAmt;
395
+
396
+    /** 匹配成本单价(精度18,6) */
397
+    @TableField("costWritePrice")
398
+    private BigDecimal costWritePrice;
399
+
400
+    /** 暂估成本金额(精度18,6) */
401
+    @TableField("provAmt")
402
+    private BigDecimal provAmt;
403
+
404
+    /** 暂估成本单价(精度18,6) */
405
+    @TableField("provPrice")
406
+    private BigDecimal provPrice;
407
+
408
+    /** 成本总金额(精度18,6) */
409
+    @TableField("costAmt")
410
+    private BigDecimal costAmt;
411
+
412
+    /** 抛帐汇率(精度18,6) */
413
+    @TableField("parate")
414
+    private BigDecimal parate;
415
+
416
+    /** 抛帐人民币金额(精度18,6) */
417
+    @TableField("costWriteCnyAmt")
418
+    private BigDecimal costWriteCnyAmt;
419
+
420
+    /** 成本单价(精度18,6) */
421
+    @TableField("costPrice")
422
+    private BigDecimal costPrice;
423
+
424
+    /** 费用单价-销售成本(精度18,6) */
425
+    @TableField("costFeePrice")
426
+    private BigDecimal costFeePrice;
427
+
428
+    /** 费用金额-销售成本(精度18,6) */
429
+    @TableField("costFeeAmt")
430
+    private BigDecimal costFeeAmt;
431
+
432
+    /** 暂估费用单价-销售成本(精度18,6) */
433
+    @TableField("provFeePrice")
434
+    private BigDecimal provFeePrice;
435
+
436
+    /** 暂估费用金额-销售成本(精度18,6) */
437
+    @TableField("provFeeAmt")
438
+    private BigDecimal provFeeAmt;
439
+
440
+    /** 利息金额(精度18,6) */
441
+    @TableField("interAmt")
442
+    private BigDecimal interAmt;
443
+
444
+    /** 采购发票数量(精度18,6) */
445
+    @TableField("poInvQty")
446
+    private BigDecimal poInvQty;
447
+
448
+    /** 代理费税率(精度18,6) */
449
+    @TableField("agentInTaxRate")
450
+    private BigDecimal agentInTaxRate;
451
+
452
+    /** 销售发票匹配总成本金额(精度18,6) */
453
+    @TableField("costWritePoAmt")
454
+    private BigDecimal costWritePoAmt;
455
+
456
+    // ========== 文本预留/扩展字段 ==========
457
+    /** 卷重范围 */
458
+    @TableField("ftype1")
459
+    private String ftype1;
460
+
461
+    /** H型钢规格 */
462
+    @TableField("ftype2")
463
+    private String ftype2;
464
+
465
+    /** 规格 */
466
+    @TableField("ftype3")
467
+    private String ftype3;
468
+
469
+    /** 计重方式 */
470
+    @TableField("ftype4")
471
+    private String ftype4;
472
+
473
+    /** 色标 */
474
+    @TableField("ftype5")
475
+    private String ftype5;
476
+
477
+    /** 文本预留字段1 */
478
+    @TableField("ftype6")
479
+    private String ftype6;
480
+
481
+    /** 文本预留字段2 */
482
+    @TableField("ftype7")
483
+    private String ftype7;
484
+
485
+    // ========== 公共审计字段 ==========
486
+    /** 创建账号 */
487
+    @TableField("create_by")
488
+    private String createBy;
489
+
490
+    /** 创建时间 */
491
+    @TableField("create_time")
492
+    private Date createTime;
493
+
494
+    /** 创建人 */
495
+    @TableField("create_by_name")
496
+    private String createByName;
497
+
498
+    /** 更新账号 */
499
+    @TableField("update_by")
500
+    private String updateBy;
501
+
502
+    /** 更新时间 */
503
+    @TableField("update_time")
504
+    private Date updateTime;
505
+
506
+    /** 更新人 */
507
+    @TableField("update_by_name")
508
+    private String updateByName;
509
+
510
+    /** 单据状态 */
511
+    @TableField("placed")
512
+    private String placed;
513
+
514
+    /** 图片 */
515
+    @TableField("img_ids")
516
+    private String imgIds;
517
+
518
+    /** 调取次数 */
519
+    @TableField("inc")
520
+    private Integer inc;
521
+
522
+    /** 归档状态 0-未归档,1-已归档 */
523
+    @TableField("fsaved")
524
+    private String fsaved;
525
+
526
+    /** 模版名称 */
527
+    @TableField("sys_template_name")
528
+    private String sysTemplateName;
529
+
530
+    /** 是否删除(0-未删除,1-已删除) */
531
+    @TableField("del_flag")
532
+    private Integer delFlag;
533
+
534
+    /** 部门名称 */
535
+    @TableField("dept_name")
536
+    private String deptName;
537
+
538
+    /** 部门ID */
539
+    @TableField("dept_id")
540
+    private String deptId;
541
+
542
+    /** 销售产品ID */
543
+    @TableField("soid")
544
+    private Long soid;
545
+
546
+    /** 采购产品ID */
547
+    @TableField("poid")
548
+    private Long poid;
549
+
550
+    /** 费用代码 */
551
+    @TableField("feeCd")
552
+    private String feeCd;
553
+
554
+    /** 费用名称 */
555
+    @TableField("feeNm")
556
+    private String feeNm;
557
+
558
+    /** 对接系统销售订单子表编码 */
559
+    @TableField("xorderSubSourceCode")
560
+    private String xorderSubSourceCode;
561
+
562
+    /** 对接系统销售订单编码 */
563
+    @TableField("xorderSourceCode")
564
+    private String xorderSourceCode;
565
+
566
+    /** 对接系统采购订单号 */
567
+    @TableField("poSourceCode")
568
+    private String poSourceCode;
569
+
570
+    /** 对接系统采购订单子项号 */
571
+    @TableField("porderSubSourceCode")
572
+    private String porderSubSourceCode;
573
+
574
+    /** 对接系统销售合同子项号 */
575
+    @TableField("saleContractSubSourceCode")
576
+    private String saleContractSubSourceCode;
577
+
578
+    /** 对接系统销售合同号 */
579
+    @TableField("saleContractSourceNo")
580
+    private String saleContractSourceNo;
581
+
582
+    /** 对接系统采购订单编号 */
583
+    @TableField("poOrderSourceCode")
584
+    private String poOrderSourceCode;
585
+
586
+    /** 对接系统采购订单唯一键 */
587
+    @TableField("poOrderSourceId")
588
+    private String poOrderSourceId;
589
+
590
+    /** 来源单号 */
591
+    @TableField("sourceNo")
592
+    private String sourceNo;
593
+
594
+    /** 单据日期 */
595
+    @TableField("fdate")
596
+    private Date fdate;
31 597
 }

+ 561
- 19
src/main/java/com/example/backend/pAndSExe/model/SettleProdDtl3.java Прегледај датотеку

@@ -6,35 +6,48 @@ import com.baomidou.mybatisplus.annotation.TableId;
6 6
 import com.baomidou.mybatisplus.annotation.TableName;
7 7
 import lombok.Data;
8 8
 import java.math.BigDecimal;
9
+import java.util.Date;
9 10
 
10 11
 /**
11
- * 代理结算从表(SGGMIIP.settleProdDtl3)
12
- * 区分原有settleProdDtl,命名为settleProdDtl3
12
+ * 结算产品子表(SGGMIIP.settleProdDtl)
13 13
  */
14 14
 @Data
15
-@TableName("SGGMIIP.settleProdDtl3")
15
+@TableName("SGGMIIP.settleProdDtl") // 数据库表名
16 16
 public class SettleProdDtl3 {
17
-    /** 雪花ID(19位数字,适配达梦BIGINT) */
17
+    /** 主键ID(雪花ID,19位数字) */
18 18
     @TableId(type = IdType.ASSIGN_ID)
19 19
     private Long id;
20 20
 
21
-    /** 关联主表saleSettle3的ID */
22
-    @TableField("rid")
23
-    private Long rid;
24
-
25
-    /** 物料编码 */
21
+    // ========== 基础商品信息 ==========
22
+    /** 商品编号 */
26 23
     @TableField("itemno")
27 24
     private String itemno;
28 25
 
29
-    /** 物料描述 */
26
+    /** 中文品名 */
30 27
     @TableField("sdesc")
31 28
     private String sdesc;
32 29
 
33
-    /** 品牌 */
34
-    @TableField("brand")
35
-    private String brand;
30
+    /** 英文品名 */
31
+    @TableField("edesc")
32
+    private String edesc;
36 33
 
37
-    /** 数量 */
34
+    /** 规格 */
35
+    @TableField("spec")
36
+    private String spec;
37
+
38
+    /** 水分(精度18,6) */
39
+    @TableField("moisture")
40
+    private BigDecimal moisture;
41
+
42
+    /** 湿吨数量(精度18,6) */
43
+    @TableField("wetTonQty")
44
+    private BigDecimal wetTonQty;
45
+
46
+    /** 干吨数量(精度18,6) */
47
+    @TableField("dryTonQty")
48
+    private BigDecimal dryTonQty;
49
+
50
+    /** 数量(精度18,6) */
38 51
     @TableField("qty")
39 52
     private BigDecimal qty;
40 53
 
@@ -42,14 +55,543 @@ public class SettleProdDtl3 {
42 55
     @TableField("ut")
43 56
     private String ut;
44 57
 
45
-    /** 金额 */
46
-    @TableField("soamt")
47
-    private BigDecimal soamt;
58
+    /** 海关编码 */
59
+    @TableField("hsCode")
60
+    private String hsCode;
61
+
62
+    /** 海关中文名称 */
63
+    @TableField("hsNameCn")
64
+    private String hsNameCn;
65
+
66
+    /** 海关英文名称 */
67
+    @TableField("hsNameEn")
68
+    private String hsNameEn;
69
+
70
+    /** 关税 %(精度18,6) */
71
+    @TableField("dutyRate")
72
+    private BigDecimal dutyRate;
73
+
74
+    /** 进项税 %(精度18,6) */
75
+    @TableField("inTaxRate")
76
+    private BigDecimal inTaxRate;
48 77
 
49
-    /** 销项税率 */
78
+    /** 退税率 %(精度18,6) */
79
+    @TableField("reTaxRate")
80
+    private BigDecimal reTaxRate;
81
+
82
+    /** 销项税 %(精度18,6) */
50 83
     @TableField("outTaxRate")
51 84
     private BigDecimal outTaxRate;
52 85
 
53
-    @TableField("NtSoAmt")
86
+    /** 备注 */
87
+    @TableField("remark")
88
+    private String remark;
89
+
90
+    /** 行号(精度18,0) */
91
+    @TableField("line")
92
+    private BigDecimal line;
93
+
94
+    // ========== 基础流程/来源信息 ==========
95
+    /** 流程实例id */
96
+    @TableField("process_instance_id")
97
+    private String processInstanceId;
98
+
99
+    /** 业务id */
100
+    @TableField("fmodalid")
101
+    private Long fmodalid;
102
+
103
+    /** 数据来源id */
104
+    @TableField("sourceid")
105
+    private Long sourceid;
106
+
107
+    /** 数据来源表 */
108
+    @TableField("sourcetable")
109
+    private String sourcetable;
110
+
111
+    /** 关联id */
112
+    @TableField("rid")
113
+    private Long rid;
114
+
115
+    /** 单据号 */
116
+    @TableField("fno")
117
+    private String fno;
118
+
119
+    /** 销售合同批次号 */
120
+    @TableField("BATCHNO")
121
+    private String batchno;
122
+
123
+    /** 计价方式 */
124
+    @TableField("priceMtd")
125
+    private String priceMtd;
126
+
127
+    /** 销售合同号 */
128
+    @TableField("sono")
129
+    private String sono;
130
+
131
+    /** 销售币种 */
132
+    @TableField("curcySo")
133
+    private String curcySo;
134
+
135
+    /** 销售美元汇率 */
136
+    @TableField("rateUsdSo")
137
+    private String rateUsdSo;
138
+
139
+    /** 客户订单号 */
140
+    @TableField("ctOrderNo")
141
+    private String ctOrderNo;
142
+
143
+    /** 资源号 */
144
+    @TableField("resourceNo")
145
+    private String resourceNo;
146
+
147
+    /** 业务账套 */
148
+    @TableField("acctSet")
149
+    private String acctSet;
150
+
151
+    /** 采购币种 */
152
+    @TableField("curcypo")
153
+    private String curcypo;
154
+
155
+    /** 批次号 */
156
+    @TableField("fphno")
157
+    private String fphno;
158
+
159
+    /** 装运港 */
160
+    @TableField("lPort")
161
+    private String lPort;
162
+
163
+    /** 目的港 */
164
+    @TableField("dPort")
165
+    private String dPort;
166
+
167
+    /** 中文规格描述 */
168
+    @TableField("spec_cn")
169
+    private String specCn;
170
+
171
+    /** 牌号 */
172
+    @TableField("brand")
173
+    private String brand;
174
+
175
+    /** 我方代码 */
176
+    @TableField("fours")
177
+    private String fours;
178
+
179
+    /** 我方名称 */
180
+    @TableField("foursname")
181
+    private String foursname;
182
+
183
+    /** 客户代码 */
184
+    @TableField("ctNo")
185
+    private String ctNo;
186
+
187
+    /** 客户名称 */
188
+    @TableField("ctName")
189
+    private String ctName;
190
+
191
+    /** 供应商代码 */
192
+    @TableField("supcode")
193
+    private String supcode;
194
+
195
+    /** 供应商名称 */
196
+    @TableField("supname")
197
+    private String supname;
198
+
199
+    /** 开票品名 */
200
+    @TableField("kpSdesc")
201
+    private String kpSdesc;
202
+
203
+    /** 销售订单号 */
204
+    @TableField("soOrderNo")
205
+    private String soOrderNo;
206
+
207
+    /** 采购订单号 */
208
+    @TableField("poOrderNo")
209
+    private String poOrderNo;
210
+
211
+    /** 钢材资源号 */
212
+    @TableField("SMRNo")
213
+    private String smrNo;
214
+
215
+    /** 抛帐币别 */
216
+    @TableField("pzcurcy")
217
+    private String pzcurcy;
218
+
219
+    /** 开票合并标记 */
220
+    @TableField("ifHb")
221
+    private String ifHb;
222
+
223
+    /** 计价数量 */
224
+    @TableField("priceQty")
225
+    private String priceQty;
226
+
227
+    /** 采购计价方式 */
228
+    @TableField("priceMtdPo")
229
+    private String priceMtdPo;
230
+
231
+    // ========== 金额/单价/税率相关 ==========
232
+    /** 单价 */
233
+    @TableField("soprice")
234
+    private BigDecimal soprice;
235
+
236
+    /** 总价 */
237
+    @TableField("soamt")
238
+    private BigDecimal soamt;
239
+
240
+    /** 含铁量 */
241
+    @TableField("ironCont")
242
+    private BigDecimal ironCont;
243
+
244
+    /** 未税金额(销售) */
245
+    @TableField("ntSoAmt")
54 246
     private BigDecimal ntSoAmt;
247
+
248
+    /** 美元销售含税金额 */
249
+    @TableField("usdsoamt")
250
+    private BigDecimal usdsoamt;
251
+
252
+    /** 人民币销售含税金额 */
253
+    @TableField("cnysoamt")
254
+    private BigDecimal cnysoamt;
255
+
256
+    /** 美元采购含税金额 */
257
+    @TableField("usdpoamt")
258
+    private BigDecimal usdpoamt;
259
+
260
+    /** 采购不含税金额 */
261
+    @TableField("ntPoAmt")
262
+    private BigDecimal ntPoAmt;
263
+
264
+    /** 采购未税单价(销售维度) */
265
+    @TableField("ntSoPrice")
266
+    private BigDecimal ntSoPrice;
267
+
268
+    /** 人民币含税金额(采购) */
269
+    @TableField("cnypoam")
270
+    private BigDecimal cnypoam;
271
+
272
+    /** 采购不含税单价 */
273
+    @TableField("ntPoPrice")
274
+    private BigDecimal ntPoPrice;
275
+
276
+    /** 采购单价 */
277
+    @TableField("poprice")
278
+    private BigDecimal poprice;
279
+
280
+    /** 采购金额 */
281
+    @TableField("poamt")
282
+    private BigDecimal poamt;
283
+
284
+    /** 销售汇率 */
285
+    @TableField("rateSo")
286
+    private BigDecimal rateSo;
287
+
288
+    /** 税额 */
289
+    @TableField("taxAmt")
290
+    private BigDecimal taxAmt;
291
+
292
+    /** 采购汇率 */
293
+    @TableField("ratepo")
294
+    private BigDecimal ratepo;
295
+
296
+    /** 采购美元汇率 */
297
+    @TableField("rateusd")
298
+    private BigDecimal rateusd;
299
+
300
+    /** 厚(精度18,6) */
301
+    @TableField("fnum1")
302
+    private BigDecimal fnum1;
303
+
304
+    /** 宽(精度18,6) */
305
+    @TableField("fnum2")
306
+    private BigDecimal fnum2;
307
+
308
+    /** 长(精度18,6) */
309
+    @TableField("fnum3")
310
+    private BigDecimal fnum3;
311
+
312
+    /** 件数(精度18,6) */
313
+    @TableField("qua")
314
+    private BigDecimal qua;
315
+
316
+    /** 单重(精度18,6) */
317
+    @TableField("snw")
318
+    private BigDecimal snw;
319
+
320
+    /** 米重(精度18,6) */
321
+    @TableField("fnum4")
322
+    private BigDecimal fnum4;
323
+
324
+    /** 直径(精度18,6) */
325
+    @TableField("fnum5")
326
+    private BigDecimal fnum5;
327
+
328
+    /** 捆单重(精度18,6) */
329
+    @TableField("fnum6")
330
+    private BigDecimal fnum6;
331
+
332
+    /** 捆支数(精度18,6) */
333
+    @TableField("fnum7")
334
+    private BigDecimal fnum7;
335
+
336
+    /** 数值预留字段1(精度18,6) */
337
+    @TableField("fnum8")
338
+    private BigDecimal fnum8;
339
+
340
+    /** 数值预留字段2(精度18,6) */
341
+    @TableField("fnum9")
342
+    private BigDecimal fnum9;
343
+
344
+    /** 煤焦标准水分(精度18,6) */
345
+    @TableField("coalMoisture")
346
+    private BigDecimal coalMoisture;
347
+
348
+    /** 毛重(精度18,6) */
349
+    @TableField("fgw")
350
+    private BigDecimal fgw;
351
+
352
+    /** 净重(精度18,6) */
353
+    @TableField("fnw")
354
+    private BigDecimal fnw;
355
+
356
+    /** 合同金额(精度18,6) */
357
+    @TableField("contamt")
358
+    private BigDecimal contamt;
359
+
360
+    /** 开票单价(精度18,6) */
361
+    @TableField("kpprice")
362
+    private BigDecimal kpprice;
363
+
364
+    /** 开票数量(精度18,6) */
365
+    @TableField("kpQty")
366
+    private BigDecimal kpQty;
367
+
368
+    /** 开票金额(精度18,6) */
369
+    @TableField("kpAmt")
370
+    private BigDecimal kpAmt;
371
+
372
+    /** 出口关税税率%(精度18,6) */
373
+    @TableField("eDutyRate")
374
+    private BigDecimal eDutyRate;
375
+
376
+    /** FOB金额(精度18,6) */
377
+    @TableField("fobAmt")
378
+    private BigDecimal fobAmt;
379
+
380
+    /** 保费金额(精度18,6) */
381
+    @TableField("insuAmt")
382
+    private BigDecimal insuAmt;
383
+
384
+    /** 运费额(精度18,6) */
385
+    @TableField("freightAmt")
386
+    private BigDecimal freightAmt;
387
+
388
+    /** 佣金金额(精度18,6) */
389
+    @TableField("ComAmt")
390
+    private BigDecimal comAmt;
391
+
392
+    /** 匹配成本金额(精度18,6) */
393
+    @TableField("costWriteAmt")
394
+    private BigDecimal costWriteAmt;
395
+
396
+    /** 匹配成本单价(精度18,6) */
397
+    @TableField("costWritePrice")
398
+    private BigDecimal costWritePrice;
399
+
400
+    /** 暂估成本金额(精度18,6) */
401
+    @TableField("provAmt")
402
+    private BigDecimal provAmt;
403
+
404
+    /** 暂估成本单价(精度18,6) */
405
+    @TableField("provPrice")
406
+    private BigDecimal provPrice;
407
+
408
+    /** 成本总金额(精度18,6) */
409
+    @TableField("costAmt")
410
+    private BigDecimal costAmt;
411
+
412
+    /** 抛帐汇率(精度18,6) */
413
+    @TableField("parate")
414
+    private BigDecimal parate;
415
+
416
+    /** 抛帐人民币金额(精度18,6) */
417
+    @TableField("costWriteCnyAmt")
418
+    private BigDecimal costWriteCnyAmt;
419
+
420
+    /** 成本单价(精度18,6) */
421
+    @TableField("costPrice")
422
+    private BigDecimal costPrice;
423
+
424
+    /** 费用单价-销售成本(精度18,6) */
425
+    @TableField("costFeePrice")
426
+    private BigDecimal costFeePrice;
427
+
428
+    /** 费用金额-销售成本(精度18,6) */
429
+    @TableField("costFeeAmt")
430
+    private BigDecimal costFeeAmt;
431
+
432
+    /** 暂估费用单价-销售成本(精度18,6) */
433
+    @TableField("provFeePrice")
434
+    private BigDecimal provFeePrice;
435
+
436
+    /** 暂估费用金额-销售成本(精度18,6) */
437
+    @TableField("provFeeAmt")
438
+    private BigDecimal provFeeAmt;
439
+
440
+    /** 利息金额(精度18,6) */
441
+    @TableField("interAmt")
442
+    private BigDecimal interAmt;
443
+
444
+    /** 采购发票数量(精度18,6) */
445
+    @TableField("poInvQty")
446
+    private BigDecimal poInvQty;
447
+
448
+    /** 代理费税率(精度18,6) */
449
+    @TableField("agentInTaxRate")
450
+    private BigDecimal agentInTaxRate;
451
+
452
+    /** 销售发票匹配总成本金额(精度18,6) */
453
+    @TableField("costWritePoAmt")
454
+    private BigDecimal costWritePoAmt;
455
+
456
+    // ========== 文本预留/扩展字段 ==========
457
+    /** 卷重范围 */
458
+    @TableField("ftype1")
459
+    private String ftype1;
460
+
461
+    /** H型钢规格 */
462
+    @TableField("ftype2")
463
+    private String ftype2;
464
+
465
+    /** 规格 */
466
+    @TableField("ftype3")
467
+    private String ftype3;
468
+
469
+    /** 计重方式 */
470
+    @TableField("ftype4")
471
+    private String ftype4;
472
+
473
+    /** 色标 */
474
+    @TableField("ftype5")
475
+    private String ftype5;
476
+
477
+    /** 文本预留字段1 */
478
+    @TableField("ftype6")
479
+    private String ftype6;
480
+
481
+    /** 文本预留字段2 */
482
+    @TableField("ftype7")
483
+    private String ftype7;
484
+
485
+    // ========== 公共审计字段 ==========
486
+    /** 创建账号 */
487
+    @TableField("create_by")
488
+    private String createBy;
489
+
490
+    /** 创建时间 */
491
+    @TableField("create_time")
492
+    private Date createTime;
493
+
494
+    /** 创建人 */
495
+    @TableField("create_by_name")
496
+    private String createByName;
497
+
498
+    /** 更新账号 */
499
+    @TableField("update_by")
500
+    private String updateBy;
501
+
502
+    /** 更新时间 */
503
+    @TableField("update_time")
504
+    private Date updateTime;
505
+
506
+    /** 更新人 */
507
+    @TableField("update_by_name")
508
+    private String updateByName;
509
+
510
+    /** 单据状态 */
511
+    @TableField("placed")
512
+    private String placed;
513
+
514
+    /** 图片 */
515
+    @TableField("img_ids")
516
+    private String imgIds;
517
+
518
+    /** 调取次数 */
519
+    @TableField("inc")
520
+    private Integer inc;
521
+
522
+    /** 归档状态 0-未归档,1-已归档 */
523
+    @TableField("fsaved")
524
+    private String fsaved;
525
+
526
+    /** 模版名称 */
527
+    @TableField("sys_template_name")
528
+    private String sysTemplateName;
529
+
530
+    /** 是否删除(0-未删除,1-已删除) */
531
+    @TableField("del_flag")
532
+    private Integer delFlag;
533
+
534
+    /** 部门名称 */
535
+    @TableField("dept_name")
536
+    private String deptName;
537
+
538
+    /** 部门ID */
539
+    @TableField("dept_id")
540
+    private String deptId;
541
+
542
+    /** 销售产品ID */
543
+    @TableField("soid")
544
+    private Long soid;
545
+
546
+    /** 采购产品ID */
547
+    @TableField("poid")
548
+    private Long poid;
549
+
550
+    /** 费用代码 */
551
+    @TableField("feeCd")
552
+    private String feeCd;
553
+
554
+    /** 费用名称 */
555
+    @TableField("feeNm")
556
+    private String feeNm;
557
+
558
+    /** 对接系统销售订单子表编码 */
559
+    @TableField("xorderSubSourceCode")
560
+    private String xorderSubSourceCode;
561
+
562
+    /** 对接系统销售订单编码 */
563
+    @TableField("xorderSourceCode")
564
+    private String xorderSourceCode;
565
+
566
+    /** 对接系统采购订单号 */
567
+    @TableField("poSourceCode")
568
+    private String poSourceCode;
569
+
570
+    /** 对接系统采购订单子项号 */
571
+    @TableField("porderSubSourceCode")
572
+    private String porderSubSourceCode;
573
+
574
+    /** 对接系统销售合同子项号 */
575
+    @TableField("saleContractSubSourceCode")
576
+    private String saleContractSubSourceCode;
577
+
578
+    /** 对接系统销售合同号 */
579
+    @TableField("saleContractSourceNo")
580
+    private String saleContractSourceNo;
581
+
582
+    /** 对接系统采购订单编号 */
583
+    @TableField("poOrderSourceCode")
584
+    private String poOrderSourceCode;
585
+
586
+    /** 对接系统采购订单唯一键 */
587
+    @TableField("poOrderSourceId")
588
+    private String poOrderSourceId;
589
+
590
+    /** 来源单号 */
591
+    @TableField("sourceNo")
592
+    private String sourceNo;
593
+
594
+    /** 单据日期 */
595
+    @TableField("fdate")
596
+    private Date fdate;
55 597
 }

+ 13
- 3
src/main/java/com/example/backend/pAndSExe/service/impl/DailijiesuanSettleServiceImpl.java Прегледај датотеку

@@ -2,6 +2,7 @@ package com.example.backend.pAndSExe.service.impl;
2 2
 
3 3
 import com.baomidou.mybatisplus.core.toolkit.IdWorker;
4 4
 import com.example.backend.pAndSExe.mapper.InfDailijiesuanMapper;
5
+import com.example.backend.pAndSExe.mapper.MdkcctrlMapper;
5 6
 import com.example.backend.pAndSExe.mapper.SaleSettle3Mapper;
6 7
 import com.example.backend.pAndSExe.mapper.SettleProdDtl3Mapper;
7 8
 import com.example.backend.pAndSExe.model.InfDailijiesuan;
@@ -12,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
12 13
 import org.springframework.stereotype.Service;
13 14
 import org.springframework.transaction.annotation.Transactional;
14 15
 
16
+import java.util.Date;
15 17
 import java.util.List;
16 18
 
17 19
 /**
@@ -29,6 +31,9 @@ public class DailijiesuanSettleServiceImpl implements DailijiesuanSettleService
29 31
     @Autowired
30 32
     private SettleProdDtl3Mapper settleProdDtl3Mapper;
31 33
 
34
+    @Autowired
35
+    private MdkcctrlMapper mdkcctrlMapper;
36
+
32 37
     /**
33 38
      * 批量导入代理结算中间表数据到业务表
34 39
      */
@@ -63,9 +68,14 @@ public class DailijiesuanSettleServiceImpl implements DailijiesuanSettleService
63 68
                 saleSettle3.setQichu("1"); // 固定值1
64 69
                 saleSettle3.setSoloId(inf.getId()); // 关联中间表ID
65 70
                 saleSettle3.setCreateBy(inf.getCreateBy());
66
-                saleSettle3.setFmodalId("39");
71
+                saleSettle3.setFmodalid(39L);
72
+                String s = mdkcctrlMapper.selectCreateByName(inf.getCreateBy());
73
+                saleSettle3.setCreateByName(s);
74
+                saleSettle3.setCreateTime(new Date());
75
+                saleSettle3.setUpdateTime(new Date());
76
+                saleSettle3.setPlaced("2");
67 77
 
68
-                saleSettle3Mapper.insertSaleSettle3(saleSettle3);
78
+                saleSettle3Mapper.insert(saleSettle3);
69 79
 
70 80
                 // -------------------- 第二步:插入从表settleProdDtl3 --------------------
71 81
                 SettleProdDtl3 settleProdDtl3 = new SettleProdDtl3();
@@ -83,7 +93,7 @@ public class DailijiesuanSettleServiceImpl implements DailijiesuanSettleService
83 93
                 settleProdDtl3.setNtSoAmt(inf.getNtSoAmt());
84 94
 
85 95
 
86
-                settleProdDtl3Mapper.insertSettleProdDtl3(settleProdDtl3);
96
+                settleProdDtl3Mapper.insert(settleProdDtl3);
87 97
 
88 98
                 // -------------------- 第三步:更新中间表状态为已导入 --------------------
89 99
                 //todo

+ 1
- 1
src/main/java/com/example/backend/pAndSExe/service/impl/JinxiangInvoiceSettleServiceImpl.java Прегледај датотеку

@@ -186,7 +186,7 @@ public class JinxiangInvoiceSettleServiceImpl implements JinxiangInvoiceSettleSe
186 186
                 dtl.setPono(purchasecontract.getFno());
187 187
                 dtl.setPoOrderNo(purchasecontract.getFno());
188 188
 
189
-                POrderDtl pOrderDtl = pOrderDtlMapper.selectByPurchaseContractId(purchasecontract.getId());
189
+                POrderDtl pOrderDtl = pOrderDtlMapper.selectByPurchaseContractId(purchaseOrder.getId());
190 190
 
191 191
 
192 192
 

+ 1
- 1
src/main/java/com/example/backend/pAndSExe/service/impl/StockServiceImpl.java Прегледај датотеку

@@ -184,7 +184,7 @@ public class StockServiceImpl implements StockService {
184 184
                     if (pOrderDtl != null){
185 185
                         dtl.setEdesc(pOrderDtl.getEdesc());
186 186
                         dtl.setBrand(pOrderDtl.getBrand());
187
-                        //dtl.setPoprice(pOrderDtl.getPoprice());
187
+                        dtl.setPoprice(pOrderDtl.getPoprice());
188 188
                         if (purchaseOrder != null) {
189 189
                             dtl.setSupCode(purchaseOrder.getSupCode());
190 190
                             dtl.setSupName(purchaseOrder.getSupName());

Loading…
Откажи
Сачувај