企业列表出来了
parent
2b12cc5d27
commit
9bb7317849
|
@ -20,6 +20,7 @@ import com.muyu.market.domain.SysApitype;
|
||||||
import com.muyu.market.domain.UserRole;
|
import com.muyu.market.domain.UserRole;
|
||||||
import com.muyu.market.service.ISysApitypeService;
|
import com.muyu.market.service.ISysApitypeService;
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
@ -34,6 +35,7 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/apitype")
|
@RequestMapping("/apitype")
|
||||||
|
@Log4j2
|
||||||
public class SysApitypeController extends BaseController
|
public class SysApitypeController extends BaseController
|
||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -132,6 +134,7 @@ public class SysApitypeController extends BaseController
|
||||||
@PostMapping("/standing/{res}")
|
@PostMapping("/standing/{res}")
|
||||||
public Result updateCreateByUserId(@PathVariable("res") Integer res) {
|
public Result updateCreateByUserId(@PathVariable("res") Integer res) {
|
||||||
Long userId = SecurityUtils.getUserId();
|
Long userId = SecurityUtils.getUserId();
|
||||||
|
log.info("userId:"+userId);
|
||||||
UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId);
|
UserRole userRole = sysApitypeService.selectUserRoleByUserId(userId);
|
||||||
if(res!=1||userRole!=null){
|
if(res!=1||userRole!=null){
|
||||||
return Result.error();
|
return Result.error();
|
||||||
|
|
Loading…
Reference in New Issue