1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| package com.ycl.utils.common;
|
| import com.ycl.constant.SysConst;
|
| /**
| * <p>
| * pojo工具类,dto,vo,使用
| * </p>
| *
| * @author Lyq
| * @version 1.0
| * @date 2022/9/7
| */
| public class PojoUtils {
|
| private PojoUtils() {
| }
|
| static public class Vo{
| private Vo(){
|
| }
| /**
| * 前端combobox通过VO传递到后台的值是否是有效的查询条件。
| * 前端选(全部)时就不是有效的查询参数,在查询条件中去掉
| * @param n 传入的变量
| * @return 是否是有效查询参数
| */
| public static boolean isUsefulSearchParam(Number n){
|
| return n != null && n.intValue() != SysConst.COMBOBOX_ALL;
| }
| }
| }
|
|