Commit 1818ea76 authored by neo's avatar neo

[DEL] delete operation log service interface

parent a803d572
package pwc.taxtech.atms.controller; package pwc.taxtech.atms.controller;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -9,9 +11,6 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -9,9 +11,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import pwc.taxtech.atms.common.CommonUtils; import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.common.OperateLogType; import pwc.taxtech.atms.common.OperateLogType;
import pwc.taxtech.atms.common.OperationAction; import pwc.taxtech.atms.common.OperationAction;
...@@ -19,7 +18,7 @@ import pwc.taxtech.atms.common.OperationModule; ...@@ -19,7 +18,7 @@ import pwc.taxtech.atms.common.OperationModule;
import pwc.taxtech.atms.dto.OperationLogDto; import pwc.taxtech.atms.dto.OperationLogDto;
import pwc.taxtech.atms.dto.PagingResultDto; import pwc.taxtech.atms.dto.PagingResultDto;
import pwc.taxtech.atms.dto.QueryOperateParamDto; import pwc.taxtech.atms.dto.QueryOperateParamDto;
import pwc.taxtech.atms.service.OperationLogService; import pwc.taxtech.atms.service.impl.OperationLogServiceImpl;
import pwc.taxtech.atms.vat.entity.VatOperationLog; import pwc.taxtech.atms.vat.entity.VatOperationLog;
import java.util.Date; import java.util.Date;
...@@ -34,7 +33,7 @@ public class OperationLogController { ...@@ -34,7 +33,7 @@ public class OperationLogController {
private static Logger logger = LoggerFactory.getLogger(OperationLogController.class); private static Logger logger = LoggerFactory.getLogger(OperationLogController.class);
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@ApiOperation(value = "查询日志") @ApiOperation(value = "查询日志")
@ApiImplicitParam(name = "queryOperateParamDto", value = "queryOperateParamDto", required = true, dataType = "QueryOperateParamDto") @ApiImplicitParam(name = "queryOperateParamDto", value = "queryOperateParamDto", required = true, dataType = "QueryOperateParamDto")
......
package pwc.taxtech.atms.service;
import java.util.List;
import pwc.taxtech.atms.common.OperateLogType;
import pwc.taxtech.atms.common.OperationModule;
import pwc.taxtech.atms.dto.OperationLogDto;
import pwc.taxtech.atms.dto.PagingResultDto;
import pwc.taxtech.atms.dto.QueryOperateParamDto;
import pwc.taxtech.atms.dto.UpdateLogParams;
public interface OperationLogService {
void addOperationLog(OperationLogDto operationLogDto);
void addOperationLogList(List<OperationLogDto> operationLogDtoList);
PagingResultDto<OperationLogDto> getOperationLogList(QueryOperateParamDto queryOperateParamDto);
/**
* 修改数据添加日志方法
* @param updateLogParamsList
*/
void updateDataAddLog(List<UpdateLogParams> updateLogParamsList);
/**
* 修改数据添加日志方法
* @param updateLogParams
*/
void updateDataAddLog(UpdateLogParams updateLogParams);
/**
* 新增数据或删除数据添加日志方法
* @param paramList
*/
void addOrDeleteDataAddLog(List<UpdateLogParams> updateLogParamsList);
/**
* 新增数据或删除数据添加日志方法
* @param updateLogParamsList
*/
void addOrDeleteDataAddLog(UpdateLogParams updateLogParams);
void addDataAddLog(Object newObj, OperationModule operationModule, String userName, String operationDesc
, String operationContent, String OperationObject, OperateLogType logType);
void updateDataAddLog(Object originalObj, Object updateObj, OperationModule operationModule, String userName
, String comment, String operationObject, String operationContent, OperateLogType logType);
void deleteDataAddLog(Object deleteObj, OperationModule operationModule, String userName, String comment
, String operationContent, String OperationObject, OperateLogType logType);
}
...@@ -3,21 +3,19 @@ package pwc.taxtech.atms.service.impl; ...@@ -3,21 +3,19 @@ package pwc.taxtech.atms.service.impl;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import pwc.taxtech.atms.common.AtmsApiSettings; import pwc.taxtech.atms.common.AtmsApiSettings;
import pwc.taxtech.atms.common.AuthUserHelper; import pwc.taxtech.atms.common.AuthUserHelper;
import pwc.taxtech.atms.dao.*; import pwc.taxtech.atms.dao.*;
import pwc.taxtech.atms.service.OperationLogService;
public class AbstractService { public class AbstractService {
protected final Logger logger = LoggerFactory.getLogger(this.getClass()); protected final Logger logger = LoggerFactory.getLogger(this.getClass());
@Autowired @Autowired
protected AuthUserHelper authUserHelper; protected AuthUserHelper authUserHelper;
@Autowired @Autowired
protected AtmsApiSettings atmsApiSettings; protected AtmsApiSettings atmsApiSettings;
@Autowired @Autowired
protected OperationLogService operationLogService; protected OperationLogServiceImpl operationLogService;
@Autowired @Autowired
protected AreaMapper areaMapper; protected AreaMapper areaMapper;
...@@ -119,10 +117,10 @@ public class AbstractService { ...@@ -119,10 +117,10 @@ public class AbstractService {
protected CellTemplateConfigMapper cellTemplateConfigMapper; protected CellTemplateConfigMapper cellTemplateConfigMapper;
@Autowired @Autowired
protected TemplateMapper templateMapper; protected TemplateMapper templateMapper;
// @Autowired // @Autowired
// protected TemplateFormulaMapper templateFormulaMapper; // protected TemplateFormulaMapper templateFormulaMapper;
@Autowired @Autowired
protected FormulaConfigMapper formulaConfigMapper; protected FormulaConfigMapper formulaConfigMapper;
@Autowired @Autowired
DistributedIdService distributedIdService; DistributedIdService distributedIdService;
@Autowired @Autowired
......
...@@ -28,7 +28,6 @@ import pwc.taxtech.atms.entity.AreaRegion; ...@@ -28,7 +28,6 @@ import pwc.taxtech.atms.entity.AreaRegion;
import pwc.taxtech.atms.entity.AreaRegionExample; import pwc.taxtech.atms.entity.AreaRegionExample;
import pwc.taxtech.atms.entity.Region; import pwc.taxtech.atms.entity.Region;
import pwc.taxtech.atms.entity.RegionExample; import pwc.taxtech.atms.entity.RegionExample;
import pwc.taxtech.atms.service.OperationLogService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Comparator; import java.util.Comparator;
...@@ -45,7 +44,7 @@ public class AreaRegionServiceImpl { ...@@ -45,7 +44,7 @@ public class AreaRegionServiceImpl {
private AreaMapper areaMapper; private AreaMapper areaMapper;
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@Autowired @Autowired
private AuthUserHelper authUserHelper; private AuthUserHelper authUserHelper;
@Autowired @Autowired
......
...@@ -24,7 +24,6 @@ import pwc.taxtech.atms.entity.AreaExample; ...@@ -24,7 +24,6 @@ import pwc.taxtech.atms.entity.AreaExample;
import pwc.taxtech.atms.entity.AreaExample.Criteria; import pwc.taxtech.atms.entity.AreaExample.Criteria;
import pwc.taxtech.atms.entity.Organization; import pwc.taxtech.atms.entity.Organization;
import pwc.taxtech.atms.exception.ApplicationException; import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.service.OperationLogService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
...@@ -39,7 +38,7 @@ public class AreaServiceImpl { ...@@ -39,7 +38,7 @@ public class AreaServiceImpl {
@Autowired @Autowired
private OrganizationServiceImpl organizationService; private OrganizationServiceImpl organizationService;
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@Autowired @Autowired
private AuthUserHelper authUserHelper; private AuthUserHelper authUserHelper;
......
...@@ -7,7 +7,6 @@ import org.springframework.web.client.RestTemplate; ...@@ -7,7 +7,6 @@ import org.springframework.web.client.RestTemplate;
import pwc.taxtech.atms.common.AtmsApiSettings; import pwc.taxtech.atms.common.AtmsApiSettings;
import pwc.taxtech.atms.common.AuthUserHelper; import pwc.taxtech.atms.common.AuthUserHelper;
import pwc.taxtech.atms.common.util.BeanUtil; import pwc.taxtech.atms.common.util.BeanUtil;
import pwc.taxtech.atms.service.OperationLogService;
public class BaseService { public class BaseService {
protected final Logger logger = LoggerFactory.getLogger(this.getClass()); protected final Logger logger = LoggerFactory.getLogger(this.getClass());
...@@ -17,7 +16,7 @@ public class BaseService { ...@@ -17,7 +16,7 @@ public class BaseService {
@Autowired @Autowired
protected AtmsApiSettings atmsApiSettings; protected AtmsApiSettings atmsApiSettings;
@Autowired @Autowired
protected OperationLogService operationLogService; protected OperationLogServiceImpl operationLogService;
@Autowired @Autowired
protected DistributedIdService idService; protected DistributedIdService idService;
@Autowired @Autowired
......
...@@ -22,7 +22,6 @@ import pwc.taxtech.atms.entity.BusinessUnit; ...@@ -22,7 +22,6 @@ import pwc.taxtech.atms.entity.BusinessUnit;
import pwc.taxtech.atms.entity.BusinessUnitExample; import pwc.taxtech.atms.entity.BusinessUnitExample;
import pwc.taxtech.atms.entity.BusinessUnitExample.Criteria; import pwc.taxtech.atms.entity.BusinessUnitExample.Criteria;
import pwc.taxtech.atms.exception.ApplicationException; import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.service.OperationLogService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
...@@ -39,7 +38,7 @@ public class BusinessUnitServiceImpl { ...@@ -39,7 +38,7 @@ public class BusinessUnitServiceImpl {
private BusinessUnitMapper businessUnitMapper; private BusinessUnitMapper businessUnitMapper;
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@Autowired @Autowired
private OrganizationServiceImpl organizationService; private OrganizationServiceImpl organizationService;
......
...@@ -30,7 +30,6 @@ import pwc.taxtech.atms.entity.CustomerExample; ...@@ -30,7 +30,6 @@ import pwc.taxtech.atms.entity.CustomerExample;
import pwc.taxtech.atms.entity.CustomerExample.Criteria; import pwc.taxtech.atms.entity.CustomerExample.Criteria;
import pwc.taxtech.atms.entity.EnterpriseAccountSet; import pwc.taxtech.atms.entity.EnterpriseAccountSet;
import pwc.taxtech.atms.exception.ApplicationException; import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.service.OperationLogService;
import pwc.taxtech.atms.vat.dao.CustomsInvoiceMapper; import pwc.taxtech.atms.vat.dao.CustomsInvoiceMapper;
import pwc.taxtech.atms.vat.entity.CustomsInvoice; import pwc.taxtech.atms.vat.entity.CustomsInvoice;
import pwc.taxtech.atms.vat.entity.CustomsInvoiceExample; import pwc.taxtech.atms.vat.entity.CustomsInvoiceExample;
...@@ -59,7 +58,7 @@ public class CustomerServiceImpl { ...@@ -59,7 +58,7 @@ public class CustomerServiceImpl {
private AuthUserHelper authUserHelper; private AuthUserHelper authUserHelper;
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@Autowired @Autowired
private EnterpriseAccountSetMapper enterpriseAccountSetMapper; private EnterpriseAccountSetMapper enterpriseAccountSetMapper;
......
...@@ -25,7 +25,6 @@ import pwc.taxtech.atms.entity.EnterpriseAccountSetOrg; ...@@ -25,7 +25,6 @@ import pwc.taxtech.atms.entity.EnterpriseAccountSetOrg;
import pwc.taxtech.atms.entity.EnterpriseAccountSetOrgExample; import pwc.taxtech.atms.entity.EnterpriseAccountSetOrgExample;
import pwc.taxtech.atms.entity.EnterpriseAccountSetOrgExample.Criteria; import pwc.taxtech.atms.entity.EnterpriseAccountSetOrgExample.Criteria;
import pwc.taxtech.atms.entity.Organization; import pwc.taxtech.atms.entity.Organization;
import pwc.taxtech.atms.service.OperationLogService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -43,7 +42,7 @@ public class EnterpriseAccountSetServiceImpl { ...@@ -43,7 +42,7 @@ public class EnterpriseAccountSetServiceImpl {
private OrganizationMapper organizationMapper; private OrganizationMapper organizationMapper;
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@Autowired @Autowired
private AuthUserHelper authUserHelper; private AuthUserHelper authUserHelper;
......
...@@ -56,7 +56,6 @@ import pwc.taxtech.atms.dto.user.NameDto; ...@@ -56,7 +56,6 @@ import pwc.taxtech.atms.dto.user.NameDto;
import pwc.taxtech.atms.entity.*; import pwc.taxtech.atms.entity.*;
import pwc.taxtech.atms.entity.OrganizationExample.Criteria; import pwc.taxtech.atms.entity.OrganizationExample.Criteria;
import pwc.taxtech.atms.exception.ApplicationException; import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.service.OperationLogService;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -141,7 +140,7 @@ public class OrganizationServiceImpl { ...@@ -141,7 +140,7 @@ public class OrganizationServiceImpl {
private DimensionValueMapper dimensionValueMapper; private DimensionValueMapper dimensionValueMapper;
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@Autowired @Autowired
private EnterpriseAccountSetOrgMapper enterpriseAccountSetOrgMapper; private EnterpriseAccountSetOrgMapper enterpriseAccountSetOrgMapper;
......
...@@ -21,7 +21,6 @@ import pwc.taxtech.atms.dto.UpdateLogParams; ...@@ -21,7 +21,6 @@ import pwc.taxtech.atms.dto.UpdateLogParams;
import pwc.taxtech.atms.entity.OrganizationStructure; import pwc.taxtech.atms.entity.OrganizationStructure;
import pwc.taxtech.atms.entity.OrganizationStructureExample; import pwc.taxtech.atms.entity.OrganizationStructureExample;
import pwc.taxtech.atms.exception.ApplicationException; import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.service.OperationLogService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
...@@ -36,7 +35,7 @@ public class OrganizationStructureServiceImpl { ...@@ -36,7 +35,7 @@ public class OrganizationStructureServiceImpl {
private OrganizationStructureMapper organizationStructureMapper; private OrganizationStructureMapper organizationStructureMapper;
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@Autowired @Autowired
private OrganizationServiceImpl organizationService; private OrganizationServiceImpl organizationService;
......
...@@ -21,7 +21,6 @@ import pwc.taxtech.atms.entity.TaxPayerReportRuleExample; ...@@ -21,7 +21,6 @@ import pwc.taxtech.atms.entity.TaxPayerReportRuleExample;
import pwc.taxtech.atms.entity.TaxRuleSetting; import pwc.taxtech.atms.entity.TaxRuleSetting;
import pwc.taxtech.atms.entity.TaxRuleSettingOrganization; import pwc.taxtech.atms.entity.TaxRuleSettingOrganization;
import pwc.taxtech.atms.entity.TaxRuleSettingOrganizationExample; import pwc.taxtech.atms.entity.TaxRuleSettingOrganizationExample;
import pwc.taxtech.atms.service.OperationLogService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
...@@ -34,7 +33,7 @@ import java.util.stream.Collectors; ...@@ -34,7 +33,7 @@ import java.util.stream.Collectors;
public class RuleEngineeConfigServiceImpl extends AbstractService { public class RuleEngineeConfigServiceImpl extends AbstractService {
@Autowired @Autowired
OperationLogService operationService; OperationLogServiceImpl operationService;
@Autowired @Autowired
private AuthUserHelper authUserHelper; private AuthUserHelper authUserHelper;
......
...@@ -54,7 +54,6 @@ import pwc.taxtech.atms.exception.ApplicationException; ...@@ -54,7 +54,6 @@ import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.security.AtmsPasswordEncoder; import pwc.taxtech.atms.security.AtmsPasswordEncoder;
import pwc.taxtech.atms.security.JwtUtil; import pwc.taxtech.atms.security.JwtUtil;
import pwc.taxtech.atms.security.LdapAuthenticationProvider; import pwc.taxtech.atms.security.LdapAuthenticationProvider;
import pwc.taxtech.atms.service.OperationLogService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
...@@ -96,7 +95,7 @@ public class UserServiceImpl extends AbstractService { ...@@ -96,7 +95,7 @@ public class UserServiceImpl extends AbstractService {
@Autowired @Autowired
private UserOrganizationMapper userOrganizationMapper; private UserOrganizationMapper userOrganizationMapper;
@Autowired @Autowired
private OperationLogService operationLogService; private OperationLogServiceImpl operationLogService;
@Autowired @Autowired
private OrganizationServiceImpl organizationService; private OrganizationServiceImpl organizationService;
@Autowired @Autowired
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment