| | |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入CodeRule") |
| | | public R save(@Valid @RequestBody CodeRuleDTO codeRuleDTO) { |
| | | return R.status(codeRuleService.addSave(codeRuleDTO)); |
| | | return codeRuleService.addSave(codeRuleDTO); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入CodeRule") |
| | | public R update(@Valid @RequestBody CodeRuleDTO codeRuleDTO) { |
| | | return R.status(codeRuleService.editSave(codeRuleDTO)); |
| | | return codeRuleService.editSave(codeRuleDTO); |
| | | } |
| | | |
| | | /** |
| | |
| | | @DeleteMapping( "/deleteData") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "删除", notes = "传入codeRuleDTO") |
| | | public R delCodeRule(@Valid @RequestBody CodeRuleDTO codeRuleDTO) { |
| | | public R delCodeRule(@RequestBody CodeRuleDTO codeRuleDTO) { |
| | | return codeRuleService.deleteCodeRule(codeRuleDTO); |
| | | } |
| | | |
| | |
| | | return codeRuleService.clearAllCode(oid); |
| | | } |
| | | |
| | | /** |
| | | * 检查相似编码规则 |
| | | * @param oid |
| | | * @return 执行结果 |
| | | */ |
| | | @GetMapping("/checkLikeCodeRule") |
| | | @ApiOperationSupport(order = 15) |
| | | @ApiOperation(value = "检查相似编码规则", notes = "传入oid") |
| | | public R checkLikeCodeRule(String oid){ |
| | | return codeRuleService.checkLikeCodeRule(oid); |
| | | } |
| | | |
| | | |
| | | } |