| | |
| | | |
| | | @GetMapping("/list") |
| | | @Log(title = "总账科目数据集合", businessType = BusinessType.OTHER) |
| | | @Operation(summary = "总账科目分页查询") |
| | | @Operation(summary = "总账科目树形查询(递归)") |
| | | public R<IPage<AccountSubjectVo>> AccountSubjectDtoList(Page<AccountSubjectDto> page, AccountSubjectDto accountSubjectDto) { |
| | | IPage<AccountSubjectVo> paramList = accountSubjectService.baseList(page, accountSubjectDto); |
| | | return R.ok(paramList); |
| | |
| | | @Log(title = "新增总账科目", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增总账科目") |
| | | public R AccountSubjectDtoAdd(@RequestBody AccountSubjectDto accountSubjectDto) { |
| | | return R.ok(accountSubjectService.save(accountSubjectDto)); |
| | | return R.ok(accountSubjectService.saveAccountSubject(accountSubjectDto)); |
| | | } |
| | | |
| | | @PutMapping("/edit") |
| | | @Log(title = "修改总账科目", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "修改总账科目") |
| | | public R AccountSubjectDtoEdit(@RequestBody AccountSubjectDto accountSubjectDto) { |
| | | return R.ok(accountSubjectService.updateById(accountSubjectDto)); |
| | | return R.ok(accountSubjectService.updateAccountSubject(accountSubjectDto)); |
| | | } |
| | | |
| | | @DeleteMapping("/remove/{ids}") |
| | | @Log(title = "删除总账科目", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "删除总账科目") |
| | | public R AccountSubjectDtooRemove(@PathVariable Long[] ids) { |
| | | return R.ok(accountSubjectService.removeBatchByIds(Arrays.asList(ids))); |
| | | return R.ok(accountSubjectService.removeAccountSubjectByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | | @PostMapping("/export") |