| | |
| | | address_score, time_score, person_count_score, equipment_score, attempt_score,assign_time,receive_time, |
| | | finish_time,is_mission_pool, create_time,update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageNowList" resultType="com.ruoyi.system.model.TMission"> |
| | | select t1.id as userMissionId,t2.* from t_mission_user t1 left join t_mission t2 on t1.mission_id =t2.id |
| | | where t1.status =0 and t1.app_user_id = #{userId} and t2.status = 2 |
| | | order by t2.create_time desc |
| | | </select> |
| | | <select id="pageHistoryList" resultType="com.ruoyi.system.model.TMission"> |
| | | select t2.* from t_mission_user t1 left join t_mission t2 on t1.mission_id =t2.id |
| | | where t1.status =1 and t1.app_user_id = #{userId} |
| | | order by t2.create_time desc |
| | | </select> |
| | | <select id="pageListAssigned" resultType="com.ruoyi.system.vo.TMissionVO"> |
| | | select tm.id, tm.urgency_level, tm.address, tm.mission_lon, tm.mission_lat, tm.mission_content, tm.mission_audio, tm.mission_pictures, |
| | | tm.mission_electronic, tm.status, tm.mission_type_id, tm.assign_time,tm.receive_time,tm.finish_time,tmu.app_user_id, |