Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-product
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-product
Commits
dcd1ae42
Commit
dcd1ae42
authored
Dec 12, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
1054309f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
196 additions
and
6 deletions
+196
-6
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiExpectedCommissionRatioServiceImpl.java
+191
-4
yd-product-api/src/main/java/com/yd/product/api/utils/ProductCommonUtils.java
+0
-2
yd-product-feign/src/main/java/com/yd/product/feign/dto/ApiExpectedCommissionRatioBatchSaveDto.java
+5
-0
No files found.
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiExpectedCommissionRatioServiceImpl.java
View file @
dcd1ae42
This diff is collapsed.
Click to expand it.
yd-product-api/src/main/java/com/yd/product/api/utils/ProductCommonUtils.java
View file @
dcd1ae42
...
@@ -31,7 +31,6 @@ public class ProductCommonUtils {
...
@@ -31,7 +31,6 @@ public class ProductCommonUtils {
/**
/**
* 检查年限区间是否重叠
* 检查年限区间是否重叠
* 根据需求:1-3和3-5算重叠,1-3和4-7不算重叠
* @param start1
* @param start1
* @param end1
* @param end1
* @param start2
* @param start2
...
@@ -40,7 +39,6 @@ public class ProductCommonUtils {
...
@@ -40,7 +39,6 @@ public class ProductCommonUtils {
*/
*/
public
static
boolean
isYearRangeOverlap
(
int
start1
,
int
end1
,
int
start2
,
int
end2
)
{
public
static
boolean
isYearRangeOverlap
(
int
start1
,
int
end1
,
int
start2
,
int
end2
)
{
// 两个区间重叠的条件:区间1的结束年份 >= 区间2的开始年份
// 两个区间重叠的条件:区间1的结束年份 >= 区间2的开始年份
// 例如:1-3和3-5重叠(3>=3),1-3和4-7不重叠(3<4)
return
Math
.
max
(
start1
,
start2
)
<=
Math
.
min
(
end1
,
end2
);
return
Math
.
max
(
start1
,
start2
)
<=
Math
.
min
(
end1
,
end2
);
}
}
...
...
yd-product-feign/src/main/java/com/yd/product/feign/dto/ApiExpectedCommissionRatioBatchSaveDto.java
View file @
dcd1ae42
...
@@ -87,4 +87,9 @@ public class ApiExpectedCommissionRatioBatchSaveDto {
...
@@ -87,4 +87,9 @@ public class ApiExpectedCommissionRatioBatchSaveDto {
*/
*/
@NotNull
(
message
=
"状态不能为空"
)
@NotNull
(
message
=
"状态不能为空"
)
private
Integer
status
;
private
Integer
status
;
/**
* 通用备注
*/
private
String
remark
;
}
}
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