查询总数 错误bug

This commit is contained in:
yuezhihang
2021-08-12 16:22:36 +08:00
parent 514bf18667
commit 7d4dcf561a
@@ -35,7 +35,12 @@
LEFT JOIN ts_user tu ON project_manager = tu.USID
WHERE
(
id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
<if test="flag == 1">
id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
</if>
<if test="flag == 2">
id IN ( SELECT project_id FROM sar_stand_project_relation )
</if>
<if test="qu != null">
<if test="qu.projectNumber != null">
AND project_number LIKE concat(concat('%',#{qu.projectNumber}),'%')