|
@@ -142,12 +142,12 @@ public class PoTetherController extends BaseController
|
|
@PreAuthorize("@ss.hasPermi('system:tether:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:tether:add')")
|
|
@Log(title = "套系", businessType = BusinessType.INSERT)
|
|
@Log(title = "套系", businessType = BusinessType.INSERT)
|
|
@PostMapping("/add")
|
|
@PostMapping("/add")
|
|
- public AjaxResult add(@RequestBody TetherVo tetherVo,
|
|
|
|
- @RequestBody @Param("poUser") PoUser poUser
|
|
|
|
- )
|
|
|
|
|
|
+ public AjaxResult add(@RequestBody TetherVo tetherVo
|
|
|
|
+ )
|
|
|
|
+ //@RequestBody @Param("poUser") PoUser poUser
|
|
{
|
|
{
|
|
//判断当前用户是否有操作的权限
|
|
//判断当前用户是否有操作的权限
|
|
- poUserService.checkUserAllowed(poUser);
|
|
|
|
|
|
+ //poUserService.checkUserAllowed(poUser);
|
|
|
|
|
|
if (UserConstants.NOT_UNIQUE.equals(poTetherService.checkPostTetherNameUnique(tetherVo))){
|
|
if (UserConstants.NOT_UNIQUE.equals(poTetherService.checkPostTetherNameUnique(tetherVo))){
|
|
return AjaxResult.error("新增失败"+tetherVo.getTetherName()+"已经存在");
|
|
return AjaxResult.error("新增失败"+tetherVo.getTetherName()+"已经存在");
|