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
a3870578
Commit
a3870578
authored
Jul 20, 2022
by
liucx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加限制
parent
d2208dc4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
13 deletions
+6
-13
AssetStockPriceTask.java
...ech/telmarket/task/followAccount/AssetStockPriceTask.java
+1
-7
SmartStockPriceTask.java
...ech/telmarket/task/followAccount/SmartStockPriceTask.java
+1
-3
StockPriceTask.java
...zfxftech/telmarket/task/followAccount/StockPriceTask.java
+4
-3
No files found.
src/main/java/com/zfxftech/telmarket/task/followAccount/AssetStockPriceTask.java
View file @
a3870578
package
com
.
zfxftech
.
telmarket
.
task
.
followAccount
;
import
com.zfxftech.telmarket.common.config.CommonConfig
;
import
com.zfxftech.telmarket.common.pojo.dao.MemberBase
;
import
com.zfxftech.telmarket.common.pojo.dao.asset.AssetAccountProductRelation
;
import
com.zfxftech.telmarket.common.pojo.dao.asset.AssetStockPosition
;
import
com.zfxftech.telmarket.common.pojo.vo.asset.AssetMarketDetailsVO
;
import
com.zfxftech.telmarket.common.util.BigDecimalUtil
;
import
com.zfxftech.telmarket.common.util.DateUtil
;
import
com.zfxftech.telmarket.common.util.OptionalUtil
;
import
com.zfxftech.telmarket.service.business.UsMemberBaseService
;
import
com.zfxftech.telmarket.service.business.asset.AssetAccountProductRelationService
;
import
com.zfxftech.telmarket.service.business.asset.AssetStockPositionService
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -29,9 +26,6 @@ import java.util.concurrent.ExecutorService;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.atomic.AtomicReference
;
import
static
com
.
zfxftech
.
telmarket
.
common
.
constant
.
AdminConstant
.
MarketTypeEnum
.
REAL
;
import
static
com
.
zfxftech
.
telmarket
.
common
.
constant
.
AdminConstant
.
MarketTypeEnum
.
SIMULATED
;
/**
* Create time: 2022/1/26
*/
...
...
@@ -63,7 +57,7 @@ public class AssetStockPriceTask implements ApplicationRunner {
ExecutorService
executorServicePersonal
=
Executors
.
newFixedThreadPool
(
100
);
CompletableFuture
.
runAsync
(()
->
{
while
(
true
)
{
if
(
DateUtil
.
isTradeDayForChangeRemind
())
{
if
(
DateUtil
.
isTradeDayForChangeRemind
()
&&
commonConfig
.
getStockPriceTask
().
equals
(
"run"
)
)
{
// if (true) {
AtomicReference
<
Integer
>
pageNo
=
new
AtomicReference
<>(
1
);
Integer
pageSize
=
50
;
...
...
src/main/java/com/zfxftech/telmarket/task/followAccount/SmartStockPriceTask.java
View file @
a3870578
...
...
@@ -2,11 +2,9 @@ package com.zfxftech.telmarket.task.followAccount;
import
com.zfxftech.telmarket.common.config.CommonConfig
;
import
com.zfxftech.telmarket.common.pojo.dao.MemberBase
;
import
com.zfxftech.telmarket.common.pojo.dao.asset.AssetAccountProductRelation
;
import
com.zfxftech.telmarket.common.pojo.dao.smart.SmartAccountProductRelation
;
import
com.zfxftech.telmarket.common.pojo.dao.smart.SmartStockPosition
;
import
com.zfxftech.telmarket.common.pojo.vo.smart.SmartMarketDetailsVO
;
import
com.zfxftech.telmarket.common.util.BigDecimalUtil
;
import
com.zfxftech.telmarket.common.util.DateUtil
;
import
com.zfxftech.telmarket.common.util.OptionalUtil
;
import
com.zfxftech.telmarket.service.business.UsMemberBaseService
;
...
...
@@ -67,7 +65,7 @@ public class SmartStockPriceTask implements ApplicationRunner {
ExecutorService
executorServicePersonal
=
Executors
.
newFixedThreadPool
(
100
);
CompletableFuture
.
runAsync
(()
->
{
while
(
true
)
{
if
(
DateUtil
.
isTradeDayForChangeRemind
())
{
if
(
DateUtil
.
isTradeDayForChangeRemind
()
&&
commonConfig
.
getStockPriceTask
().
equals
(
"run"
)
)
{
// if (true) {
AtomicReference
<
Integer
>
pageNo
=
new
AtomicReference
<>(
1
);
Integer
pageSize
=
50
;
...
...
src/main/java/com/zfxftech/telmarket/task/followAccount/StockPriceTask.java
View file @
a3870578
...
...
@@ -5,10 +5,11 @@ import com.zfxftech.telmarket.common.pojo.dao.AccountProductRelation;
import
com.zfxftech.telmarket.common.pojo.dao.MemberBase
;
import
com.zfxftech.telmarket.common.pojo.dao.StockPosition
;
import
com.zfxftech.telmarket.common.pojo.vo.MarketDetailsVO
;
import
com.zfxftech.telmarket.common.util.BigDecimalUtil
;
import
com.zfxftech.telmarket.common.util.DateUtil
;
import
com.zfxftech.telmarket.common.util.OptionalUtil
;
import
com.zfxftech.telmarket.service.business.*
;
import
com.zfxftech.telmarket.service.business.AccountProductRelationService
;
import
com.zfxftech.telmarket.service.business.StockPositionService
;
import
com.zfxftech.telmarket.service.business.UsMemberBaseService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.ApplicationArguments
;
...
...
@@ -64,7 +65,7 @@ public class StockPriceTask implements ApplicationRunner {
ExecutorService
executorServicePersonal
=
Executors
.
newFixedThreadPool
(
100
);
CompletableFuture
.
runAsync
(()
->
{
while
(
true
)
{
if
(
DateUtil
.
isTradeDayForChangeRemind
())
{
if
(
DateUtil
.
isTradeDayForChangeRemind
()
&&
commonConfig
.
getStockPriceTask
().
equals
(
"run"
)
)
{
// if (true) {
AtomicReference
<
Integer
>
pageNo
=
new
AtomicReference
<>(
1
);
Integer
pageSize
=
50
;
...
...
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