Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
stockPriceTack
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
刘长帅
stockPriceTack
Commits
f7be2e7f
Commit
f7be2e7f
authored
Apr 25, 2024
by
“dujiuxin”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ec682c9e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
5 deletions
+40
-5
MarketProfitLogMapper.java
...tech/telmarket/mapper/business/MarketProfitLogMapper.java
+8
-0
AssetMarketProfitLogMapper.java
...ket/mapper/business/asset/AssetMarketProfitLogMapper.java
+8
-1
HighMarketProfitLogMapper.java
...arket/mapper/business/high/HighMarketProfitLogMapper.java
+8
-2
SmartMarketProfitLogMapper.java
...ket/mapper/business/smart/SmartMarketProfitLogMapper.java
+8
-1
SurveyMarketProfitLogMapper.java
...t/mapper/business/survey/SurveyMarketProfitLogMapper.java
+8
-1
No files found.
src/main/java/com/zfxftech/telmarket/mapper/business/MarketProfitLogMapper.java
View file @
f7be2e7f
...
...
@@ -2,9 +2,17 @@ package com.zfxftech.telmarket.mapper.business;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zfxftech.telmarket.common.pojo.dao.MarketProfitLog
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.springframework.stereotype.Repository
;
@Repository
public
interface
MarketProfitLogMapper
extends
BaseMapper
<
MarketProfitLog
>
{
@Select
(
"select id,market_id,principal,profit_rate from market_profit_log "
+
"where id = ( "
+
" select max(id) from market_profit_log "
+
" where market_id=#{marketId} and is_deleted='0' "
+
")"
)
MarketProfitLog
selectLastLogByMarketId
(
@Param
(
"marketId"
)
Long
marketId
);
}
src/main/java/com/zfxftech/telmarket/mapper/business/asset/AssetMarketProfitLogMapper.java
View file @
f7be2e7f
...
...
@@ -2,9 +2,16 @@ package com.zfxftech.telmarket.mapper.business.asset;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zfxftech.telmarket.common.pojo.dao.asset.AssetMarketProfitLog
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.springframework.stereotype.Repository
;
@Repository
public
interface
AssetMarketProfitLogMapper
extends
BaseMapper
<
AssetMarketProfitLog
>
{
@Select
(
"select id,market_id,principal,profit_rate from asset_market_profit_log "
+
"where id = ( "
+
" select max(id) from asset_market_profit_log "
+
" where market_id=#{marketId} and is_deleted='0' "
+
")"
)
AssetMarketProfitLog
selectLastLogByMarketId
(
@Param
(
"marketId"
)
Long
marketId
);
}
src/main/java/com/zfxftech/telmarket/mapper/business/high/HighMarketProfitLogMapper.java
View file @
f7be2e7f
package
com
.
zfxftech
.
telmarket
.
mapper
.
business
.
high
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zfxftech.telmarket.common.pojo.dao.asset.AssetMarketProfitLog
;
import
com.zfxftech.telmarket.common.pojo.dao.high.HighMarketProfitLog
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.springframework.stereotype.Repository
;
@Repository
public
interface
HighMarketProfitLogMapper
extends
BaseMapper
<
HighMarketProfitLog
>
{
@Select
(
"select id,market_id,principal,profit_rate from high_market_profit_log "
+
"where id = ( "
+
" select max(id) from high_market_profit_log "
+
" where market_id=#{marketId} and is_deleted='0' "
+
")"
)
HighMarketProfitLog
selectLastLogByMarketId
(
@Param
(
"marketId"
)
Long
marketId
);
}
src/main/java/com/zfxftech/telmarket/mapper/business/smart/SmartMarketProfitLogMapper.java
View file @
f7be2e7f
...
...
@@ -2,9 +2,16 @@ package com.zfxftech.telmarket.mapper.business.smart;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zfxftech.telmarket.common.pojo.dao.smart.SmartMarketProfitLog
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.springframework.stereotype.Repository
;
@Repository
public
interface
SmartMarketProfitLogMapper
extends
BaseMapper
<
SmartMarketProfitLog
>
{
@Select
(
"select id,market_id,principal,profit_rate from smart_market_profit_log "
+
"where id = ( "
+
" select max(id) from smart_market_profit_log "
+
" where market_id=#{marketId} and is_deleted='0' "
+
")"
)
SmartMarketProfitLog
selectLastLogByMarketId
(
@Param
(
"marketId"
)
Long
marketId
);
}
src/main/java/com/zfxftech/telmarket/mapper/business/survey/SurveyMarketProfitLogMapper.java
View file @
f7be2e7f
...
...
@@ -2,9 +2,16 @@ package com.zfxftech.telmarket.mapper.business.survey;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.zfxftech.telmarket.common.pojo.dao.survey.SurveyMarketProfitLog
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.springframework.stereotype.Repository
;
@Repository
public
interface
SurveyMarketProfitLogMapper
extends
BaseMapper
<
SurveyMarketProfitLog
>
{
@Select
(
"select id,market_id,principal,profit_rate from survey_market_profit_log "
+
"where id = ( "
+
" select max(id) from survey_market_profit_log "
+
" where market_id=#{marketId} and is_deleted='0' "
+
")"
)
SurveyMarketProfitLog
selectLastLogByMarketId
(
@Param
(
"marketId"
)
Long
marketId
);
}
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