Jelajahi Sumber

店铺查询商品统计处理

yjwang 1 Minggu lalu
induk
melakukan
5e0705630e

+ 8 - 0
fs-service/src/main/java/com/fs/hisStore/mapper/FsStoreScrmMapper.java

@@ -188,4 +188,12 @@ public interface FsStoreScrmMapper
      * @return list
      * **/
     List<String>  queryValidStoreLastInfo(@Param("storeId") Long storeId );
+
+    /**
+     * 查询店铺管理列表
+     *
+     * @param FsStoreScrm 店铺管理
+     * @return 店铺管理集合
+     */
+    public List<FsStoreScrm> selecStorePageList(FsStoreScrm FsStoreScrm);
 }

+ 1 - 1
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreScrmServiceImpl.java

@@ -84,7 +84,7 @@ public class FsStoreScrmServiceImpl implements IFsStoreScrmService {
      */
     @Override
     public List<FsStoreScrm> selectFsStoreList(FsStoreScrm fsStore) {
-        return fsStoreMapper.selectFsStoreList(fsStore);
+        return fsStoreMapper.selecStorePageList(fsStore);
     }
 
     /**

+ 30 - 0
fs-service/src/main/resources/mapper/hisStore/FsStoreScrmMapper.xml

@@ -580,4 +580,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             )
         HAVING warning_message != '';
     </select>
+
+    <select id="selecStorePageList" resultType="com.fs.hisStore.domain.FsStoreScrm">
+        SELECT
+        store_id,full_name,delivery_type,send_phone, brokerage_rate,refund_phone,refund_address,refund_consignee,
+        city_ids, store_name, descs, brokerage_type,logo_url, address, lng, lat, phone, license_images,
+        status, create_time, update_time, sales_count, balance, total_money, is_audit, account, password, shipping_type,
+        enterprise_address,legal_person_name,unified_social_credit_code,
+        business_scope,selectable_product_types,business_license,business_license_expire_start,business_license_expire_end,drug_license,
+        drug_license_expiry_start,drug_license_expiry_end,medical_device1,medical_device1_expiry_start,medical_device1_expiry_end,
+        medicalDevice2,medical_device2_expiry_start,medical_device2_expiry_end,medicalDevice3,medical_device3_expiry_start,
+        medical_device3_expiry_end,food_license,food_license_expiry_start,food_license_expiry_end,medical_license,
+        medical_license_expiry_start,medical_license_expiry_end,settlement_agreement,settlement_agreement_start,settlement_agreement_end,
+        quality_assurance_agreement,quality_assurance_agreement_start,quality_assurance_agreement_end,other_special_qualification,
+        other_special_qualification_start,other_special_qualification_end,is_business_license_permanent,store_seq,merchant_id,business_code,
+        drug_code,medical_device1_code,medical_device2_code,medical_device3_code,food_code,medical_code,other_special_qualification_code,
+        quality_assurance_agreement_code,settlement_agreement_code,
+        ( SELECT COUNT(*) FROM fs_store_product_scrm sps WHERE sps.store_id = ss.store_id ) AS productCount
+        FROM
+        fs_store_scrm ss
+        <where>
+            <if test="storeName != null  and storeName != ''"> and store_name like concat('%', #{storeName}, '%')</if>
+            <if test="address != null  and address != ''"> and address like concat('%', #{address}, '%')</if>
+            <if test="phone != null  and phone != ''"> and phone = #{phone}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="isAudit != null "> and is_audit = #{isAudit}</if>
+            <if test="account != null  and account != ''"> and account like concat('%', #{account}, '%')</if>
+            <if test="queryStoreId != null "> or store_id = #{queryStoreId}</if>
+        </where>
+        order by store_id desc
+    </select>
 </mapper>