|
@@ -19,6 +19,7 @@ import com.platform.vo.BrandBindUserVo;
|
|
|
import com.platform.vo.BrandRspVo;
|
|
|
import com.platform.vos.CurrentUserLoginVo;
|
|
|
import com.platform.vos.TbUser;
|
|
|
+import com.platform.xss.SQLFilter;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
@@ -108,7 +109,7 @@ public class BrandController extends AbstractController{
|
|
|
@GetMapping("/brandBindList")
|
|
|
@RequiresPermissions("brand:list")
|
|
|
public Result brandBindList(@RequestParam(name = "page") long page,@RequestHeader String token,
|
|
|
- @RequestParam(name = "limit") long limit,
|
|
|
+ @RequestParam(name = "limit") long limit,String order,String sidx,
|
|
|
String sceneName,String brandName,Integer type,Integer livestreamStatus) {
|
|
|
Long userId = null;
|
|
|
//如果不是超级管理员,则只能查询本部门及子部门数据
|
|
@@ -123,8 +124,12 @@ public class BrandController extends AbstractController{
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ String orderBy = null;
|
|
|
+ if(!StringUtils.isEmpty(sidx) && !StringUtils.isEmpty(order)){
|
|
|
+ orderBy = SQLFilter.humpToLine(sidx) + " "+ order;
|
|
|
+ }
|
|
|
IPage<BrandEntity> resultPage = brandService.queryBrandBindList(page , limit , sceneName , brandName,
|
|
|
- getDeptId() ,type,userId,livestreamStatus);
|
|
|
+ getDeptId() ,type,userId,livestreamStatus,orderBy);
|
|
|
if(null == resultPage){
|
|
|
return Result.failure("获取店铺绑定列表失败");
|
|
|
}
|