Browse Source

完成销售合同导入模版2为模版的销售合同导入代码和销售合同导入测试

胡北宽 4 months ago
parent
commit
20c6694a2c

+ 2
- 2
src/main/java/com/example/backend/entity/common/SysUser.java View File

@@ -266,9 +266,9 @@ public class SysUser {
266 266
     @TableField(exist = false)
267 267
     private BigDecimal rate;
268 268
 
269
-    //美元汇率
269
+    //执行美元汇率
270 270
     @TableField(exist = false)
271
-    private BigDecimal rateUsd;
271
+    private BigDecimal rateUs;
272 272
 
273 273
     //制单人部门编码
274 274
     @TableField(exist = false)

+ 1
- 1
src/main/java/com/example/backend/entity/contract/ExpSvcRateEntity.java View File

@@ -35,7 +35,7 @@ public class ExpSvcRateEntity {
35 35
 
36 36
     // 起步天数
37 37
     @TableField("minDays")
38
-    private BigDecimal minDays;
38
+    private Integer minDays;
39 39
 
40 40
     // 流程实例id
41 41
     @TableField("process_instance_id")

+ 1
- 1
src/main/java/com/example/backend/excel/ExpSvcRateExcelDTO.java View File

@@ -27,5 +27,5 @@ public class ExpSvcRateExcelDTO {
27 27
     private BigDecimal annualRate;
28 28
 
29 29
     @ExcelProperty("起步天数")
30
-    private BigDecimal minDays;
30
+    private Integer minDays;
31 31
 }

+ 12
- 8
src/main/java/com/example/backend/excel/RCenterDtlExcelDTO.java View File

@@ -11,24 +11,28 @@ import java.math.BigDecimal;
11 11
 @Data
12 12
 public class RCenterDtlExcelDTO {
13 13
 
14
-    @ExcelProperty("销售合同号")
14
+    @ExcelProperty("合同号")
15 15
     private String fno;
16 16
 
17
-    @ExcelProperty("公司代码")
18
-    private String institutionId;
19
-
20
-    @ExcelProperty("公司名称")
21
-    private String institutionNm;
22
-
23 17
     @ExcelProperty("利润考核占比%")
24 18
     private BigDecimal assessQtyRate;
25 19
 
26 20
     @ExcelProperty("金额考核占比%")
27 21
     private BigDecimal assessRatio;
28 22
 
29
-    @ExcelProperty("制单人代码")
23
+    @ExcelProperty("责任人员代码")
30 24
     private String createBy;
31 25
 
26
+//    @ExcelProperty("公司代码")
27
+//    private String institutionId;
28
+//
29
+//    @ExcelProperty("公司名称")
30
+//    private String institutionNm;
31
+
32
+
33
+
34
+
35
+
32 36
     @ExcelProperty(index =7)
33 37
     private String personDeptNm;
34 38
     @ExcelProperty(index =8)

+ 15
- 11
src/main/java/com/example/backend/excel/SalesCollectExcelDTO.java View File

@@ -13,10 +13,14 @@ import java.time.LocalDateTime;
13 13
 public class SalesCollectExcelDTO {
14 14
 
15 15
 
16
-    @ExcelProperty("销售合同号")
16
+    @ExcelProperty("合同号")
17 17
     private String fno;
18 18
 
19
-    @ExcelProperty("账期")
19
+
20
+    @ExcelProperty("金额")
21
+    private String paymentAmt;
22
+
23
+    @ExcelProperty("账期(天)")
20 24
     private Integer payDays;
21 25
 
22 26
     @ExcelProperty("收款方式")
@@ -29,15 +33,15 @@ public class SalesCollectExcelDTO {
29 33
     @ExcelProperty("款项类别")
30 34
     private String paymentType;
31 35
 
32
-    @ExcelProperty("收款收证银行名称")
33
-    private String ourBankNm;
34
-
35
-    @ExcelProperty("收款收证银行账户")
36
-    private String ourBankAcct;
37
-
38
-
39
-    @ExcelProperty("备注")
40
-    private String remark;
36
+//    @ExcelProperty("收款收证银行名称")
37
+//    private String ourBankNm;
38
+//
39
+//    @ExcelProperty("收款收证银行账户")
40
+//    private String ourBankAcct;
41
+//
42
+//
43
+//    @ExcelProperty("备注")
44
+//    private String remark;
41 45
 
42 46
 
43 47
 

+ 129
- 114
src/main/java/com/example/backend/excel/SalesContractExcelDTO.java View File

@@ -17,8 +17,8 @@ public class SalesContractExcelDTO {
17 17
     @ExcelProperty("制单人代码")
18 18
     private String createBy;
19 19
 
20
-    @ExcelProperty("制单人名称")
21
-    private String createByName;
20
+    @ExcelProperty("合同执行人代码")
21
+    private String contrExecCd;
22 22
 
23 23
     @ExcelProperty("业务类型")
24 24
     private String serviceType;
@@ -29,138 +29,153 @@ public class SalesContractExcelDTO {
29 29
     @ExcelProperty("合同产品类型")
30 30
     private String bizProductType;
31 31
 
32
-    @ExcelProperty("合同执行人代码")
33
-    private String contrExecCd;
34
-
35
-    @ExcelProperty("合同执行人名称")
36
-    private String contrExecNm;
37
-
38
-    @ExcelProperty("客户名称")
39
-    private String ctName;
40
-
41
-    @ExcelProperty("客户联系人名称")
42
-    private String ctContNm;
43
-
44
-    @ExcelProperty("客户开户银行")
45
-    private String ctBankName;
46
-
47
-    @ExcelProperty("客户银行账户")
48
-    private String ctBankAcct;
49
-
50
-    @ExcelProperty("客户合同号")
51
-    private String ctOrderNo;
52
-
53
-    @ExcelProperty("币别")
54
-    private String curcy;
55
-
56
-    @ExcelProperty("最迟集港日期")
57
-    private Date estArrDt;
58
-
59
-    @ExcelProperty("最迟装运日期")
60
-    private Date estLoadDt;
61
-
62
-    @ExcelProperty("预计客商占款天数")
63
-    private Integer outstandingDay;
64 32
 
65 33
     @ExcelProperty("我方名称")
66 34
     private String foursname;
67 35
 
68
-    @ExcelProperty("我方银行账号")
69
-    private String ourBankAcct;
70
-
71
-    @ExcelProperty("我方开户银行")
72
-    private String ourBankNm;
73
-
74
-    @ExcelProperty("是否清底")
75
-    private String ifClearBottom;
76
-
77
-    @ExcelProperty("是否长协")
78
-    private String ifLongTerm;
79
-
80
-    @ExcelProperty("长协合同号")
81
-    private String longTermContract;
36
+    @ExcelProperty("客户名称")
37
+    private String ctName;
82 38
 
83
-    @ExcelProperty("装运港")
84
-    private String lPort;
39
+    @ExcelProperty("金额溢装")
40
+    private BigDecimal amtOver;
85 41
 
86
-    @ExcelProperty("目的港")
87
-    private String dPort;
42
+    @ExcelProperty("金额短装")
43
+    private BigDecimal amtShort;
88 44
 
89 45
     @ExcelProperty("数量溢装%")
90 46
     private BigDecimal qtyOver;
91 47
 
92 48
     @ExcelProperty("数量短装%")
93 49
     private BigDecimal qtyShort;
50
+    @ExcelProperty("币别")
51
+    private String curcy;
94 52
 
95
-    @ExcelProperty("金额溢装%")
96
-    private BigDecimal amtOver;
97
-
98
-    @ExcelProperty("金额短装%")
99
-    private BigDecimal amtShort;
100
-
101
-    @ExcelProperty("保险种类")
102
-    private String insuranceType;
103
-
104
-    @ExcelProperty("保险费率%")
105
-    private BigDecimal insuranceAmt;
106
-
107
-    @ExcelProperty("签约地点")
108
-    private String signLoc;
53
+    @ExcelProperty("最迟装运日期")
54
+    private Date estLoadDt;
109 55
 
110 56
     @ExcelProperty("价格条款")
111 57
     private String terms;
112 58
 
113
-    @ExcelProperty("装卸条款")
114
-    private String loadUnloadTerms;
115
-
116
-    @ExcelProperty("交货地点")
117
-    private String delivLoc;
118
-
119
-    @ExcelProperty("交货方式")
120
-    private String delivMtd;
121
-
122 59
     @ExcelProperty("运输方式")
123 60
     private String tranWay;
124 61
 
125
-    @ExcelProperty("是否租船")
126
-    private String whetherChartering;
127
-
128
-    @ExcelProperty("中文船名")
129
-    private String chnShipName;
130
-
131
-    @ExcelProperty("英文船名")
132
-    private String engShipName;
133
-
134
-    @ExcelProperty("代理采购协议号")
135
-    private String agentNo;
136
-
137
-    @ExcelProperty("代理销售协议号")
138
-    private String agentNoSo;
139
-
140
-    @ExcelProperty("佣金合同号")
141
-    private String commContrNo;
142
-
143
-    @ExcelProperty("销售交货日期")
144
-    private Date sDelivDt;
145
-
146
-    @ExcelProperty("是否过磅数量结算")
147
-    private String ifWeighedSalesQty;
148
-
149
-    @ExcelProperty("结算指标")
150
-    private String settIndex;
151
-
152
-    @ExcelProperty("是否允许分批")
153
-    private String ifBatch;
154
-
155
-    @ExcelProperty("是否允许转运")
156
-    private String ifTransfer;
157
-
158
-    @ExcelProperty("合同描述")
159
-    private String contrDesc;
62
+    @ExcelProperty("预计客商占款天数")
63
+    private Integer outstandingDay;
160 64
 
161
-    @ExcelProperty("备注信息")
162
-    private String remark;
163 65
 
164
-    @ExcelProperty("采购合同号")
165
-    private String pono;
66
+//    @ExcelProperty("制单人名称")
67
+//    private String createByName;
68
+//
69
+//
70
+//    @ExcelProperty("合同执行人名称")
71
+//    private String contrExecNm;
72
+//
73
+//
74
+//
75
+//    @ExcelProperty("客户联系人名称")
76
+//    private String ctContNm;
77
+//
78
+//    @ExcelProperty("客户开户银行")
79
+//    private String ctBankName;
80
+//
81
+//    @ExcelProperty("客户银行账户")
82
+//    private String ctBankAcct;
83
+//
84
+//    @ExcelProperty("客户合同号")
85
+//    private String ctOrderNo;
86
+//
87
+//
88
+//    @ExcelProperty("最迟集港日期")
89
+//    private Date estArrDt;
90
+//
91
+//
92
+//
93
+//
94
+//
95
+//    @ExcelProperty("我方银行账号")
96
+//    private String ourBankAcct;
97
+//
98
+//    @ExcelProperty("我方开户银行")
99
+//    private String ourBankNm;
100
+//
101
+//    @ExcelProperty("是否清底")
102
+//    private String ifClearBottom;
103
+//
104
+//    @ExcelProperty("是否长协")
105
+//    private String ifLongTerm;
106
+//
107
+//    @ExcelProperty("长协合同号")
108
+//    private String longTermContract;
109
+//
110
+//    @ExcelProperty("装运港")
111
+//    private String lPort;
112
+//
113
+//    @ExcelProperty("目的港")
114
+//    private String dPort;
115
+//
116
+//
117
+//
118
+//    @ExcelProperty("保险种类")
119
+//    private String insuranceType;
120
+//
121
+//    @ExcelProperty("保险费率%")
122
+//    private BigDecimal insuranceAmt;
123
+//
124
+//    @ExcelProperty("签约地点")
125
+//    private String signLoc;
126
+//
127
+//
128
+//
129
+//    @ExcelProperty("装卸条款")
130
+//    private String loadUnloadTerms;
131
+//
132
+//    @ExcelProperty("交货地点")
133
+//    private String delivLoc;
134
+//
135
+//    @ExcelProperty("交货方式")
136
+//    private String delivMtd;
137
+//
138
+//
139
+//
140
+//    @ExcelProperty("是否租船")
141
+//    private String whetherChartering;
142
+//
143
+//    @ExcelProperty("中文船名")
144
+//    private String chnShipName;
145
+//
146
+//    @ExcelProperty("英文船名")
147
+//    private String engShipName;
148
+//
149
+//    @ExcelProperty("代理采购协议号")
150
+//    private String agentNo;
151
+//
152
+//    @ExcelProperty("代理销售协议号")
153
+//    private String agentNoSo;
154
+//
155
+//    @ExcelProperty("佣金合同号")
156
+//    private String commContrNo;
157
+//
158
+//    @ExcelProperty("销售交货日期")
159
+//    private Date sDelivDt;
160
+//
161
+//    @ExcelProperty("是否过磅数量结算")
162
+//    private String ifWeighedSalesQty;
163
+//
164
+//    @ExcelProperty("结算指标")
165
+//    private String settIndex;
166
+//
167
+//    @ExcelProperty("是否允许分批")
168
+//    private String ifBatch;
169
+//
170
+//    @ExcelProperty("是否允许转运")
171
+//    private String ifTransfer;
172
+//
173
+//    @ExcelProperty("合同描述")
174
+//    private String contrDesc;
175
+//
176
+//    @ExcelProperty("备注信息")
177
+//    private String remark;
178
+//
179
+//    @ExcelProperty("采购合同号")
180
+//    private String pono;
166 181
 }

+ 105
- 74
src/main/java/com/example/backend/excel/SalesDtlExcelDTO.java View File

@@ -1,6 +1,7 @@
1 1
 package com.example.backend.excel;
2 2
 
3 3
 import com.alibaba.excel.annotation.ExcelProperty;
4
+import com.baomidou.mybatisplus.annotation.TableField;
4 5
 import lombok.Data;
5 6
 
6 7
 import java.math.BigDecimal;
@@ -11,98 +12,68 @@ import java.math.BigDecimal;
11 12
 @Data
12 13
 public class SalesDtlExcelDTO {
13 14
 
14
-    @ExcelProperty("销售合同号")
15
+    @ExcelProperty("合同号")
15 16
     private String fno;
16 17
 
17
-    @ExcelProperty("商品编号")
18
+    @ExcelProperty("批次号")
19
+    private String batchNo;
20
+
21
+    @ExcelProperty("商品编码")
18 22
     private String itemno;
19 23
 
20
-    @ExcelProperty("采购币种")
21
-    private String curcyPo;
24
+    @ExcelProperty("规格描述")
25
+    private String spec;
22 26
 
23
-    @ExcelProperty("增值税率%")
24
-    private BigDecimal inTaxRate;
27
+    @ExcelProperty("")
28
+    private BigDecimal fnum3;
25 29
 
26
-    @ExcelProperty("含铁量%")
27
-    private BigDecimal ironCont;
30
+    @ExcelProperty("捆单重")
31
+    private BigDecimal fnum6;
28 32
 
29
-    @ExcelProperty("水分%")
30
-    private BigDecimal moisture;
33
+    @ExcelProperty("捆支数")
34
+    private BigDecimal fnum7;
31 35
 
32
-    @ExcelProperty("煤焦计价水%")
33
-    private BigDecimal coalMoisture;
36
+    @ExcelProperty("捆数")
37
+    private BigDecimal fnum8;
34 38
 
35
-    @ExcelProperty("采购单价")
36
-    private BigDecimal poprice;
39
+    @ExcelProperty("件数")
40
+    private BigDecimal qua;
37 41
 
38
-    @ExcelProperty("计价方式")
39
-    private String priceMtd;
42
+    @ExcelProperty("单位")
43
+    private String ut;
40 44
 
41 45
     @ExcelProperty("数量")
42 46
     private BigDecimal qty;
43 47
 
44
-    @ExcelProperty("采购汇率")
45
-    private BigDecimal ratePo;
46
-
47
-    @ExcelProperty("退税率 %")
48
-    private BigDecimal reTaxRate;
49
-
50
-    @ExcelProperty("资源号")
51
-    private String resourceNo;
52
-
53
-    @ExcelProperty("钢厂资源号")
54
-    private String smrNo;
55
-
56
-    @ExcelProperty("批次号")
57
-    private String batchNo;
58
-
59
-    @ExcelProperty("QP描述")
60
-    private String qpDesc;
61
-
62
-    @ExcelProperty("规格描述")
63
-    private String spec;
64
-
65
-    @ExcelProperty("件数")
66
-    private BigDecimal qua;
67
-
68 48
     @ExcelProperty("销售单价")
69 49
     private BigDecimal soPrice;
70 50
 
71
-    @ExcelProperty("")
72
-    private BigDecimal fnum3;
51
+    @ExcelProperty("金额")
52
+    private BigDecimal soAmt;
73 53
 
74
-    @ExcelProperty("米重")
75
-    private BigDecimal fnum4;
76
-
77
-    @ExcelProperty("捆数")
78
-    private BigDecimal fnum8;
79
-
80
-    @ExcelProperty("捆单重")
81
-    private BigDecimal fnum6;
54
+    @ExcelProperty("水分%")
55
+    private BigDecimal moisture;
82 56
 
83
-    @ExcelProperty("捆支数")
84
-    private BigDecimal fnum7;
57
+    @ExcelProperty("含铁量%")
58
+    private BigDecimal ironCont;
85 59
 
86 60
     @ExcelProperty("色标")
87 61
     private String ftype5;
88 62
 
89
-    @ExcelProperty("螺纹规格库")
90
-    private String ftype7;
91
-
92 63
     @ExcelProperty("计重方式")
93 64
     private String ftype4;
94 65
 
95
-    @ExcelProperty("净重")
96
-    private BigDecimal fnw;
66
+    @ExcelProperty("计价方式")
67
+    private String priceMtd;
97 68
 
98
-    @ExcelProperty("毛重")
99
-    private BigDecimal fgw;
69
+    @ExcelProperty("增值税率%")
70
+    private BigDecimal inTaxRate;
100 71
 
101
-    @ExcelProperty("税额")
102
-    private BigDecimal taxAmt;
72
+    @ExcelProperty("海关编码")
73
+    private String hsCode;
103 74
 
104
-    @ExcelProperty("单位")
105
-    private String ut;
75
+    @ExcelProperty("采购合同号")
76
+    private String pono;
106 77
 
107 78
     @ExcelProperty("装运港")
108 79
     private String lPort;
@@ -110,15 +81,75 @@ public class SalesDtlExcelDTO {
110 81
     @ExcelProperty("目的港")
111 82
     private String dPort;
112 83
 
113
-    @ExcelProperty("海关编码")
114
-    private String hsCode;
115
-
116
-    @ExcelProperty("海关中文名称")
117
-    private String hsNameCn;
118
-
119
-    @ExcelProperty("海关英文名称")
120
-    private String hsNameEn;
121
-
122
-    @ExcelProperty("备注")
123
-    private String remark;
84
+//    @ExcelProperty("采购币种")
85
+//    private String curcyPo;
86
+//
87
+//
88
+//    @ExcelProperty("煤焦计价水%")
89
+//    private BigDecimal coalMoisture;
90
+//
91
+//    @ExcelProperty("采购单价")
92
+//    private BigDecimal poprice;
93
+//
94
+//
95
+//
96
+//
97
+//
98
+//    @ExcelProperty("采购汇率")
99
+//    private BigDecimal ratePo;
100
+//
101
+//    @ExcelProperty("退税率 %")
102
+//    private BigDecimal reTaxRate;
103
+//
104
+//    @ExcelProperty("资源号")
105
+//    private String resourceNo;
106
+//
107
+//    @ExcelProperty("钢厂资源号")
108
+//    private String smrNo;
109
+//
110
+//
111
+//    @ExcelProperty("QP描述")
112
+//    private String qpDesc;
113
+//
114
+//
115
+//
116
+//    @ExcelProperty("米重")
117
+//    private BigDecimal fnum4;
118
+//
119
+//
120
+//
121
+//
122
+//
123
+//
124
+//
125
+//
126
+//
127
+//    @ExcelProperty("螺纹规格库")
128
+//    private String ftype7;
129
+//
130
+//
131
+//
132
+//    @ExcelProperty("净重")
133
+//    private BigDecimal fnw;
134
+//
135
+//    @ExcelProperty("毛重")
136
+//    private BigDecimal fgw;
137
+//
138
+//    @ExcelProperty("税额")
139
+//    private BigDecimal taxAmt;
140
+//
141
+//
142
+//
143
+//
144
+//
145
+//
146
+//
147
+//    @ExcelProperty("海关中文名称")
148
+//    private String hsNameCn;
149
+//
150
+//    @ExcelProperty("海关英文名称")
151
+//    private String hsNameEn;
152
+//
153
+//    @ExcelProperty("备注")
154
+//    private String remark;
124 155
 }

+ 3
- 0
src/main/java/com/example/backend/mapper/contract/DicMapper.java View File

@@ -33,4 +33,7 @@ public interface DicMapper extends BaseMapper<DataDic> {
33 33
     List<DataDic> selectByFtyped(@Param("ftype4") String ftype4);
34 34
 
35 35
     List<DataDic> selectByPaymentType(@Param("paymentType") String paymentType);
36
+
37
+    List<DataDic> selectDicByTerms(@Param("terms") String terms);
38
+
36 39
 }

+ 14
- 8
src/main/java/com/example/backend/mapper/contract/SysUserMapper.java View File

@@ -24,17 +24,23 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
24 24
 
25 25
     List<SysUser> selectByCtName(@Param("ctName") String ctName);
26 26
 
27
-    @Select("select    a.id,a.fname,a.fname1,\n" +
28
-            "          (select rate from SGGMIIP.curcydtl where a.id=rid and targetcode='CNY' and nvl(del_flag,0)<>1) as rate ,\n" +
29
-            "          (select rate from SGGMIIP.curcydtl where a.id=rid and targetcode='USD' and nvl(del_flag,0)<>1) rateUsd ,\n" +
30
-            "          (SELECT b.rate from  SGGMIIP.curcyctrl a\n" +
31
-            "                                   left join SGGMIIP.curcydtl b on a.id=rid\n" +
32
-            "           where targetcode='CNY' and a.fname='USD' and nvl(b.del_flag,0)<>1 and nvl(a.del_flag,0)<>1) as rateUs\n" +
27
+    @Select("select a.id,\n" +
28
+            "       a.fname,\n" +
29
+            "       a.fname1,\n" +
30
+            "       (select rate from SGGMIIP.curcydtl where a.id = rid and targetcode = 'CNY' and nvl(del_flag, 0) <> 1) as rate,\n" +
31
+            "       (select rate from SGGMIIP.curcydtl where a.id = rid and targetcode = 'USD' and nvl(del_flag, 0) <> 1)    rateUsd,\n" +
32
+            "       (SELECT b.rate\n" +
33
+            "        from SGGMIIP.curcyctrl a\n" +
34
+            "                 left join SGGMIIP.curcydtl b on a.id = rid\n" +
35
+            "        where targetcode = 'CNY'\n" +
36
+            "          and a.fname = 'USD'\n" +
37
+            "          and nvl(b.del_flag, 0) <> 1\n" +
38
+            "          and nvl(a.del_flag, 0) <> 1)                                                               as rateUs\n" +
33 39
             "from SGGMIIP.curcyctrl A\n" +
34 40
             "where ifnull(a.del_flag, 0) <> 1\n" +
35 41
             "  and ifnull(a.placed, '') = '2'\n" +
36
-            "  and a.fname =#{curcy}\n" +
37
-            "group by a.id,a.fname,a.fname1")
42
+            "  and a.fname = #{curcy}\n" +
43
+            "group by a.id, a.fname, a.fname1")
38 44
     List<SysUser> selectByCurcy(@Param("curcy") String curcy);
39 45
 
40 46
 

+ 626
- 1487
src/main/java/com/example/backend/service/contract/impl/SalesContractServiceImpl.java
File diff suppressed because it is too large
View File


+ 0
- 15
src/main/java/com/example/backend/util/ExcelUtil.java View File

@@ -31,21 +31,6 @@ public class ExcelUtil {
31 31
         List<SalesContractExcelDTO> dataList = listener.getDataList();
32 32
         System.out.println("主表读取到 " + dataList.size() + " 条数据");
33 33
 
34
-        // 打印表头信息用于调试
35
-        if (!dataList.isEmpty()) {
36
-            SalesContractExcelDTO firstRow = dataList.get(0);
37
-            System.out.println("=== 第一行数据详情 ===");
38
-            System.out.println("销售合同号: " + firstRow.getSono());
39
-            System.out.println("制单人代码: " + firstRow.getCreateBy());
40
-            System.out.println("业务类型: " + firstRow.getServiceType());
41
-            System.out.println("合同类型: " + firstRow.getBizType());
42
-            System.out.println("合同产品类型: " + firstRow.getBizProductType());
43
-            System.out.println("最迟集港日期: " + firstRow.getEstArrDt());
44
-            System.out.println("最迟装运日期: " + firstRow.getEstLoadDt());
45
-            System.out.println("预计客商占款天数: " + firstRow.getOutstandingDay());
46
-            // 可以根据需要打印更多字段...
47
-        }
48
-
49 34
         return dataList;
50 35
     }
51 36
 

+ 9
- 0
src/main/resources/mapper/DicMapper.xml View File

@@ -66,4 +66,13 @@
66 66
           and i.status = '0'
67 67
           and d.status = '0'
68 68
     </select>
69
+    <select id="selectDicByTerms" resultType="com.example.backend.entity.common.DataDic">
70
+        select d.dic_name, i.item_value
71
+        from SGGMIIP.data_dic d
72
+                 left join SGGMIIP.data_item i on d.id = i.dic_id
73
+        where i.item_value = #{terms}
74
+          and d.dic_name = '价格条款'
75
+          and i.status = '0'
76
+          and d.status = '0'
77
+    </select>
69 78
 </mapper>

Loading…
Cancel
Save