Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
This commit is contained in:
@@ -140,7 +140,7 @@
|
||||
from hy_intend_developement_mapping a inner join hy_intend_dev_zone_info b on a.mapping_id = b.id
|
||||
<where>
|
||||
<if test="type!=null and type !=''">
|
||||
and type = #{type}
|
||||
and a.type = #{type}
|
||||
</if>
|
||||
<if test="openAreaMappingIdList!=null and openAreaMappingIdList.size>0">
|
||||
<foreach collection="openAreaMappingIdList" open="and a.open_area_mapping_id in (" close=")" separator="," item="mappingId">
|
||||
|
||||
@@ -185,6 +185,8 @@
|
||||
select * from
|
||||
hy_open_area_info
|
||||
where area_status = 'keyOpen'
|
||||
and province_city_flag = 1
|
||||
and parent_id is null
|
||||
</select>
|
||||
|
||||
<select id="queryByKeyword" resultMap="BaseResultMap">
|
||||
|
||||
@@ -292,7 +292,9 @@
|
||||
SELECT t1.id interviewId, t1.id interview_id, t2.id as interviewPlanId, `status`, start_time, end_time, room_id, t1.partner_id partnerId, t1.interviewer interviewerId
|
||||
FROM hy_partner_interview t1
|
||||
LEFT JOIN hy_partner_interview_plan t2 ON t1.interview_plan_id = t2.id
|
||||
WHERE t1.partner_id = #{partnerId} and deleted = 0
|
||||
WHERE t1.partner_id = #{partnerId}
|
||||
AND t1.deleted = 0
|
||||
AND t2.deleted = 0
|
||||
</select>
|
||||
<select id="queryPartnerName" resultType="string">
|
||||
SELECT username
|
||||
|
||||
@@ -270,7 +270,7 @@
|
||||
<select id="getInterviewCount" resultType="com.cool.store.dto.partner.SpecialDateRangeInterviewCountDTO">
|
||||
select
|
||||
ifnull(sum(if(interview_date=#{currentDate},1,0)),0) as currentDayInterviewCount,
|
||||
ifnull(sum(if(start_time>#{startTime} and #{endTime},1,0)),0) as lastSevenDayInterviewCount
|
||||
ifnull(sum(if(start_time>#{startTime} and end_time <![CDATA[<]]> #{endTime},1,0)),0) as lastSevenDayInterviewCount
|
||||
FROM hy_partner_interview_plan
|
||||
where interviewer = #{userId}
|
||||
and application_approved = 0
|
||||
@@ -335,6 +335,7 @@
|
||||
left join hy_partner_user_info hpui on hpui.partner_id = hpip.partner_id
|
||||
left join enterprise_user eu on hpip.interviewer = eu.user_id
|
||||
<where>
|
||||
hpip.deleted = 0
|
||||
<if test="record.partnerName !=null and record.partnerName!=''">
|
||||
hpui.username like concat('%',#{record.partnerName},'%')
|
||||
</if>
|
||||
@@ -350,7 +351,7 @@
|
||||
<if test="record.interviewerMobile !=null and record.interviewerMobile!=''">
|
||||
and hpui.mobile like concat('%',#{record.interviewerMobile},'%')
|
||||
</if>
|
||||
<if test="record.roomStatus !=null and record.roomStatus!=''">
|
||||
<if test="record.roomStatus !=null">
|
||||
and hpip.room_status = #{record.roomStatus}
|
||||
</if>
|
||||
<if test="record.startTime !=null and record.startTime!=''">
|
||||
|
||||
Reference in New Issue
Block a user