Commit d6bb2da6 by liyanlin

fix

parent a8abcac7
...@@ -10,6 +10,7 @@ import com.gogirl.infrastructure.common.base.JsonResult; ...@@ -10,6 +10,7 @@ import com.gogirl.infrastructure.common.base.JsonResult;
import com.gogirl.infrastructure.common.util.SessionUtils; import com.gogirl.infrastructure.common.util.SessionUtils;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -35,8 +36,8 @@ public class CustomerInfoEnumController { ...@@ -35,8 +36,8 @@ public class CustomerInfoEnumController {
@LoginIgnore @LoginIgnore
@ApiOperation("职业偏好查询") @ApiOperation("职业偏好查询")
@GetMapping("/list") @GetMapping("/list")
public JsonResult<List<CustomerInfoEnum>> list() { public JsonResult<List<CustomerInfoEnum>> list(@RequestHeader("brandId") Integer brandId) {
return JsonResult.success(customerInfoEnumService.list(new LambdaQueryWrapper<CustomerInfoEnum>() return JsonResult.success(customerInfoEnumService.list(new LambdaQueryWrapper<CustomerInfoEnum>()
.eq(CustomerInfoEnum::getBrandId, SessionUtils.getCustomerToken().getBrandId()))); .eq(CustomerInfoEnum::getBrandId, brandId)));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment