|
@@ -307,16 +307,16 @@ public class DistributionCashWithdrawalServiceImpl extends ServiceImpl<Distribut
|
|
|
public boolean payCashCallBack(DistributionCashWithdrawalPayBo bo) {
|
|
public boolean payCashCallBack(DistributionCashWithdrawalPayBo bo) {
|
|
|
DistributionCashWithdrawal withdrawal = getOne(new LambdaQueryWrapper<DistributionCashWithdrawal>()
|
|
DistributionCashWithdrawal withdrawal = getOne(new LambdaQueryWrapper<DistributionCashWithdrawal>()
|
|
|
.eq(DistributionCashWithdrawal::getCwSn, bo.getCwSn()));
|
|
.eq(DistributionCashWithdrawal::getCwSn, bo.getCwSn()));
|
|
|
- if(Validator.isEmpty(withdrawal)||withdrawal.getStatus()!=5){
|
|
|
|
|
|
|
+ if(Validator.isEmpty(withdrawal)||withdrawal.getCwStatus()!=5){
|
|
|
throw new CustomException("非法操作");
|
|
throw new CustomException("非法操作");
|
|
|
}
|
|
}
|
|
|
if(bo.getStatus()==1){
|
|
if(bo.getStatus()==1){
|
|
|
withdrawal.setCwStatus(4);
|
|
withdrawal.setCwStatus(4);
|
|
|
|
|
+ withdrawal.setPayTime(DateUtils.getNowTime());
|
|
|
}
|
|
}
|
|
|
else{
|
|
else{
|
|
|
withdrawal.setCwStatus(6);
|
|
withdrawal.setCwStatus(6);
|
|
|
}
|
|
}
|
|
|
- withdrawal.setPayTime(DateUtils.getNowTime());
|
|
|
|
|
withdrawal.setUpdateTime(DateUtils.getNowTime());
|
|
withdrawal.setUpdateTime(DateUtils.getNowTime());
|
|
|
updateById(withdrawal);
|
|
updateById(withdrawal);
|
|
|
return true;
|
|
return true;
|