| | |
| | | auditRecord.setBeforeMoney(user.getMyHongBao());
|
| | | auditRecord.setExtract(extract);
|
| | |
|
| | | Date minTime = new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24 * 180L);
|
| | | Date minTime = new Date(System.currentTimeMillis() - 1000 * 60 * 60L * 24 * 180);
|
| | |
|
| | | extractAuditRecordMapper.insertSelective(auditRecord);
|
| | |
|
| | |
| | | *
|
| | | * @param extract
|
| | | * @param msg
|
| | | * @param session
|
| | | */
|
| | | @Transactional
|
| | | private void extractFail(Extract extract, String msg) {
|
| | | private void extractFail(Extract extract, String subCode, String msg) {
|
| | | UserInfo user = extract.getUserInfo();
|
| | | // MoneyRecord moneyRecord = new MoneyRecord(user, null, extract
|
| | | // .getMoney(), "提现", "提现失败", new Date().getTime(), 3);
|
| | | if ("付款方余额不足".equals(msg)) {
|
| | | if ("PAYER_BALANCE_NOT_ENOUGH".equals(subCode)) {
|
| | | Extract updateExtract = new Extract();
|
| | | updateExtract.setId(extract.getId());
|
| | | updateExtract.setState(Constant.EXTRACT_DEFUALT);
|
| | |
| | | if ("10000".equals(code)) {
|
| | | extractSuccess(extract, response.getOrderId());
|
| | | } else {
|
| | | extractFail(extract, response.getSubMsg());
|
| | | extractFail(extract, response.getSubCode(), response.getSubMsg());
|
| | | }
|
| | | } else {
|
| | | extractFail(extract, response.getSubMsg());
|
| | | extractFail(extract, response.getSubCode(), response.getSubMsg());
|
| | | }
|
| | | PayInfo payInfo = new PayInfo();
|
| | | payInfo.setBizno(response.getOutBizNo());
|