Commit dad61b11 authored by neo's avatar neo

[DEL] delete project service interface

parent e868e805
...@@ -15,7 +15,6 @@ import pwc.taxtech.atms.dpo.ProjectDisplayDto; ...@@ -15,7 +15,6 @@ import pwc.taxtech.atms.dpo.ProjectDisplayDto;
import pwc.taxtech.atms.dto.ProjectClientDto; import pwc.taxtech.atms.dto.ProjectClientDto;
import pwc.taxtech.atms.dto.ServiceTypeDto; import pwc.taxtech.atms.dto.ServiceTypeDto;
import pwc.taxtech.atms.dto.taxadmin.AddProjectResult; import pwc.taxtech.atms.dto.taxadmin.AddProjectResult;
import pwc.taxtech.atms.service.ProjectService;
import pwc.taxtech.atms.service.impl.ProjectServiceImpl; import pwc.taxtech.atms.service.impl.ProjectServiceImpl;
import java.util.List; import java.util.List;
......
...@@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.ResponseBody; ...@@ -9,7 +9,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.ServiceTypeDto; import pwc.taxtech.atms.dto.ServiceTypeDto;
import pwc.taxtech.atms.entity.ServiceType; import pwc.taxtech.atms.entity.ServiceType;
import pwc.taxtech.atms.service.ProjectService; import pwc.taxtech.atms.service.impl.ProjectServiceImpl;
import pwc.taxtech.atms.service.impl.ServiceTypeServiceImpl; import pwc.taxtech.atms.service.impl.ServiceTypeServiceImpl;
import java.util.List; import java.util.List;
...@@ -19,7 +19,7 @@ import java.util.List; ...@@ -19,7 +19,7 @@ import java.util.List;
public class ServiceTypeController { public class ServiceTypeController {
@Autowired @Autowired
private ProjectService projectService; private ProjectServiceImpl projectService;
@Autowired @Autowired
private ServiceTypeServiceImpl serviceTypeService; private ServiceTypeServiceImpl serviceTypeService;
......
package pwc.taxtech.atms.service;
import java.util.List;
import java.util.Map;
import pwc.taxtech.atms.dpo.ProjectDisplayDto;
import pwc.taxtech.atms.dto.ProjectClientDto;
import pwc.taxtech.atms.dto.ServiceTypeDto;
import pwc.taxtech.atms.dto.taxadmin.AddProjectResult;
public interface ProjectService {
/**
* Find Top level areas (parentId == null)
*
* @return List<Area>
*/
List<ServiceTypeDto> getServiceList();
// List<ProjectDisplayDto> getProjectList(String orgId, String serviceId,
// Integer projectYear);
// List<ProjectDisplayDto> getOneProjectByDbNameServiceIdAndPeriodId(String
// dbName, String serviceId, Integer periodId);
// List<ProjectDisplayDto> getAllProjectList(String orgId, String serviceId,
// Integer projectYear);
// List<ProjectDisplayDto> getProjectById(String projectId);
// List<ProjectDisplayDto> getProjectListExceptSelected(String userId);
//
// ProjectDisplayDto getSingleProjectById(String projectId);
//
// AddProjectResult addProject(ProjectDisplayDto projectDto, String userName);
//
// OperationResultDto<Object> updateProject(ProjectDisplayDto projectDto, String
// userName);
List<ProjectClientDto> getProjectClientList();
List<ProjectDisplayDto> getProjectById(String projectId);
List<ProjectDisplayDto> getAllProjectList(String orgId, String s, Integer projectYear);
AddProjectResult addProject(ProjectDisplayDto projectDto, String userName);
Map<Integer,Integer> getProjectAllStatus(String dbName);
// Map<Integer, Integer> getProjectAllStatus(String dbName);
}
...@@ -24,7 +24,6 @@ import pwc.taxtech.atms.dto.taxadmin.AddProjectResult; ...@@ -24,7 +24,6 @@ import pwc.taxtech.atms.dto.taxadmin.AddProjectResult;
import pwc.taxtech.atms.dto.taxadmin.ProjectYearParam; import pwc.taxtech.atms.dto.taxadmin.ProjectYearParam;
import pwc.taxtech.atms.entity.*; import pwc.taxtech.atms.entity.*;
import pwc.taxtech.atms.entity.ProjectClientExample.Criteria; import pwc.taxtech.atms.entity.ProjectClientExample.Criteria;
import pwc.taxtech.atms.service.ProjectService;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
...@@ -36,7 +35,7 @@ import java.util.UUID; ...@@ -36,7 +35,7 @@ import java.util.UUID;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Service @Service
public class ProjectServiceImpl implements ProjectService { public class ProjectServiceImpl {
/** /**
*/ */
private static final int FIRST_OR_DEFAULT = 0; private static final int FIRST_OR_DEFAULT = 0;
...@@ -67,7 +66,6 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -67,7 +66,6 @@ public class ProjectServiceImpl implements ProjectService {
private final OperateLogType LOG_TYPE = OperateLogType.OperationLogProject; private final OperateLogType LOG_TYPE = OperateLogType.OperationLogProject;
private static final Logger logger = LoggerFactory.getLogger(ProjectServiceImpl.class); private static final Logger logger = LoggerFactory.getLogger(ProjectServiceImpl.class);
@Override
public List<ServiceTypeDto> getServiceList() { public List<ServiceTypeDto> getServiceList() {
ServiceTypeExample serviceTypeExample = new ServiceTypeExample(); ServiceTypeExample serviceTypeExample = new ServiceTypeExample();
...@@ -94,7 +92,6 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -94,7 +92,6 @@ public class ProjectServiceImpl implements ProjectService {
return serviceTypeDtoList; return serviceTypeDtoList;
} }
@Override
public List<ProjectClientDto> getProjectClientList() { public List<ProjectClientDto> getProjectClientList() {
logger.debug("获取ProjectClient Start"); logger.debug("获取ProjectClient Start");
ProjectClientExample example = new ProjectClientExample(); ProjectClientExample example = new ProjectClientExample();
...@@ -108,14 +105,12 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -108,14 +105,12 @@ public class ProjectServiceImpl implements ProjectService {
/** /**
* @TODO: this dmeo only for running,should change to query data from db (neo) * @TODO: this dmeo only for running,should change to query data from db (neo)
*/ */
@Override
public List<ProjectDisplayDto> getProjectById(String projectId) { public List<ProjectDisplayDto> getProjectById(String projectId) {
List<ProjectDisplayDto> displayDtos = new ArrayList<>(); List<ProjectDisplayDto> displayDtos = new ArrayList<>();
displayDtos.add(new ProjectDisplayDto().demo()); displayDtos.add(new ProjectDisplayDto().demo());
return displayDtos; return displayDtos;
} }
@Override
public List<ProjectDisplayDto> getAllProjectList(String orgId, String serviceId, Integer projectYear) { public List<ProjectDisplayDto> getAllProjectList(String orgId, String serviceId, Integer projectYear) {
List<ProjectDisplayDto> pList = new ArrayList<>(); List<ProjectDisplayDto> pList = new ArrayList<>();
List<ProjectDisplayDto> data = projectMapper.getProjectList(orgId, serviceId, projectYear); List<ProjectDisplayDto> data = projectMapper.getProjectList(orgId, serviceId, projectYear);
...@@ -171,7 +166,6 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -171,7 +166,6 @@ public class ProjectServiceImpl implements ProjectService {
return pList; return pList;
} }
@Override
public AddProjectResult addProject(ProjectDisplayDto projectDto, String userName) { public AddProjectResult addProject(ProjectDisplayDto projectDto, String userName) {
projectDto.setActive(true); projectDto.setActive(true);
projectDto.setRuleType(1); projectDto.setRuleType(1);
...@@ -223,7 +217,6 @@ public class ProjectServiceImpl implements ProjectService { ...@@ -223,7 +217,6 @@ public class ProjectServiceImpl implements ProjectService {
} }
@Override
public Map<Integer, Integer> getProjectAllStatus(String projectId) { public Map<Integer, Integer> getProjectAllStatus(String projectId) {
List<ProjectStatusManage> psmList = projectMapper.selectProjectAllStatus(projectId); List<ProjectStatusManage> psmList = projectMapper.selectProjectAllStatus(projectId);
Map<Integer, Integer> result = new HashMap<>(psmList.size()); Map<Integer, Integer> result = new HashMap<>(psmList.size());
......
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