package com.kmall.admin.service.impl;

import com.kmall.admin.dao.*;
import com.kmall.admin.entity.*;
import com.kmall.admin.service.MallOrderRefundService;
import com.kmall.admin.service.OrderService;
import com.kmall.api.contants.Dict;
import com.kmall.common.utils.DateUtils;
import com.kmall.common.utils.RRException;
import com.kmall.common.utils.ShiroUtils;
import com.kmall.common.utils.printer.FeiGeUtils;
import com.kmall.common.utils.wechat.WechatRefundApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service("mallOrderRefundService")
public class MallOrderRefundServiceImpl implements MallOrderRefundService {

    @Autowired
    private MallOrderRefundDao mallOrderRefundDao;

    @Override
    public int save(MallOrderRefundEntity mallOrderRefundEntity) {
        return mallOrderRefundDao.save(mallOrderRefundEntity);
    }

    @Override
    public int update(MallOrderRefundEntity mallOrderRefundEntity) {
        return mallOrderRefundDao.update(mallOrderRefundEntity);
    }

    @Override
    public MallOrderRefundEntity queryObjectByOrderId(String orderId){
        return mallOrderRefundDao.queryObjectByOrderId(orderId);
    }

}
