package cn.estsh.i3plus.ext.mes.pcn.apiservice.serviceimpl.busi.bu;

import cn.estsh.i3plus.ext.mes.pcn.api.busi.bu.ISxMesBusiErrorMessageService;
import cn.estsh.i3plus.ext.mes.pcn.pojo.bean.MesBusiErrorMessage;
import cn.estsh.i3plus.ext.mes.pcn.pojo.repository.MesBusiErrorMessageRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @PROJECT_NAME: i3plus-mes-panasonic-bu
 * @DESCRIPTION:
 * @USER: xinwang.yi
 * @DATE: 2022-10-13 14:00
 */
@Slf4j
@Service
public class SxMesBusiErrorMessageService implements ISxMesBusiErrorMessageService {

    @Autowired
    private MesBusiErrorMessageRepository busiErrorMessageRepository;

    @Override
    public MesBusiErrorMessage insertMesBusiErrorMessage(MesBusiErrorMessage busiErrorMessage) {
        return busiErrorMessageRepository.insert(busiErrorMessage);
    }
}
