src/main/java/com/yj/oa/project/service/operlog/OperLogServiceImpl.java

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.yj.oa.project.service.operlog;

import com.yj.oa.project.mapper.OperLogMapper;
import com.yj.oa.project.po.OperLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 永健
 */
@Service
@Transactional
public class OperLogServiceImpl implements IOperLogService{
    private Logger log= LoggerFactory.getLogger(OperLogServiceImpl.class);

    @Autowired
    OperLogMapper operLogMapper;

    /**
     *
     * @描述 批量删除
     *
     * @date 2018/9/18 21:13
     */
    @Override
    public int deleteByPrimaryKeys(Integer[] positionId) throws RuntimeException
    {
        try
        {
            return operLogMapper.deleteByPrimaryKeys(positionId);
        }
        catch (RuntimeException e)
        {
            log.error("$$$$$ 删除公失败=[{}]",e);
            throw new RuntimeException("操作失败!");
        }
    }

    /**
     *
     * @描述 天加
     *
     * @date 2018/9/18 20:19
     */
    @Override
    public int insertSelective(OperLog record)
    {
        System.out.println(record);
        return operLogMapper.insertSelective(record);
    }


    /**
     *
     * @描述 根据id查
后面还有 33 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。