bruce

退款通知返回给银联

......@@ -55,7 +55,7 @@ public class PickPayBiz {
pickTotal += apply.getCurrentAmount();
}
}
if (pickTotal == 0){
if (pickTotal == 0) {
result.put("code", false);
result.put("msg", "库存不足无法提货");
return result;
......@@ -128,11 +128,18 @@ public class PickPayBiz {
} catch (Exception e) {
transactionManager.rollback(status);
}
} else if (result.get("billStatus").equals("REFUND")) {
OutpropApplyPayInfo update = new OutpropApplyPayInfo();
update.setTradeNo(result.get("billNo"));
update.setStatus("4");//退款
outpropApplyPayDao.update(update);
return true;
} else {
OutpropApplyPayInfo update = new OutpropApplyPayInfo();
update.setTradeNo(result.get("billNo"));
update.setStatus("3");
update.setStatus("3");//支付失败
outpropApplyPayDao.update(update);
return true;
}
}
return false;
......