package com.newfiber.modules.sys.service.impl; import com.baomidou.dynamic.datasource.annotation.DS; import com.newfiber.modules.sys.dao.SysLogDao; import com.newfiber.modules.sys.entity.SysLog; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; /** * Created by XuChengChao on 2018/12/19. */ @DS("main") @Service @Transactional(rollbackFor = Exception.class) public class SyslogService { @Autowired private SysLogDao sysLogDao; public int insert(SysLog sysLog){ return sysLogDao.insert(sysLog); } }