Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
92c2945d
Commit
92c2945d
authored
Aug 10, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
cf3dd218
52141469
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
8 deletions
+29
-8
UserBusinessBiz.java
...om/github/wxiaoqi/security/admin/biz/UserBusinessBiz.java
+3
-2
UserBussinessController.java
.../wxiaoqi/security/admin/rest/UserBussinessController.java
+1
-1
AppUserSellingWaterMapper.xml
...n/src/main/resources/mapper/AppUserSellingWaterMapper.xml
+4
-4
UserCouponBiz.java
...in/java/com/xxfc/platform/activity/biz/UserCouponBiz.java
+3
-0
IntegralSignRecordMapper.xml
...er/src/main/resources/mapper/IntegralSignRecordMapper.xml
+1
-1
pom.xml
xx-universal/xx-universal-server/pom.xml
+6
-0
MQServiceBiZ.java
...in/java/com/xxfc/platform/universal/biz/MQServiceBiZ.java
+11
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/UserBusinessBiz.java
View file @
92c2945d
...
@@ -80,8 +80,9 @@ public class UserBusinessBiz {
...
@@ -80,8 +80,9 @@ public class UserBusinessBiz {
userTeamMemberBo
.
setHeadUrl
(
appUserDetail
==
null
?
""
:
appUserDetail
.
getHeadimgurl
());
userTeamMemberBo
.
setHeadUrl
(
appUserDetail
==
null
?
""
:
appUserDetail
.
getHeadimgurl
());
userTeamMemberBo
.
setNickName
(
appUserDetail
==
null
?
""
:
appUserDetail
.
getNickname
());
userTeamMemberBo
.
setNickName
(
appUserDetail
==
null
?
""
:
appUserDetail
.
getNickname
());
}
}
userTeamMemberBo
.
setIncome
(
memberIdAndIncomeMap
.
get
(
appUserRelation
.
getUserId
()));
BigDecimal
income
=
memberIdAndIncomeMap
.
get
(
appUserRelation
.
getUserId
())==
null
?
BigDecimal
.
ZERO
:
memberIdAndIncomeMap
.
get
(
appUserRelation
.
getUserId
());
totalIncome
=
totalIncome
.
add
(
userTeamMemberBo
.
getIncome
());
userTeamMemberBo
.
setIncome
(
income
);
totalIncome
=
totalIncome
.
add
(
income
);
userTeamMemberBos
.
add
(
userTeamMemberBo
);
userTeamMemberBos
.
add
(
userTeamMemberBo
);
}
}
userTeamMemberVo
.
setPageNum
(
memberPage
.
getPageNum
());
userTeamMemberVo
.
setPageNum
(
memberPage
.
getPageNum
());
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/UserBussinessController.java
View file @
92c2945d
...
@@ -41,7 +41,7 @@ public class UserBussinessController {
...
@@ -41,7 +41,7 @@ public class UserBussinessController {
public
ObjectRestResponse
<
UserTeamMemberVo
>
findTeamPage
(
@RequestParam
(
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
"pageSize"
)
Integer
pageSize
,
HttpServletRequest
request
){
public
ObjectRestResponse
<
UserTeamMemberVo
>
findTeamPage
(
@RequestParam
(
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
"pageSize"
)
Integer
pageSize
,
HttpServletRequest
request
){
try
{
try
{
IJWTInfo
infoFromToken
=
userAuthUtil
.
getInfoFromToken
(
userAuthConfig
.
getToken
(
request
));
IJWTInfo
infoFromToken
=
userAuthUtil
.
getInfoFromToken
(
userAuthConfig
.
getToken
(
request
));
UserTeamMemberVo
userTeamMemberVo
=
businessBiz
.
findTeamMemberPageByUserId
(
Integer
.
valueOf
(
infoFromToken
.
getId
())
,
pageNo
,
pageSize
);
UserTeamMemberVo
userTeamMemberVo
=
businessBiz
.
findTeamMemberPageByUserId
(
270
,
pageNo
,
pageSize
);
return
ObjectRestResponse
.
succ
(
userTeamMemberVo
);
return
ObjectRestResponse
.
succ
(
userTeamMemberVo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
BaseException
(
e
);
throw
new
BaseException
(
e
);
...
...
ace-modules/ace-admin/src/main/resources/mapper/AppUserSellingWaterMapper.xml
View file @
92c2945d
...
@@ -6,10 +6,10 @@
...
@@ -6,10 +6,10 @@
<select
id=
"accquireIncomeByMemberIds"
resultType=
"com.github.wxiaoqi.security.admin.bo.UserIncomeBo"
>
<select
id=
"accquireIncomeByMemberIds"
resultType=
"com.github.wxiaoqi.security.admin.bo.UserIncomeBo"
>
SELECT DISTINCT
SELECT DISTINCT
`source_id`as userId,
`source_id`as userId,
(( SELECT SUM(commission) FROM `app_user_selling_water` WHERE source_id=ausw.source_id AND `status` = 0 AND
IFNULL(
(( SELECT SUM(commission) FROM `app_user_selling_water` WHERE source_id=ausw.source_id AND `status` = 0 AND
`waiting` = 1 )
`waiting` = 1 )
- ( SELECT SUM(commission) FROM `app_user_selling_water` WHERE source_id=ausw.source_id AND `status` = 1 AND
- ( SELECT SUM(commission) FROM `app_user_selling_water` WHERE source_id=ausw.source_id AND `status` = 1 AND
`waiting` = 1 )) as `income`
`waiting` = 1 ))
,0)
as `income`
FROM
FROM
`app_user_selling_water` as ausw
`app_user_selling_water` as ausw
WHERE
WHERE
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
SELECT
SELECT
( auswu.upIncome - auswd.dowIncome ) AS `income`
( auswu.upIncome - auswd.dowIncome ) AS `income`
FROM
FROM
( SELECT
SUM( commission
) AS upIncome FROM `app_user_selling_water` WHERE STATUS = 0 AND `user_id` = #{userId} ) AS `auswu`,
( SELECT
IFNULL(SUM( commission ),0
) AS upIncome FROM `app_user_selling_water` WHERE STATUS = 0 AND `user_id` = #{userId} ) AS `auswu`,
( SELECT
SUM( commission
) AS `dowIncome` FROM `app_user_selling_water` WHERE STATUS = 1 AND `user_id` = #{userId} ) AS `auswd`;
( SELECT
IFNULL(SUM( commission ),0
) AS `dowIncome` FROM `app_user_selling_water` WHERE STATUS = 1 AND `user_id` = #{userId} ) AS `auswd`;
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/UserCouponBiz.java
View file @
92c2945d
...
@@ -138,6 +138,9 @@ public class UserCouponBiz extends BaseBiz<UserCouponMapper, UserCoupon> {
...
@@ -138,6 +138,9 @@ public class UserCouponBiz extends BaseBiz<UserCouponMapper, UserCoupon> {
log
.
error
(
"----参数不能为空"
);
log
.
error
(
"----参数不能为空"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数不能为空"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数不能为空"
);
}
}
if
(
amout
.
compareTo
(
BigDecimal
.
ZERO
)<
1
){
return
ObjectRestResponse
.
succ
();
}
Long
time
=
System
.
currentTimeMillis
();
Long
time
=
System
.
currentTimeMillis
();
List
<
UserCouponVo
>
list
=
mapper
.
getUserCouponsByType
(
userId
,
type
,
time
,
channel
);
List
<
UserCouponVo
>
list
=
mapper
.
getUserCouponsByType
(
userId
,
type
,
time
,
channel
);
List
<
UserCouponVo
>
list1
=
new
ArrayList
<>();
List
<
UserCouponVo
>
list1
=
new
ArrayList
<>();
...
...
xx-activity/xx-activity-server/src/main/resources/mapper/IntegralSignRecordMapper.xml
View file @
92c2945d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<result
column=
"last_time"
property=
"lastTime"
jdbcType=
"BIGINT"
/>
<result
column=
"last_time"
property=
"lastTime"
jdbcType=
"BIGINT"
/>
</resultMap>
</resultMap>
<select
id=
"Id"
parameterType=
"java.lang.Integer"
resultType=
"com.xxfc.platform.activity.entity.IntegralSignRecord"
>
<select
id=
"
selectByUser
Id"
parameterType=
"java.lang.Integer"
resultType=
"com.xxfc.platform.activity.entity.IntegralSignRecord"
>
select * from integral_sign_record
select * from integral_sign_record
where user_id = #{userId} and isdel = 0
where user_id = #{userId} and isdel = 0
order by last_time
order by last_time
...
...
xx-universal/xx-universal-server/pom.xml
View file @
92c2945d
...
@@ -24,6 +24,12 @@
...
@@ -24,6 +24,12 @@
<version>
2.0-SNAPSHOT
</version>
<version>
2.0-SNAPSHOT
</version>
<scope>
compile
</scope>
<scope>
compile
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
com.xxfc.platform
</groupId>
<artifactId>
xx-activity-api
</artifactId>
<version>
2.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<dependency>
<groupId>
com.aliyun
</groupId>
<groupId>
com.aliyun
</groupId>
<artifactId>
aliyun-java-sdk-core
</artifactId>
<artifactId>
aliyun-java-sdk-core
</artifactId>
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/MQServiceBiZ.java
View file @
92c2945d
package
com
.
xxfc
.
platform
.
universal
.
biz
;
package
com
.
xxfc
.
platform
.
universal
.
biz
;
import
com.github.wxiaoqi.security.common.config.rabbit.RabbitConstant
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.xxfc.platform.activity.config.RabbitActivityConfig
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.amqp.core.Message
;
import
org.springframework.amqp.core.Message
;
import
org.springframework.amqp.core.MessageBuilder
;
import
org.springframework.amqp.core.MessageBuilder
;
import
org.springframework.amqp.core.MessageProperties
;
import
org.springframework.amqp.core.MessageProperties
;
...
@@ -12,6 +15,8 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -12,6 +15,8 @@ import org.springframework.transaction.annotation.Transactional;
import
java.util.UUID
;
import
java.util.UUID
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
config
.
rabbit
.
RabbitConstant
.
INTEGRAL_TOPIC
;
@Service
@Service
@Slf4j
@Slf4j
public
class
MQServiceBiZ
{
public
class
MQServiceBiZ
{
...
@@ -23,6 +28,12 @@ public class MQServiceBiZ {
...
@@ -23,6 +28,12 @@ public class MQServiceBiZ {
public
ObjectRestResponse
sendMessage
(
String
exchange
,
String
routKey
,
String
json
)
{
public
ObjectRestResponse
sendMessage
(
String
exchange
,
String
routKey
,
String
json
)
{
log
.
info
(
"发送消息到消息队列:exchange = {}, routingKey = {}, json = {}"
,
exchange
,
routKey
,
json
);
log
.
info
(
"发送消息到消息队列:exchange = {}, routingKey = {}, json = {}"
,
exchange
,
routKey
,
json
);
log
.
info
(
"开始发送消息。。。"
);
log
.
info
(
"开始发送消息。。。"
);
if
(
StringUtils
.
isBlank
(
exchange
))
{
exchange
=
INTEGRAL_TOPIC
;
}
if
(
StringUtils
.
isBlank
(
routKey
))
{
routKey
=
RabbitConstant
.
INTEGRAL_ROUTING_KEY
;
}
Message
message
=
MessageBuilder
.
withBody
(
json
.
getBytes
())
Message
message
=
MessageBuilder
.
withBody
(
json
.
getBytes
())
.
setContentType
(
MessageProperties
.
CONTENT_TYPE_JSON
).
setContentEncoding
(
"utf-8"
)
.
setContentType
(
MessageProperties
.
CONTENT_TYPE_JSON
).
setContentEncoding
(
"utf-8"
)
.
setMessageId
(
UUID
.
randomUUID
()
+
""
).
build
();
.
setMessageId
(
UUID
.
randomUUID
()
+
""
).
build
();
...
...
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