Commit 6b72a933 authored by neo's avatar neo

[DEL] delete identity service interface

parent 1818ea76
......@@ -7,7 +7,6 @@ import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
......@@ -17,7 +16,7 @@ import pwc.taxtech.atms.dto.vatdto.ImportInputInvoiceDto;
import pwc.taxtech.atms.dto.vatdto.ImportInputInvoiceItemDto;
import pwc.taxtech.atms.dto.vatdto.InputInvoice;
import pwc.taxtech.atms.dto.vatdto.InputVATInvoiceBaseDto;
import pwc.taxtech.atms.service.IdentityService;
import pwc.taxtech.atms.service.impl.IdentityServiceImpl;
import pwc.taxtech.atms.thirdparty.ExcelSheet;
import pwc.taxtech.atms.thirdparty.ExcelUtil;
import pwc.taxtech.atms.vat.dpo.InputInvoicePreviewQueryParam;
......@@ -42,7 +41,7 @@ public class InputInvoiceImportController {
@Autowired
InputInvoiceDataImportServiceImpl inputInvoiceDataImportService;
@Autowired
private IdentityService identityService;
private IdentityServiceImpl identityService;
private Logger logger = LoggerFactory.getLogger(InputInvoiceImportController.class);
@RequestMapping(value = "inputInvoicePreviewList", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
......
......@@ -15,7 +15,7 @@ import pwc.taxtech.atms.dpo.PagingResultDto;
import pwc.taxtech.atms.dto.vatdto.ImportOutputInvoiceDto;
import pwc.taxtech.atms.dto.vatdto.OutputInvoice;
import pwc.taxtech.atms.dto.vatdto.QueryEvidenceDto;
import pwc.taxtech.atms.service.IdentityService;
import pwc.taxtech.atms.service.impl.IdentityServiceImpl;
import pwc.taxtech.atms.thirdparty.ExcelUtil;
import pwc.taxtech.atms.vat.dpo.OutputVATInvoiceInfoDto;
import pwc.taxtech.atms.vat.dpo.QueryOutputDto;
......@@ -44,7 +44,7 @@ public class OutputInvoiceController {
@Autowired
OutputInvoiceServiceImpl outputInvoiceService;
@Autowired
private IdentityService identityService;
private IdentityServiceImpl identityService;
@Autowired
private FileUploadAdapter fileUploadAdapter;
......
......@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RestController;
import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.vatdto.QueryImportType;
import pwc.taxtech.atms.entity.PeriodInfo;
import pwc.taxtech.atms.service.IdentityService;
import pwc.taxtech.atms.service.impl.IdentityServiceImpl;
import pwc.taxtech.atms.service.impl.ProjectInfoServiceImpl;
import java.util.List;
......@@ -23,7 +23,7 @@ public class ProjectInfoController {
@Autowired
private ProjectInfoServiceImpl projectInfoService;
@Autowired
private IdentityService identityService;
private IdentityServiceImpl identityService;
@ApiOperation(value = "isProjectImportedData", notes = "")
@RequestMapping(value = "isProjectImportedData/{projectId}/{serviceType}/{importTypeId}", method = RequestMethod.GET)
......
......@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.taxadmin.ProjectStatusManageDto;
import pwc.taxtech.atms.service.IdentityService;
import pwc.taxtech.atms.service.impl.IdentityServiceImpl;
import pwc.taxtech.atms.service.impl.ProjectStatusManageServiceImpl;
@RestController
......@@ -21,7 +21,7 @@ public class ProjectStatusManageController {
private ProjectStatusManageServiceImpl projectStatusManageService;
@Autowired
private IdentityService identityService;
private IdentityServiceImpl identityService;
@ApiOperation(value = "setProjectStatus", notes = "")
@RequestMapping(value = {"/setProjectStatus/{projectId}/{periodId}/{status}"}, method = RequestMethod.GET,
......
......@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import pwc.taxtech.atms.dto.vatdto.InvoiceMappingDto;
import pwc.taxtech.atms.dto.vatdto.VoucherMappingDto;
import pwc.taxtech.atms.service.IdentityService;
import pwc.taxtech.atms.service.impl.IdentityServiceImpl;
import pwc.taxtech.atms.vat.service.impl.VoucherInvoiceMappingServiceImpl;
import java.util.List;
......@@ -25,7 +25,7 @@ public class VoucherInvoiceMappingController {
@Autowired
private VoucherInvoiceMappingServiceImpl voucherInvoiceMappingService;
@Autowired
private IdentityService identityService;
private IdentityServiceImpl identityService;
@RequestMapping(value = "getvmappings/{period}", method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
......
package pwc.taxtech.atms.service;
import pwc.taxtech.atms.dpo.UserDto;
public interface IdentityService {
UserDto getIdentityUser();
}
......@@ -3,11 +3,9 @@ package pwc.taxtech.atms.service.impl;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.AppCachePool;
import pwc.taxtech.atms.dpo.UserDto;
import pwc.taxtech.atms.service.IdentityService;
@Service
public class IdentityServiceImpl implements IdentityService {
@Override
public class IdentityServiceImpl {
public UserDto getIdentityUser() {
return AppCachePool.getCachedUser("cach_test");//TODO:should fixed use session username(neo)
}
......
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