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
6e4bbce0
Commit
6e4bbce0
authored
Jan 07, 2020
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提现方式调整(1:线下自动 2:线下手动 3:线上自动)
parent
13b8acdb
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
52 additions
and
29 deletions
+52
-29
WalletCathFindDTO.java
.../github/wxiaoqi/security/admin/dto/WalletCathFindDTO.java
+4
-0
WalletCathListDTO.java
.../github/wxiaoqi/security/admin/dto/WalletCathListDTO.java
+2
-2
MyWalletCath.java
...om/github/wxiaoqi/security/admin/entity/MyWalletCath.java
+3
-3
WalletCathAdminVo.java
...m/github/wxiaoqi/security/admin/vo/WalletCathAdminVo.java
+2
-2
MyWalletBiz.java
...va/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
+4
-4
MyWalletCathBiz.java
...om/github/wxiaoqi/security/admin/biz/MyWalletCathBiz.java
+1
-6
MyWalletCathMapper.java
...hub/wxiaoqi/security/admin/mapper/MyWalletCathMapper.java
+2
-6
MyWalletCathMapper.xml
...ce-admin/src/main/resources/mapper/MyWalletCathMapper.xml
+10
-5
WithDrawRuleVo.java
.../java/com/xxfc/platform/app/entity/vo/WithDrawRuleVo.java
+1
-1
WithDrawWayEnum.java
...a/com/xxfc/platform/app/enumconstant/WithDrawWayEnum.java
+23
-0
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/WalletCathFindDTO.java
View file @
6e4bbce0
...
...
@@ -26,4 +26,8 @@ public class WalletCathFindDTO extends PageParam {
private
Long
startTime
;
private
Long
endTime
;
/**
* 提现方式 1:线下自动 2:线下手动 3:线上自动
*/
private
Integer
withdrawWay
;
}
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/WalletCathListDTO.java
View file @
6e4bbce0
...
...
@@ -56,6 +56,6 @@ public class WalletCathListDTO {
private
String
accountName
;
@ApiModelProperty
(
value
=
"
线下提现方式 1:自动 2:手
动"
)
private
Integer
offline
Way
;
@ApiModelProperty
(
value
=
"
提现方式 1:线下自动 2:线下手动 3:线上自
动"
)
private
Integer
withdraw
Way
;
}
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/entity/MyWalletCath.java
View file @
6e4bbce0
...
...
@@ -134,9 +134,9 @@ public class MyWalletCath implements Serializable {
@Column
(
name
=
"account_name"
)
private
String
accountName
;
@Column
(
name
=
"
offline
_way"
)
@ApiModelProperty
(
value
=
"
线下提现方式 1:自动 2:手
动"
)
private
Integer
offline
Way
;
@Column
(
name
=
"
withdraw
_way"
)
@ApiModelProperty
(
value
=
"
提现方式 1:线下自动 2:线下手动 3:线上自
动"
)
private
Integer
withdraw
Way
;
@Column
(
name
=
"real_reason"
)
private
String
realReason
;
...
...
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/vo/WalletCathAdminVo.java
View file @
6e4bbce0
...
...
@@ -52,6 +52,6 @@ public class WalletCathAdminVo {
private
String
accountName
;
@ApiModelProperty
(
value
=
"
线下提现方式 1:自动 2:手
动"
)
private
Integer
offline
Way
;
@ApiModelProperty
(
value
=
"
提现方式 1:线下自动 2:线下手动 3:线上自
动"
)
private
Integer
withdraw
Way
;
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
View file @
6e4bbce0
...
...
@@ -21,6 +21,7 @@ import com.github.wxiaoqi.security.common.util.OrderUtil;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.app.entity.vo.WithDrawRuleVo
;
import
com.xxfc.platform.app.enumconstant.WithDrawWayEnum
;
import
com.xxfc.platform.app.feign.ConfigFeign
;
import
com.xxfc.platform.universal.feign.ThirdFeign
;
import
com.xxfc.platform.universal.vo.FundPayVo
;
...
...
@@ -100,9 +101,6 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> implements In
private
DateTimeFormatter
dateTimeFormatter
;
private
static
final
Integer
WITHDRAW_ONLINE_WAY
=
1
;
private
static
final
Integer
WITHDRAW_OFFLINE_WAY
=
2
;
private
BCryptPasswordEncoder
encoder
=
new
BCryptPasswordEncoder
(
12
);
...
...
@@ -347,8 +345,10 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> implements In
walletCath
.
setAccountName
(
applyCathVo
.
getAccountName
());
walletCath
.
setAccountNumber
(
accountNumber
);
walletCath
.
setAmount
(
amount
);
//手续费
walletCath
.
setCommission
(
commission
);
walletCath
.
setRealAmount
(
realAmount
);
walletCath
.
setWithdrawWay
(
withdrawWay
);
myWalletCathBiz
.
insertSelective
(
walletCath
);
//提现金额
BigDecimal
withdrawals
=
realAmount
.
add
(
commission
);
...
...
@@ -362,7 +362,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> implements In
myWallet
.
setVersion
(
sumDto
.
getVersion
());
mapper
.
updMyWater
(
myWallet
);
//线上自动提现
if
(
W
ITHDRAW_ONLINE_WAY
.
equals
(
withdrawWay
)
)
{
if
(
W
ithDrawWayEnum
.
WITHDRAW_ONLINE_WAY
.
getCode
()
==
withdrawWay
)
{
HttpServletRequest
request
=
((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
()).
getRequest
();
String
host
=
StringUtils
.
defaultIfBlank
(
request
.
getHeader
(
"userHost"
),
ClientUtil
.
getClientIp
(
request
));
FundPayVo
fundPayVo
=
FundPayVo
.
builder
()
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWalletCathBiz.java
View file @
6e4bbce0
...
...
@@ -101,12 +101,7 @@ public class MyWalletCathBiz extends BaseBiz<MyWalletCathMapper, MyWalletCath> {
PageDataVO
<
WalletCathListDTO
>
walletCathListDTOPage
=
PageDataVO
.
pageInfo
(
walletCathFindDTO
.
getPage
(),
walletCathFindDTO
.
getLimit
(),
()
->
mapper
.
selectByUserNameOrPhoneOrWithDrawSate
(
walletCathFindDTO
.
getUsername
(),
walletCathFindDTO
.
getPhone
(),
walletCathFindDTO
.
getState
(),
walletCathFindDTO
.
getOrderNo
(),
walletCathFindDTO
.
getStartTime
(),
walletCathFindDTO
.
getEndTime
()));
()
->
mapper
.
selectWalletCatchAll
(
walletCathFindDTO
));
List
<
WalletCathListDTO
>
walletCathListDTOList
=
walletCathListDTOPage
.
getData
();
if
(
CollectionUtils
.
isEmpty
(
walletCathListDTOList
))
{
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/mapper/MyWalletCathMapper.java
View file @
6e4bbce0
package
com
.
github
.
wxiaoqi
.
security
.
admin
.
mapper
;
import
com.github.wxiaoqi.security.admin.dto.PersonalConsumptionDTO
;
import
com.github.wxiaoqi.security.admin.dto.WalletCathFindDTO
;
import
com.github.wxiaoqi.security.admin.dto.WalletCathListDTO
;
import
com.github.wxiaoqi.security.admin.dto.WalletCathSumDto
;
import
com.github.wxiaoqi.security.admin.entity.MyWalletCath
;
...
...
@@ -17,12 +18,7 @@ import java.util.List;
*/
public
interface
MyWalletCathMapper
extends
Mapper
<
MyWalletCath
>
{
List
<
WalletCathListDTO
>
selectByUserNameOrPhoneOrWithDrawSate
(
@Param
(
"userName"
)
String
userName
,
@Param
(
"phone"
)
String
phone
,
@Param
(
"state"
)
Integer
state
,
@Param
(
"orderNo"
)
String
orderNo
,
@Param
(
"startTime"
)
Long
startTime
,
@Param
(
"endTime"
)
Long
endTime
);
List
<
WalletCathListDTO
>
selectWalletCatchAll
(
WalletCathFindDTO
walletCathFindDTO
);
List
<
PersonalConsumptionDTO
>
findUserWithDrawingByUserIds
(
@Param
(
"userIds"
)
List
<
Integer
>
userIds
);
...
...
ace-modules/ace-admin/src/main/resources/mapper/MyWalletCathMapper.xml
View file @
6e4bbce0
...
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.github.wxiaoqi.security.admin.mapper.MyWalletCathMapper"
>
<select
id=
"select
ByUserNameOrPhoneOrWithDrawSate
"
<select
id=
"select
WalletCatchAll
"
resultType=
"com.github.wxiaoqi.security.admin.dto.WalletCathListDTO"
>
SELECT
wc.id,
...
...
@@ -19,12 +19,16 @@
wc.order_no AS `orderNo`,
wc.account_number AS `accountNumber`,
wc.account_name AS `accountName`,
wc.
offline_way AS `offline
Way`
wc.
withdraw_way AS `withdraw
Way`
FROM
(SELECT * FROM `my_wallet_cath` WHERE 1 = 1
(SELECT * FROM `my_wallet_cath`
<where>
<if
test=
"state != null"
>
AND `stauts`=#{state}
</if>
<if
test=
"withdrawWay != null"
>
AND `withdraw_way`=#{withdrawWay}
</if>
<if
test=
"orderNo !=null and orderNo !=''"
>
AND `order_no` = #{orderNo}
</if>
...
...
@@ -41,13 +45,14 @@
`crt_time` <= #{endTime}
]]>
</if>
</where>
) AS `wc`
INNER JOIN ( SELECT `id`, `username` FROM `app_user_login`
<if
test=
"phone != null and phone != ''"
>
WHERE `username`=#{phone}
</if>
) AS `aul` ON aul.id = wc.user_id
INNER JOIN ( SELECT `userid`, `nickname`, `realname` FROM `app_user_detail`
<if
test=
"user
Name != null and userN
ame != ''"
>
WHERE nickname =#{user
Name} OR realname =#{userN
ame}
test=
"user
name != null and usern
ame != ''"
>
WHERE nickname =#{user
name} OR realname =#{usern
ame}
</if>
) AS `aud` ON aud.userid = aul.id order by wc.crt_time DESC
</select>
...
...
xx-app/xx-app-api/src/main/java/com/xxfc/platform/app/entity/vo/WithDrawRuleVo.java
View file @
6e4bbce0
...
...
@@ -44,7 +44,7 @@ public class WithDrawRuleVo {
private
Integer
maxNumberOfDay
;
/**
* 1.
线上 2.线下
* 1.
线下:自动 2.线下:手动 3. 线上
*/
private
Integer
withdrawWay
;
...
...
xx-app/xx-app-api/src/main/java/com/xxfc/platform/app/enumconstant/WithDrawWayEnum.java
0 → 100644
View file @
6e4bbce0
package
com
.
xxfc
.
platform
.
app
.
enumconstant
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
/**
* @author libin
* @version 1.0
* @description 提现方式
* @data 2020/1/7 8:44
*/
@AllArgsConstructor
@Getter
public
enum
WithDrawWayEnum
{
WITHDRAW_ONLINE_WAY
(
3
,
"线上"
),
WITHDRAW_OFFLINE_AUTO_WAY
(
2
,
"线下手动"
),
WITHDRAW_OFFLINE_WAY
(
1
,
"线下自动"
);
private
int
code
;
private
String
desc
;
}
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