Browse Source

Merge remote-tracking branch 'origin/master'

luoyb 1 month ago
parent
commit
9411734056

+ 21 - 19
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/consumption/domain/XfTerm.java

@@ -4,6 +4,8 @@ import org.dromara.common.tenant.core.TenantEntity;
4
 import com.baomidou.mybatisplus.annotation.*;
4
 import com.baomidou.mybatisplus.annotation.*;
5
 import lombok.Data;
5
 import lombok.Data;
6
 import lombok.EqualsAndHashCode;
6
 import lombok.EqualsAndHashCode;
7
+
8
+import java.math.BigDecimal;
7
 import java.util.Date;
9
 import java.util.Date;
8
 
10
 
9
 import java.io.Serial;
11
 import java.io.Serial;
@@ -161,72 +163,72 @@ public class XfTerm extends TenantEntity {
161
     /**
163
     /**
162
      * 卡上最大金额
164
      * 卡上最大金额
163
      */
165
      */
164
-    private Long maxCardMoney;
166
+    private BigDecimal maxCardMoney;
165
 
167
 
166
     /**
168
     /**
167
      * 定值消费金额
169
      * 定值消费金额
168
      */
170
      */
169
-    private Long constantValue;
171
+    private BigDecimal constantValue;
170
 
172
 
171
     /**
173
     /**
172
      * 编号0代表的金额
174
      * 编号0代表的金额
173
      */
175
      */
174
-    private Long rationZero;
176
+    private BigDecimal rationZero;
175
 
177
 
176
     /**
178
     /**
177
      * 编号1代表的金额
179
      * 编号1代表的金额
178
      */
180
      */
179
-    private Long rationOne;
181
+    private BigDecimal rationOne;
180
 
182
 
181
     /**
183
     /**
182
      * 编号2代表的金额
184
      * 编号2代表的金额
183
      */
185
      */
184
-    private Long rationTwo;
186
+    private BigDecimal rationTwo;
185
 
187
 
186
     /**
188
     /**
187
      * 编号3代表的金额
189
      * 编号3代表的金额
188
      */
190
      */
189
-    private Long rationThree;
191
+    private BigDecimal rationThree;
190
 
192
 
191
     /**
193
     /**
192
      * 编号4代表的金额
194
      * 编号4代表的金额
193
      */
195
      */
194
-    private Long rationFour;
196
+    private BigDecimal rationFour;
195
 
197
 
196
     /**
198
     /**
197
      * 编号5代表的金额
199
      * 编号5代表的金额
198
      */
200
      */
199
-    private Long rationFive;
201
+    private BigDecimal rationFive;
200
 
202
 
201
     /**
203
     /**
202
      * 编号6代表的金额
204
      * 编号6代表的金额
203
      */
205
      */
204
-    private Long rationSix;
206
+    private BigDecimal rationSix;
205
 
207
 
206
     /**
208
     /**
207
      * 编号7代表的金额
209
      * 编号7代表的金额
208
      */
210
      */
209
-    private Long rationSeven;
211
+    private BigDecimal rationSeven;
210
 
212
 
211
     /**
213
     /**
212
      * 编号8代表的金额
214
      * 编号8代表的金额
213
      */
215
      */
214
-    private Long rationEight;
216
+    private BigDecimal rationEight;
215
 
217
 
216
     /**
218
     /**
217
      * 编号9代表的金额
219
      * 编号9代表的金额
218
      */
220
      */
219
-    private Long rationNine;
221
+    private BigDecimal rationNine;
220
 
222
 
221
     /**
223
     /**
222
      * 每天最大消费次数,0-不限
224
      * 每天最大消费次数,0-不限
223
      */
225
      */
224
-    private Long dayCount;
226
+    private BigDecimal dayCount;
225
 
227
 
226
     /**
228
     /**
227
      * 每天最大消费金额
229
      * 每天最大消费金额
228
      */
230
      */
229
-    private Long dayMoney;
231
+    private BigDecimal dayMoney;
230
 
232
 
231
     /**
233
     /**
232
      * 每餐最大消费次数,0-不限
234
      * 每餐最大消费次数,0-不限
@@ -236,27 +238,27 @@ public class XfTerm extends TenantEntity {
236
     /**
238
     /**
237
      * 单次最大消费金额
239
      * 单次最大消费金额
238
      */
240
      */
239
-    private Long singleMoney;
241
+    private BigDecimal singleMoney;
240
 
242
 
241
     /**
243
     /**
242
      * 早餐消费金额
244
      * 早餐消费金额
243
      */
245
      */
244
-    private Long breakfastMoney;
246
+    private BigDecimal breakfastMoney;
245
 
247
 
246
     /**
248
     /**
247
      * 午餐消费金额
249
      * 午餐消费金额
248
      */
250
      */
249
-    private Long lunchMoney;
251
+    private BigDecimal lunchMoney;
250
 
252
 
251
     /**
253
     /**
252
      * 晚餐消费金额
254
      * 晚餐消费金额
253
      */
255
      */
254
-    private Long supperMoney;
256
+    private BigDecimal supperMoney;
255
 
257
 
256
     /**
258
     /**
257
      * 夜宵消费金额
259
      * 夜宵消费金额
258
      */
260
      */
259
-    private Long nightMoney;
261
+    private BigDecimal nightMoney;
260
 
262
 
261
     /**
263
     /**
262
      * 早餐开始时间
264
      * 早餐开始时间

+ 19 - 18
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/consumption/domain/bo/XfTermBo.java

@@ -10,6 +10,7 @@ import lombok.EqualsAndHashCode;
10
 import jakarta.validation.constraints.*;
10
 import jakarta.validation.constraints.*;
11
 
11
 
12
 import java.io.Serial;
12
 import java.io.Serial;
13
+import java.math.BigDecimal;
13
 import java.util.Date;
14
 import java.util.Date;
14
 
15
 
15
 /**
16
 /**
@@ -177,62 +178,62 @@ public class XfTermBo extends BaseEntity {
177
      * 卡上最大金额
178
      * 卡上最大金额
178
      */
179
      */
179
 //    @NotNull(message = "卡上最大金额不能为空", groups = { AddGroup.class, EditGroup.class })
180
 //    @NotNull(message = "卡上最大金额不能为空", groups = { AddGroup.class, EditGroup.class })
180
-    private Long maxCardMoney;
181
+    private BigDecimal maxCardMoney;
181
 
182
 
182
     /**
183
     /**
183
      * 定值消费金额
184
      * 定值消费金额
184
      */
185
      */
185
-    private Long constantValue;
186
+    private BigDecimal constantValue;
186
 
187
 
187
     /**
188
     /**
188
      * 编号0代表的金额
189
      * 编号0代表的金额
189
      */
190
      */
190
-    private Long rationZero;
191
+    private BigDecimal rationZero;
191
 
192
 
192
     /**
193
     /**
193
      * 编号1代表的金额
194
      * 编号1代表的金额
194
      */
195
      */
195
-    private Long rationOne;
196
+    private BigDecimal rationOne;
196
 
197
 
197
     /**
198
     /**
198
      * 编号2代表的金额
199
      * 编号2代表的金额
199
      */
200
      */
200
-    private Long rationTwo;
201
+    private BigDecimal rationTwo;
201
 
202
 
202
     /**
203
     /**
203
      * 编号3代表的金额
204
      * 编号3代表的金额
204
      */
205
      */
205
-    private Long rationThree;
206
+    private BigDecimal rationThree;
206
 
207
 
207
     /**
208
     /**
208
      * 编号4代表的金额
209
      * 编号4代表的金额
209
      */
210
      */
210
-    private Long rationFour;
211
+    private BigDecimal rationFour;
211
 
212
 
212
     /**
213
     /**
213
      * 编号5代表的金额
214
      * 编号5代表的金额
214
      */
215
      */
215
-    private Long rationFive;
216
+    private BigDecimal rationFive;
216
 
217
 
217
     /**
218
     /**
218
      * 编号6代表的金额
219
      * 编号6代表的金额
219
      */
220
      */
220
-    private Long rationSix;
221
+    private BigDecimal rationSix;
221
 
222
 
222
     /**
223
     /**
223
      * 编号7代表的金额
224
      * 编号7代表的金额
224
      */
225
      */
225
-    private Long rationSeven;
226
+    private BigDecimal rationSeven;
226
 
227
 
227
     /**
228
     /**
228
      * 编号8代表的金额
229
      * 编号8代表的金额
229
      */
230
      */
230
-    private Long rationEight;
231
+    private BigDecimal rationEight;
231
 
232
 
232
     /**
233
     /**
233
      * 编号9代表的金额
234
      * 编号9代表的金额
234
      */
235
      */
235
-    private Long rationNine;
236
+    private BigDecimal rationNine;
236
 
237
 
237
     /**
238
     /**
238
      * 每天最大消费次数,0-不限
239
      * 每天最大消费次数,0-不限
@@ -247,32 +248,32 @@ public class XfTermBo extends BaseEntity {
247
     /**
248
     /**
248
      * 每餐最大消费次数,0-不限
249
      * 每餐最大消费次数,0-不限
249
      */
250
      */
250
-    private Long mealCount;
251
+    private BigDecimal mealCount;
251
 
252
 
252
     /**
253
     /**
253
      * 单次最大消费金额
254
      * 单次最大消费金额
254
      */
255
      */
255
-    private Long singleMoney;
256
+    private BigDecimal singleMoney;
256
 
257
 
257
     /**
258
     /**
258
      * 早餐消费金额
259
      * 早餐消费金额
259
      */
260
      */
260
-    private Long breakfastMoney;
261
+    private BigDecimal breakfastMoney;
261
 
262
 
262
     /**
263
     /**
263
      * 午餐消费金额
264
      * 午餐消费金额
264
      */
265
      */
265
-    private Long lunchMoney;
266
+    private BigDecimal lunchMoney;
266
 
267
 
267
     /**
268
     /**
268
      * 晚餐消费金额
269
      * 晚餐消费金额
269
      */
270
      */
270
-    private Long supperMoney;
271
+    private BigDecimal supperMoney;
271
 
272
 
272
     /**
273
     /**
273
      * 夜宵消费金额
274
      * 夜宵消费金额
274
      */
275
      */
275
-    private Long nightMoney;
276
+    private BigDecimal nightMoney;
276
 
277
 
277
     /**
278
     /**
278
      * 早餐开始时间
279
      * 早餐开始时间

+ 19 - 18
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/consumption/domain/bo/XfTermParamBo.java

@@ -10,6 +10,7 @@ import org.dromara.common.core.validate.AddGroup;
10
 import org.dromara.common.core.validate.EditGroup;
10
 import org.dromara.common.core.validate.EditGroup;
11
 import org.dromara.common.mybatis.core.domain.BaseEntity;
11
 import org.dromara.common.mybatis.core.domain.BaseEntity;
12
 
12
 
13
+import java.math.BigDecimal;
13
 import java.util.Date;
14
 import java.util.Date;
14
 
15
 
15
 /**
16
 /**
@@ -166,62 +167,62 @@ public class XfTermParamBo extends BaseEntity {
166
      * 卡上最大金额
167
      * 卡上最大金额
167
      */
168
      */
168
     @NotNull(message = "卡上最大金额不能为空")
169
     @NotNull(message = "卡上最大金额不能为空")
169
-    private Long maxCardMoney;
170
+    private BigDecimal maxCardMoney;
170
 
171
 
171
     /**
172
     /**
172
      * 定值消费金额
173
      * 定值消费金额
173
      */
174
      */
174
-    private Long constantValue;
175
+    private BigDecimal constantValue;
175
 
176
 
176
     /**
177
     /**
177
      * 编号0代表的金额
178
      * 编号0代表的金额
178
      */
179
      */
179
-    private Long rationZero;
180
+    private BigDecimal rationZero;
180
 
181
 
181
     /**
182
     /**
182
      * 编号1代表的金额
183
      * 编号1代表的金额
183
      */
184
      */
184
-    private Long rationOne;
185
+    private BigDecimal rationOne;
185
 
186
 
186
     /**
187
     /**
187
      * 编号2代表的金额
188
      * 编号2代表的金额
188
      */
189
      */
189
-    private Long rationTwo;
190
+    private BigDecimal rationTwo;
190
 
191
 
191
     /**
192
     /**
192
      * 编号3代表的金额
193
      * 编号3代表的金额
193
      */
194
      */
194
-    private Long rationThree;
195
+    private BigDecimal rationThree;
195
 
196
 
196
     /**
197
     /**
197
      * 编号4代表的金额
198
      * 编号4代表的金额
198
      */
199
      */
199
-    private Long rationFour;
200
+    private BigDecimal rationFour;
200
 
201
 
201
     /**
202
     /**
202
      * 编号5代表的金额
203
      * 编号5代表的金额
203
      */
204
      */
204
-    private Long rationFive;
205
+    private BigDecimal rationFive;
205
 
206
 
206
     /**
207
     /**
207
      * 编号6代表的金额
208
      * 编号6代表的金额
208
      */
209
      */
209
-    private Long rationSix;
210
+    private BigDecimal rationSix;
210
 
211
 
211
     /**
212
     /**
212
      * 编号7代表的金额
213
      * 编号7代表的金额
213
      */
214
      */
214
-    private Long rationSeven;
215
+    private BigDecimal rationSeven;
215
 
216
 
216
     /**
217
     /**
217
      * 编号8代表的金额
218
      * 编号8代表的金额
218
      */
219
      */
219
-    private Long rationEight;
220
+    private BigDecimal rationEight;
220
 
221
 
221
     /**
222
     /**
222
      * 编号9代表的金额
223
      * 编号9代表的金额
223
      */
224
      */
224
-    private Long rationNine;
225
+    private BigDecimal rationNine;
225
 
226
 
226
     /**
227
     /**
227
      * 每天最大消费次数,0-不限
228
      * 每天最大消费次数,0-不限
@@ -231,7 +232,7 @@ public class XfTermParamBo extends BaseEntity {
231
     /**
232
     /**
232
      * 每天最大消费金额
233
      * 每天最大消费金额
233
      */
234
      */
234
-    private Long dayMoney;
235
+    private BigDecimal dayMoney;
235
 
236
 
236
     /**
237
     /**
237
      * 每餐最大消费次数,0-不限
238
      * 每餐最大消费次数,0-不限
@@ -241,27 +242,27 @@ public class XfTermParamBo extends BaseEntity {
241
     /**
242
     /**
242
      * 单次最大消费金额
243
      * 单次最大消费金额
243
      */
244
      */
244
-    private Long singleMoney;
245
+    private BigDecimal singleMoney;
245
 
246
 
246
     /**
247
     /**
247
      * 早餐消费金额
248
      * 早餐消费金额
248
      */
249
      */
249
-    private Long breakfastMoney;
250
+    private BigDecimal breakfastMoney;
250
 
251
 
251
     /**
252
     /**
252
      * 午餐消费金额
253
      * 午餐消费金额
253
      */
254
      */
254
-    private Long lunchMoney;
255
+    private BigDecimal lunchMoney;
255
 
256
 
256
     /**
257
     /**
257
      * 晚餐消费金额
258
      * 晚餐消费金额
258
      */
259
      */
259
-    private Long supperMoney;
260
+    private BigDecimal supperMoney;
260
 
261
 
261
     /**
262
     /**
262
      * 夜宵消费金额
263
      * 夜宵消费金额
263
      */
264
      */
264
-    private Long nightMoney;
265
+    private BigDecimal nightMoney;
265
 
266
 
266
     /**
267
     /**
267
      * 早餐开始时间
268
      * 早餐开始时间

+ 19 - 18
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/consumption/domain/vo/XfTermParamVo.java

@@ -13,6 +13,7 @@ import org.dromara.common.excel.convert.ExcelDictConvert;
13
 
13
 
14
 import java.io.Serial;
14
 import java.io.Serial;
15
 import java.io.Serializable;
15
 import java.io.Serializable;
16
+import java.math.BigDecimal;
16
 import java.util.Date;
17
 import java.util.Date;
17
 
18
 
18
 
19
 
@@ -167,62 +168,62 @@ public class XfTermParamVo implements Serializable {
167
     /**
168
     /**
168
      * 卡上最大金额
169
      * 卡上最大金额
169
      */
170
      */
170
-    private Long maxCardMoney;
171
+    private BigDecimal maxCardMoney;
171
 
172
 
172
     /**
173
     /**
173
      * 定值消费金额
174
      * 定值消费金额
174
      */
175
      */
175
-    private Long constantValue;
176
+    private BigDecimal constantValue;
176
 
177
 
177
     /**
178
     /**
178
      * 编号0代表的金额
179
      * 编号0代表的金额
179
      */
180
      */
180
-    private Long rationZero;
181
+    private BigDecimal rationZero;
181
 
182
 
182
     /**
183
     /**
183
      * 编号1代表的金额
184
      * 编号1代表的金额
184
      */
185
      */
185
-    private Long rationOne;
186
+    private BigDecimal rationOne;
186
 
187
 
187
     /**
188
     /**
188
      * 编号2代表的金额
189
      * 编号2代表的金额
189
      */
190
      */
190
-    private Long rationTwo;
191
+    private BigDecimal rationTwo;
191
 
192
 
192
     /**
193
     /**
193
      * 编号3代表的金额
194
      * 编号3代表的金额
194
      */
195
      */
195
-    private Long rationThree;
196
+    private BigDecimal rationThree;
196
 
197
 
197
     /**
198
     /**
198
      * 编号4代表的金额
199
      * 编号4代表的金额
199
      */
200
      */
200
-    private Long rationFour;
201
+    private BigDecimal rationFour;
201
 
202
 
202
     /**
203
     /**
203
      * 编号5代表的金额
204
      * 编号5代表的金额
204
      */
205
      */
205
-    private Long rationFive;
206
+    private BigDecimal rationFive;
206
 
207
 
207
     /**
208
     /**
208
      * 编号6代表的金额
209
      * 编号6代表的金额
209
      */
210
      */
210
-    private Long rationSix;
211
+    private BigDecimal rationSix;
211
 
212
 
212
     /**
213
     /**
213
      * 编号7代表的金额
214
      * 编号7代表的金额
214
      */
215
      */
215
-    private Long rationSeven;
216
+    private BigDecimal rationSeven;
216
 
217
 
217
     /**
218
     /**
218
      * 编号8代表的金额
219
      * 编号8代表的金额
219
      */
220
      */
220
-    private Long rationEight;
221
+    private BigDecimal rationEight;
221
 
222
 
222
     /**
223
     /**
223
      * 编号9代表的金额
224
      * 编号9代表的金额
224
      */
225
      */
225
-    private Long rationNine;
226
+    private BigDecimal rationNine;
226
 
227
 
227
     /**
228
     /**
228
      * 每天最大消费次数,0-不限
229
      * 每天最大消费次数,0-不限
@@ -232,7 +233,7 @@ public class XfTermParamVo implements Serializable {
232
     /**
233
     /**
233
      * 每天最大消费金额
234
      * 每天最大消费金额
234
      */
235
      */
235
-    private Long dayMoney;
236
+    private BigDecimal dayMoney;
236
 
237
 
237
     /**
238
     /**
238
      * 每餐最大消费次数,0-不限
239
      * 每餐最大消费次数,0-不限
@@ -242,27 +243,27 @@ public class XfTermParamVo implements Serializable {
242
     /**
243
     /**
243
      * 单次最大消费金额
244
      * 单次最大消费金额
244
      */
245
      */
245
-    private Long singleMoney;
246
+    private BigDecimal singleMoney;
246
 
247
 
247
     /**
248
     /**
248
      * 早餐消费金额
249
      * 早餐消费金额
249
      */
250
      */
250
-    private Long breakfastMoney;
251
+    private BigDecimal breakfastMoney;
251
 
252
 
252
     /**
253
     /**
253
      * 午餐消费金额
254
      * 午餐消费金额
254
      */
255
      */
255
-    private Long lunchMoney;
256
+    private BigDecimal lunchMoney;
256
 
257
 
257
     /**
258
     /**
258
      * 晚餐消费金额
259
      * 晚餐消费金额
259
      */
260
      */
260
-    private Long supperMoney;
261
+    private BigDecimal supperMoney;
261
 
262
 
262
     /**
263
     /**
263
      * 夜宵消费金额
264
      * 夜宵消费金额
264
      */
265
      */
265
-    private Long nightMoney;
266
+    private BigDecimal nightMoney;
266
 
267
 
267
     /**
268
     /**
268
      * 早餐开始时间
269
      * 早餐开始时间

+ 12 - 4
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/payment/service/impl/PtUserAccountServiceImpl.java

@@ -9,7 +9,6 @@ import org.apache.dubbo.config.annotation.DubboReference;
9
 import org.dromara.backstage.cardCenter.service.IPtCardService;
9
 import org.dromara.backstage.cardCenter.service.IPtCardService;
10
 import org.dromara.backstage.payment.domain.vo.PtUserAccount4SelectVo;
10
 import org.dromara.backstage.payment.domain.vo.PtUserAccount4SelectVo;
11
 import org.dromara.backstage.payment.service.IPtBagService;
11
 import org.dromara.backstage.payment.service.IPtBagService;
12
-import org.dromara.common.core.domain.R;
13
 import org.dromara.common.core.utils.MapstructUtils;
12
 import org.dromara.common.core.utils.MapstructUtils;
14
 import org.dromara.common.core.utils.StringUtils;
13
 import org.dromara.common.core.utils.StringUtils;
15
 import org.dromara.common.core.utils.file.FileUtils;
14
 import org.dromara.common.core.utils.file.FileUtils;
@@ -88,7 +87,10 @@ public class PtUserAccountServiceImpl implements IPtUserAccountService {
88
     @Override
87
     @Override
89
     public TableDataInfo<PtUserAccount4SelectVo> queryPageList4Select(PtUserAccountBo bo, PageQuery pageQuery) {
88
     public TableDataInfo<PtUserAccount4SelectVo> queryPageList4Select(PtUserAccountBo bo, PageQuery pageQuery) {
90
         // 方法1. 使用子查询,使得where 后 只有一个表(效率会低点) 方法2. 使用queryWrapper 自己指定字段,字段名带表别名
89
         // 方法1. 使用子查询,使得where 后 只有一个表(效率会低点) 方法2. 使用queryWrapper 自己指定字段,字段名带表别名
91
-        QueryWrapper<PtUserAccount> wrapper = buildQueryWrapper(bo, "u");
90
+        QueryWrapper<PtUserAccount> wrapper = buildQueryWrapper4Select(bo, "u");
91
+        if(bo.getDeptId() != null){
92
+            wrapper.and(wrapper1 -> wrapper1.eq("u.dept_id", bo.getDeptId()).or().like("a.ancestors", bo.getDeptId()));
93
+        }
92
         wrapper.orderByAsc("u.dept_id").orderByAsc("u.user_id");
94
         wrapper.orderByAsc("u.dept_id").orderByAsc("u.user_id");
93
         Page<PtUserAccount4SelectVo> result = baseMapper.customPageList(pageQuery.build(), wrapper);
95
         Page<PtUserAccount4SelectVo> result = baseMapper.customPageList(pageQuery.build(), wrapper);
94
         return TableDataInfo.build(result);
96
         return TableDataInfo.build(result);
@@ -142,14 +144,20 @@ public class PtUserAccountServiceImpl implements IPtUserAccountService {
142
         return lqw;
144
         return lqw;
143
     }
145
     }
144
 
146
 
145
-    private QueryWrapper<PtUserAccount> buildQueryWrapper(PtUserAccountBo bo,String tableAlias) {
147
+    /**
148
+     * 给一卡通账户列表查询条件使用
149
+     * @param bo
150
+     * @param tableAlias
151
+     * @return
152
+     */
153
+    private QueryWrapper<PtUserAccount> buildQueryWrapper4Select(PtUserAccountBo bo, String tableAlias) {
146
         QueryWrapper<PtUserAccount> wrapper = new QueryWrapper<>();
154
         QueryWrapper<PtUserAccount> wrapper = new QueryWrapper<>();
147
         String columnPrefix = "";
155
         String columnPrefix = "";
148
         if(StringUtils.isNotBlank(tableAlias)){
156
         if(StringUtils.isNotBlank(tableAlias)){
149
             columnPrefix = tableAlias + ".";
157
             columnPrefix = tableAlias + ".";
150
         }
158
         }
151
         wrapper.eq(bo.getPostId() != null, columnPrefix+"post_id", bo.getPostId());
159
         wrapper.eq(bo.getPostId() != null, columnPrefix+"post_id", bo.getPostId());
152
-        wrapper.eq(bo.getDeptId() != null, columnPrefix+"dept_id", bo.getDeptId());
160
+//        wrapper.like(bo.getDeptId() != null, columnPrefix+"dept_id", bo.getDeptId());
153
         wrapper.eq(StringUtils.isNotBlank(bo.getUserNumb()), columnPrefix+"user_numb", bo.getUserNumb());
161
         wrapper.eq(StringUtils.isNotBlank(bo.getUserNumb()), columnPrefix+"user_numb", bo.getUserNumb());
154
         wrapper.like(StringUtils.isNotBlank(bo.getRealName()), columnPrefix+"real_name", bo.getRealName());
162
         wrapper.like(StringUtils.isNotBlank(bo.getRealName()), columnPrefix+"real_name", bo.getRealName());
155
         wrapper.eq(StringUtils.isNotBlank(bo.getAccountStatus()), columnPrefix+"account_status", bo.getAccountStatus());
163
         wrapper.eq(StringUtils.isNotBlank(bo.getAccountStatus()), columnPrefix+"account_status", bo.getAccountStatus());

+ 4 - 2
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm

@@ -1,10 +1,12 @@
1
 <template>
1
 <template>
2
-  <div class="p-2">
2
+  <div class="p-2 auto-overflow-y">
3
     <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
3
     <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
4
       <div v-show="showSearch" class="search">
4
       <div v-show="showSearch" class="search">
5
         <el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="68px" class="-mb-15px">
5
         <el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="68px" class="-mb-15px">
6
+#set($queryColumns=0)
6
 #foreach($column in $columns)
7
 #foreach($column in $columns)
7
 #if($column.query)
8
 #if($column.query)
9
+#set($queryColumns = $queryColumns + 1)
8
 #set($dictType=$column.dictType)
10
 #set($dictType=$column.dictType)
9
 #set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
11
 #set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
10
 #set($parentheseIndex=$column.columnComment.indexOf("("))
12
 #set($parentheseIndex=$column.columnComment.indexOf("("))
@@ -81,7 +83,7 @@
81
         </el-row>
83
         </el-row>
82
       </template>
84
       </template>
83
 
85
 
84
-      <el-table v-loading="loading" :data="${businessName}List" @selection-change="handleSelectionChange">
86
+      <el-table v-loading="loading" :data="${businessName}List" max-height="#if($queryColumns > 3)400#else 500#end" @selection-change="handleSelectionChange">
85
         <el-table-column type="selection" width="55" align="center" />
87
         <el-table-column type="selection" width="55" align="center" />
86
 #set($aIndex = 0)
88
 #set($aIndex = 0)
87
 #foreach($column in $columns)
89
 #foreach($column in $columns)