33333
This commit is contained in:
parent
af84998f8d
commit
01c941e830
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user