分组类型查询单据

This commit is contained in:
lvleigang 2024-11-04 08:39:02 +08:00
parent 365b53a728
commit 4d73583183
1 changed files with 0 additions and 1 deletions

View File

@ -14,7 +14,6 @@
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> and dr = '0' <if test="type != null and type != ''"> and csourcetype = #{type} </if> and dr = '0'
) )
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>