| | |
| | | @TableField(exist = false) |
| | | private String imgfullurl; |
| | | |
| | | @ApiModelProperty(value = "分类主键") |
| | | @TableField(exist = false) |
| | | private Integer categoryId; |
| | | } |
| | |
| | | if (Constants.equalsInteger(user.getType(), Constants.UserType.SYSTEM.getKey())) { |
| | | wrapper.lambda().eq(Brand::getType,Constants.ONE); |
| | | }else { |
| | | wrapper.lambda().exists(!Objects.isNull(brand.getCategoryId())," select 1 from goods g where g.brand_id = brand.id and g.category_id = "+brand.getCategoryId()+" and g.COMPANY_ID = "+user.getCompanyId()+" " + |
| | | " and g.STATUS = 0 and g.ISDELETED = 0 "); |
| | | wrapper.lambda().and(i->i.eq(Brand::getCompanyId,user.getCompanyId()) |
| | | .or().eq(Brand::getType,Constants.ONE) |
| | | ); |