Commit 2778073a authored by neo's avatar neo

[DEL] delete rule enginee config servie interface

parent 06845d50
package pwc.taxtech.atms.controller;
import java.util.List;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -10,42 +9,42 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.ApiOperation;
import pwc.taxtech.atms.dpo.TaxRuleSettingDto;
import pwc.taxtech.atms.dto.BatchUpdateTaxRuleDto;
import pwc.taxtech.atms.dto.TaxPayerReportRuleDto;
import pwc.taxtech.atms.service.RuleEngineeConfigService;
import pwc.taxtech.atms.service.impl.RuleEngineeConfigServiceImpl;
import java.util.List;
/** @see PwC.Tax.Tech.Atms.WebApi\Controllers\RuleEngineeConfigController.cs */
@RestController
@RequestMapping("/api/v1/ruleEngineeConfig/")
public class RuleEngineeConfigController {
private static Logger logger = LoggerFactory.getLogger(RuleEngineeConfigController.class);
@Autowired
RuleEngineeConfigService ruleEngineeConfigService;
RuleEngineeConfigServiceImpl ruleEngineeConfigService;
@ApiOperation(value = "Get TaxPayerReportMapping", notes = "Return TaxPayerReportMapping")
@RequestMapping(value = "taxPayerReportMapping", method = RequestMethod.GET)
public @ResponseBody List<TaxPayerReportRuleDto> getTaxPayerReportMapping() {
public @ResponseBody
List<TaxPayerReportRuleDto> getTaxPayerReportMapping() {
logger.debug("RuleEngineeConfigController GetTaxPayerReportMapping");
return ruleEngineeConfigService.getTaxPayerReportMapping();
}
@ApiOperation(value="Get TaxRuleSetting",notes="Return TaxRuleSetting")
@RequestMapping(value="taxRuleSetting",method= RequestMethod.GET)
public @ResponseBody List<TaxRuleSettingDto> getTaxRuleSetting()
{
logger.debug("RuleEngineeConfigController GetTaxRuleSetting");
return ruleEngineeConfigService.getTaxRuleSetting();
@ApiOperation(value = "Get TaxRuleSetting", notes = "Return TaxRuleSetting")
@RequestMapping(value = "taxRuleSetting", method = RequestMethod.GET)
public @ResponseBody
List<TaxRuleSettingDto> getTaxRuleSetting() {
logger.debug("RuleEngineeConfigController GetTaxRuleSetting");
return ruleEngineeConfigService.getTaxRuleSetting();
}
@ApiOperation(value="",notes="saveTaxRuleSettings")
@RequestMapping(value="taxRuleSetting/Save",method = RequestMethod.POST)
@ApiOperation(value = "", notes = "saveTaxRuleSettings")
@RequestMapping(value = "taxRuleSetting/Save", method = RequestMethod.POST)
public void saveTaxRuleSettings(@RequestBody BatchUpdateTaxRuleDto batchUpdateTaxRule) {
logger.debug("RuleEngineeConfigController SaveTaxRuleSettings");
ruleEngineeConfigService.savetaxrulesettings(batchUpdateTaxRule);
logger.debug("RuleEngineeConfigController SaveTaxRuleSettings");
ruleEngineeConfigService.savetaxrulesettings(batchUpdateTaxRule);
}
}
\ No newline at end of file
package pwc.taxtech.atms.service;
import java.util.List;
import pwc.taxtech.atms.dpo.TaxRuleSettingDto;
import pwc.taxtech.atms.dto.BatchUpdateTaxRuleDto;
import pwc.taxtech.atms.dto.TaxPayerReportRuleDto;
public interface RuleEngineeConfigService {
List<TaxPayerReportRuleDto> getTaxPayerReportMapping();
List<TaxRuleSettingDto> getTaxRuleSetting();
void savetaxrulesettings(BatchUpdateTaxRuleDto batchUpdateTaxRule);
}
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