package com.hssx.pcbms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hssx.pcbms.entity.RackData;
import com.hssx.pcbms.mapper.RackDataMapper;
import com.hssx.pcbms.service.RackDataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hssx.pcbms.util.HttpRespMsg;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 吴涛涛
 * @since 2019-11-14
 */
@Service
public class RackDataServiceImpl extends ServiceImpl<RackDataMapper, RackData> implements RackDataService {
    @Resource
    private RackDataMapper rackDataMapper;
    @Override
    public HttpRespMsg updateInfo(RackData rackData) {
        HttpRespMsg msg = new HttpRespMsg();
        rackDataMapper.update(rackData,new QueryWrapper<RackData>().eq("goods_id",rackData.getGoodsId()));
        return msg;
    }
}
