关于无法添加商品问题
This commit is contained in:
parent
e1aaa4ac12
commit
45c7558e4b
@ -141,11 +141,12 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl<AppInspectionPa
|
||||
|
||||
@Override
|
||||
public List<ShopInspectionCategory> categoryList(Long partnerId) {
|
||||
LoginUser user = SecurityFrameworkUtils.getLoginUser();
|
||||
ShopMallPartners partners = baseMapper.selectById(partnerId);
|
||||
if (!partners.getUserId().equals(user.getId())){
|
||||
return null;
|
||||
}
|
||||
// 暂时去掉
|
||||
// LoginUser user = SecurityFrameworkUtils.getLoginUser();
|
||||
// ShopMallPartners partners = baseMapper.selectById(partnerId);
|
||||
// if (!partners.getUserId().equals(user.getId())){
|
||||
// return null;
|
||||
// }
|
||||
List<ShopInspectionCategory> shopInspectionCategories = baseMapper.partnerCategoryList(partnerId);
|
||||
for (ShopInspectionCategory shopInspectionCategory : shopInspectionCategories) {
|
||||
LambdaQueryWrapper<InspectionCategoryTemplate> templateLambdaQueryWrapper =new LambdaQueryWrapper<>();
|
||||
|
Loading…
Reference in New Issue
Block a user