|
|
@@ -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>
|