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
6a0a77ae
Commit
6a0a77ae
authored
Jul 26, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/base-modify' into base-modify
parents
51f1b75a
7bed896d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
128 additions
and
20 deletions
+128
-20
AppUserAlipay.java
...m/github/wxiaoqi/security/admin/entity/AppUserAlipay.java
+43
-0
MyWallet.java
...va/com/github/wxiaoqi/security/admin/entity/MyWallet.java
+16
-8
AppUserRelationBiz.java
...github/wxiaoqi/security/admin/biz/AppUserRelationBiz.java
+21
-0
AppUserRelationController.java
...xiaoqi/security/admin/rest/AppUserRelationController.java
+17
-1
UserCouponBiz.java
...in/java/com/xxfc/platform/activity/biz/UserCouponBiz.java
+1
-7
Cofig.java
...api/src/main/java/com/xxfc/platform/app/entity/Cofig.java
+1
-0
WithDrawRuleVo.java
.../java/com/xxfc/platform/app/entity/vo/WithDrawRuleVo.java
+29
-4
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/entity/AppUserAlipay.java
0 → 100644
View file @
6a0a77ae
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
entity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
/**
* 支付宝账号表
*/
@Table
(
name
=
"app_user_alipay"
)
@Data
public
class
AppUserAlipay
{
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
//此处加上注解
private
Integer
id
;
@ApiModelProperty
(
"用户id"
)
@Column
(
name
=
"user_id"
)
private
Integer
userId
;
@ApiModelProperty
(
"支付宝账号"
)
@Column
(
name
=
"tx_alipay"
)
private
String
txAlipay
;
@ApiModelProperty
(
"0-否;1-是"
)
@Column
(
name
=
"is_default"
)
private
Integer
isDefault
;
@ApiModelProperty
(
"创建时间"
)
@Column
(
name
=
"crt_time"
)
private
Long
crtTime
;
@ApiModelProperty
(
"是否删除;0-正常;1-删除"
)
@Column
(
name
=
"is_del"
)
private
Integer
isDel
;
}
\ No newline at end of file
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/entity/MyWallet.java
View file @
6a0a77ae
...
...
@@ -42,6 +42,14 @@ public class MyWallet implements Serializable {
@ApiModelProperty
(
value
=
"余额(元)"
)
private
BigDecimal
balance
;
/**
* 支付密码
*/
@Column
(
name
=
"pay_password"
)
@ApiModelProperty
(
value
=
"支付密码"
)
private
String
payPassword
;
/**
* 已提现金额
*/
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserRelationBiz.java
View file @
6a0a77ae
...
...
@@ -12,6 +12,7 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.aop.framework.AopContext
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -46,6 +47,9 @@ public class AppUserRelationBiz extends BaseBiz<AppUserRelationMapper,AppUserRel
@Value
(
"${temamember.failureTime:60}"
)
private
Long
failureTime
;
@Autowired
private
AppUserDetailBiz
appUserDetailBiz
;
/**
* 关系绑定
* @param userId
...
...
@@ -76,6 +80,23 @@ public class AppUserRelationBiz extends BaseBiz<AppUserRelationMapper,AppUserRel
}
}
}
//首页关系绑定
public
ObjectRestResponse
appBindRelation
(
Integer
userId
,
String
code
){
Integer
parentId
=
0
;
if
(
StringUtils
.
isNotBlank
(
code
)){
//判断处理活动关键字
String
[]
codes
=
code
.
split
(
"_"
);
if
(
codes
.
length
>
1
)
{
code
=
codes
[
0
];
}
parentId
=
appUserDetailBiz
.
getUserByCode
(
code
);
}
if
(
parentId
!=
null
&&
parentId
>
0
&&
userId
!=
null
&&
userId
>
0
){
getMyBiz
().
bindRelation
(
userId
,
parentId
,
1
);
}
return
ObjectRestResponse
.
succ
();
}
//永久稳定关系
public
void
foreverBind
(
Integer
user_id
){
AppUserRelation
relation
=
getMyBiz
().
getRelationByUserId
(
user_id
);
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUserRelationController.java
View file @
6a0a77ae
...
...
@@ -9,12 +9,14 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.admin.biz.AppUserRelationBiz
;
import
com.github.wxiaoqi.security.admin.entity.AppUserRelation
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.HashSet
;
@RestController
@RequestMapping
(
"relation"
)
...
...
@@ -37,6 +39,20 @@ public class AppUserRelationController extends BaseController<AppUserRelationBiz
return
baseBiz
.
shareParentByUserId
(
userid
,
pid
,
platform_userid
);
}
@RequestMapping
(
value
=
"/bind"
,
method
=
RequestMethod
.
POST
)
@ApiModelProperty
(
"app分享绑定"
)
public
ObjectRestResponse
bind
(
@RequestParam
(
value
=
"code"
,
defaultValue
=
""
)
String
code
,
HttpServletRequest
request
){
try
{
Integer
userid
=
Integer
.
parseInt
(
userAuthUtil
.
getInfoFromToken
(
userAuthConfig
.
getToken
(
request
)).
getId
());
return
baseBiz
.
appBindRelation
(
userid
,
code
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
BaseException
(
e
);
}
}
@ApiOperation
(
"查询邀请的成员"
)
@GetMapping
(
"/pages"
)
public
ObjectRestResponse
<
InviteMemberVo
>
findInviteMemberByActivitState
(
@RequestParam
(
value
=
"state"
,
required
=
false
)
Integer
state
,
...
...
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/UserCouponBiz.java
View file @
6a0a77ae
...
...
@@ -273,20 +273,14 @@ public class UserCouponBiz extends BaseBiz<UserCouponMapper, UserCoupon> {
if
(
StringUtils
.
isEmpty
(
userCouponFindDTO
.
getPhone
()))
{
List
<
Integer
>
userIds
=
data
.
stream
().
map
(
UserCouponDTO:
:
getUserId
).
distinct
().
collect
(
Collectors
.
toList
());
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"查询的用户ids【{}】"
,
userIds
);
}
userIdAndAppuserLoginMap
=
userFeign
.
findAppUsersByUserIds
(
userIds
);
if
(
log
.
isDebugEnabled
()){
log
.
debug
(
"查询的用户信息【{}】"
,
userIdAndAppuserLoginMap
);
}
}
List
<
UserCouponPageVo
>
userCouponPageVos
=
new
ArrayList
<>();
UserCouponPageVo
userCouponPageVo
;
for
(
UserCouponDTO
userCouponDTO
:
data
)
{
userCouponPageVo
=
new
UserCouponPageVo
();
BeanUtils
.
copyProperties
(
userCouponDTO
,
userCouponPageVo
);
if
(
Objects
.
nonNull
(
userCouponFindDTO
.
getPhone
()))
{
if
(
StringUtils
.
isNotEmpty
(
userCouponFindDTO
.
getPhone
()))
{
userCouponPageVo
.
setPhone
(
userCouponFindDTO
.
getPhone
());
}
else
{
userCouponPageVo
.
setPhone
(
userIdAndAppuserLoginMap
.
get
(
userCouponDTO
.
getUserId
())
==
null
?
""
:
userIdAndAppuserLoginMap
.
get
(
userCouponDTO
.
getUserId
()).
getUsername
());
...
...
xx-app/xx-app-api/src/main/java/com/xxfc/platform/app/entity/Cofig.java
View file @
6a0a77ae
...
...
@@ -65,5 +65,6 @@ public class Cofig implements Serializable {
@ApiModelProperty
(
value
=
"标题"
)
private
String
title
;
@Column
(
name
=
"params"
)
private
String
params
;
}
xx-app/xx-app-api/src/main/java/com/xxfc/platform/app/entity/vo/WithDrawRuleVo.java
View file @
6a0a77ae
...
...
@@ -14,14 +14,39 @@ import java.math.BigDecimal;
public
class
WithDrawRuleVo
{
/**
* 提现金额
*
最低
提现金额
*/
private
BigDecimal
a
mount
;
private
BigDecimal
minA
mount
;
/**
* 手续费率
*
提现
手续费率
*/
private
double
proceduReates
;
private
BigDecimal
proceduReates
;
/**
* 月额度
*/
private
BigDecimal
amountOfMonth
;
/**
* 日额度
*/
private
BigDecimal
amountOfDay
;
/**
* 最多提现次数(月)
*/
private
Integer
maxNumberOfWithdraw
;
/**
* 最多提现次数(日)
*/
private
Integer
maxNumberOfDay
;
/**
* 1. 线上 2.线下
*/
private
Integer
withdrawWay
;
/**
* 规则说明
...
...
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