AdminOpsServiceImpl.java
996 Bytes
package com.xkl.service;
import com.xkl.config.Constants;
import com.xkl.domain.XklAdminOpsEntity;
import com.xkl.repository.AdminOpsRepository;
import com.xkl.repository.ReportDetailRepository;
import com.xkl.tools.DESTools;
import lombok.extern.apachecommons.CommonsLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;
/**
* create by zhaoyue
* 2017-03-11
*/
@Service
@CommonsLog
public class AdminOpsServiceImpl implements IAdminOpsService, Constants {
@Autowired
private AdminOpsRepository adminOpsRepository;
@Override
public void addOperation(long adminId, long memberId, int operation) {
XklAdminOpsEntity xklAdminOpsEntity = new XklAdminOpsEntity(adminId, memberId, operation);
adminOpsRepository.save(xklAdminOpsEntity);
}
}