记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
df0cac31
Commit
df0cac31
authored
Nov 18, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分明细
parent
ccffc8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
DataImpl.java
...quidnet/service/platform/service/impl/kylin/DataImpl.java
+8
-2
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/kylin/DataImpl.java
View file @
df0cac31
...
@@ -20,6 +20,7 @@ import com.liquidnet.service.stone.vo.StoneUserVo;
...
@@ -20,6 +20,7 @@ import com.liquidnet.service.stone.vo.StoneUserVo;
import
com.liquidnet.service.sweet.constant.SweetConstant
;
import
com.liquidnet.service.sweet.constant.SweetConstant
;
import
com.liquidnet.service.sweet.vo.SweetAppletUsersVo
;
import
com.liquidnet.service.sweet.vo.SweetAppletUsersVo
;
import
com.liquidnet.service.sweet.vo.SweetWechatUsersVo
;
import
com.liquidnet.service.sweet.vo.SweetWechatUsersVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.PageRequest
;
...
@@ -38,10 +39,11 @@ import java.util.HashMap;
...
@@ -38,10 +39,11 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
@Service
@Service
@Slf4j
public
class
DataImpl
{
public
class
DataImpl
{
@Value
(
"${liquidnet.service.stone.url}"
)
@Value
(
"${liquidnet.service.stone.url}"
)
private
String
stoneUrl
;
private
String
stoneUrl
;
@Autowired
@Autowired
private
MongoTemplate
mongoTemplate
;
private
MongoTemplate
mongoTemplate
;
...
@@ -64,7 +66,9 @@ public class DataImpl {
...
@@ -64,7 +66,9 @@ public class DataImpl {
//查询全部用户
//查询全部用户
List
<
AdamUser
>
adamUserList
=
userMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
AdamUser
.
class
).
eq
(
AdamUser:
:
getState
,
1
)
List
<
AdamUser
>
adamUserList
=
userMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
AdamUser
.
class
).
eq
(
AdamUser:
:
getState
,
1
)
.
select
(
AdamUser:
:
getUid
).
last
(
"limit "
+
((
page
-
1
)
*
size
)
+
","
+
((
page
)
*
size
)));
.
select
(
AdamUser:
:
getUid
).
last
(
"limit "
+
((
page
-
1
)
*
size
)
+
","
+
((
page
)
*
size
)));
log
.
info
(
"AdamUserSize = "
+
adamUserList
.
size
());
for
(
AdamUser
item
:
adamUserList
)
{
for
(
AdamUser
item
:
adamUserList
)
{
int
finishCount
=
0
;
//获取用户相关信息
//获取用户相关信息
String
uid
=
item
.
getUid
();
String
uid
=
item
.
getUid
();
String
mobile
=
item
.
getMobile
();
String
mobile
=
item
.
getMobile
();
...
@@ -92,7 +96,7 @@ public class DataImpl {
...
@@ -92,7 +96,7 @@ public class DataImpl {
Integer
performancePrice
=
orderTicketsMapper
.
getOrderScore
(
uid
);
Integer
performancePrice
=
orderTicketsMapper
.
getOrderScore
(
uid
);
score
+=
(
performancePrice
.
intValue
()
/
100
);
score
+=
(
performancePrice
.
intValue
()
/
100
);
//获取商品每日任务积分
//获取商品每日任务积分
String
resultData
=
HttpUtil
.
get
(
"http://
dev
mall.zhengzai.tv/admin/sumUserCost?user_id="
+
1
,
null
);
String
resultData
=
HttpUtil
.
get
(
"http://
test
mall.zhengzai.tv/admin/sumUserCost?user_id="
+
1
,
null
);
int
goodsPrice
=
(
int
)
JSONObject
.
parseObject
(
resultData
).
get
(
"cost"
);
int
goodsPrice
=
(
int
)
JSONObject
.
parseObject
(
resultData
).
get
(
"cost"
);
score
+=
(
goodsPrice
/
100
);
score
+=
(
goodsPrice
/
100
);
...
@@ -134,6 +138,8 @@ public class DataImpl {
...
@@ -134,6 +138,8 @@ public class DataImpl {
params
.
add
(
"content"
,
"历史积分"
);
params
.
add
(
"content"
,
"历史积分"
);
HttpUtil
.
post
(
stoneUrl
+
"/user/logs/in2111"
,
params
);
HttpUtil
.
post
(
stoneUrl
+
"/user/logs/in2111"
,
params
);
}
}
finishCount
+=
1
;
log
.
info
(
"finishCount = "
+
finishCount
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
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