huanghongfa
2021-04-21 37ed2e4254c12db7d8135413d1965e463c7fba19
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComShopGoodsDAO.java
@@ -68,10 +68,11 @@
     * @return  商品列表
     */
    @Select("<script> " +
            "select id,`name`,store_id,goods_pic,images,`status`,sale,original_price,price,unit" +
            ",`order`,stock,details,delivery_type, create_at " +
            "select csg.id,csg.`name`,csg.store_id,csg.goods_pic,csg.images,csg.`status`,csg.sale,csg.original_price " +
            ",csg.price,csg.unit,csg.`order`,csg.stock,csg.details,csg.delivery_type, csg.create_at " +
            " from com_shop_goods as csg " +
            " where 1=1  and csg.delete_status = 1 " +
            " left join com_shop_store as css on css.id = csg.store_id " +
            " where 1=1  and csg.delete_status = 1 and css.`status` = 1" +
            "<if test='comShopGoodsDTO.name != null and comShopGoodsDTO.name !=&quot;&quot;'>" +
            " AND csg.`name` like concat('%',#{comShopGoodsDTO.name},'%') " +
            " </if> " +