package com.tykj.dev.config.service.impl;

import com.tykj.dev.config.domin.TerminalInformation;
import com.tykj.dev.config.repository.TerminalInformationDao;
import com.tykj.dev.config.service.TerminalInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zjm
 * @version 1.0.0
 * @ClassName TerminalInformationServiceImpl.java
 * @Description TODO
 * @createTime 2021年08月16日 17:09:00
 */
@Service
public class TerminalInformationServiceImpl implements TerminalInformationService {
    @Autowired
    TerminalInformationDao terminalInformationDao;

    @Override
    public TerminalInformation findCode(String code) {
        return terminalInformationDao.findByCode(code);
    }


    @Override
    public TerminalInformation saveTerminalInformation(TerminalInformation terminalInformation) {
        return terminalInformationDao.save(terminalInformation);
    }

}
