Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
b08a229e
Commit
b08a229e
authored
Feb 26, 2025
by
332784038@qq.com
Committed by
wux
Feb 27, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数类型bug修复
parent
793d34cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
CurrencyRateMapper.java
...module/ecw/dal/mysql/currencyRate/CurrencyRateMapper.java
+2
-5
CurrencyRateQueryParamVO.java
.../module/ecw/vo/currencyRate/CurrencyRateQueryParamVO.java
+3
-1
No files found.
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/dal/mysql/currencyRate/CurrencyRateMapper.java
View file @
b08a229e
...
@@ -9,17 +9,14 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
...
@@ -9,17 +9,14 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.util.Arrays
;
import
java.util.*
;
import
java.util.Collections
;
import
java.util.Optional
;
import
java.util.Set
;
import
java.util.function.Consumer
;
import
java.util.function.Consumer
;
@Mapper
@Mapper
public
interface
CurrencyRateMapper
extends
AbstractMapper
<
CurrencyRateDO
>
{
public
interface
CurrencyRateMapper
extends
AbstractMapper
<
CurrencyRateDO
>
{
default
PageResult
<
CurrencyRateDO
>
selectPage
(
CurrencyRateQueryParamVO
param
)
{
default
PageResult
<
CurrencyRateDO
>
selectPage
(
CurrencyRateQueryParamVO
param
)
{
LocalDate
now
=
LocalDate
.
now
();
LocalDate
now
=
LocalDate
.
now
();
Set
<
Long
>
countries
=
Optional
.
ofNullable
(
param
.
getCountries
()).
orElse
(
Collections
.
emptySe
t
());
List
<
Long
>
countries
=
Optional
.
ofNullable
(
param
.
getCountries
()).
orElse
(
Collections
.
emptyLis
t
());
Consumer
<
LambdaQueryWrapper
<
CurrencyRateDO
>>
countriesQuery
=
it
->
Consumer
<
LambdaQueryWrapper
<
CurrencyRateDO
>>
countriesQuery
=
it
->
countries
.
stream
().
limit
(
5
).
forEach
(
id
->
countries
.
stream
().
limit
(
5
).
forEach
(
id
->
it
.
or
().
apply
(
"json_contains(`countries`, {0})"
,
String
.
valueOf
(
id
)));
it
.
or
().
apply
(
"json_contains(`countries`, {0})"
,
String
.
valueOf
(
id
)));
...
...
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/vo/currencyRate/CurrencyRateQueryParamVO.java
View file @
b08a229e
...
@@ -8,6 +8,8 @@ import org.hibernate.validator.constraints.Length;
...
@@ -8,6 +8,8 @@ import org.hibernate.validator.constraints.Length;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY
;
...
@@ -23,7 +25,7 @@ public class CurrencyRateQueryParamVO extends PageParam {
...
@@ -23,7 +25,7 @@ public class CurrencyRateQueryParamVO extends PageParam {
@ApiModelProperty
(
value
=
"国家(最多五个)"
)
@ApiModelProperty
(
value
=
"国家(最多五个)"
)
// @Length(max = 5)
// @Length(max = 5)
private
Se
t
<
Long
>
countries
;
private
Lis
t
<
Long
>
countries
;
@ApiModelProperty
(
value
=
"状态"
)
@ApiModelProperty
(
value
=
"状态"
)
private
Boolean
expired
;
private
Boolean
expired
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment