Commit 6c814799 by liyanlin

Merge branch 'saas'

parents 5a02d9b3 d6bb2da6
......@@ -10,6 +10,7 @@ import com.gogirl.infrastructure.common.base.JsonResult;
import com.gogirl.infrastructure.common.util.SessionUtils;
import io.swagger.annotations.ApiOperation;
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.RestController;
......@@ -35,8 +36,8 @@ public class CustomerInfoEnumController {
@LoginIgnore
@ApiOperation("职业偏好查询")
@GetMapping("/list")
public JsonResult<List<CustomerInfoEnum>> list() {
public JsonResult<List<CustomerInfoEnum>> list(@RequestHeader("brandId") Integer brandId) {
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