企业列表出来了

master
法外狂徒张三 2024-09-09 15:03:40 +08:00
parent 2b12cc5d27
commit 9bb7317849
1 changed files with 3 additions and 0 deletions

View File

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