main
杜函宇 1 month ago
parent a1763def9c
commit 78df377edd

@ -120,6 +120,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="dwList" resultType="com.ruoyi.tc.entity.Unit">
SELECT a.*
FROM unit_info a
<if test="req.type!= null and req.type like '%0%'">
LEFT JOIN asset_current b ON a.nick_name = b.dwmc
</if>
<if test="req.type!= null and req.type like '%1%'">
LEFT JOIN asset_mini_programs e ON a.nick_name = e.ssdw
</if>
<if test="req.type!= null and req.type like '%2%'">
LEFT JOIN asset_official_account f ON a.nick_name = f.ssdw
</if>
<if test="req.type!= null and req.type like '%3%'">
LEFT JOIN asset_email d ON a.nick_name = d.ssdw
</if>
<if test="req.type!= null and req.type like '%4%'">
LEFT JOIN asset_app c ON a.nick_name = c.ssdw
</if>
WHERE NOT EXISTS (
SELECT 1
FROM asset_task
@ -135,6 +152,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="req.userName != null and req.userName != '' ">
and a.user_name like concat('%',#{req.userName},'%')
</if>
<if test="req.type!= null and req.type like '%0%'">
and b.dwmc IS NOT NULL
</if>
<if test="req.type!= null and req.type like '%1%'">
AND e.ssdw IS NOT NULL
</if>
<if test="req.type!= null and req.type like '%2%'">
AND f.ssdw IS NOT NULL
</if>
<if test="req.type!= null and req.type like '%3%'">
AND d.ssdw IS NOT NULL
</if>
<if test="req.type!= null and req.type like '%4%'">
AND c.ssdw IS NOT NULL
</if>
</where>
</select>

Loading…
Cancel
Save