Newer
Older
huludao / src / main / java / com / newfiber / modules / sys / service / impl / SyslogService.java
@新烽开发者 新烽开发者 on 22 Jul 657 bytes init
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);

    }

}