| | |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import com.vci.ubcs.system.user.entity.User; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import java.rmi.ServerException; |
| | | import java.util.Collection; |
| | | import java.util.Map; |
| | | |
| | |
| | | @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); |
| | | } |
| | | |
| | |
| | | @PostMapping("/clone") |
| | | @ApiOperationSupport(order = 13) |
| | | @ApiOperation(value = "克隆编码规则", notes = "传入codeRuleDTO") |
| | | public R cloneCodeRule(@RequestBody CodeRuleDTO codeRuleDTO){ |
| | | public R cloneCodeRule(@RequestBody CodeRuleDTO codeRuleDTO) throws ServerException { |
| | | return codeRuleService.cloneCodeRule(codeRuleDTO); |
| | | } |
| | | |
| | |
| | | return codeRuleService.clearAllCode(oid); |
| | | } |
| | | |
| | | /** |
| | | * 检查相似编码规则 |
| | | * @param oid |
| | | * @return 执行结果 |
| | | */ |
| | | @GetMapping("/checkLikeCodeRule") |
| | | @ApiOperationSupport(order = 15) |
| | | @ApiOperation(value = "检查相似编码规则", notes = "传入oid") |
| | | public R checkLikeCodeRule(@Valid @RequestParam String oid){ |
| | | return codeRuleService.checkLikeCodeRule(oid); |
| | | } |
| | | |
| | | } |