|
@@ -10,7 +10,6 @@ import com.trade.service.trade.exportrebate.dto.search.TaxRebateExportAbstractIn
|
|
|
import com.trade.service.trade.exportrebate.dto.search.TaxRebatePurchaseAbstractInfoSearchDto;
|
|
|
import com.trade.service.trade.exportrebate.dto.search.TaxRebateSummarySearchDto;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import com.trade.admin.trade.exportrebate.service.ExportTaxRebateService;
|
|
|
|
|
@@ -24,7 +23,7 @@ import java.util.List;
|
|
|
* @author hlb
|
|
|
* @since 2024-10-22 15:46:46
|
|
|
*/
|
|
|
-@Controller
|
|
|
+@RestController
|
|
|
@RequestMapping("/exportTaxRebate")
|
|
|
public class ExportTaxRebateController extends BaseController {
|
|
|
|
|
@@ -41,7 +40,6 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
* @return 出口退税明细汇总数据
|
|
|
*/
|
|
|
@GetMapping("/summaryData")
|
|
|
- @ResponseBody
|
|
|
@PreAuthorize("@ss.hasPermi('trade:exportTaxRebate.pages')")
|
|
|
public ResponseResult<GridPage<TaxRebateSummaryDataDto>> getSummaryDataByPage(TaxRebateSummarySearchDto search) {
|
|
|
return success(exportTaxRebateService.getTaxRebateSummaryDataPagesBySearch(search));
|
|
@@ -54,7 +52,6 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
* @return 出口退税明细合计数据
|
|
|
*/
|
|
|
@GetMapping("/totalData")
|
|
|
- @ResponseBody
|
|
|
@PreAuthorize("@ss.hasPermi('trade:exportTaxRebate.pages')")
|
|
|
public ResponseResult<TaxRebateTotalDataDto> queryTotalData(TaxRebateSummarySearchDto search) {
|
|
|
return success(exportTaxRebateService.getTaxRebateTotalDataBySearch(search));
|
|
@@ -67,7 +64,6 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
* @return 口退税出口明细摘要信息
|
|
|
*/
|
|
|
@GetMapping("/exportPages")
|
|
|
- @ResponseBody
|
|
|
@PreAuthorize("@ss.hasPermi('trade:exportTaxRebate.exportPages')")
|
|
|
public ResponseResult<GridPage<TaxRebateExportAbstractInfo>> getTaxRebateExportPages(
|
|
|
TaxRebateExportAbstractInfoSearchDto search) {
|
|
@@ -81,7 +77,6 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
* @return 出口退税进货明细摘要信息
|
|
|
*/
|
|
|
@GetMapping("/puchasePages")
|
|
|
- @ResponseBody
|
|
|
@PreAuthorize("@ss.hasPermi('trade:exportTaxRebate.puchasePages')")
|
|
|
public ResponseResult<GridPage<TaxRebatePurchaseAbstractInfo>> getTaxRebatePurchasePages(
|
|
|
TaxRebatePurchaseAbstractInfoSearchDto search) {
|
|
@@ -93,9 +88,9 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
*/
|
|
|
@GetMapping("/doTaxRebate")
|
|
|
@PreAuthorize("@ss.hasRole('EXPORT_TAX_REFUNDER')")
|
|
|
- public String doTaxRebate(String xtUserId, String xtEid) {
|
|
|
+ public ResponseResult<String> doTaxRebate(String xtUserId, String xtEid) {
|
|
|
String taxRebateUrl = exportTaxRebateService.getTaxRebateUrl(xtUserId, xtEid);
|
|
|
- return "redirect:" + taxRebateUrl;
|
|
|
+ return ResponseResult.success(taxRebateUrl);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -105,7 +100,6 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/declarationBatch/refundAmount")
|
|
|
- @ResponseBody
|
|
|
@PreAuthorize("@ss.hasPermi('trade:exportTaxRebate.exportTaxRefund')")
|
|
|
public ResponseResult<BigDecimal> getRefundAmountForDeclarationBatch(ExportTaxRefundBatchRequest request) {
|
|
|
return success(exportTaxRebateService.getRefundAmountForDeclarationBatch(request));
|
|
@@ -118,7 +112,6 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/declarationBatch/exportTaxRefund")
|
|
|
- @ResponseBody
|
|
|
@PreAuthorize("@ss.hasPermi('trade:exportTaxRebate.exportTaxRefund')")
|
|
|
public ResponseResult<Boolean> refundExportTaxForDeclarationBatch(ExportTaxRefundBatchRequest request) {
|
|
|
return success(exportTaxRebateService.refundExportTaxForDeclarationBatch(request));
|
|
@@ -131,7 +124,6 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/exportDetails/refundAmount")
|
|
|
- @ResponseBody
|
|
|
@PreAuthorize("@ss.hasPermi('trade:exportTaxRebate.exportTaxRefund')")
|
|
|
public ResponseResult<BigDecimal> getRefundAmountForExportDetails(List<TaxRebateExportAbstractInfo> request) {
|
|
|
return success(exportTaxRebateService.getRefundAmountForExportDetails(request));
|
|
@@ -144,7 +136,6 @@ public class ExportTaxRebateController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/exportDetails/exportTaxRefund")
|
|
|
- @ResponseBody
|
|
|
@PreAuthorize("@ss.hasPermi('trade:exportTaxRebate.exportTaxRefund')")
|
|
|
public ResponseResult<Boolean> refundExportTaxForExportDetails(ExportTaxRefundDetailsRequest request) {
|
|
|
return success(exportTaxRebateService.refundExportTaxForExportDetails(request));
|