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
a909e51b
Commit
a909e51b
authored
Oct 11, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-zjw' into dev
parents
0c287b10
9c362930
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
10 deletions
+27
-10
MyWalletBiz.java
...va/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
+1
-1
MyWaterMapper.xml
...les/ace-admin/src/main/resources/mapper/MyWaterMapper.xml
+2
-2
OrderMsgBiz.java
...n/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
+20
-6
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+3
-0
AliYunSmsBiz.java
...in/java/com/xxfc/platform/universal/biz/AliYunSmsBiz.java
+1
-1
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
View file @
a909e51b
...
@@ -281,7 +281,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
...
@@ -281,7 +281,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
BigDecimal
balnece
=
sumDto
.
getBalance
();
BigDecimal
balnece
=
sumDto
.
getBalance
();
//到账金额
//到账金额
BigDecimal
realAmount
=
amount
;
BigDecimal
realAmount
=
amount
;
if
(
amount
.
compareTo
(
realAmount
)>
0
){
if
(
(
realAmount
.
add
(
commission
)).
compareTo
(
balnece
)>
0
){
realAmount
=
balnece
.
subtract
(
commission
);
realAmount
=
balnece
.
subtract
(
commission
);
}
}
log
.
info
(
"-----提现申请-----proceduReates==="
+
sumDto
.
getProceduReates
()+
"----commission===="
+
commission
+
"---realAmount==="
+
realAmount
);
log
.
info
(
"-----提现申请-----proceduReates==="
+
sumDto
.
getProceduReates
()+
"----commission===="
+
commission
+
"---realAmount==="
+
realAmount
);
...
...
ace-modules/ace-admin/src/main/resources/mapper/MyWaterMapper.xml
View file @
a909e51b
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
<if
test=
" userId!=null and userId!=''"
>
<if
test=
" userId!=null and userId!=''"
>
user_id=#{userId},
user_id=#{userId},
</if>
</if>
<if
test=
"balance!=null
and balance!=''
"
>
<if
test=
"balance!=null "
>
balance=#{balance},
balance=#{balance},
</if>
</if>
<if
test=
"
balance!=null and balance
!='' "
>
<if
test=
"
withdrawals!=null and withdrawals
!='' "
>
withdrawals=#{withdrawals},
withdrawals=#{withdrawals},
</if>
</if>
<if
test=
"totalAmount!=null and totalAmount!='' "
>
<if
test=
"totalAmount!=null and totalAmount!='' "
>
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
View file @
a909e51b
package
com
.
xxfc
.
platform
.
order
.
biz
.
inner
;
package
com
.
xxfc
.
platform
.
order
.
biz
.
inner
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
...
@@ -10,11 +11,10 @@ import com.xxfc.platform.app.entity.Cofig;
...
@@ -10,11 +11,10 @@ import com.xxfc.platform.app.entity.Cofig;
import
com.xxfc.platform.app.feign.ConfigFeign
;
import
com.xxfc.platform.app.feign.ConfigFeign
;
import
com.xxfc.platform.order.biz.OrderAccountBiz
;
import
com.xxfc.platform.order.biz.OrderAccountBiz
;
import
com.xxfc.platform.order.biz.OrderRefundBiz
;
import
com.xxfc.platform.order.biz.OrderRefundBiz
;
import
com.xxfc.platform.order.contant.enumerate.AccountTypeEnum
;
import
com.xxfc.platform.order.contant.enumerate.*
;
import
com.xxfc.platform.order.contant.enumerate.OrderTypeEnum
;
import
com.xxfc.platform.order.contant.enumerate.RefundStatusEnum
;
import
com.xxfc.platform.order.contant.enumerate.RefundTypeEnum
;
import
com.xxfc.platform.order.entity.*
;
import
com.xxfc.platform.order.entity.*
;
import
com.xxfc.platform.order.pojo.account.OrderAccountDeduction
;
import
com.xxfc.platform.order.pojo.account.OrderAccountDetail
;
import
com.xxfc.platform.universal.constant.DictionaryKey
;
import
com.xxfc.platform.universal.constant.DictionaryKey
;
import
com.xxfc.platform.universal.dto.SmsTemplateDTO
;
import
com.xxfc.platform.universal.dto.SmsTemplateDTO
;
import
com.xxfc.platform.universal.entity.Dictionary
;
import
com.xxfc.platform.universal.entity.Dictionary
;
...
@@ -425,9 +425,23 @@ public class OrderMsgBiz {
...
@@ -425,9 +425,23 @@ public class OrderMsgBiz {
setOrderId
(
baseOrder
.
getId
());
setOrderId
(
baseOrder
.
getId
());
setAccountType
(
AccountTypeEnum
.
OUT_PART_DEPOSIT
.
getCode
());
setAccountType
(
AccountTypeEnum
.
OUT_PART_DEPOSIT
.
getCode
());
}});
}});
originalAmount
=
orvd
.
getDeposit
();
violateAmount
=
orderAccount
.
getDeductAmount
();
OrderAccountDetail
oad
=
BeanUtil
.
toBean
(
orderAccount
.
getAccountDetail
(),
OrderAccountDetail
.
class
);
OrderAccountDeduction
trafficDeduction
=
new
OrderAccountDeduction
()
{{
setAmount
(
BigDecimal
.
ZERO
);
}};
//违章保证金
for
(
OrderAccountDeduction
deductionTemp
:
oad
.
getDeductions
())
{
if
(
deductionTemp
.
getType
().
equals
(
DeductionTypeEnum
.
VIOLATE_TRAFFIC_KEEP
.
getCode
()))
{
trafficDeduction
=
deductionTemp
;
}
}
//(原押金 - 违章保证金 )+ 订单退款金额
originalAmount
=
oad
.
getOriginDepositAmount
().
subtract
(
trafficDeduction
.
getAmount
()).
add
(
oad
.
getOrderAmount
());
//退款金额
refundAmount
=
orderAccount
.
getAccountAmount
();
refundAmount
=
orderAccount
.
getAccountAmount
();
// 扣款 = originalAmount - refundAmount
violateAmount
=
originalAmount
.
subtract
(
refundAmount
);
residueAmount
=
orvd
.
getReturnPayResidue
();
residueAmount
=
orvd
.
getReturnPayResidue
();
}
else
if
(
RefundStatusEnum
.
REFUND_DEPOSIT
.
getCode
().
equals
(
baseOrder
.
getRefundStatus
())){
}
else
if
(
RefundStatusEnum
.
REFUND_DEPOSIT
.
getCode
().
equals
(
baseOrder
.
getRefundStatus
())){
smstype
=
SmsTemplateDTO
.
REFUND_B
;
smstype
=
SmsTemplateDTO
.
REFUND_B
;
...
...
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
a909e51b
...
@@ -130,6 +130,9 @@
...
@@ -130,6 +130,9 @@
</foreach>
</foreach>
</if>
</if>
<if
test=
"userId != null"
>
and b.user_id = #{userId}
</if>
<if
test=
"status != null"
>
<if
test=
"status != null"
>
and b.status = #{status}
and b.status = #{status}
</if>
</if>
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/AliYunSmsBiz.java
View file @
a909e51b
...
@@ -67,7 +67,7 @@ public class AliYunSmsBiz {
...
@@ -67,7 +67,7 @@ public class AliYunSmsBiz {
public
static
final
String
TEMPLATE_ID_CANCEL_E
=
"SMS_173345667"
;
public
static
final
String
TEMPLATE_ID_CANCEL_E
=
"SMS_173345667"
;
//租车押金退还 22
//租车押金退还 22
//public static final String TEMPLATE_ID_FINISH_A = "460772";
//public static final String TEMPLATE_ID_FINISH_A = "460772";
public
static
final
String
TEMPLATE_ID_FINISH_A
=
"SMS_17
3340710
"
;
public
static
final
String
TEMPLATE_ID_FINISH_A
=
"SMS_17
5240587
"
;
//违章押金退还 23
//违章押金退还 23
//public static final String TEMPLATE_ID_FINISH_B = "460773";
//public static final String TEMPLATE_ID_FINISH_B = "460773";
public
static
final
String
TEMPLATE_ID_FINISH_B
=
"SMS_173340712"
;
public
static
final
String
TEMPLATE_ID_FINISH_B
=
"SMS_173340712"
;
...
...
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