fengjin
2022-10-20 8cc9e9601aab48e511831f62f3b71bd3c68fea06
flower_city/src/main/resources/mapper/GuideRepairOrderMapper.xml
@@ -244,6 +244,20 @@
        LIMIT #{time}
    </select>
    <select id="selectOvertime"  resultMap="GuideRepairOrderResult">
        <include refid="selectGuideRepairOrderVo"/>
        <where>
            state=2 and is_push=2 and  SYSDATE()>timeout_time and  1>(select count(*)  from automessage_guide_evolve where state=9 and  a.id=guide_id )
        </where>
    </select>
    <select id="selectEvaluate"  resultMap="GuideRepairOrderResult">
        <include refid="selectGuideRepairOrderVo"/>
        <where>
           state=4 and datediff(now(),update_time)>=1
        </where>
    </select>