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
264fac02
Commit
264fac02
authored
Jul 19, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/base-modify' into base-modify
parents
96a42bb0
7833928c
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
45 additions
and
36 deletions
+45
-36
AppUserDetail.java
...m/github/wxiaoqi/security/admin/entity/AppUserDetail.java
+4
-0
AppUserDTO.java
...m/github/wxiaoqi/security/admin/feign/dto/AppUserDTO.java
+3
-1
AppUserInfoVo.java
...a/com/github/wxiaoqi/security/admin/vo/AppUserInfoVo.java
+1
-0
AppUserVo.java
.../java/com/github/wxiaoqi/security/admin/vo/AppUserVo.java
+4
-1
UserBusinessBiz.java
...om/github/wxiaoqi/security/admin/biz/UserBusinessBiz.java
+1
-1
AppUserRest.java
...va/com/github/wxiaoqi/security/admin/rpc/AppUserRest.java
+8
-4
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+1
-1
AppUserSellingWaterMapper.xml
...n/src/main/resources/mapper/AppUserSellingWaterMapper.xml
+1
-1
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+17
-26
1.jar
xx-universal/xx-universal-api/src/main/lib/1.jar
+0
-0
OrderPayBiz.java
...ain/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
+5
-1
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/entity/AppUserDetail.java
View file @
264fac02
...
...
@@ -74,4 +74,8 @@ public class AppUserDetail {
@ApiModelProperty
(
value
=
"邀请人账号:"
)
@Column
(
name
=
"inviter_account"
)
private
Integer
inviterAccount
;
@ApiModelProperty
(
value
=
"1-新人用户;2-未激活;3-激活"
)
@Column
(
name
=
"state"
)
private
Integer
state
;
}
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/dto/AppUserDTO.java
View file @
264fac02
...
...
@@ -63,7 +63,9 @@ public class AppUserDTO {
private
String
code
;
@ApiModelProperty
(
value
=
"邀请人id:"
)
private
String
inviterAccount
;
private
Integer
inviterAccount
;
@ApiModelProperty
(
value
=
"1-新人用户;2-未激活;3-激活:"
)
private
Integer
state
;
private
Integer
imUserid
;
private
String
wxOpenid
;
private
String
unionid
;
...
...
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/vo/AppUserInfoVo.java
View file @
264fac02
...
...
@@ -38,4 +38,5 @@ public class AppUserInfoVo {
private
Long
updatetime
;
private
Integer
isdel
;
}
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/vo/AppUserVo.java
View file @
264fac02
...
...
@@ -80,6 +80,9 @@ public class AppUserVo {
private
String
code
;
@ApiModelProperty
(
value
=
"邀请人id:"
)
private
String
inviterAccount
;
private
Integer
inviterAccount
;
@ApiModelProperty
(
value
=
"1-新人用户;2-未激活;3-激活:"
)
private
Integer
state
;
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/UserBusinessBiz.java
View file @
264fac02
...
...
@@ -105,7 +105,7 @@ public class UserBusinessBiz {
promoteBO
.
setActivatedNumber
(
memberStateAndCountMap
.
get
(
1
));
BigDecimal
totalIncome
=
appUserSellingWaterBiz
.
selectTotalIncomeByUserId
(
userId
);
promoteBO
.
setTotalIncome
(
totalIncome
);
promoteBO
.
setTotalIncome
(
totalIncome
==
null
?
new
BigDecimal
(
0
):
totalIncome
);
return
promoteBO
;
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/AppUserRest.java
View file @
264fac02
...
...
@@ -144,8 +144,11 @@ public class AppUserRest {
@RequestMapping
(
value
=
"/user/wxlogin"
)
public
@ResponseBody
JSONObject
wxlogin
(
@RequestParam
(
value
=
"openid"
,
defaultValue
=
""
)
String
openid
,
@RequestParam
(
value
=
"isQQ"
,
defaultValue
=
"0"
)
Integer
isQQ
)
{
return
appPermissionService
.
weCahtLogin
(
openid
,
isQQ
);
public
@ResponseBody
JSONObject
wxlogin
(
@RequestParam
(
value
=
"openid"
,
defaultValue
=
""
)
String
openid
,
@RequestParam
(
value
=
"isQQ"
,
defaultValue
=
"0"
)
Integer
isQQ
,
@RequestParam
(
value
=
"code"
,
defaultValue
=
""
)
String
code
)
{
return
appPermissionService
.
weCahtLogin
(
openid
,
isQQ
,
code
);
}
/**
...
...
@@ -162,10 +165,11 @@ public class AppUserRest {
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
@RequestParam
(
value
=
"mobilecode"
,
defaultValue
=
""
)
String
mobilecode
,
@RequestParam
(
value
=
"password"
,
defaultValue
=
""
)
String
password
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"1"
)
Integer
type
@RequestParam
(
value
=
"type"
,
defaultValue
=
"1"
)
Integer
type
,
@RequestParam
(
value
=
"code"
,
defaultValue
=
""
)
String
code
){
return
appPermissionService
.
login
(
username
,
password
,
mobilecode
,
type
);
return
appPermissionService
.
login
(
username
,
password
,
mobilecode
,
type
,
code
);
}
@RequestMapping
(
value
=
"/user/reset"
,
method
=
RequestMethod
.
POST
)
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
264fac02
...
...
@@ -70,7 +70,7 @@ public class AppPermissionService {
ThirdFeign
thirdFeign
;
@Autowired
private
MQSenderFeign
mqSenderFeign
;
MQSenderFeign
mqSenderFeign
;
@Autowired
ImFeign
imFeign
;
...
...
ace-modules/ace-admin/src/main/resources/mapper/AppUserSellingWaterMapper.xml
View file @
264fac02
...
...
@@ -17,7 +17,7 @@ WHERE
</foreach>
</select>
<select
id=
"selectTotalIncomeByUserId"
>
<select
id=
"selectTotalIncomeByUserId"
resultType=
"java.math.BigDecimal"
>
SELECT SUM(commission) FROM app_user_selling_water WHERE `user_id`=#{userId}
</select>
</mapper>
\ No newline at end of file
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
264fac02
...
...
@@ -45,7 +45,10 @@ public class MsgBiz {
public
ObjectRestResponse
getMsgList
(
Integer
page
,
Integer
limit
,
Integer
type
)
throws
Exception
{
//获取所有朋友圈
AppUserDTO
appUserDTO
=
userBiz
.
getUserInfo
();
Integer
userId
=
null
;
if
(
appUserDTO
!=
null
)
{
userId
=
appUserDTO
.
getImUserid
();
}
log
.
info
(
"获取消息列表: page = {}, limit = {}, type = {}"
,
page
,
limit
,
type
);
page
=
page
==
null
?
1
:
page
;
limit
=
limit
==
null
?
10
:
limit
;
...
...
@@ -54,12 +57,7 @@ public class MsgBiz {
List
<
Msg
>
msgList
=
null
;
if
(
type
!=
null
)
{
query
=
new
Query
(
Criteria
.
where
(
"body.type"
).
is
(
type
));
if
(
appUserDTO
!=
null
)
{
msgList
=
fetchAndAttach
(
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
),
appUserDTO
.
getImUserid
());
PageInfo
<
MsgVo
>
goodPageInfo
=
new
PageInfo
<>(
replaceMsgResult
(
msgList
));
return
ObjectRestResponse
.
succ
(
goodPageInfo
);
}
msgList
=
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
);
msgList
=
fetchAndAttach
(
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
),
userId
);
PageInfo
<
MsgVo
>
goodPageInfo
=
new
PageInfo
<>(
replaceMsgResult
(
msgList
));
return
ObjectRestResponse
.
succ
(
goodPageInfo
);
}
else
{
...
...
@@ -67,12 +65,7 @@ public class MsgBiz {
ids
.
add
(
2
);
ids
.
add
(
4
);
query
=
new
Query
(
Criteria
.
where
(
"body.type"
).
in
(
ids
));
if
(
appUserDTO
!=
null
)
{
msgList
=
fetchAndAttach
(
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
),
appUserDTO
.
getImUserid
());
PageInfo
<
MsgVo
>
goodPageInfo
=
new
PageInfo
<>(
replaceMsgResult
(
msgList
));
return
ObjectRestResponse
.
succ
(
goodPageInfo
);
}
msgList
=
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
);
msgList
=
fetchAndAttach
(
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
),
userId
);
PageInfo
<
MsgVo
>
goodPageInfo
=
new
PageInfo
<>(
replaceMsgResult
(
msgList
));
return
ObjectRestResponse
.
succ
(
goodPageInfo
);
}
...
...
@@ -97,21 +90,15 @@ public class MsgBiz {
public
ObjectRestResponse
get
(
String
id
){
//获取所有朋友圈
AppUserDTO
appUserDTO
=
userBiz
.
getUserInfo
();
if
(
appUserDTO
==
null
)
{
appUserDTO
=
new
AppUserDTO
();
Integer
userId
=
null
;
if
(
appUserDTO
!=
null
)
{
userId
=
appUserDTO
.
getImUserid
();
}
if
(
id
==
null
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
}
List
<
Msg
>
msgList
=
null
;
Query
query
=
new
Query
(
Criteria
.
where
(
"id"
).
is
(
new
ObjectId
(
id
)));
if
(
appUserDTO
!=
null
)
{
msgList
=
fetchAndAttach
(
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
),
appUserDTO
.
getImUserid
());
PageInfo
<
MsgVo
>
goodPageInfo
=
new
PageInfo
<>(
replaceMsgResult
(
msgList
));
return
ObjectRestResponse
.
succ
(
goodPageInfo
);
}
msgList
=
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
);
List
<
Msg
>
msgList
=
fetchAndAttach
(
mongoTemplate
.
find
(
query
,
Msg
.
class
,
"s_msg"
),
userId
);
List
<
MsgVo
>
msgVoList
=
replaceMsgResult
(
msgList
);
if
(
msgVoList
.
size
()
>
0
)
{
return
ObjectRestResponse
.
succ
(
msgVoList
.
get
(
0
));
...
...
@@ -136,9 +123,13 @@ public class MsgBiz {
//添加点赞
List
<
Praise
>
praise
=
mongoTemplate
.
find
(
query
,
Praise
.
class
,
"s_praise"
);
msg
.
setPraises
(
replacePraiseResult
(
praise
));
msg
.
setIsPraise
(
this
.
exists
(
userId
,
msg
.
getId
())
?
1
:
0
);
msg
.
setIsCollect
(
this
.
existsCollect
(
userId
,
msg
.
getId
())
?
1
:
0
);
if
(
userId
!=
null
)
{
msg
.
setIsPraise
(
this
.
exists
(
userId
,
msg
.
getId
())
?
1
:
0
);
msg
.
setIsCollect
(
this
.
existsCollect
(
userId
,
msg
.
getId
())
?
1
:
0
);
}
else
{
msg
.
setIsPraise
(
0
);
msg
.
setIsCollect
(
0
);
}
}
return
list
;
}
...
...
xx-universal/xx-universal-api/src/main/lib/1.jar
deleted
100644 → 0
View file @
96a42bb0
File deleted
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
View file @
264fac02
...
...
@@ -28,6 +28,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
tk.mybatis.mapper.entity.Example
;
...
...
@@ -60,6 +61,8 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper,OrderPay> {
@Autowired
MQServiceBiZ
mqServiceBiZ
;
@Value
(
"${universal.url}"
)
String
weixinHost
;
public
JSONObject
preparepay
(
OrderPayVo
orderPayVo
)
{
if
(
null
==
orderPayVo
)
{
...
...
@@ -89,7 +92,8 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper,OrderPay> {
}
Integer
type
=
orderPayVo
.
getType
();
String
jsParam
=
""
;
String
notify_url
=
"https://"
+
SystemConfig
.
weixinHost
+
"/api/universal/pay/app/unauth/notify"
;
String
notify_url
=
weixinHost
+
"/api/universal/pay/app/unauth/notify"
;
log
.
info
(
"报名费回调路径notify_url:"
+
notify_url
);
if
(
type
!=
null
&&
type
==
2
){
jsParam
=
WXPay
.
webPay
(
amount
+
""
,
orderPayVo
.
getBody
(),
notify_url
,
trade_no
,
orderPayVo
.
getBuyerIp
(),
orderPayVo
.
getBuyerAccount
());
}
else
{
...
...
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