admin
2021-01-25 2ba431be9c12a79783e0f9ef249292b7fa95f2a1
fanli/src/main/java/com/yeshi/fanli/service/impl/money/extract/ExtractServiceImpl.java
@@ -293,7 +293,7 @@
        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);
@@ -438,14 +438,12 @@
     *
     * @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);
@@ -671,10 +669,10 @@
            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());