Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
f7156f0e
Commit
f7156f0e
authored
Dec 05, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收入优化
parent
92720647
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
2 deletions
+43
-2
TIncomeDetailMapper.java
...cloud/plus/v1/yifu/social/mapper/TIncomeDetailMapper.java
+8
-0
TIncomeDetailService.java
...oud/plus/v1/yifu/social/service/TIncomeDetailService.java
+9
-0
TIncomeDetailServiceImpl.java
...v1/yifu/social/service/impl/TIncomeDetailServiceImpl.java
+11
-0
TIncomeServiceImpl.java
.../plus/v1/yifu/social/service/impl/TIncomeServiceImpl.java
+3
-2
TIncomeDetailMapper.xml
...ial-biz/src/main/resources/mapper/TIncomeDetailMapper.xml
+12
-0
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TIncomeDetailMapper.java
View file @
f7156f0e
...
@@ -33,4 +33,12 @@ import java.util.List;
...
@@ -33,4 +33,12 @@ import java.util.List;
@Mapper
@Mapper
public
interface
TIncomeDetailMapper
extends
BaseMapper
<
TIncomeDetail
>
{
public
interface
TIncomeDetailMapper
extends
BaseMapper
<
TIncomeDetail
>
{
List
<
TIncomeDetail
>
getTIncomeDetailList
(
@Param
(
"tIncomeDetail"
)
TIncomeDetail
tIncomeDetail
);
List
<
TIncomeDetail
>
getTIncomeDetailList
(
@Param
(
"tIncomeDetail"
)
TIncomeDetail
tIncomeDetail
);
/**
* @Description: 获取重复性
* @Author: hgw
* @Date: 2022/12/5 11:16
* @return: int
**/
int
getTIncomeDetailRepeat
(
@Param
(
"tIncomeDetail"
)
TIncomeDetail
detail
);
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TIncomeDetailService.java
View file @
f7156f0e
...
@@ -30,4 +30,13 @@ import java.util.List;
...
@@ -30,4 +30,13 @@ import java.util.List;
*/
*/
public
interface
TIncomeDetailService
extends
IService
<
TIncomeDetail
>
{
public
interface
TIncomeDetailService
extends
IService
<
TIncomeDetail
>
{
List
<
TIncomeDetail
>
getTIncomeDetailList
(
TIncomeDetail
detail
);
List
<
TIncomeDetail
>
getTIncomeDetailList
(
TIncomeDetail
detail
);
/**
* @Description: 获取重复性
* @Author: hgw
* @Date: 2022/12/5 11:16
* @return: int
**/
int
getTIncomeDetailRepeat
(
TIncomeDetail
detail
);
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TIncomeDetailServiceImpl.java
View file @
f7156f0e
...
@@ -39,4 +39,15 @@ public class TIncomeDetailServiceImpl extends ServiceImpl<TIncomeDetailMapper, T
...
@@ -39,4 +39,15 @@ public class TIncomeDetailServiceImpl extends ServiceImpl<TIncomeDetailMapper, T
public
List
<
TIncomeDetail
>
getTIncomeDetailList
(
TIncomeDetail
detail
)
{
public
List
<
TIncomeDetail
>
getTIncomeDetailList
(
TIncomeDetail
detail
)
{
return
baseMapper
.
getTIncomeDetailList
(
detail
);
return
baseMapper
.
getTIncomeDetailList
(
detail
);
}
}
/**
* @Description: 获取重复性
* @Author: hgw
* @Date: 2022/12/5 11:16
* @return: int
**/
@Override
public
int
getTIncomeDetailRepeat
(
TIncomeDetail
detail
)
{
return
baseMapper
.
getTIncomeDetailRepeat
(
detail
);
}
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TIncomeServiceImpl.java
View file @
f7156f0e
...
@@ -578,12 +578,13 @@ public class TIncomeServiceImpl extends ServiceImpl<TIncomeMapper, TIncome> impl
...
@@ -578,12 +578,13 @@ public class TIncomeServiceImpl extends ServiceImpl<TIncomeMapper, TIncome> impl
if
(
Common
.
isNotNull
(
tIncomeDetail
.
getSourceId
()))
{
if
(
Common
.
isNotNull
(
tIncomeDetail
.
getSourceId
()))
{
// 如果该id、该类型的金额已存在,则不允许重复生成推送
// 如果该id、该类型的金额已存在,则不允许重复生成推送
TIncomeDetail
a
=
new
TIncomeDetail
();
TIncomeDetail
a
=
new
TIncomeDetail
();
a
.
setId
(
tIncomeDetail
.
getId
());
a
.
setSourceId
(
tIncomeDetail
.
getSourceId
());
a
.
setSourceId
(
tIncomeDetail
.
getSourceId
());
a
.
setMoney
(
tIncomeDetail
.
getMoney
());
a
.
setMoney
(
tIncomeDetail
.
getMoney
());
a
.
setRedData
(
tIncomeDetail
.
getRedData
());
a
.
setRedData
(
tIncomeDetail
.
getRedData
());
a
.
setFeeType
(
tIncomeDetail
.
getFeeType
());
a
.
setFeeType
(
tIncomeDetail
.
getFeeType
());
List
<
TIncomeDetail
>
aList
=
tIncomeDetailService
.
getTIncomeDetailLis
t
(
a
);
int
repeatNums
=
tIncomeDetailService
.
getTIncomeDetailRepea
t
(
a
);
if
(
aList
!=
null
&&
!
aList
.
isEmpty
()
)
{
if
(
repeatNums
>
CommonConstants
.
ZERO_INT
)
{
return
true
;
return
true
;
}
}
}
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TIncomeDetailMapper.xml
View file @
f7156f0e
...
@@ -156,4 +156,16 @@
...
@@ -156,4 +156,16 @@
</where>
</where>
</select>
</select>
<!-- 获取重复性 -->
<select
id=
"getTIncomeDetailRepeat"
resultType=
"java.lang.Integer"
>
SELECT
count(1)
FROM t_income_detail a
where a.ID != #{tIncomeDetail.id}
AND a.SOURCE_ID = #{tIncomeDetail.sourceId}
AND a.MONEY = #{tIncomeDetail.money}
AND a.RED_DATA = #{tIncomeDetail.redData}
AND a.FEE_TYPE = #{tIncomeDetail.feeType}
</select>
</mapper>
</mapper>
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