package com.ruoyi.mall.service.impl;

import com.ruoyi.mall.domain.MallOrderPost;
import com.ruoyi.mall.mapper.MallOrderPostMapper;
import com.ruoyi.mall.service.IMallOrderPostService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 邮费设置
 */
@Service
public class MallOrderPostServiceImpl implements IMallOrderPostService {

    @Resource
    private MallOrderPostMapper mallOrderPostMapper;

    /**
     * 查询邮费设置
     * @return
     */
    @Override
    public MallOrderPost selectMallOrderPostById(){
        return mallOrderPostMapper.selectMallOrderPostById();
    }

    /**
     * 修改邮费设置
     * @param mallOrderPost
     * @return
     */
    @Override
    public int updateMallOrderPost(MallOrderPost mallOrderPost){
        return mallOrderPostMapper.updateMallOrderPost(mallOrderPost);
    }
}
