|
@@ -131,7 +131,7 @@ public class AppUsersCashrecordController extends BaseController
|
|
|
@Log(title = "提现记录", businessType = BusinessType.UPDATE)
|
|
|
@ApiOperation(value = "修改提现记录", notes = "修改提现记录")
|
|
|
@PutMapping
|
|
|
- @DSTransactional
|
|
|
+ @DSTransactional()
|
|
|
public R<String> edit(@RequestBody AppUsersCashrecord appUsersCashrecord) throws Exception {
|
|
|
AppUsersCashrecord cashrecord = appUsersCashrecordService.selectAppUsersCashrecordById(appUsersCashrecord.getId());
|
|
|
if(null == cashrecord){
|
|
@@ -148,14 +148,10 @@ public class AppUsersCashrecordController extends BaseController
|
|
|
update.setId(cashrecord.getId());
|
|
|
update.setStatus(appUsersCashrecord.getStatus());
|
|
|
update.setReason(appUsersCashrecord.getReason());
|
|
|
- int rest = appUsersCashrecordService.updateAppUsersCashrecord(update);
|
|
|
- if(rest < 1){
|
|
|
- return R.fail("审核失败");
|
|
|
- }
|
|
|
if(1 == appUsersCashrecord.getStatus().intValue() && null != appUsersCashrecord.getCashChannelId() && appUsersCashrecord.getCashChannelId() > 0){
|
|
|
//审核通过
|
|
|
AppChargeChannel appChargeChannel = appChargeChannelService.selectAppChargeChannelById(appUsersCashrecord.getCashChannelId());
|
|
|
- if(null == appChargeChannel && StringUtils.isNotBlank(appChargeChannel.getChannelKey())){
|
|
|
+ if(null != appChargeChannel && StringUtils.isNotBlank(appChargeChannel.getChannelKey())){
|
|
|
String extra = "";
|
|
|
if(Arrays.asList("8092","8095").contains(appChargeChannel.getChannelKey())){
|
|
|
//钱包提现
|
|
@@ -201,6 +197,10 @@ public class AppUsersCashrecordController extends BaseController
|
|
|
appUserService.updateUserAmount(tran);
|
|
|
appUserCountTask.updateWithdrawAble(appUser.getUserid());
|
|
|
}
|
|
|
+ int rest = appUsersCashrecordService.updateAppUsersCashrecord(update);
|
|
|
+ if(rest < 1){
|
|
|
+ return R.fail("审核失败");
|
|
|
+ }
|
|
|
return R.ok("审核成功");
|
|
|
}
|
|
|
|