Commit bfb1b73b authored by hezhen's avatar hezhen

Merge branch 'hz_master'

parents 24915c68 d2ed9739
...@@ -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);
......
...@@ -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!='' ">
......
...@@ -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_173340710"; public static final String TEMPLATE_ID_FINISH_A = "SMS_175240587";
//违章押金退还 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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment