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