package com.njcn.serviceimpl.configuration;

import com.njcn.mapper.configuration.ConstantValueMapper;
import com.njcn.pojo.configuration.ConstantValue;
import com.njcn.service.configuration.ConstantValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/** @Author denghuajun
 * @Description //TODO 定值管理ServiceImpl
 * @Date  2018/10/15 21:39
 **/
@Service
public class ConstantValueServiceImpl implements ConstantValueService {
    @Autowired
    private ConstantValueMapper cvm;
    @Override
    public List<ConstantValue> quarryOutValueBase(long lineIndex) {
        List<ConstantValue> constantValues=cvm.quarryOutValueBase(lineIndex);

        return constantValues;
    }

    @Override
    public List<ConstantValue> quarryInValueBase(long devIndex) {
        List<ConstantValue> constantValues=cvm.quarryInValueBase(devIndex);
        return constantValues;
    }

    @Override
    public int quarryOutCount(String devtype,long lineIndex) {
        return cvm.quarryOutCount(devtype,lineIndex);
    }

    @Override
    public int updateOut(int cpuNo, String type, int sort, Float value) {
        return cvm.updateOut(cpuNo,type,sort,value);
    }
    
    @Override
    public int updateIn(int cpuNo, String type, int sort, int value) {
        return cvm.updateIn(cpuNo,type,sort,value);
    }

    @Override
    public ConstantValue getConvId(int cpuNo, String type, int sort) {
        return cvm.getConvId(cpuNo,type,sort);
    }

}
