调整关联查询入库单,没有过滤删除状态,修改为dr=0

This commit is contained in:
476474485@qq.com 2024-11-02 11:41:31 +08:00
parent 87d554ba64
commit 2c6d81919b
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@
SELECT cgeneralhid FROM ic_general_b WHERE vfirstbillcode = #{code} SELECT cgeneralhid FROM ic_general_b WHERE vfirstbillcode = #{code}
<if test="type != null and type != ''"> and csourcetype = #{type} </if> <if test="type != null and type != ''"> and csourcetype = #{type} </if>
) )
and dr = '0'
<if test="cbilltypecode != null and cbilltypecode != ''"> and h.cbilltypecode = #{cbilltypecode} </if> <if test="cbilltypecode != null and cbilltypecode != ''"> and h.cbilltypecode = #{cbilltypecode} </if>
group by h.vbillcode,a.unitcode group by h.vbillcode,a.unitcode
</select> </select>