Commit 0ad0d662 authored by neo's avatar neo

[DEL] delete customer service interface

parent 0f6af6c2
......@@ -25,7 +25,7 @@ import pwc.taxtech.atms.dto.customer.CustomerValidateInfoDto;
import pwc.taxtech.atms.dto.vatdto.CustomsInvoiceDto;
import pwc.taxtech.atms.dto.vatdto.CustomsInvoiceFilter;
import pwc.taxtech.atms.dto.vatdto.JsonCustomsInvoice;
import pwc.taxtech.atms.service.CustomerService;
import pwc.taxtech.atms.service.impl.CustomerServiceImpl;
import java.io.IOException;
import java.io.InputStream;
......@@ -43,7 +43,7 @@ public class CustomerController {
private static final Logger logger = LoggerFactory.getLogger(CustomerController.class);
@Autowired
private CustomerService customerService;
private CustomerServiceImpl customerService;
@ApiOperation(value = "财务数据客户增加")
// @ApiImplicitParam(name = "customerDtoList", value = "customerDto List",
......
package pwc.taxtech.atms.service;
import java.io.InputStream;
import java.util.List;
import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.customer.CustomerDto;
import pwc.taxtech.atms.dto.customer.CustomerValidateInfoDto;
import pwc.taxtech.atms.dto.vatdto.CustomsInvoiceDto;
public interface CustomerService {
List<OperationResultDto<CustomerDto>> addRange(List<CustomerDto> customerDtoList);
CustomerValidateInfoDto getByEnterpriseAccountSetId(String setId);
List<CustomerDto> getCustomer();
OperationResultDto<String> deleteRange(List<CustomerDto> customerDtoList);
List<OperationResultDto<CustomerDto>> updateRange(List<CustomerDto> customerDtoList);
Object upload(InputStream inputStream, String fileName, String action, String enterpriseAccountId);
List<CustomsInvoiceDto> GetCustomsInvoicesByPeriodIds(int fromPeriod, int toPeriod);
}
package pwc.taxtech.atms.service.impl;
import java.io.File;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.apache.commons.io.FileUtils;
import org.nutz.lang.Files;
import org.slf4j.Logger;
......@@ -19,9 +9,6 @@ import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import pwc.taxtech.atms.dto.vatdto.CustomsInvoiceDto;
import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.common.AuthUserHelper;
import pwc.taxtech.atms.common.CommonConstants;
import pwc.taxtech.atms.common.CommonUtils;
......@@ -37,20 +24,31 @@ import pwc.taxtech.atms.dto.UpdateLogParams;
import pwc.taxtech.atms.dto.ValidateInfoDto;
import pwc.taxtech.atms.dto.customer.CustomerDto;
import pwc.taxtech.atms.dto.customer.CustomerValidateInfoDto;
import pwc.taxtech.atms.dto.vatdto.CustomsInvoiceDto;
import pwc.taxtech.atms.entity.Customer;
import pwc.taxtech.atms.entity.CustomerExample;
import pwc.taxtech.atms.entity.CustomerExample.Criteria;
import pwc.taxtech.atms.entity.EnterpriseAccountSet;
import pwc.taxtech.atms.service.CustomerService;
import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.service.OperationLogService;
import pwc.taxtech.atms.vat.dao.CustomsInvoiceMapper;
import pwc.taxtech.atms.vat.entity.CustomsInvoice;
import pwc.taxtech.atms.vat.entity.CustomsInvoiceExample;
import java.io.File;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
*/
@Service
public class CustomerServiceImpl implements CustomerService {
public class CustomerServiceImpl {
private static final Logger logger = LoggerFactory.getLogger(CustomerServiceImpl.class);
......@@ -71,7 +69,6 @@ public class CustomerServiceImpl implements CustomerService {
@Autowired
private CustomsInvoiceMapper customsInvoiceMapper;
@Override
public List<OperationResultDto<CustomerDto>> addRange(List<CustomerDto> customerDtoList) {
logger.debug("CustomerService addRange");
// logger.debug("customer list to add:{}", JSON.toJSONString(customerDtoList, true));
......@@ -113,7 +110,6 @@ public class CustomerServiceImpl implements CustomerService {
operationLogDto.setLogType(OperateLogType.OperationLogBasicData.value());
}
@Override
public List<CustomerDto> getCustomer() {
logger.debug("CustomerService getCustomer");
List<CustomerDto> customerDtoList = new ArrayList<>();
......@@ -128,7 +124,6 @@ public class CustomerServiceImpl implements CustomerService {
return customerDtoList;
}
@Override
public OperationResultDto<String> deleteRange(List<CustomerDto> customerDtoList) {
logger.debug("CustomerService deleteRange");
// logger.debug("customer list to delete:{}", JSON.toJSONString(customerDtoList, true));
......@@ -158,7 +153,6 @@ public class CustomerServiceImpl implements CustomerService {
return operationResultDto;
}
@Override
public List<OperationResultDto<CustomerDto>> updateRange(List<CustomerDto> customerDtoList) {
logger.debug("CustomerService updateRange");
// logger.debug("customer list to update:{}", JSON.toJSONString(customerDtoList, true));
......@@ -214,7 +208,6 @@ public class CustomerServiceImpl implements CustomerService {
}
@SuppressWarnings("rawtypes")
@Override
public Object upload(InputStream inputStream, String fileName, String action, String enterpriseAccountId) {
logger.debug("导入excel文件开始, action:{}, enterpriseAccountId:{}", action, enterpriseAccountId);
String filePath = FileUtils.getTempDirectory().getAbsolutePath() + File.separator + "customer" + File.separator
......@@ -257,7 +250,6 @@ public class CustomerServiceImpl implements CustomerService {
return finalResult;
}
@Override
public List<CustomsInvoiceDto> GetCustomsInvoicesByPeriodIds(int fromPeriod, int toPeriod) {
CustomsInvoiceExample example = new CustomsInvoiceExample();
example.createCriteria().andPeriodIdGreaterThanOrEqualTo(fromPeriod).andPeriodIdLessThanOrEqualTo(toPeriod);
......@@ -383,7 +375,6 @@ public class CustomerServiceImpl implements CustomerService {
return operationLogDto;
}
@Override
public CustomerValidateInfoDto getByEnterpriseAccountSetId(String setId) {
logger.debug("CustomerService getByEnterpriseAccountSetId");
logger.debug("get customer by set id, id: {}", setId);
......
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