3254194295 2 年之前
父節點
當前提交
636b78de4a

+ 1 - 1
platform-dao/src/main/resources/mapper/store/InStoreFormMapper.xml

@@ -168,7 +168,7 @@
 
     <select id="getInStoreDetailVOs" parameterType="com.platform.dao.dto.store.InStoreFormDTO"
             resultType="com.platform.dao.vo.query.store.InStoreFormVO">
-        SELECT form.type,COUNT(*) instorenum FROM `t_in_store_form` form
+        SELECT form.type,COUNT(*) instorenum FROM `t_in_store_form` form left
          join t_store store on store.id=form.store_id
         <where>
 

+ 2 - 2
platform-dao/src/main/resources/mapper/store/OutStoreFormMapper.xml

@@ -109,7 +109,7 @@
             resultType="com.platform.dao.vo.query.store.OutStoreFormVO">
         select outstoreform.*, store.name storeName
         from t_out_store_form as outstoreform
-        join t_store store on store.id = outstoreform.store_id
+        left join t_store store on store.id = outstoreform.store_id
         <where>
             <include refid="List_Condition"/>
             <if test="useCompany != null and useCompany != ''">
@@ -147,7 +147,7 @@
 
     <select id="selectOutStoreList" parameterType="com.platform.dao.dto.store.OutStoreFormDTO"
             resultType="com.platform.dao.vo.query.store.OutStoreFormVO">
- SELECT form.type, COUNT(*) outstorenum FROM `t_out_store_form` form
+ SELECT form.type, COUNT(*) outstorenum FROM `t_out_store_form` form left
      join t_store store on store.id=form.store_id
     <where>
              status=1