Browse Source

修改物料资料列表后台

zhoudw 7 years ago
parent
commit
74b669651e

+ 2 - 1
applications/document/document-server/src/main/resources/mapper/ProductMapper.xml

@@ -61,12 +61,13 @@
     <!--查询所有物料信息-->
     <select id="getProductsByCondition" resultMap="ProductDTOResultMapper" parameterType="com.usoftchina.saas.commons.dto.DocReqDTO">
         SELECT * FROM PRODUCT left join productonhand on pr_id = po_prodid
+        and  PRODUCT.companyid =  productonhand.companyid
         <where>
             <if test="con != null">
                 ${con}
             </if>
             <if test="companyId != null">
-                and  PRODUCT.companyid = #{companyId} and productonhand.companyId=#{companyId}
+                and  PRODUCT.companyid = #{companyId}
             </if>
         </where>
     </select>