| | |
| | |
|
| | | import java.util.List;
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | |
|
| | | import com.ruoyi.common.utils.SecurityUtils;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.security.access.prepost.PreAuthorize;
|
| | | import org.springframework.validation.annotation.Validated;
|
| | |
| | | return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在");
|
| | | }
|
| | | post.setCreateBy(getUsername());
|
| | | post.setTenantId(SecurityUtils.getLoginUser().getTenantId());
|
| | | return toAjax(postService.insertPost(post));
|
| | | }
|
| | |
|