| | |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @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); |
| | | } |
| | | |
| | | |
| | | } |