| | |
| | | </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 |
| | | where t1.status =0 and t1.app_user_id = #{userId} |
| | | 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} |
| | | select t2.*,t1.score,t1.status missionStatus 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} |
| | | order by t2.create_time desc |
| | | </select> |
| | | <select id="pageListAssigned" resultType="com.ruoyi.system.vo.TMissionVO"> |