This commit is contained in:
wucongxing8150 2025-07-14 17:36:58 +08:00
parent af84998f8d
commit 01c941e830

View File

@ -336,27 +336,4 @@ public class CaseplatformCaseExcelController {
return ResponseDTO.ok();
}
@ApiOperation("测试")
@GetMapping("/caseplatformCase/test")
public ResponseDTO<Map<String, Object>> caseplatformCaseTest(@RequestParam("count") Long count) {
try {
// 应发金额 = 数量 × 500
double totalAmount = count * 500.0;
// 实发金额 = 应发 个税暂时用10元代替
double taxAmount = caseplatformCaseService.computeIndividualIncomeTax(totalAmount);
double actualAmount = totalAmount - taxAmount;
Map<String, Object> resultMap = new HashMap<>();
resultMap.put("totalAmount", totalAmount);
resultMap.put("taxAmount", taxAmount);
resultMap.put("actualAmount", actualAmount);
return ResponseDTO.app_ok(resultMap);
} catch (Exception e) {
throw new BusinessException(e.getMessage());
}
}
}