Commit 0fb98139 authored by neo's avatar neo

[bugfix] fix savevmapping path param not mapping

parent 4e7143eb
......@@ -39,12 +39,12 @@ public class VoucherInvoiceMappingController {
@RequestMapping(value = "savevmappings/{period}/{IsAddition}", method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseEntity SaveVourcherMappings(@RequestBody List<VoucherMappingDto> list, @PathVariable int period
, @PathVariable int isAddition) {
, @PathVariable int IsAddition) {
list.forEach(m -> {
m.ID = UUID.randomUUID().toString();
m.CreatorID = identityService.getIdentityUser().getID();
});
return ResponseEntity.ok().body(voucherInvoiceMappingService.saveVourcherMappings(list, period, isAddition == 2));
return ResponseEntity.ok().body(voucherInvoiceMappingService.saveVourcherMappings(list, period, IsAddition == 2));
}
@RequestMapping(value = "saveimappings/{period}/{IsAddition}", method = RequestMethod.POST,
......
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