Browse Source

feat: 商品和套餐添加所属公司

xdd 1 month ago
parent
commit
edf9893854

+ 6 - 0
fs-service-system/src/main/java/com/fs/store/mapper/FsStoreProductAttrValueMapper.java

@@ -93,9 +93,15 @@ public interface FsStoreProductAttrValueMapper
             "<if test = 'maps.cateId != null    '> " +
             "and (p.cate_id =#{maps.cateId} or c.pid=#{maps.cateId} )" +
             "</if>" +
+
             "<if test = 'maps.isShow != null    '> " +
             "and p.is_show = #{maps.isShow}  " +
             "</if>" +
+
+            "<if test = 'maps.companyId != null    '> " +
+            "and find_in_set(#{maps.companyId},p.company_ids)  " +
+            "</if>" +
+
             " order by v.id desc "+
             "</script>"})
     List<FsStoreProductAttrValueVO> selectFsStoreProductAttrValueListVO(@Param("maps")FsProductAttrValueParam param);

+ 1 - 1
fs-service-system/src/main/java/com/fs/store/param/FsProductAttrValueParam.java

@@ -12,5 +12,5 @@ public class FsProductAttrValueParam implements Serializable
     private Integer productType;
     private Integer isShow;
     Integer tuiCateId;
-
+    private Long companyId;
 }