bug修复

This commit is contained in:
苏竹红
2023-06-25 17:17:51 +08:00
parent 6699d33a0c
commit a17f704192
2 changed files with 5 additions and 9 deletions

View File

@@ -316,14 +316,10 @@
b.create_time as createTime,
b.room_id as roomId
from hy_partner_interview a left join hy_partner_interview_plan b on a.interview_plan_id = b.id
<where>
<if test="userId!=null and userId!=''">
and a.interviewer = #{userId}
</if>
<if test="workflowStatus!=null and workflowStatus!=''">
and a.status = #{workflowStatus}
</if>
</where>
where a.status = #{workflowStatus}
<if test="userId!=null and userId!=''">
and a.interviewer = #{userId}
</if>
</select>
<select id="getInterviewList" resultType="com.cool.store.vo.interview.InterviewVO">

View File

@@ -279,7 +279,7 @@
select
IFNULL(sum(if(workflow_stage=1 and workflow_status = 0,1,0)),0) as intentApplyApproveCount,
IFNULL(sum(if(workflow_stage=2 and workflow_status = 0,1,0)),0) as reservationInterviewCount,
IFNULL(sum(if(workflow_stage=3 and workflow_status = 4,1,0)),0) as qualifiedInterviewCount
IFNULL(sum(if(workflow_stage=3 and workflow_status = 5,1,0)),0) as qualifiedInterviewCount
from hy_partner_line_info
<where>
<if test="userId!=null and userId!=''">