Administrator
2023-08-17 a10bd6f63ab8347f7e3cb259765e159004ba19f1
ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml
@@ -144,4 +144,16 @@
        </where>
        group by ard_app_patrolplan.id
    </select>
    <select id="oncePlan" parameterType="recordMonthExParam" resultMap="ArdAppPatrolplanResult">
        select plan.* from ard_app_patrolplan plan
        LEFT JOIN ard_app_patroluser users on users.patrolplan_id = plan."id"
        where users.app_user_id = #{userId} and cycle = 'once' and patro_begin_time like #{begin} and plan.del_name is null and plan.del_time is null ;
    </select>
    <select id="dayPlan" parameterType="recordMonthExParam" resultMap="ArdAppPatrolplanResult">
        select plan.* from ard_app_patrolplan plan
                               LEFT JOIN ard_app_patroluser users on users.patrolplan_id = plan."id"
        where users.app_user_id = #{userId} and cycle = 'day' and create_time &lt; #{end} and del_name is null and del_time is null ;
    </select>
</mapper>