Commit 6b72a933 authored by neo's avatar neo

[DEL] delete identity service interface

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