修改bug
This commit is contained in:
parent
07e5b3bfa9
commit
265d679da6
|
|
@ -28,19 +28,28 @@
|
||||||
|
|
||||||
|
|
||||||
<select id="getCgdListNum" resultType="com.nu.modules.cgd.entity.NuInvoicingCgdMain">
|
<select id="getCgdListNum" resultType="com.nu.modules.cgd.entity.NuInvoicingCgdMain">
|
||||||
SELECT main.*
|
SELECT distinct main.*
|
||||||
FROM nu_invoicing_cgd_info info
|
FROM nu_invoicing_cgd_info info
|
||||||
INNER JOIN nu_invoicing_cgd_main main ON info.cgd_id = main.id
|
INNER JOIN nu_invoicing_cgd_main main ON info.cgd_id = main.id
|
||||||
<where>
|
<where>
|
||||||
<if test="params.gysId != null and params.gysId != ''">
|
<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>
|
||||||
<if test="params.typeId != null and params.typeId != ''">
|
<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>
|
||||||
<if test="params.status != null and params.status != ''">
|
<if test="params.status != null and params.status != ''">
|
||||||
and main.status = #{params.status}
|
and main.status = #{params.status}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.nuId != null and params.nuId != ''">
|
||||||
|
and main.nu_id = #{params.nuId}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue