SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_attend_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='attend'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_complain_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='complain'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_effect_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='effect'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_gowork_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='gowork'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_other_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='other'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_review_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='review'
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_attend_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='attend'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_complain_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='complain'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_effect_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='effect'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_gowork_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='gowork'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_other_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='other'
UNION
SELECT t1.*,t2.checkStatus FROM mortals_xhx_perform_attend_appeal t1,mortals_xhx_check_review_record t2 WHERE t1.checkRecordId=t2.id AND t1.performType='review'
) as a
<trimsuffixOverrides="where"suffix="">
where
<trimprefixOverrides="and"prefix="">
<includerefid="_condition_ext_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sqlid="_condition_ext_">
<iftest="condition != null and !condition.isEmpty()">
<iftest="conditionParamRef.containsKey('attendanceDateStart') and conditionParamRef.attendanceDateStart != null and conditionParamRef.attendanceDateStart!=''">
<iftest="conditionParamRef.containsKey('attendanceDateEnd') and conditionParamRef.attendanceDateEnd != null and conditionParamRef.attendanceDateEnd!=''">
<iftest="conditionParamRef.containsKey('actualAttendTimeStart') and conditionParamRef.actualAttendTimeStart != null and conditionParamRef.actualAttendTimeStart!=''">
<iftest="conditionParamRef.containsKey('actualAttendTimeEnd') and conditionParamRef.actualAttendTimeEnd != null and conditionParamRef.actualAttendTimeEnd!=''">
<iftest="conditionParamRef.containsKey('complainTimeStart') and conditionParamRef.complainTimeStart != null and conditionParamRef.complainTimeStart!=''">