修改bug

This commit is contained in:
yangjun 2026-04-30 16:02:48 +08:00
parent 07e5b3bfa9
commit 265d679da6
1 changed files with 12 additions and 3 deletions

View File

@ -28,19 +28,28 @@
<select id="getCgdListNum" resultType="com.nu.modules.cgd.entity.NuInvoicingCgdMain">
SELECT main.*
SELECT distinct main.*
FROM nu_invoicing_cgd_info info
INNER JOIN nu_invoicing_cgd_main main ON info.cgd_id = main.id
<where>
<if test="params.gysId != null and params.gysId != ''">
and FIND_IN_SET(main.gys_id, #{params.gysId}) > 0
and main.gys_id in
<foreach collection="params.gysId.split(',')" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="params.typeId != null and params.typeId != ''">
and FIND_IN_SET(info.type_id, #{params.typeId}) > 0
and info.type_id in
<foreach collection="params.typeId.split(',')" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="params.status != null and params.status != ''">
and main.status = #{params.status}
</if>
<if test="params.nuId != null and params.nuId != ''">
and main.nu_id = #{params.nuId}
</if>
</where>
</select>
</mapper>