| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('project:externalperson:add')") |
| | | @Log(title = "外围单位人员", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceExternalperson serviceExternalperson) { |
| | | if (StringUtils.isEmpty(serviceExternalperson.getUserno())) { |
| | |
| | | String formattedNumber = String.format("%05d", zj); |
| | | serviceExternalperson.setUserno(formattedNumber); |
| | | } |
| | | return toAjax(serviceExternalpersonService.save(serviceExternalperson)); |
| | | boolean save1 = serviceExternalpersonService.save(serviceExternalperson); |
| | | return AjaxResult.success(serviceExternalperson); |
| | | } |
| | | |
| | | /** |