package com.emr.service;

import com.emr.dao.EmrComomSetMapper;
import com.emr.entity.EmrComomSet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.servlet.ServletContext;

@Service
@Transactional
public class CommomSetService{
    @Autowired
    private EmrComomSetMapper comomSetMapper;
    public EmrComomSet selectByPrimaryKey(Integer id){
        return comomSetMapper.selectByPrimaryKey(id);
    }


    public void update(EmrComomSet comomSet){
        comomSetMapper.updateByPrimaryKey(comomSet);
    }
}
