表单提交信息
parent
056c019576
commit
59997acf8f
@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2019-2020 Zheng Jie
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
package me.zhengjie.utils.enums;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 数据权限枚举
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Zheng Jie
|
||||||
|
* @date 2020-05-07
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum AmountScopeEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1-10万
|
||||||
|
*/
|
||||||
|
ONE_TO_TEN(1, "1-10万"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 10-20万
|
||||||
|
*/
|
||||||
|
TEN_TO_TWENTY(2, "10-20万"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 20-30
|
||||||
|
*/
|
||||||
|
TWENTY_TO_THIRTY(3, "20-30万"),
|
||||||
|
/**
|
||||||
|
* 30-60
|
||||||
|
*/
|
||||||
|
THIRTY_TO_SIXTY(4, "30-60万"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 大于60
|
||||||
|
*/
|
||||||
|
GREATER_SIXTY(5, "60+");
|
||||||
|
|
||||||
|
private final Integer value;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
public static AmountScopeEnum find(Integer val) {
|
||||||
|
for (AmountScopeEnum dataScopeEnum : AmountScopeEnum.values()) {
|
||||||
|
if (val.equals(dataScopeEnum.getValue())) {
|
||||||
|
return dataScopeEnum;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2019-2020 Zheng Jie
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
package me.zhengjie.modules.loan.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import me.zhengjie.annotation.Query;
|
||||||
|
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @website https://el-admin.vip
|
||||||
|
* @author x
|
||||||
|
* @date 2021-08-05
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
public class LoanUserQueryCriteria {
|
||||||
|
|
||||||
|
@Query(type = Query.Type.BETWEEN)
|
||||||
|
private List<Timestamp> createTime;
|
||||||
|
}
|
Loading…
Reference in New Issue