| | |
| | | */ |
| | | @GetMapping(value = "/getCaptchaConfigKey") |
| | | @ApiOperation(value = "查询验证码开关 Y开N关") |
| | | @RepeatSubmit |
| | | // @RepeatSubmit |
| | | public AjaxResult getCaptchaConfigKey() { |
| | | return success(configService.selectConfigByKey("captcha_switch")); |
| | | } |
| | |
| | | @PostMapping |
| | | @ApiOperation(value = "新增客户") |
| | | @Transactional |
| | | // @RepeatSubmit |
| | | @RepeatSubmit |
| | | @Log(title = "新增客户信息", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody @ApiParam(value = "客户对象信息") TjCustomer tjCustomer) { |
| | | if (null == tjCustomer.getCusIdcard() || null == tjCustomer.getCusPhone()) { |
| | |
| | | RepeatSubmit annotation = method.getAnnotation(RepeatSubmit.class); |
| | | if (annotation != null) { |
| | | if (this.isRepeatSubmit(request, annotation)) { |
| | | AjaxResult ajaxResult = AjaxResult.success(); |
| | | AjaxResult ajaxResult = AjaxResult.error("同志,不要请求这么快,好吗"); |
| | | ServletUtils.renderString(response, JSON.toJSONString(ajaxResult)); |
| | | return false; |
| | | } |