Commit e8d180c5 authored by neo's avatar neo

[DEL] delete formula service interface

parent 53bc8a3d
...@@ -7,14 +7,14 @@ import org.springframework.web.bind.annotation.RequestMethod; ...@@ -7,14 +7,14 @@ 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 pwc.taxtech.atms.dto.OperationResultDto; import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.service.FormulaService; import pwc.taxtech.atms.service.impl.FormulaServiceImpl;
@RestController @RestController
@RequestMapping("/api/v1/formula") @RequestMapping("/api/v1/formula")
public class FormulaController extends BaseController { public class FormulaController extends BaseController {
@Autowired @Autowired
FormulaService formulaService; FormulaServiceImpl formulaService;
@ResponseBody @ResponseBody
@ApiOperation(value = "") @ApiOperation(value = "")
......
package pwc.taxtech.atms.service;
import pwc.taxtech.atms.dto.formula.FormulaParamConfigDto;
import pwc.taxtech.atms.dto.formula.FormulaParamMappingDto;
import pwc.taxtech.atms.entity.FormulaConfig;
import java.util.List;
public interface FormulaService {
List<FormulaConfig> getAllFormulaList();
List<FormulaParamConfigDto> getAllFormulaParamList();
List<FormulaParamMappingDto> getAllFormulaParamMappingList();
}
...@@ -16,14 +16,13 @@ import pwc.taxtech.atms.entity.FormulaConfig; ...@@ -16,14 +16,13 @@ import pwc.taxtech.atms.entity.FormulaConfig;
import pwc.taxtech.atms.entity.FormulaParamConfig; import pwc.taxtech.atms.entity.FormulaParamConfig;
import pwc.taxtech.atms.entity.FormulaParamMapping; import pwc.taxtech.atms.entity.FormulaParamMapping;
import pwc.taxtech.atms.entity.FormulaParamOption; import pwc.taxtech.atms.entity.FormulaParamOption;
import pwc.taxtech.atms.service.FormulaService;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Service @Service
public class FormulaServiceImpl extends BaseService implements FormulaService { public class FormulaServiceImpl extends BaseService {
@Autowired @Autowired
FormulaConfigDao formulaConfigDao; FormulaConfigDao formulaConfigDao;
...@@ -34,12 +33,10 @@ public class FormulaServiceImpl extends BaseService implements FormulaService { ...@@ -34,12 +33,10 @@ public class FormulaServiceImpl extends BaseService implements FormulaService {
@Autowired @Autowired
FormulaParamMappingDao paramMappingDao; FormulaParamMappingDao paramMappingDao;
@Override
public List<FormulaConfig> getAllFormulaList() { public List<FormulaConfig> getAllFormulaList() {
return formulaConfigDao.getAll(); return formulaConfigDao.getAll();
} }
@Override
public List<FormulaParamConfigDto> getAllFormulaParamList() { public List<FormulaParamConfigDto> getAllFormulaParamList() {
List<FormulaParamOption> paramOpts = formulaParamOptionDao.getAll(); List<FormulaParamOption> paramOpts = formulaParamOptionDao.getAll();
List<FormulaParamOptionDto> paramOptions = paramOpts.stream().map(x -> { List<FormulaParamOptionDto> paramOptions = paramOpts.stream().map(x -> {
...@@ -63,7 +60,6 @@ public class FormulaServiceImpl extends BaseService implements FormulaService { ...@@ -63,7 +60,6 @@ public class FormulaServiceImpl extends BaseService implements FormulaService {
return list; return list;
} }
@Override
public List<FormulaParamMappingDto> getAllFormulaParamMappingList() { public List<FormulaParamMappingDto> getAllFormulaParamMappingList() {
List<FormulaParamMapping> paramMap = paramMappingDao.getAll(); List<FormulaParamMapping> paramMap = paramMappingDao.getAll();
return paramMap.stream().map(x -> { return paramMap.stream().map(x -> {
......
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